Today I will show you a simple and easy way to turn almost anything that's metal into a capacitive touch sensor switch using only an Arduino and one resistor. Website: thezhut.com/?pa... Check us out on Facebook: / zarduino
Wow, 1 pin only and a resistor to make a capacitive sensor!! Genius! I was looking for a simple solution for my rain monitor for months and you showed it to me, great!!
It's case sensitive, capacitiveSensor is different from CapacitiveSensor... But yeah man detecting through 3/4 plywood, plexyglass, etc.. I made some lights for under the bar that's also solar powered, and for the switch I have a sheet of plexyglass with the wire basically taped to the back of it, and no problems.. It gradually increases with brightness because of the PWM controlled mosfet, so the pos actually increases in time as your touching it.. good stuff. +1, a must watch, tnx. if (val >= 1000) pos = pos + 1 AnalogWrite(nMOS, pos); if (pos >= 254){ pos = 0; delay(1000); etc. etc. etc. I'm sure u guys get the idea. pretty easy stuff. I'm using 11MMillions of Ω's) of resistance.
Everything works perfectly when I'm plugged into my laptop, but once I plug it into an outlet on the wall or even through a USB converter to the wall outlet, the sensors all go wack and don't react properly.
If you can. add display to your thing so you can see what's actually is happening when you plug it into outlet. Mine was going crazy when I activate my table to go up or down, but then I changed settings for sensitivity. meaning that it cant be triggered if its not over 5k if you know what I mean. This sensor is not perfect, other things are influence the results sometimes. depends of the environment.
Is it possible to add a potentiometer instead or the resistor across pin 4 and 6 It will really help as I find that temperature and other factors change the sensitivity. So instead of swapping out resistors a potentiometer might be very helpful Please help
I was thinking making a midi guitar with capacitive switches. I would need to make around 130 of them, there goes that plan. I liked informative video though.
It would be better to use a soft pot/ ribbon sensor to do this. That way you can think of them more like strings. For ex... 6 long ribbon sensors = 6 guitar strings = 6 analog inputs on your microcontroller. Each sensor detects the position that you press. Then your code for each string can reflect reality. The position you touch value can mapped to midi notes.
I need something like this for an electronic drum Basically, I need a trigger for when I touch the cymbal, so I can make a logic for the sound to stop (a "choke effect"), but it can't trigger until I actually touch the cymbal In your video, it also triggers when you get close to it without actually touching it. Is there a way to disable that, so it only triggers when touched?
I have a strange bug. I'm wiring this as a touch switch on a synthesiser which uses a logic high (5v) to create a gate which trigger a sounds. My oscillator stays on as long as the gate is high. I modified the code to be momentary rather than latching - i.e. go high for values > 1000 then low if the value goes below 1000 so the note holds for as long as my finger is on the pad. The circuit works great for me when I'm powered by USB plugged into my laptop (uploading the code) but when I swap to the 5v supply the synth is running on I get regular glitches to 0v so the note stutters. Anyone have any idea what is causing these periodic drops to 0v? I can't work it out.
I loaded this video and behold! The voice of GOD! Haha... just kidding. But seriously, informative indeed. I was looking for information on this subject matter but I didn't know a direct connection to an IO pin would do the job! Thanks
Hi what is the different using arduino or not? I saw other video only us TTP223,some resistor and capacitor I want to make a 3 step brightnes touch sensor for my bedside led lamp 12v,could it be made without arduino?actually for saving cost only
if I have an aluminium enclosure (e.g. a guitar pedal) and I solder the wire to the enclosure (acting like your coin), is it safe to be used as a "touch" footswitch? I'm a noob, any pointer is appreciated.
Make sure that your code is on the loop section or it will only check your if statement once. Also, make sure your delay for that if statement isn't too long maybe.
dos this could work on a car ? / like when you toutch it is mage an angry breathing dragon sound like the car dont like being toutch ? / because i want to do this on my future car in case if people try to posing and be quite stupid to toutch it sow that scare them / and alos that would be cool if that could start a camera if anything append to the car they have the recording a car that painted not direct to metal hope you have hunderstand what i want to say im french sow my traduction is not really good because i trie to learn and not use google translate
I used this in 12v led strip the serial monitor fluctuates when the Arduino is given 12v of supply any solution to stabilize the readings of serial monitor?
I'm curious what would happen if you decide a delta between the normal state and state it should be switched and let the arduino calculate the average value over let's say 2 minutes, then make it if(val => average+delta). This could maybe solve the issue of the capacitance changing not only with different mediums but also when humidity and temperature change
Vice video with good explaination, but the echo/reverb is very irritating. Is there actually a reason you use/have it that way? Speakers on while recording?
I want to use capacitive sensor to sense water level without conducting current in water as well as sense moisture in soil without conducting current in soil is this sensor works for both...?pls urgent reply sir??
guys i am a completely new to this no i need some help, the ardunio switch name can i get it properly as i am unable to select the switch , are all same or different i just need the one which the guy has used usable with 10mega ohm resistor and all
Hello, I all worked according to your method, saved the code, and then this character appeared: avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xec could you help me?
Not likely. A possible workaround would be to place a conductive material (metal) around the edge of the glass, and then using the fact that the value changes as you approach the material.
Do you think this would work if you touched it with a pair of gloves? Im working on building a sensor that will activate if a crackhead touches my catalytic converter. He may be wearing gloves.
There are much simpler ways of doing that instead of using this project. Unless you are using pure water it will conduct electricity so all you would have to do is have two terminals at the level you want to have the alarm for the water to be sounded from and just do a digital read of those two points. When the reading is HIGH have a alarm triggered