I enjoyed your video. One clarification if you don't mind, (I am so sure you are aware of this but for some of the viewers...) If you solve the equation you wrote on the whiteboard for time (t) for a fixed voltage high detected at the I/O pin you'll see that it is proportional to the capacitance, but at 7:12 you mention that this time spits out the time constant tau or the value for RC. If you are only after the change in capacitance to detect a touch then it isn't very important, but if you are trying to measure the capacitance you can't just divide the time measured by the value of the resistor unless the point at which the I/O pin goes high is about 63.2% (one time constant) of the positive supply rail. If it is anything else - then the change in capacitance will still be proportional to the change in time, but unless it is 63.2% or so, the proportionality constant will not be exactly 1/R. For example, if the I/O pin goes high at 86% of the rail then the proportionality constant will be 2/R. Without looking up the Vh for the Pro-mini I/O I can confidently say that it won't be specified to any kind of precision. I'm guessing that the cap sense library you mentioned handles all the baselining and environment (slow) tracking and the delta thresholding you'd need to make this work all as a good touch sensor, if not a good actual capacitance measurement device.
@kobe123454567808 жыл бұрын
Thanks Chris, you beats my grad school professors :) please keep up these awesome videos!
@Daedronus12 жыл бұрын
add a diode in parallel with the resistor, you don't need slow fall times.
@darkobul112 жыл бұрын
Great idea with roundtable. Looking forward to more stuff from you guys.
@dancuartas12 жыл бұрын
I'm loving these Roundtables!!!!
@RandomakerYT3 жыл бұрын
the wall idea is a pretty cool idea, Id like to see that
@g3moe6 жыл бұрын
Nicely paced too.
@ericmunene85217 жыл бұрын
hi thats great i loved your attention to detail thanks alot
@owenchaim6102 жыл бұрын
fantastic explanation!
@ryun_d3v3 жыл бұрын
Excellent explanation!
@amitkumar12234 жыл бұрын
I think that the equation for charging is wrong. It should be v = v0(1-e-t/rc)
@davidmendoza39 Жыл бұрын
Really good explanation! Thank you :)
@JeremyCook2 жыл бұрын
Great explanation. Thanks so much!
@bobarnold44358 жыл бұрын
Your video is like a breath of fresh air - a novel solution, well explained. I liked the way you used physical demo, chalk and oscilloscope. Questions about your demo; Is that 100 uS per division on the scope? Ie what is the approx rise time before and after directly touching the copper electrodes? Do you think this method would detect any difference in a 1.5 liter jar filled vs partially filled with alcohol, if the copper strip were placed say 1/4" from the jar and running top to bottom? Tkx
@metalmikecode5 жыл бұрын
You explain very clear and good. Thanks for the video, i learned a lot in so little time!
@Peter-dn2os5 жыл бұрын
nice explanation... Thx for the teaching
@learnwithjustintoday6 жыл бұрын
Super awesome. However, I was expecting he would eventually tell us which material made the best capacitive touch button after seeing that he was testing them all himself. I that guess gives me a question a I can hunt down myself.
@henriquecosta30315 жыл бұрын
Cow skin its a very good conductive material, it smells bad after one day but otherwise very good, even better than carbon nanotubes.
@mikeycameron14229 жыл бұрын
V(t)=Vo(t)*(1-exp[-t/tau]) Vo(t) ----> initial voltage ...otherwise...great video.
@henriquecosta30315 жыл бұрын
Mike come on!!! whe all know about that!! stop listening to Dude Perfect :D
@vlatkodimitrievski25074 жыл бұрын
Very good explained
@stefanusayudha18536 жыл бұрын
Thank you so much.. this vid is helping me alot
@eloistree-lookfor3 жыл бұрын
Thank :) That an amazing explanation.
@danielecattelan67023 жыл бұрын
Good morning Chris, thank you for your video. I ask you 2 pieces of information: to avoid accumulation of potentially destructive electrostatic charges for the arduino pins (even when the arduino is completely off), can a high value resistor between the sensor electrode and GND / grounding be useful? Furthermore, for the connections to the electrodes about 40 cm long, is it preferable to use coaxial cables or with shield? Thank you very much for your work!
@linkeding43775 жыл бұрын
Pretty comprehensive!
@AvijitDas-ng6rv3 жыл бұрын
You are wrong. There is no delay in resistance, it's just a capacitor discharge load resistance, it's value is so big(1 to 10m) because the human capacitance is very low( in pF range).
@tehosdevs17273 жыл бұрын
Yeah, but he's shorting stuff for people who are new to this to understand better.
@mikemortensen49734 жыл бұрын
I need something exactly like this. But don't know anything about programming that little module. But I might need to change the time constant around a bit to to get the detection I need by possibly changing the fixed 1 meg resistor to a variable resistor by getting a one or two meg potentiometer and just hook it up as a variable resistor. Easily done by just hooking up the wiper of the pot to just one of the other legs of the pot. I don't see the 'code' that was said in the video to be posted here. But even if it was, I don't know how to program this thing. I could buy one of the modules but would need help to load the code in there. And info on where to hook up the LED because lighting up an LED is exactly what I need to do for my project. Does the LED need a current limit resistor depending on the color of the LED? I need more info because I want to do this. Thank Chris if you read this and offer to help me!!
@kezzaman4 жыл бұрын
does the distance from where you touch from the connectors give different values?
@KJ7JHN3 жыл бұрын
Very helpful, thank you.
@petemeltzer11 жыл бұрын
Thanks for video! Really helpful!
@H0mN1H12 жыл бұрын
Very nice video.
@MarkusBlechschmidt10 жыл бұрын
Thank you for this video :-)
@ps-bh9ct4 жыл бұрын
Thanks for the video. Can you please share the code and library link?
@making-arte57102 жыл бұрын
Thanks for the video :D Like y Suscribed 🙏
@andrewbaughman222410 жыл бұрын
I'm pretty sure it's possible to do this with raspberry pi, but I'm relatively new and don't know which pins to use. Any help?
@quinstermyer6 жыл бұрын
Great vid dawg
@tamyboy112 жыл бұрын
Thanks
@MarkusBlechschmidt10 жыл бұрын
The capacitance should also change when you get near the metal sheet.
@skylercornell79964 жыл бұрын
does anyone know approximately the freq of the send signal?
@freemont-mike2 жыл бұрын
Anyway to use this as an interrupt?
@PhattyMo12 жыл бұрын
That's a good idea. I might have to start collecting parts! Maybe I could use a picture/picture frame,and make it look like it belongs on the wall. I'm not concerned with the various RF signals,This place has metal siding,and is fairly Faraday-cage-like already. Despite that,the Wifi,cellphones,etc. all work fine.
@robotronix-co-il6 жыл бұрын
VERY VERY NICE
@QatifCarCare7 жыл бұрын
great explanation thank u
@alhdlakhfdqw10 жыл бұрын
TQ very much for ur great explanation I appreciate it:)
@robotronix-co-il7 жыл бұрын
what a great vedio
@voyasart5 жыл бұрын
7:20 I dont think its ''spitting out tao''. If we're talking about the capacitiveSensor library i think it spits out an arbitrary number that's just been incrementing in the while loop while the recieve pin waits to be high again. Great vid.
@33Initiative3 жыл бұрын
I'm not very fluent in C++, where did you find this? I guess it's incrementing by 1 every cycle? cheers!
@voyasart3 жыл бұрын
@@33Initiative Hi there. I was referring to the How it works section on this document. playground.arduino.cc/Main/CapacitiveSensor/
@carlinhosff12 жыл бұрын
Cool!
@PhattyMo12 жыл бұрын
I like this idea. The landlord is gonna shitbrix if I cover the walls in conductive paint though. Hmm. Will regular latex paint stick to the conductive paint layer? I could cover the conductive paint with regular paint,and hope nobody notices. :) A 10x10 grid of "buttons" on the wall would be super handy!
@AntonEMaes12 жыл бұрын
So, did the ink work?
@AmirPourkashef5 жыл бұрын
I'm wondering is it sensitive to how much pressure i commit?
@julianopificius69105 жыл бұрын
Yes it would be sensitive to how much pressure you apply to the contact plate. The reason, however, reveals two inaccuracies in the description, which are worth discussing. The first inaccuracy is the claim that the change in time is all about changing capacitance. In reality, the connection with the body when you're touching the plate adds a complex circuit consisting primarily of a variable resistance in series with a capacitance. When you touch the contact plate lightly, you connect the capacitance of the body through a very high resistance. As you apply more pressure, you reduce the contact resistance between the contact plate and your body. The lower the resistance, the higher the charging current drawn by the capacitor. Now you would think that the higher total resistance would increase the time constant and therefore increase the time for the input pin to rise to the voltage of the output pin, but that's not what happens, which is the second inaccuracy. While the total time constant does actually increase with higher contact resistance, that is not what is important in this case. Remember that we have the fixed resistance in the circuit AND the variable resistance of the contact of the body to the plate. The input pin is connected to the junction of these two resistances. When the contact resistance is high - with a light touch - the maximum possible charging current into the capacitance is reduced. This means that the voltage drop across the fixed resistance caused by the lower charging current is lower, so the input pin rises to match the voltage at the output pin much faster than with a lower contact resistance. It turns out - and I suppose this is technically a third inaccuracy, if only by implication rather than by direct statement - that the capacitive touch effect is more about changing resistance than changing capacitance when you're actually touching the plate. As you approach the plate - before you touch it - you add another small but variable capacitance in series with an extremely high contact resistance, complicating the circuit still further, and and resulting in two different modes of operation, but that's another story!
@jeffbeck65015 жыл бұрын
He says the voltage may be at 2.5v and it may be a 0 or 1 in the arduino sensing pin, but the hard found out truth is that Arduino goes to a 1 at just 0.6v, not 2.5 volts. I found this out the hard way. I could not believe a .6v was tripping the circuit. But it was. Even .5v I could get it to trip. Be aware of that, because if you are not, it is the last place you would look. Everyone says between 2 and 3 volts is the 0 or 1 threshold switch area and that is just not true.
@MrIonization12 жыл бұрын
"I got 99 problems.. but a switch ain't one" below the scope me thinks
@JeffJackowski11 жыл бұрын
That works a lot like paddle inputs on the Atari 2600.
@ikkei312 жыл бұрын
The input needs a register, or Arduino destroyed by static. In your country no static ?!
@upstreamsalmon19684 жыл бұрын
does anyone know how to contact this guy?
@TheRno0o4 жыл бұрын
Why do you delay the time?
@TheRno0o4 жыл бұрын
I mean the resistor + Capacitor why do I need to delay the time?
@tehosdevs17273 жыл бұрын
@@TheRno0o The delay is a way of us detecting how much capacitance there is. If there is higher capacitance, there will be a longer delay. Because the capacitor is always the same, it will be the same each time. When your finger comes close, it starts to act as a capacitor. Because there is more capacitance, it makes the delay longer. So now if we switch the wire from low to high, or high to low, it will take longer than normal for the pin to go whatever the other pin went. This little delay is taken advantage of, and for you to understand this you kind of need to understand how a microchip works. Basically it will send the pin high, and it will detect the delay. When you put your finger on the capacitor, and you switch the pin to High, it will take longer for the other pin to go high, because there is more capacitance, because your finger has capacitance. So when you move your finger up, there is more capacitance, and it takes longer, and this extra delay is detected by the microchip, and it assumes that the extra delay is the fact that we touched it. Hopefully that makes sense
@aerohk3 жыл бұрын
1-e, not just e
@t.r.7736 жыл бұрын
👐😚😚 bester Mann!
@stefanogrillo60406 жыл бұрын
i can do this with valve
@p_mouse86766 жыл бұрын
One mistake though. The "capacitor" is your body, not the little bit of material you're touching.
@geesmellow6 жыл бұрын
The body itself is not a capacitor. A capacitor has 2 plates or 2 bodies with a diaelectric between them.
@lucianosaldivia59175 жыл бұрын
The material itself acts as a capacitor, and your body ALSO acts as a capacitor, connected in parallel, both capacitances would sum up to a greater total capacitance, as explained in the video
@jeffbeck65015 жыл бұрын
Yes, I think Luciano has it right. @@lucianosaldivia5917
@jeffbeck65015 жыл бұрын
I have an incredible idea!!! Your friend could simply go buy a light switch for less than $1 probably. Done. Simple. Genius.