CAPSENSE™ & MagSense Forum Discussions
I checked HW is ok, Vcc is stable and outputs 18.8V, Vdd is 3.3V, I2C speed is lower than 100kHz, all timings are checked and OK, no line crossing. Pin 12 CS2/GUARD that also works as AXRES is +3.3V. Still after 0x2FFF trials, no ACK. Any idea?
Schematic is attached.
Show LessHi,
According to AN64846 ,a salty water by dissolving 40 gm of cooking salt (NaCl) in 1 liter of water , is a proper simulation of worst-case condition.
What is parasitic capacitance value of this kind salty water?
why not the saturated salty water to be the worst-case?
Show LessFundamentals of electrostatics & capacitance for capacitive touch sensors
Capacitive sensing can be overwhelming for a newcomer. The nature of the underlying electromagnetic phenomena is complex. That’s why many newcomers tend to cut corners. They tend to skip the part of understanding the physics involved and jump head-first to projects. Naturally, they soon feel lost and resort to trial and error.
This chapter contains all the knowledge we wish we had when we first started working on capacitive sensing. It will teach you the basics of electrostatics, conductors, and capacitance tailored to the need of a capacitive touch sensor designer.
Then you’ll familiarize yourself with one of the most useful concepts in capacitive sensing: the fundamental case of the parallel plate capacitor. Understanding this case can help you unlock the mysteries of capacitive sensing!
Finally, you’ll get an intuitive understanding of how certain parameters, like electrode geometry, dielectrics, and traces affects the performance of a capacitive touch sensor.
Thanks to Benjamin Franklin’s pioneering experiments, that took place almost three centuries ago, almost everyone knows today that electric charges can travel through materials causing flow of electric current.
The tendency of a material to allow the flow of electric current through its body is described by conductivity, σ. On the contrary, the difficulty that a material poses to electric charge conduction can be quantified by resistivity, ρ.


