Hello I have the problem that when I leave the Arduino on after a few minutes the L LED flashes and the button no longer works properly. Any idea how I could fix this?
What board are you using? Could you provide a link to the board, so I can get one? I'm trying to use a Feather32u4 board from Adafruit, but it isn't working. I just need help figuring out what boards would work. Thanks!
Simply increase or decrease a variable depending on the state of two sensors. Or implement a dimming system with just one sensor, just changing the brightness up/down until you release it
Very cool! I wonder if it would be possible to use a single asymmetric object with a capacitance change that depends on whether you slide a finger in one direction or another. So, sliding the finger up might increase the capacitance by a bit, and sliding down will decrease it. By measuring over the timeframe that the object is within the "being touched" capacitance range, you can use a single object with a single pin connection to scroll up or down.
I don't think it's a simple task. Sliders can be implemented by using several sensors. Here you can find some useful information ww1.microchip.com/downloads/en/Appnotes/Capacitive-Touch-Sensor-Design-Guide-DS00002934-B.pdf
I love this tutorial. My main question would be is it possible to define a different sensitivity threshold for each sensor? I want to make one that could work my just getting close to it.
It's possible if you edit the code. You could put it as a value of the structure (called touchPad) that's defined and set the value upon initialization. However setting the threshold too low will get you false positives. See the example in the graph when debug is enabled, there one of the pins is at a value of 40 already. And that value depends on atmosphere and the object it's connected to. The closer your value is to the non-touched state, the higher the chance of false positives.
Any thin non-conductive physical barrier should work. The TIP223 touch sensors work with a finger within about 2mm (1/16") of the touch plate, on the non-conductive side of the board, so it's about distance rather than actual touch.
Hello, thank you for this great tutorial! Do you think it is possible to include a MUX (e.g. CD4067B, 16 channels) to increase the number of touch sensors? Would I then connect the SIG of the MUX with one of the ANALOG pins on the Arduino? Or do you have a better idea for a setup? Thanks again! 🙂
Hey Nice Video thanks, Im wonderin if i can programm it with 2 Led strips like this.. 1 touch= LED bottom On, 2 touches in a row = LED Top On, 3 touches in a row= LED Bottom and Top On? Thanks for the Respons :)
Yes it's possible you need to add that to your arduino code. Keep track of time/ticks or implement a counter that checks on/off/on withing a given time period.
Any idea how much power this draws when NOT touching the sensor? I'm curious whether I can make a really small device like this that only runs on a 3V button battery...
I don't know the exact current consumption, but I think it is not reccomended for battery operation because the mcu should be running continuosly (no sleep mode).
I tried with uno but nothing happening . Changed the sensitivity but still no response . Please help . When upload it’s successful but with warning about “typedef struct “.
Hello. The sketch should work without any modifications, I've tested it on different models of Arduino. The typedef warning is not critical. Have you checked all the connections and led polarity? Keep in mind, don't touch sensors during Arduino startup (while applying power).
Probably used as reference for the other pins. So basically to compare the state of an unconnected pin to one being touched (or not touched). This is a guess though.
@@espelett thanks, i tried and it worked flawlessly. Now my issue is when the touch pad size increases i have to set threshold and samples again. Any way to do it auto?
Yes, implement a startup sequence that reads the current values and add a safe percentage to it as threshold. You can add a threshold property to the structure to keep these values per sensor
Hey 👋, I love your circuit but I'd like to replicate it with more than 5 inputs. I saw on RU-vid that a lot of people do the same diagram but with digital pins instead of analog. (But you can't press all of them at the same time...) I know you may use float values with your code so you want analog inputs, but it would be amazing to use the digital ones (because with an Arduino mega I could connect up to 50 sensors). Do you think it's possible ? And if so can you use the same code with small modifications or do I have to change the diagram circuit ?
Hi. This method works only with analog pins. There is a library (called CapacitiveSensor) that allow you to use digital pins, but it needs 2 pins for every sensor. Another method for using a digital pin is to connect it to VCC via a very large resistor (in the order of Mega Ohms), but for this to work your body has to be connected to ground (not very practical).
@@espelett I'm not talking about the Raspberry Pi, I'm talking about the Pi Pico, the new microcontroler from the released by the Pi foundation. It does have ADCs
Oh, I don't know this model, and this technique require a very good knowing of the ADC and its multiplexer. Anyway, I wouldn't use Phyton (even the Arduino language is quite inadequate, this is just an experiment).