Infineon-Cy8ckit-022 Capsense Liquid Level Sensing Shield Kit Guide-usermanual-V01 00-En
Infineon-Cy8ckit-022 Capsense Liquid Level Sensing Shield Kit Guide-usermanual-V01 00-En
Infineon-Cy8ckit-022 Capsense Liquid Level Sensing Shield Kit Guide-usermanual-V01 00-En
Cypress Semiconductor
198 Champion Court
San Jose, CA 95134-1709
www.cypress.com
Copyrights
Copyrights
© Cypress Semiconductor Corporation, 2015–2020. This document is the property of Cypress Semiconductor Corporation
and its subsidiaries (“Cypress”). This document, including any software or firmware included or referenced in this document
(“Software”), is owned by Cypress under the intellectual property laws and treaties of the United States and other countries
worldwide. Cypress reserves all rights under such laws and treaties and does not, except as specifically stated in this
paragraph, grant any license under its patents, copyrights, trademarks, or other intellectual property rights. If the Software is
not accompanied by a license agreement and you do not otherwise have a written agreement with Cypress governing the use
of the Software, then Cypress hereby grants you a personal, non-exclusive, nontransferable license (without the right to
sublicense) (1) under its copyright rights in the Software (a) for Software provided in source code form, to modify and
reproduce the Software solely for use with Cypress hardware products, only internally within your organization, and (b) to
distribute the Software in binary code form externally to end users (either directly or indirectly through resellers and
distributors), solely for use on Cypress hardware product units, and (2) under those claims of Cypress’s patents that are
infringed by the Software (as provided by Cypress, unmodified) to make, use, distribute, and import the Software solely for
use with Cypress hardware products. Any other use, reproduction, modification, translation, or compilation of the Software is
prohibited.
TO THE EXTENT PERMITTED BY APPLICABLE LAW, CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, WITH REGARD TO THIS DOCUMENT OR ANY SOFTWARE OR ACCOMPANYING HARDWARE, INCLUDING,
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. No computing device can be absolutely secure. Therefore, despite security measures implemented in Cypress
hardware or software products, Cypress shall have no liability arising out of any security breach, such as unauthorized
access to or use of a Cypress product. CYPRESS DOES NOT REPRESENT, WARRANT, OR GUARANTEE THAT
CYPRESS PRODUCTS, OR SYSTEMS CREATED USING CYPRESS PRODUCTS, WILL BE FREE FROM CORRUPTION,
ATTACK, VIRUSES, INTERFERENCE, HACKING, DATA LOSS OR THEFT, OR OTHER SECURITY INTRUSION
(collectively, “Security Breach”). Cypress disclaims any liability relating to any Security Breach, and you shall and hereby do
release Cypress from any claim, damage, or other liability arising from any Security Breach. In addition, the products
described in these materials may contain design defects or errors known as errata which may cause the product to deviate
from published specifications. To the extent permitted by applicable law, Cypress reserves the right to make changes to this
document without further notice. Cypress does not assume any liability arising out of the application or use of any product or
circuit described in this document. Any information provided in this document, including any sample design information or
programming code, is provided only for reference purposes. It is the responsibility of the user of this document to properly
design, program, and test the functionality and safety of any application made of this information and any resulting product.
“High-Risk Device” means any device or system whose failure could cause personal injury, death, or property damage.
Examples of High-Risk Devices are weapons, nuclear installations, surgical implants, and other medical devices. “Critical
Component” means any component of a High-Risk Device whose failure to perform can be reasonably expected to cause,
directly or indirectly, the failure of the High-Risk Device, or to affect its safety or effectiveness. Cypress is not liable, in whole
or in part, and you shall and hereby do release Cypress from any claim, damage, or other liability arising from any use of a
Cypress product as a Critical Component in a High-Risk Device. You shall indemnify and hold Cypress, its directors, officers,
employees, agents, affiliates, distributors, and assigns harmless from and against all claims, costs, damages, and expenses,
arising out of any claim, including claims for product liability, personal injury or death, or property damage arising from any
use of a Cypress product as a Critical Component in a High-Risk Device. Cypress products are not intended or authorized for
use as a Critical Component in any High-Risk Device except to the limited extent that (i) Cypress’s published data sheet for
the product explicitly states Cypress has qualified the product for use in a specific High-Risk Device, or (ii) Cypress has given
you advance written authorization to use the product as a Critical Component in the specific High-Risk Device and you have
signed a separate indemnification agreement.
Cypress, the Cypress logo, Spansion, the Spansion logo, and combinations thereof, WICED, PSoC, CapSense, EZ-USB, F-
RAM, and Traveo are trademarks or registered trademarks of Cypress in the United States and other countries. For a more
complete list of Cypress trademarks, visit cypress.com. Other names and brands may be claimed as property of their
respective owners.
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 2
Contents
Safety Information 5
1. Introduction 7
1.1 Kit Contents .................................................................................................................7
1.2 Getting Started.............................................................................................................8
1.3 Additional Resources ...................................................................................................9
1.4 Hardware Requirements..............................................................................................9
1.5 Software Requirements .............................................................................................10
1.5.1 PSoC Creator.................................................................................................10
1.5.2 PSoC Programmer.........................................................................................10
1.6 Application Notes and Projects..................................................................................10
1.7 Technical Support......................................................................................................10
1.8 Documentation Conventions......................................................................................11
1.9 Acronyms...................................................................................................................11
2. Kit Hardware 12
2.1 Board Details .............................................................................................................12
2.2 Kit Assembly ..............................................................................................................15
2.3 Theory of Operation...................................................................................................17
2.3.1 Principle of Capacitive Liquid Level Sensing .................................................17
2.3.2 CY8CKIT-022 Kit............................................................................................18
2.4 Functional Description ...............................................................................................19
2.4.1 Two Sensor Flexible PCB ..............................................................................19
2.4.2 12 Sensor Flexible PCB .................................................................................19
2.4.3 Flexible Sensor Connector.............................................................................20
2.4.4 Arduino-Compatible Headers.........................................................................20
2.4.5 Temperature Compensation Sensor ..............................................................22
2.4.6 Integration Capacitors ....................................................................................22
2.4.7 UART Connection ..........................................................................................23
2.4.8 Liquid Container .............................................................................................23
3. Example Projects 24
4. Design Support 25
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 3
Contents
A. Appendix 26
A.1 Shield Schematic .......................................................................................................26
A.2 2RX Sensor Schematic..............................................................................................27
A.3 12RX Sensor Schematic............................................................................................28
A.4 Shield Layout .............................................................................................................29
A.5 2RX Sensor Layout....................................................................................................30
A.6 12RX Sensor Layout..................................................................................................31
A.7 Bill of Materials ..........................................................................................................32
Revision History 33
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 4
Safety Information
Regulatory Compliance
The CapSense Liquid Level Sensing Shield Kit (CY8CKIT-022) is intended for use as a development
platform for hardware or software in a laboratory environment. The board is an open system design,
which does not include a shielded enclosure. This may cause interference to other electrical or
electronic devices in close proximity. In a domestic environment, this product may cause radio
interference. In such cases, you may be required to take adequate preventive measures. In addition,
this board should not be used near any medical equipment or RF devices.
Attaching additional wiring to this product or modifying the product operation from the factory default
may affect its performance and cause interference with other apparatus in the immediate vicinity. If
such interference is detected, suitable mitigating measures should be taken.
The Liquid Level Sensing Shield Kit, as shipped from the factory, has been verified to meet with the
requirements of CE as a Class A product.
End-of-Life/Product Recycling
This kit has an end-of life five years from the date of
manufacture mentioned on the back of the box. Contact your
nearest recycler for discarding the kit.
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 5
Safety Information
Handling Boards
CY8CKIT-022 boards are sensitive to ESD. Hold the board only by its edges. Do not slide the board
over any surface.
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 6
1. Introduction
Thank you for your interest in the CapSense® Liquid Level Sensing Shield Kit (CY8CKIT-022). This
kit is intended to demonstrate the Liquid Level Sensing (LLS) capabilities of the CapSense
technology in Cypress’s PSoC® 4 products.
This kit supports the following liquid level sensing features:
■ Non-contact measurement of liquid levels from sensors located on the exterior of the non-
conductive liquid container. Avoids contamination and cleaning issues found with mechanical and
contact sensors, simplifying industrial design and improving user experience.
■ Supports two different sensor patterns. A two sensor ‘Backgammon’ shaped pattern provides
liquid level sensing at a low cost point while a multi sensor ‘Segmented’ pattern provides
increased accuracy that can be optimized for each design by varying the number and shape of
sensors.
This kit guide provides details on the kit contents, hardware, schematics, and BOM. See Code
Example CE202479 for example projects developed for use with this kit and
AN202478 - PSoC 4 - Capacitive Liquid Level Sensing for theory, design guidance, and sensor
layout information.
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 7
Introduction
Inspect the contents of the kit; if you find any part missing, contact your nearest Cypress sales office
for help.
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 8
Introduction
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 9
Introduction
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 10
Introduction
1.9 Acronyms
Table 1-2. Acronyms Used in the Document
Acronym Description
LLS Liquid Level Sensing
CL Liquid Capacitance
CP Parasitic Capacitance
GND Ground
IDE Integrated Design Environment
PCB Printed Circuit Board
IO Input Output Pin
USB Universal Serial Bus
UART Universal Asynchronous Receiver/Transmitter
PET Polyethylene Terephthalate
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 11
2. Kit Hardware
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 12
Kit Hardware
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 13
Kit Hardware
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 14
Kit Hardware
2. Thoroughly press the entire sensor area to the container to ensure there are no air bubbles in the
adhesive layer. Air bubbles allow the distance between the sensor and the liquid to fluctuate.
Distance changes cause changes to the sensor’s capacitance resulting in reduced liquid level
accuracy. Air bubbles can be observed through the adhesive layer on the back of the sensor
through the bottle.
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 15
Kit Hardware
3. Connect the CapSense Liquid Level Sensing Shield onto the CY8CKIT-042 PSoC 4 Pioneer Kit
Arduino header, as shown in Figure 2-6, and confirm if the PSoC 4 Pioneers kits jumpers are in
default positions.
Figure 2-6. Kit Connections
4. Connect the CapSense Liquid Level Sensing Flex PCB to the CapSense Liquid Level Sensing
Shield.
5. Connect the CY8CKIT-042 to your PC using the provided USB cable.
6. Compatible firmware and operating instructions are provided in code example CE202479.
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 16
Kit Hardware
Container Wall
PCB
Figure 2-8. Added Capacitance (CL) When Liquid Approaches a Capacitive Sensor
CL
Container Wall
Liquid
Ground CP CP Ground
Sensor
PCB
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 17
Kit Hardware
In the CY8CKIT-022 system, the CapSense circuitry in the PSoC device on the baseboard (such as
CY8CKIT-042) senses the changes in the capacitance of the liquid level sensors on the
CY8CKIT-022 kit. The PSoC calculates the liquid level based on the information about capacitance
changes on different sensors received from the CapSense block.
You can program the PSoC device on the baseboard through the onboard KitProg hardware, which
communicates to the software programming tool (PSoC Programmer) through the USB interface on
the board. You can develop firmware applications for PSoC 4 devices by using PSoC Creator.
CE202479 provides code example projects that you can use with the CY8CKIT-022 system to
implement liquid level sensing solutions.
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 18
Kit Hardware
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 19
Kit Hardware
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 20
Kit Hardware
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 21
Kit Hardware
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 22
Kit Hardware
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 23
3. Example Projects
CY8CKIT-022 can be used with Cypress PSoC 4 Pioneer Kits to evaluate the liquid level sensing
capabilities of CapSense in Cypress PSoC products. Code Example CE202479 contains example
projects that demonstrate the following features of CY8CKIT-022:
■ Liquid level measurement using capacitive sensors
■ Two sensor (2RX) project for use with the low cost 2RX flexible sensor
■ 12 sensor (12RX) project for use with the increased accuracy 12RX flexible sensor
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 24
4. Design Support
Refer to the following documents and resources to start new liquid level sensing designs with
PSoC 4 CapSense technology:
■ Getting Started with CapSense® Design Guide
■ AN79953 - Getting Started with PSoC® 4
■ PSoC 4 CapSense Design Guide
■ AN202478 - PSoC 4 - Capacitive Liquid Level Sensing
■ PSoC 4000, PSoC 4100, or PSoC 4200 Datasheet
■ Online Technical Support
■ Local Sales Support
Cypress recommends that you create a Technical Support Case for getting schematics and Layouts
of CapSense designs reviewed with Cypress.
Go to the webpage, www.cypress.com/techsupport, for creating a tech support case.
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 25
A. Appendix
CintB CintA
J2
CintA 1 2 C2 C1
A0 2 J4
RX7 8 470PF 50V 5% NP0 0805 470PF 50V 5% NP0 0805
CintB 3 4 D7
A1 4
RX8 7
RX2 5 6 D6
A2 6
RX9 6
RX1 7 8 RX4 D5
A3 8 CintB CintA
RX10 5
RX0 9 10 D4
R4 A4 10
TX0_R 470 OHM TX0 RX11 4
11 12 RX3 D3
A5 12
3
13 14 D2
13 14 CSS1
UART_TX 2 R1
RX12 15 16 D1 ZERO, 0603
15 16 1 RX12
UART_RX 1
17 18 D0
17 18 RX_Sensor
P9101-08-D32-1 Dimensions: 2cmx2cm
P9103-18-D32-1
Note: RX_Sense is required for Temperature Compensation
Arduino Headers
J6
R2
UART_RX ZERO, 0603 1
UART_TX R3 2
ZERO, 0603
P9101-02-D32-1
Note: Align this header to pin 9 (UART RX) and
10 (UARRT TX) of J8 connector on 042/044 Pioneer kits
UART
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 26
Appendix
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 27
Appendix
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 28
Appendix
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 29
Appendix
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 30
Appendix
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 31
Appendix
2 2 C1, C2 CAP CER 470PF 50V 5% NP0 0805 Murata Electronics GRM2165C1H471JA01D
HDR, 2.54mm PITCH, SINGLE ROW,
3 2 J1, J4 Protectron Electromech P9101-08-D32-1
8POS, 13mm, MATING LENGTH
HDR, 2.54mm PITCH, DUAL ROW,
4 1 J2 Protectron Electromech P9103-18-D32-1
18POS, 13mm, MATING LENGTH
HDR, 2.54mm PITCH, SINGLE ROW,
5 1 J3 Protectron Electromech P9101-10-D32-1
10POS, 13mm, MATING LENGTH
6 1 J5 CONN 2.54MM 16POS GOLD R/A Sullins Connector Solutions SFH11-PBPC-D08-RA-BK
HDR, 2.54mm PITCH, SINGLE ROW,
7 1 J6 Protectron Electromech P9101-02-D32-1
2POS, 13mm, MATING LENGTH
RES SMD 0.0OHM JUMPER 1/10W
8 1 R1 Panasonic ERJ-3GEY0R00V
0603
RES SMD 0.0OHM JUMPER 1/10W
9 2 R2, R3 Panasonic ERJ-3GEY0R00V
0603
10 1 R4 RES SMD 470 OHM 5% 1/10W 0603 Panasonic ERJ-3GEYJ471V
11 1 TP1 TEST POINT PC MINI .040"D Black Keystone Electronics 5001
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 32
Revision History
CY8CKIT-022 CapSense Liquid Level Sensing Shield Kit Guide, Doc. #: 002-09825 Rev. *D 33