You can read and learn more about the fundamentals of electrostatics & capacitance for capacitive touch sensors here.
Hi,
From <<Cypress’ CapSense Sigma-Delta Algorithm>>,we know CY8C21x34 has a special CSD structure with a bleed resistor. and it works very interesting
as the document says.
Now according to AN64846, PSOC 4S series has a fouth-generation capsense. it is called CSD_V2,isn't it? there is no bleed resistor. i don't know how it works . who can tell something about it?
And is capsense in CY8C21x34 the third generation capsense, with the CSD_V1 structure?
Show Less
我们有个空调触摸面板的项目,想用Cypress的触摸,需求是要用到6个触摸按键,引脚不要太多,面板要做小一点,请推荐下,谢谢!
Rotary Encoders are another use case for inductive sensing. This section discusses the design of inductive rotary encoder. The construction of rotary encoder involves two sensor coils and N number of targets placed on the rotating platform as shown in the figure below.
Construction of Inductive Rotary Encoder
The number of targets (N) decides the angular resolution as shown in:
Angular resolution = 360/(N*4)
The sensor coils need to be separated at an angle twice the angular resolution. For example, if the number of targets N = 8, then the achievable angular resolution is 11.25° and the required spacing between sensor coils is 22.5°. The direction of rotation can be determined using the previous value of coil ‘A’ and the current value of coil ‘B’ as shown in Table 2. If the current value of coil ‘B’ and previous value of coil ‘A’ are same, it means the direction of rotation is anti-clockwise direction; if the values are different, then is the direction of rotation is clockwise.
Direction of Rotation
To find out more on MoT designs, please see the Inductive Sensing Design Guide.
Metal over Touch (MoT) involves detecting the deflection of a metal overlay upon a touch. MoT uses a metal overlay separated from the sensor using a thin spacer or etched surfaces of metal overlay as shown in the figure below. When you touch the metal, the metal deflects. This deflection is detected by the inductive sensor. An example of front and back (with etched cavities) of a metal overlay is also shown below. The sensitivity of touch detection depends on the following parameters.
- Amount of metal deflection
- Sensor dimensions
- Spacer thickness or depth of etched cavity
- Applied force
Note that the amount of metal deflection for the applied force depends on metal material, thickness, and flexural rigidity.
Metal over Touch Arrangement
Example Metal Overlay
To find out more on MoT designs, please see the Inductive Sensing Design Guide.
Show LessLiquid-Level Sensing (LLS) detects the presence and level of liquid in a container without any physical contact. There are various types of liquid-level sensors such as capacitive, mechanical float, inductive, magnetic, Hall effect, optical, acoustic density, and ultrasonic; each has advantages and disadvantages. Capacitive liquid-level sensing has become popular due to its low cost, high reliability, low power, sleek aesthetics, and seamless integration with existing control architectures.
Cypress’s PSoC MCUs support liquid-level sensing with resolution down to 1 mm. Capacitive liquid-level sensing is provided through the use of the CapSense Component available in the free PSoC Creator™ Integrated Development Environment (IDE). The CapSense Component configures the on-chip CapSense peripheral hardware and provides required firmware for operation on PSoC MCUs. The following key liquid-level sensing benefits are provided using CapSense:
- Non-contact measurement avoids contamination and cleaning problems.
- Sensors located on the exterior of a non-conductive liquid container simplify industrial design and improve product user experience.
- Optimized resolution and accuracy to support varying price points with a single, low-cost, base system
- Sensors may be constructed out of low-cost materials such as plastic substrates and conductive ink.
A capacitive LLS system comprises of two key design elements:
- Capacitive sensor pattern to sense the liquid level
- PSoC MCU with CapSense Component to measure the sensors and calculate the liquid level
Cypress provides the CY8CKIT-022 Liquid-Level Sensing Shield Kit, which shows the simplicity of a PSoC MCU based LLS design.
Liquid-Level Sensing Block Diagram with PSoC 4 MCUs
We recommend that a later generation PSoC MCUs, such as PSoC 4 and PSoC 6 be used for optimal LLS performance. Development kits for PSoC 4 and PSoC 6 MCUs can be found here.
CapSense Basics
Capacitive liquid-level sensors are conductive pads or traces laid on a non-conductive material such as a PCB, plastic, or glass. The intrinsic capacitance of the PSB trace, pads, and other sensor connections is called the sensor parasitic (CP). when a target object such as water approaches the sensor, a small amount of liquid capacitance (CL) is added to the CP. LLS involves measuring the increased capacitance when a liquid is near the sensor.
Capacitance and Electric Field of a Capacitive LLS Added Capacitance (CL) when Liquid Approaches a Capacitive Sensor
The CapSense Component measures the capacitance by injecting a current into the sensor with a current Digital to Analog Converter (IDAC). A timer measures how long it takes the IDAC to charge the sensor’s voltage to a reference voltage using a comparator. When the conversion is complete, the timer count value that measured the IDAC charge time is used as the raw sensor value used in calculations and is commonly referred to as the sensor count.
To find out more about CapSense Liquid-Level Sensing, please refer to the Capacitive Liquid-Level Sensing AN and the PSoC 4 and PSoC 6 MCU CapSense Design Guide.
Show Less(CYTMA445/ CY8CTMA46X)机型。
屏幕和电路板子之间通过数据线相连,拔插该线前后,进行opens test 测试
线连接状态得到523字节的数据与线拔掉状态得到的523字节数据,是应该大不相同还是应该相差不多。
连接状态,数据例如:(50 0B 0E 0E 0E 0D 09。。。。。0E 0E 10)
拔掉状态 数据与上述数据相仿,还是该这样(04 02 05 01 04 01 04。。。。。04 03 01)数量级相差很大。
客户测试如下现象:拔掉后第一次(08以上)和第二次(02~04)数据量级别相差很大。而报出的问题。
但是,我没有办法证明这个是正常还是不正常。
连接状态:得到数据例如:(50 0B 0E 0E 0E 0D 09。。。。。0E 0E 10)
拔掉后第一次,得到数据:(18 0B 0A 10 12 13 09。。。。。0E 0E 10)
拔掉后第二次,得到数据:( 04 02 05 01 04 01 04。。。。。04 03 01)
Show Less