ESP32 with a capacitive sensor
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?
salmanfaris last edited by
@FlorianB Can you share the code, output window/error and details of the sensor module?
@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
@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 last edited by salmanfaris
I haven't found a good sensor module for this at al
another option is that you can build capacitive sensor your own with resistors.
What are objects?
Jeff Goodell: Would you explain, in simple terms, exactly what object-oriented software is?
Steve Jobs: Objects are like people. They’re living, breathing things that have knowledge inside them about how to do things and have memory inside them so they can remember things. And rather than interacting with them at a very low level, you interact with them at a very high level of abstraction, like we’re doing right here.
Here’s an example: If I’m your laundry object, you can give me your dirty clothes and send me a message that says, “Can you get my clothes laundered, please.” I happen to know where the best laundry place in San Francisco is. And I speak English, and I have dollars in my pockets. So I go out and hail a taxicab and tell the driver to take me to this place in San Francisco. I go get your clothes laundered, I jump back in the cab, I get back here. I give you your clean clothes and say, “Here are your clean clothes.”
You have no idea how I did that. You have no knowledge of the laundry place. Maybe you speak French, and you can’t even hail a taxi. You can’t pay for one, you don’t have dollars in your pocket. Yet I knew how to do all of that. And you didn’t have to know any of it. All that complexity was hidden inside of me, and we were able to interact at a very high level of abstraction. That’s what objects are. They encapsulate complexity, and the interfaces to that complexity are high level.
This webinar is focussing on learning Git VCS, a distributed version control system for tracking changes during practical software development.
We will be exploring the usage of various git commands, plugins/extensions and branching-models based on real-world contexts.
The session is targetting absolute beginners with minimum or no experience with git, But a mindset to optimize and improve work efficiency and productivity by learning and exploring new tool-chains and strategies is a must!
Maker: Muhammad Swalah
Date: 16th Aug 2020
Time: 8:00 PM
Join MakerGram: bit.ly/join-mg
MakerGram is Live Now!
MakerChat 0x07: How to Learn Machine Learning (for Humans) by @GKS
#MakerGramLearnings #MGLive #AI #ArtificialIntelligence #MachineLearning #Humans #MachineIntellegence #MakerChat
@anuradhasingh426 Please check your mailbox.