arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.09k stars 4.79k forks source link

TTP223 Capacitive touch module triggiring itself SOLUTION #3433

Closed AalianKhan closed 6 years ago

AalianKhan commented 6 years ago

Hello, I tried to use a TTP223 Capacitive touch module to control a Sonoff basic to control my lights. it worked when I connected it to an outlet, but when I connected in my switch box, it started turning on by itself I did lots of research and couldn't find a similar problem with a solution. Then I started to troubleshoot the problem myself. I found out that the capacitor controls the sensitivity, so I thought it might be a bad capacitor. I replaced it with 22pf Capacitor and now it works fine. I wanted to let everyone know that this is how I solved it since I didn't find a solution online

mnameghi commented 5 years ago

Hi Which capacitor has been you replaced? And what was it capacity?

AalianKhan commented 5 years ago

image 22pf capacitor The capacitance can range up to 50pf, where it will be the least sensitive. I chose 22pf because I already had it and it was in the middle of 0-50pf.

mnameghi commented 5 years ago

Did you know its capacity before changing?

AalianKhan commented 5 years ago

Nope. By doing a quick Google search of the schematic or shows a 22pf

zk-1 commented 4 years ago

Great that replacing that capacitor fixed your issue, however you did not replace the sensitivity capacitor. According to the TTP223 data sheet, the capacitor you have highlighted is a decoupling capacitor ('C1') between V+ and V-. It probably originally had a capacitance of 0.1uF. The unpopulated footprint on the top-right side (Cs) is the the one for adjusting sensitivity. With it empty, the button is most sensitive, and by adding a capacitor up to 50pF, you can reduce the sensitivity. To my understanding, by replacing the 0.1uf capacitor with a 22pf (0.000022uf) capacitor, you would have reduced the effectiveness of the decoupling capacitor. Ref: https://datasheet.lcsc.com/szlcsc/TTP223-BA6_C80757.pdf

webhostsg commented 2 years ago

Does anyone know the SMD size for the capacitor?

simonboydfoley commented 7 months ago

Its a 402 SMD Size (you may get away with a 603) and FYI the decoupling capacitor is 110nF.