Introduction to Capacitive Sensing Part1


Published on

Introduction of the Capacitive Sensing and the Cypress’s PSoc Family

Published in: Technology, Business
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • Welcome to the introduction to Capacitive Sensing training Module. The module will cover what capacitive sensing is, how it works, and where it can be applied. At the end this course, you will be able to : list the advantage of using capacitive touch-based systems over mechanical buttons and sliders. Describe how capacitive sensing distinguishes the presence or absence of a conductive element. And we will introduce Cypress’s PSoC family.
  • Capacitive sensing is making its way into more and more uses every day. From mobile handsets to computers to point-of-service terminals and home electronics, capacitive sensing is showing up in applications everywhere.
  • But what exactly is capacitive sensing? It is an alternative to traditional mechanical buttons and sliders in electronics. Instead of sensing the physical state of a button, it detects the presence or absence of a conductive object. Most simply, that object is a part of the human body like a finger.
  • There are actually several different reasons to implement a touch-based system. One of the most basic reasons to implement a touch-based solution is for higher reliability and durability. Buttons in a public kiosk are subject to a lot of abuse and traffic. Mechanical buttons can wear very easily and cause many failures. Having to replace buttons and fix mechanical sensors can easily increase the total system cost. Using a touch-based solution is more durable and reduces total costs in the long run. Touch-based systems also allow more flexibility as the buttons can be multi-use. For example, on a traditional home telephone, the mechanical button for the number 1 can really only serve to dial the number 1 or possibly represent a menu option when specified. With touch-based buttons, there are several ways to design the interface. This is only limited by the needs of the design. In the same sense, as a single button can serve many purposes, a touch-based system allows more usage in a limited amount of space. Finally, one of the key advantages of using touch-based systems over mechanical buttons is that it can improve the end user experience. Touch-based solutions are oftentimes more intuitive and user-friendly. These reasons all contribute to the growing adoption of touch-based solutions. Strategy Analytics believes that by 2012, as many as 40 percent of cellphones could be using touch-sensitive technology, compared with only 3 percent today.
  • There are several different ways to implement a touch-based system. This includes the use of resistive film, infrared sensors, or even surface acoustic waves. So with the different options available, why use capacitive sensing? First, there is sensitivity. Capacitive sensing is enabled with a light touch of a finger, without the need for a stylus or pressure that is sometimes required with resistive films. Second, there is durability. As previously mentioned, touch-based solutions are more durable than mechanical buttons and switches. However, among the touch-based solutions, capacitive sensors are extremely durable. Whereas the infrared solution can be adversely affected by surface contaminants, capacitive sensing is environment resistant. Finally, there is flexibility. Because capacitive sensing can be used with a wide range of overlay materials, with varying degrees of resolution and accuracy, it is not limited to certain applications. Capacitive sensing can be used in consumer electronics like mobile handsets, MP3 players, and digital cameras and it can also be used in industrial or home appliances like washing machines or kiosks. So how does capacitive sensing work?
  • To understand how a capacitive sensor works, here is a cross section of a single capacitive sensing button. Under some overlay material, in this case glass, there are conductive copper areas and conductive sensors. Whenever two conductive elements are within close proximity to each other, a capacitance is created, noted as C p in this diagram which is generated by coupling the sensor pad and ground plane. C P is the parasitic capacitance and is typically on the order of 10pF to 300pF. Now the proximity of the sensor and ground planes also creates a fringe electric field that passes through the overlay. The tissue of the human body is basically a conductor as well. Placing a finger near fringing electric fields adds conductive surface area to the capacitive system. This additional finger capacitance, noted here as C F , is however, on the order of 0.1pF to 10pF. So although the presence of a finger induces change, the scale of the change in comparison to the parasitic capacitance is quite small. The sensor’s measured capacitance is called C X . With no finger present, C X is basically equal to C P . When a finger is present, then, C X is a combination of C P and C F .
  • PSoC stands for “Programmable System-on-Chip”. PSoC is a device that has an array of hardware blocks that can be configured to perform a variety of functions. The analog blocks can be configured as analog-to-digital converters, digital-to-analog converters, filters, and even capacitive sensors. We’ll discuss implementation of capacitive sensors a little later. The digital blocks can be configured as digital functions such as counters, pulse-width modulators and communication interfaces like UART and SPI. I 2 C communication is included on PSoC’s without the use of the digital resources. In any embedded system, one would expect there to be memory. PSoCs have anywhere from 4k to 32k of Flash memory depending on the device family. SRAM is also available in different sizes: from 256 bytes to 2 kB. The on-board microcontroller is the same microcontroller that is used in Cypress’ USB products.
  • Shown here is a block diagram of a PSoC device. On the left side of the diagram are the standard microcontroller elements such as oscillators, charge pumps, memory and the controller itself. On the right side of the diagram is what gives PSoC its real power.
  • These digital and analog blocks can be configured as functions such as a 16-bit pulse-width modulator, a filter, an analog-to-digital converter or a full- or half-duplex UART. These blocks can be reconfigured in runtime to have different functionality, such as that of timers, amplifiers, or comparators. The microcontroller and the digital and analog blocks are routed to I/O using programmable interconnects, providing even more flexibility. This flexibility in I/O connections is particularly useful in capacitive sensing applications, where reduction in parasitic capacitance and optimization of signals is so valuable.
  • All of this flexibility and configurability manifests itself as a highly flexible design platform allowing for more rapid design changes and easy migration to new projects. This reduces development time and simplifies manufacturing. The integration capabilities of PSoC reduce the component count as shown in the figure here. The figure on the top is before PSoC and has considerably more parts, ICs and passives, than the board on the bottom.
  • All of the configurability and flexibility is translated to capacitive sensing with PSoC. The configurable analog and digital blocks, as well as the interconnects are used to create all forms of capacitive inputs (buttons, sliders, touchpads, touch screens and proximity sensors) with the same devices and at the same time, if necessary.
  • Furthermore, PSoC can function as a CapSense device only, or as a part of a larger system with CapSense PLUS. The same features that are used for capacitive sensing can be used to drive motors, LEDs, speakers, measure voltages and communicate to the host. CapSense can also be used as a touch screen controller. This allows a whole new world of applications beyond buttons and sliders.
  • PSoC has three main families of CapSense-enabled products. The smallest devices are offered in 3x3QFN packages. Larger devices include an 8x8QFN as well as SSOP and SOIC footprints. I/O range from 13 in the smaller devices to 48 in the larger devices. Low sleep current in all of the devices allows users to reduce the average current consumption for CapSense designs significantly. CapSensePlus is enabled in all parts, but has considerably more functionality, especially with dynamic reconfiguration in the larger devices.
  • There are also several development kits available to help begin your CapSense design. Specifically, there are 3 kits available today. The CY3203A-CapSense kit utilizes the CY8C20x34 device family while the CY3213A-CapSense kit utilizes the CY8C21x34 device family. Finally, there is the CY3214-PSoCEvalUSB development kit that features the CY8C24x94 device family. Each of these development kits comes complete with the software and hardware necessary to begin development with CapSense as well as detailed example projects that can be easily modified to your needs. Once you have developed your project, the kit also allows you to connect directly to PSoC’s In-Circuit Emulator to debug and test the final project.
  • Cypress has a suite of design tools, starting with the free integrated development environment, PSoC Designer. PSoC designer allows engineers to define the system parameters and select, place and configure pre-defined analog and digital functions using the device editor. CapSense functions are included in the library of functions. The screen shot on the right of this screen shows the device editor for CSA PSoC Designer allows engineers to write application code with the application editor and step through the program with the debugger. Cypress offers a low-cost in-circuit emulator as well as a comprehensive library of application notes and technical articles. The emulator consists of a base unit that connects to the PC by way of the parallel or USB port. The base unit is universal and will operate with all PSoC devices.
  • Using the integrated development environment, CapSense designers are able to select and place their CapSense User Module. A wizard allows definition of buttons and sliders and pin assignment. Pins are assigned by dragging available pins over the capacitive inputs. User module sensitivity and high-level functions are defined in user module parameters and API calls.
  • Thank you for taking the time to view this presentation on PSoC . If you would like to learn more or go on to purchase some of these devices, you can either click on the link embedded in this presentation, or simple call our sales hotline. For more technical information you can either visit the Cypress site – link shown – or if you would prefer to speak to someone live, please call our hotline number, or even use our ‘live chat’ online facility.
  • Introduction to Capacitive Sensing Part1

    1. 1. Introduction to Capacitive Sensing <ul><li>Source: Cypress </li></ul><ul><ul><li>Part 1 – Capacitive Sensing and PSoC Family </li></ul></ul>
    2. 2. Module Introduction <ul><li>Purpose </li></ul><ul><ul><li>This module introduce the Capacitive Sensing and the Cypress’s PSoc Family. </li></ul></ul><ul><li>Outline </li></ul><ul><ul><li>List the advantage of using capacitive touch-based systems over mechanical buttons and sliders. </li></ul></ul><ul><ul><li>Describe how capacitive sensing distinguishes the presence or absence of a conductive element. </li></ul></ul><ul><ul><li>Introduction to Cypress’s PSoc Family </li></ul></ul><ul><li>Contents </li></ul><ul><ul><li>17 pages </li></ul></ul><ul><li>Duration </li></ul><ul><ul><li>15 Minutes </li></ul></ul>
    3. 3. Capacitive Sensing Applications
    4. 4. What is Capacitive Sensing? <ul><li>Alternative to mechanical buttons and sliders </li></ul><ul><li>Detects presence / absence of a conductive object </li></ul>
    5. 5. Advantages of Touch-based Solutions <ul><li>Durability </li></ul><ul><li>Higher reliability </li></ul><ul><li>Greater flexibility </li></ul><ul><li>Space saving </li></ul><ul><li>User friendly </li></ul>
    6. 6. Why Capacitive Sensing? <ul><li>Touch sensitivity </li></ul><ul><li>Durability </li></ul><ul><li>Flexibility </li></ul>
    7. 7. How it Works
    8. 8. What Is PSoC? <ul><li>PSoC = Programmable System-on-Chip </li></ul><ul><li>PSoC Device Features </li></ul><ul><ul><li>Configurable Analog Blocks </li></ul></ul><ul><ul><ul><li>ADCs, DACs, Filters, Comparators, CapSense,… </li></ul></ul></ul><ul><ul><li>Configurable Digital Blocks </li></ul></ul><ul><ul><ul><li>Timers, Counters, PWMs, UART, SPI, IrDA,… </li></ul></ul></ul><ul><ul><li>4-Kb to32-kb Flash Memory </li></ul></ul><ul><ul><li>256B to 2-kB SRAM </li></ul></ul><ul><ul><li>M8C MCU : Same core used in Cypress USB device </li></ul></ul>
    9. 9. PSoC Block Diagram PSoC Core System Resources
    10. 10. PSoC User Module = Ease of Use
    11. 11. PSoC Flexible Integration <ul><li>Flexible design platform </li></ul><ul><li>Shorter development time </li></ul><ul><li>Simpler manufacturing </li></ul><ul><li>Reduction in components </li></ul>Before PSoC After PSoC PSoC
    12. 12. CapSense <ul><li>Configurable capacitive sensing technology based on Cypress PSoC </li></ul><ul><li>PSoC’s configurable architecture allows multiple interfaces to be implemented simultaneously </li></ul><ul><ul><li>Buttons </li></ul></ul><ul><ul><li>Sliders </li></ul></ul><ul><ul><li>Touchpads </li></ul></ul><ul><ul><li>Touch screens </li></ul></ul><ul><ul><li>Proximity Sensors </li></ul></ul>
    13. 13. CapSense Advantage <ul><li>CapSensePLUS </li></ul><ul><ul><li>Blacklight Control/LED Driver </li></ul></ul><ul><ul><li>Motor Control </li></ul></ul><ul><ul><li>Power Management </li></ul></ul><ul><ul><li>I/O Expansion </li></ul></ul><ul><ul><li>Gyro </li></ul></ul><ul><ul><li>Accelerometer </li></ul></ul><ul><ul><li>Ambient Light Sensing </li></ul></ul><ul><li>Touch Screen Controller </li></ul><ul><ul><li>2-Layer Projected Capacitance (X-Y Matrix) </li></ul></ul><ul><ul><li>1-Layer Surface Capacitive (4/5-wire) </li></ul></ul>
    14. 14. CapSense Device <ul><li>CapSense Device Strategy </li></ul><ul><ul><li>CY8C20X34 : Optimized for CapSense designs </li></ul></ul><ul><ul><ul><li>Capacitive / mechanical buttons, LEDs, I2C or SPI interface </li></ul></ul></ul><ul><ul><li>CY8C21X34/24X94 :CapSense PLUS </li></ul></ul><ul><ul><ul><li>Additional Digital and Analog Blocks available </li></ul></ul></ul><ul><ul><ul><li>Dynamic Reconfiguration </li></ul></ul></ul>
    15. 15. CapSense Development Kits <ul><li>CY3203A-CapSense Development Kit </li></ul><ul><ul><li>CY8C20X34 Device Family </li></ul></ul><ul><li>CY3213A-CapSense Development Kit </li></ul><ul><ul><li>CY8C21X34 Device Family </li></ul></ul><ul><li>CY3214-PSoCEvalUSB Development Kit </li></ul><ul><ul><li>CY8C24X94 Device Family </li></ul></ul><ul><li>Development kits include example projects </li></ul><ul><li>and all necessary software </li></ul><ul><li>Connect directly to PSoC’s In-Circuit Emulator </li></ul>
    16. 16. CapSense Design Tools <ul><li>Free design software </li></ul><ul><ul><li>Device Editor </li></ul></ul><ul><ul><li>Application Editor </li></ul></ul><ul><ul><li>Debugger </li></ul></ul><ul><ul><li>CapSense User Module </li></ul></ul><ul><li>Low cost In-Circuit Emulator </li></ul><ul><ul><li>High functionality ICE </li></ul></ul><ul><ul><li>Connects to PC by the parallel or USB port </li></ul></ul><ul><ul><li>Universal bas unit to operate with all PSoC devices </li></ul></ul>
    17. 17. PSoC Designer Software <ul><li>Select and place the User Module (UM) </li></ul><ul><li>Choose slider and button number </li></ul><ul><li>Select pins for slider and buttons </li></ul><ul><li>Adjust sensitivity through UM parameters </li></ul>
    18. 18. Additional Resource <ul><li>For ordering PSoC, please click our part list or </li></ul><ul><li>call our sales hotline </li></ul><ul><li>For additional inquires contact our technical service hotline </li></ul><ul><li>For more product information go to </li></ul><ul><li> </li></ul>Newark Farnell