I am trying to make the TTP223 capacitive sensor to work continuously while i am pressing the touch sensor, however the led turn off while i am still pressing , any idea how to fix that?
my aim is to turn on the LED when I touch the sensor and keep it on as long as I keep touching it. When I release the touch, the LED will turn off.
this is the code :
const int touchSensorPin = 2;
const int ledPin = 3;
The way I read that graphic, B not welded will give you an output that "follows" the button, while A will either give you a high output if not soldered, or a low output (when pressed) if soldered.
But, the description is a bit "hinky", so you'll just have to try one, I guess.
Thank you for your quick reply, and i have tried both, the issue is as in the attached video, i dont think it is related to AB trigger, it is the code how we make it as long as i touch the sensor it stay active (led on). please see the video and let me know your thought about why led goes off after about 10 seconds and i am still touching the sensor.
sorry i couldnt download the video...... anyway, the LED switched off after 10 seconds while my finger still on touch
Well, if the button does that(change the output, despite still pressing), then you're beat, because you'll never know when you really let go of the button.