Capacitive touch sensor for Arduino
kowshik1729 last edited by
I am in a search of capacitive touch sensors. The functionalities I'm aiming at are
The capacitive touch should be able to recognize up, down and sideways slides on the Grid. Has anyone used the this type of module? If yes please do suggest me. Thanks in advance...!!
This can be done using captive grid. You can buy a touch pad
or you can make your own PAD
please refer 13th page of this documentation.
if you like to make one MPR121 is a nice choice
Design C is also good,
kowshik1729 last edited by
@Akhil Thanks. I am not in a state to design my own capacitive touch so I am going with already made modules. But the one which you have posted is too very expensive for my application. Are there any other modules that are a bit more cheaper.
SuperGops last edited by
Hey @kowshik1729, why don't you use a five of the touch keys(shown below), form them up in the shape of a cross and get the sequential data across two of those sensors to detect a left/right or up/down swipe?
kowshik1729 last edited by kowshik1729
@SuperGops Woow that's a great idea...I shall try this out..!!
@salmanfaris best if you could point me to an example that works as described: getting different values depending on hoe close the finger is without really touching. nothing i tried did work yet
@salmanfaris I haven't found a good sensor module for this at all. I used a thing which was calles touch sensor and it returns only 1/0. Tried to use touchRead() but it is not sensitive apparently, only 40 and 1 more or less.
#define touch_pin_numer 33
const int VALUE_THRESHOLD = 30;
TOUCH_SENSOR_VALUE = touchRead(touch_pin_numer);
if(TOUCH_SENSOR_VALUE < VALUE_THRESHOLD)
Serial.println ("Touch ON");
Serial.println ("Touch OFF");
should show something between 40 (current max) and 1 (current min) the closer the finger gets but it shows 40/41/39 and 1 - nothing inbetween. got this code from the web
@FlorianB Can you share the code, output window/error and details of the sensor module?
Hi! I am trying to add an capacitive sensor to the ESP32, that will work through glass with 3mm thickness and an distance of 8 to 2 cm. I have bought sensors which only work on touch, i have looked into the touchRead() function but cant get a steady value increase/decrease with distance and only a real touch gets me enough difference to count it as a "touch". I have checked Arduino examples with foil where a resistor can set the sensitivity but nothing worked on my ESP32. i have spent hours looking for an example, can somebody point me to one please?
Welcome to the Second edition of MakerGram Live, a newsletter where we pull together information about Interesting projects, Industry news, upcoming events, job opportunities and other interesting bits that you may find useful.
If you are a member of makergram, you already received a mail, please check your inbox or you can read from here: MakerGram Live | May 2020 Maker Update