SparkFun Engineering Roundtable 9-24-12: Capacitive Sensing with Chris Taylor

  Переглядів 52,491

SparkFun Electronics

SparkFun Electronics

11 років тому

Engineering Roundtable is the newest SparkFun video series. In this feature, your favorite (or least favorite) SparkFun engineers talk about their latest projects, how they work, and how you can build your own. Check it out as hacking and hilarity ensue.
Tags: Concept
Talent: Chris Taylor

КОМЕНТАРІ: 71
@dancuartas
@dancuartas 11 років тому
I'm loving these Roundtables!!!!
@darkobul1
@darkobul1 11 років тому
Great idea with roundtable. Looking forward to more stuff from you guys.
@kobe12345456780
@kobe12345456780 7 років тому
Thanks Chris, you beats my grad school professors :) please keep up these awesome videos!
@g3moe
@g3moe 6 років тому
Nicely paced too.
@ryun_d3v
@ryun_d3v 3 роки тому
Excellent explanation!
@ericmunene8521
@ericmunene8521 7 років тому
hi thats great i loved your attention to detail thanks alot
@owenchaim610
@owenchaim610 2 роки тому
fantastic explanation!
@metalmikecode
@metalmikecode 5 років тому
You explain very clear and good. Thanks for the video, i learned a lot in so little time!
@JeremyCook
@JeremyCook 2 роки тому
Great explanation. Thanks so much!
@petemeltzer
@petemeltzer 11 років тому
Thanks for video! Really helpful!
@bobarnold4435
@bobarnold4435 8 років тому
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
@eloistree-lookfor
@eloistree-lookfor 3 роки тому
Thank :) That an amazing explanation.
@stefanusayudha1853
@stefanusayudha1853 6 років тому
Thank you so much.. this vid is helping me alot
@davidmendoza39
@davidmendoza39 Рік тому
Really good explanation! Thank you :)
@Peter-dn2os
@Peter-dn2os 4 роки тому
nice explanation... Thx for the teaching
@MarkusBlechschmidt
@MarkusBlechschmidt 10 років тому
Thank you for this video :-)
@linkeding4377
@linkeding4377 4 роки тому
Pretty comprehensive!
@robertkerner2206
@robertkerner2206 2 роки тому
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.
@KJ7JHN
@KJ7JHN 3 роки тому
Very helpful, thank you.
@quinstermyer
@quinstermyer 6 років тому
Great vid dawg
@danielecattelan6702
@danielecattelan6702 3 роки тому
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!
@vlatkodimitrievski2507
@vlatkodimitrievski2507 4 роки тому
Very good explained
@RandomakerYT
@RandomakerYT 3 роки тому
the wall idea is a pretty cool idea, Id like to see that
@H0mN1H
@H0mN1H 11 років тому
Very nice video.
@ps-bh9ct
@ps-bh9ct 3 роки тому
Thanks for the video. Can you please share the code and library link?
@tamyboy1
@tamyboy1 11 років тому
Thanks
@mikemortensen4973
@mikemortensen4973 4 роки тому
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!!
@kezzaman
@kezzaman 3 роки тому
does the distance from where you touch from the connectors give different values?
@Daedronus
@Daedronus 11 років тому
add a diode in parallel with the resistor, you don't need slow fall times.
@QatifCarCare
@QatifCarCare 7 років тому
great explanation thank u
@robotronix-co-il
@robotronix-co-il 6 років тому
VERY VERY NICE
@andrewbaughman2224
@andrewbaughman2224 9 років тому
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?
@AntonEMaes
@AntonEMaes 11 років тому
So, did the ink work?
@PhattyMo
@PhattyMo 11 років тому
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-il
@robotronix-co-il 7 років тому
what a great vedio
@amitkumar1223
@amitkumar1223 4 роки тому
I think that the equation for charging is wrong. It should be v = v0(1-e-t/rc)
@alhdlakhfdqw
@alhdlakhfdqw 9 років тому
TQ very much for ur great explanation I appreciate it:)
@making-arte5710
@making-arte5710 2 роки тому
Thanks for the video :D Like y Suscribed 🙏
@carlinhosff
@carlinhosff 11 років тому
Cool!
@learnwithjustintoday
@learnwithjustintoday 5 років тому
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.
@henriquecosta3031
@henriquecosta3031 5 років тому
Cow skin its a very good conductive material, it smells bad after one day but otherwise very good, even better than carbon nanotubes.
@skylercornell7996
@skylercornell7996 4 роки тому
does anyone know approximately the freq of the send signal?
@freemont-mike
@freemont-mike 2 роки тому
Anyway to use this as an interrupt?
@PhattyMo
@PhattyMo 11 років тому
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!
@MarkusBlechschmidt
@MarkusBlechschmidt 10 років тому
The capacitance should also change when you get near the metal sheet.
@voyasart
@voyasart 4 роки тому
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.
@33Initiative
@33Initiative 3 роки тому
I'm not very fluent in C++, where did you find this? I guess it's incrementing by 1 every cycle? cheers!
@voyasart
@voyasart 3 роки тому
@@33Initiative Hi there. I was referring to the How it works section on this document. playground.arduino.cc/Main/CapacitiveSensor/
@upstreamsalmon1968
@upstreamsalmon1968 3 роки тому
does anyone know how to contact this guy?
@mikeycameron1422
@mikeycameron1422 9 років тому
V(t)=Vo(t)*(1-exp[-t/tau]) Vo(t) ----> initial voltage ...otherwise...great video.
@henriquecosta3031
@henriquecosta3031 5 років тому
Mike come on!!! whe all know about that!! stop listening to Dude Perfect :D
@AmirPourkashef
@AmirPourkashef 5 років тому
I'm wondering is it sensitive to how much pressure i commit?
@julianopificius6910
@julianopificius6910 5 років тому
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!
@ikkei3
@ikkei3 11 років тому
The input needs a register, or Arduino destroyed by static. In your country no static ?!
@JeffJackowski
@JeffJackowski 11 років тому
That works a lot like paddle inputs on the Atari 2600.
@TheRno0o
@TheRno0o 3 роки тому
Why do you delay the time?
@TheRno0o
@TheRno0o 3 роки тому
I mean the resistor + Capacitor why do I need to delay the time?
@tehosdevs1727
@tehosdevs1727 2 роки тому
@@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
@MrIonization
@MrIonization 11 років тому
"I got 99 problems.. but a switch ain't one" below the scope me thinks
@t.r.773
@t.r.773 5 років тому
👐😚😚 bester Mann!
@AvijitDas-ng6rv
@AvijitDas-ng6rv 3 роки тому
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).
@tehosdevs1727
@tehosdevs1727 2 роки тому
Yeah, but he's shorting stuff for people who are new to this to understand better.
@stefanogrillo6040
@stefanogrillo6040 5 років тому
i can do this with valve
@jeffbeck6501
@jeffbeck6501 5 років тому
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.
@aerohk
@aerohk 2 роки тому
1-e, not just e
@jeffbeck6501
@jeffbeck6501 5 років тому
I have an incredible idea!!! Your friend could simply go buy a light switch for less than $1 probably. Done. Simple. Genius.
@p_mouse8676
@p_mouse8676 6 років тому
One mistake though. The "capacitor" is your body, not the little bit of material you're touching.
@geesmellow
@geesmellow 5 років тому
The body itself is not a capacitor. A capacitor has 2 plates or 2 bodies with a diaelectric between them.
@lucianosaldivia5917
@lucianosaldivia5917 5 років тому
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
@jeffbeck6501
@jeffbeck6501 5 років тому
Yes, I think Luciano has it right. @@lucianosaldivia5917
Tutorial: How to design a transistor circuit that controls low-power devices
21:41
DIY Capacitive Touch PCBs
24:57
sjm4306
Переглядів 22 тис.
Is Adam Savage Still an Atheist?
8:16
Adam Savage’s Tested
Переглядів 259 тис.
How Touchscreen Works In Simple Words
10:00
BRIGHT SIDE
Переглядів 1,3 млн
Breadboard capacitive touch sensor tutorial
15:13
FriendlyWire
Переглядів 79 тис.
How Do Touchscreens Work?
8:36
Branch Education
Переглядів 3,8 млн
EEVblog #279 - How NOT To Blow Up Your Oscilloscope!
24:26
EEVblog
Переглядів 1 млн
Principles of Schematics
12:40
element14 presents
Переглядів 246 тис.
Best Practices for Capacitive Sensors Designs
29:25
LPCZone
Переглядів 38 тис.