This website uses cookies. By using this site, you consent to the use of cookies. For more information, please take a look at our Privacy Policy.
Home > Solutions > Access Control > Call controller based on Microchip PIC16LF1559 proximity sensor

Call controller based on Microchip PIC16LF1559 proximity sensor

This program selects Microchip PIC16LF1599 for design, and supports up to 17 Touch Channels. Microchip's touch solution can adapt to a variety of abnormally noisy electromagnetic environments through car-level strict ESD/EMI anti-interference capabilities and EMC compatibility, such as operating in thick gloves, stylus, pressure sensing, waterproof and moisture-proof, strong light and other environments.

With the outbreak of the new crown epidemic since the beginning of 2020, contactless channels are now used in most public places. For example, the elevator call system has many places using Bluetooth, wifi infrared, voice, etc. to call the elevator, but these methods There are also some changes in usage habits. For example, Bluetooth wifi must be connected to a mobile phone or related apps next week or follow WeChat applets before it can be used. This makes it more time-consuming and inconvenient to use. Infrared induction is used as a call elevator. In the case of false triggering, the infrared trigger will only be triggered when something arrives. If voice triggers are crowded, the environment will be noisy and easier to misidentify. To solve this problem, a call controller based on Microchip PIC16LF1559 proximity sensing It is relatively suitable.

This solution mainly introduces Microchip's touch button and proximity sensor elevator call solution. At present, many MCU products such as PIC and Atmel have 1D Touch function. 1D Touch functions include touch buttons, sliders, scroll wheels, and proximity sensors. This program selects Microchip PIC16LF1599 for design, and supports up to 17 Touch Channels. Microchip's touch solution can adapt to a variety of abnormally noisy electromagnetic environments through car-level strict ESD/EMI anti-interference capabilities and EMC compatibility, such as operating in thick gloves, stylus, pressure sensing, waterproof and moisture-proof, strong light and other environments.

Before entering the design, first introduce the principle of Microchip's touch solution. PIC16LF1599 uses mTouch technology, through the differential capacitive voltage divider (CVD) method, a simple description is that the finger press causes the capacitance change, thereby detecting the voltage change. CVD is a charge/voltage-based technology that uses only an analog-to-digital converter (ADC) module to measure the relative capacitance on the pin. Since only a common PIC device peripheral is needed, this technology can be implemented on most MCUs. This technique performs relative capacitance measurement based on the size of the internal ADC sample and hold capacitance. The specific steps are divided into:

1: Pre-charge the capacitor, charge the two capacitors to opposite voltages. The first execution is "Sampling A". The second time is "Sample B".

2: Connect the capacitors and stabilize them, connect the two capacitors in parallel and stabilize the charge. As the external capacitance increases, the initial charge will increase until the internal capacitance does not change, so its charge remains constant.

3: ADC conversion, the final voltage on Chold is determined by the relationship between the size of the external capacitor and the size of the internal capacitor;

Capacitive proximity sensing detects changes in capacitance on the sensor due to user touch or proximity. For the Microchip solution, the sensor can be any conductive material connected to the pins of the MCU through an optional series resistor. Generally, any conductive objects or objects with high dielectric constant near the sensor will affect the sensor capacitance. The scanning method of the capacitive proximity sensor is the same as that of the capacitive touch sensor. The device continuously monitors the capacitance of the sensor and waits for a major change to occur. The change of the proximity signal will be significantly smaller than the change of the touch signal, because it must be effective for a long distance in air (not plastic or glass), which is the most likely electric field medium. In order to maintain reliable detection, the system needs to maintain a good Signal-to-Noise Ratio (SNR)

Development and design instructions:

MCC is an image developed by microchip for 8-bit 16-bit microcontrollers

Interface configuration program and a tool to call related peripheral library functions,

Can greatly save the project development cycle.

Use Data Visualizer's USART to debug the touch function and the Signal-to-Noise Ratio (SNR).

The effect of Sensor size on sensing distance.

Sensor wiring is mainly wrapped with Guard to strengthen anti-interference and waterproofing.

► Showcase photos

► Scheme block diagram

► PCB drawings

► Schematic

► Core technical advantages

  1. PIC, AVR and SAM products from 8bit MCU, 16bit MCU to 32bit MCU all support the touch function, and at the same time pass the automotive standard certification MCU.
  2. Pass the Q100 standard certification for automotive applications or meet Q100;
  3. Free touch library, touch peripherals (ADC2 in PIC® MCU and PTC in AVR® MCU) provide high-performance touch functions and are easy to develop. Combine MPLAB IDE and MCC (code configurator) to quickly complete product design;
  4. Excellent waterproof and moisture-proof touch function, anti-interference function, XLP ultra-low power consumption technology;
  5. A safe touch solution certified by IEC/UL 60730 Class B;
  6. The system has low cost, integrates user application code, provides a full set of tools and robust touch library support, and facilitates product development.

► Solution specifications

  1. Core 8bit MCU, RISC architecture, simplified instructions;
  2. Built-in 16Mhz high-precision oscillator (±1%), the main frequency is up to 32Mhz;
  3. Using XLP ultra-low power design, standby power consumption is 30na (1.8V), working power consumption is 75na/Mhz (1.8V); 4. 14K Flash, 512B SRAM, 128B EEPROM;
  4. 17ch * 10bit ADC, 2CH PWM, 1CH UART, 1CH I2C, 1CH SPI;
  5. Up to 17ch capacitive touch channels, adopting mutual capacitance method, controlling up to 72 touch buttons;
  6. Package SSOP20 /QFN20 /UQFN20 /PDIP20;
  7. Working voltage 1.8V-3.6V; 9. -40℃-85℃ or -40℃-125℃.

Compare products

Compare Empty