How to implement a reliable touch switch on the Arduino or ESP8266 (or any µController)
See video https://www.youtube.com/ralphbacon video #143
(Direct link to video: https://youtu.be/jhtY_Hn5jBM)
LCSC Electronics - Shop Online: https://lcsc.com
Founded in 2011, after 6-year striving and accumulation of experience, LCSC has become the fastest developing
online store of electronic components in China, serving 530,000 customers and processing around 2,000 online
orders per day by 2017. LCSC has a strong commitment to offering a wide selection of genuine, high-quality
electronic components at best price.
LCSC Electronics - Shop Online: https://lcsc.com
As part of my Home Alone project, I need a touch switch. Here are two ways of doing that.
I've implemented a capacitive touch sensor three times in my Arduino-based projects, and they work flawlessly. And, considering you only need one wire and have no switch bounce, they are infinitely preferable to standard, mechanical, push-button switches, IMHO.
So it seemed a no-brainer to do the same for my Home Alone project. If only life were that easy! Watch the video to find out why I couldn't do this on my Wemos D1 Mini project, and see a demo of the Arduino-based touch switch that I've used before.
10 x Touch Switch modules:
https://www.banggood.com/10Pcs-2_5-5_5V-TTP223-Capacitive-Touch-Switch-Button-Self-Lock-Module-For-Arduino-p-1132674.html?p=FQ040729393382015118&utm_campaign=25129675&utm_content=3897
Datasheet for TTP223 (copy also on my GitHub):
https://datasheet.lcsc.com/szlcsc/TTP223-BA6_C80757.pdf
LCSC SMD chip selection for your own PCB:
https://lcsc.com/search?q=ttp223
Arduino Playground information on the Capacitive Sensor library (also on my GitHub):
https://playground.arduino.cc/Main/CapacitiveSensor/
Newer version 5.x of Capacitive Sensor library by Paul Stoffregen for support for different µControllers:
https://playground.arduino.cc/Main/CapacitiveSensor/
Wemos D1 Mini OLED screen as shown in my demo, under $6 from all warehouses (UK, CN, USA) + free shipping:
https://www.banggood.com/Wemos-OLED-Shield-V2_0_0-For-Wemos-D1-Mini-0_66-Inch-64X48-IIC-I2C-Two-Button-p-1267299.html?p=FQ040729393382015118&utm_campaign=25129675&utm_content=3897
If you like this video please give it a thumbs up, share it and if you're not already subscribed please consider doing so and joining me on my Arduinite journey
My channel and blog are here:
------------------------------------------------------------------
https://www.youtube.com/RalphBacon
https://ralphbacon.blog
------------------------------------------------------------------