Тёмный

How to make a capacitive touch sensor switch out of anything metal using an Arduino 

Z-HUT
Подписаться 17 тыс.
Просмотров 103 тыс.
50% 1

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

Наука

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 102   
@James-uz9se
@James-uz9se 3 года назад
Legend has it: he’s still in that cave
@jelled524
@jelled524 3 года назад
So true XD
@AvocadoAtrocity
@AvocadoAtrocity 3 года назад
Best cave around.
@ilikepie6879
@ilikepie6879 2 года назад
my man went ham on the reverb lol. Good video!
@MateoTheDev
@MateoTheDev 2 года назад
Dunno why you sound like a god in the video but thanks for help!
@melchiortod29
@melchiortod29 2 года назад
Ok but i looove the reverb on the voice! It feels like a dream! Amazing! Thank you for the video, it really helped btw
@iscuit
@iscuit 26 дней назад
2 years later, indeed. in bed at 1am and feels like I'm already dreaming 😂
@ThierryC2373
@ThierryC2373 4 года назад
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!!
@AbdElAzizINFO
@AbdElAzizINFO 2 года назад
Can you give me a schematic diagram of the electrical circuit?
@serjeelranjan8345
@serjeelranjan8345 5 лет назад
I used 1 M ohm resistor. And value jump from 50 to 10,000 on touching. Perfect thanks.
@johnanderson9619
@johnanderson9619 2 года назад
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.
@antoniochetta9596
@antoniochetta9596 4 года назад
Thank you, I've been looking for this thing for 1 hour and I found your video that helped me
@demiurgiac
@demiurgiac 2 года назад
As is often the case, I needed a little shove in the right direction. You provided it, thanks.
@solidussmith
@solidussmith 4 года назад
Informative! I was curious how another youtubers synth project had these cool touch buttons, now I understand. Thank you!
@Argosh
@Argosh Год назад
Rainbow? 😁
@print4life
@print4life Год назад
I have a old server case laying around ima see how well taht works as an antena see how far away it senses, great video.
@jayfish9810
@jayfish9810 5 лет назад
Great Video. I really appreciate it. I have to say that echo is like nails on a chalkboard. Is that just me or did you record this with that effect?
@chrisfoot6680
@chrisfoot6680 3 года назад
Jesus Christ that intro is epic!
@TCreatorO
@TCreatorO 4 года назад
Out of anything metal?...🤔, make 1 out of a slipknot shirt
@ta1bubba
@ta1bubba 4 года назад
i do not believe that is metal enough. try something with more gurth, please.
@mr.selfdestruct2917
@mr.selfdestruct2917 Год назад
Will this work on nano every? Thanks. Great vid.
@kouroshghazvini5592
@kouroshghazvini5592 Год назад
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.
@First.Last.99
@First.Last.99 Год назад
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.
@options9119
@options9119 3 года назад
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
@edgarwalk5637
@edgarwalk5637 3 года назад
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.
@teairis
@teairis 3 года назад
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.
@fernandolopes3545
@fernandolopes3545 9 месяцев назад
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?
@coreys_art_stuffwcs4897
@coreys_art_stuffwcs4897 2 года назад
Could you put multiple of these metal 'switches' on one breadboard?
@davidlima3615
@davidlima3615 2 года назад
Yes, You can light at tree objects
@ianbaxter3905
@ianbaxter3905 Год назад
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.
@AbdElAzizINFO
@AbdElAzizINFO 2 года назад
Can you give me a schematic diagram of the electrical circuit?
@sgtunix
@sgtunix 2 месяца назад
100K views was attained. The man will now be let out of his cave.
@frollsshontay
@frollsshontay 4 года назад
Great video - just wondering how you would amend the sketch to avoid the use of Delay - and use Millis instead?
@RoshDroz
@RoshDroz 3 года назад
Did you say you could hook it up to your cotter? I think I must've misheard you. I'm guessing you said cutter, like a table saw?
@Schroeder9999
@Schroeder9999 2 года назад
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
@aplicarciencias
@aplicarciencias 4 года назад
Very nice! Great stuff! Thanks
@akshay.kumar.k
@akshay.kumar.k 2 года назад
I think one can make a _model accelerometer_ with this technique, if you know what I mean..😎😉
@ianm1898
@ianm1898 4 года назад
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
@tangsongyao5893
@tangsongyao5893 5 лет назад
thanks man now it's time to copy
@Duelista23
@Duelista23 5 лет назад
this was very helpfull thank you :D
@yorganyog
@yorganyog Год назад
What are the range of them? Do they have much noise to have false detections?
@subwayz_qt5
@subwayz_qt5 3 года назад
You sound like you are giving a class in an empty classroom
@troylee1541
@troylee1541 5 лет назад
Nice work!! I have a question. Do you happen to know the unit of the output in the serial monitor?
@z-hut1663
@z-hut1663 5 лет назад
Actually I don't think there is one
@giulioambrogi5413
@giulioambrogi5413 Год назад
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.
@erictronical4143
@erictronical4143 4 года назад
Hi, I have a question. So why does my led only blink once every time the cycle is over? It doesn’t turn on whenever I try to do it again.
@teairis
@teairis 3 года назад
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.
@MemphisPains
@MemphisPains 5 лет назад
My goal is to use capacitive touch sensors as the buttons for an Arduino midi controller, is that something that is possible?
@gautierreynes9237
@gautierreynes9237 3 года назад
I just had the same idea ! It is possible ahah
@darkwhiteartz8429
@darkwhiteartz8429 3 года назад
What happens when we touch the metal plate with another metal?? will it sense?? or will it sense only human touch?? kindly help
@FMighty
@FMighty 3 года назад
Hello, is it a arduino nano ? Thanks
@boxjump8948
@boxjump8948 2 года назад
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
@rohitverma905
@rohitverma905 2 года назад
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?
@Slaptile
@Slaptile 5 лет назад
Will the capacitor sensor produce very different results if I were to try compare it with glass and plastic?
@ta1bubba
@ta1bubba 4 года назад
yes.
@oguzhancetin_mech
@oguzhancetin_mech 3 года назад
is there an industrial sensor that performs just like this? i want to use it on a machine for finger protection
@markmin7382
@markmin7382 5 месяцев назад
Hi what the model arduino you use
@chrisjeaaalbertos3802
@chrisjeaaalbertos3802 9 месяцев назад
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
@AnimePhoenix888
@AnimePhoenix888 4 года назад
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?
@kevinp.1842
@kevinp.1842 4 года назад
Even been in a room bigger that one square meter?
@First.Last.99
@First.Last.99 Год назад
@@kevinp.1842 *than
@kelseyriano908
@kelseyriano908 2 года назад
can this be made using arduino uno?
@jbjb303
@jbjb303 3 года назад
what Arduino board are you using???
@Rayyarhs
@Rayyarhs 4 года назад
Like the intro music!
@amir3515
@amir3515 3 года назад
same intro song found in hydraulic press channel videos
@osupolo
@osupolo 2 года назад
is it possible to make a capacitive potato touch sensor?
@yagneshpatel5934
@yagneshpatel5934 5 лет назад
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??
@z-hut1663
@z-hut1663 5 лет назад
no
@James-uz9se
@James-uz9se 3 года назад
Can I bind multiple of these to multiple keys so I have an controller build?
@richardbraganza8245
@richardbraganza8245 3 года назад
see 7mins into video - he shows you that it can
@fridolineckerd6135
@fridolineckerd6135 2 года назад
do you have any idea why it doesnt work with my Wemos D1 mini? when compiling i allwas get a error mesage: exit status 1
@anosvoldigod2943
@anosvoldigod2943 8 месяцев назад
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
@industron22
@industron22 2 года назад
Why it is blinking when we touch it long time
@MultiRdh
@MultiRdh 4 года назад
Can you guide how to add 1 more sensor with led
@user.A9
@user.A9 8 месяцев назад
For a live animal trap, could this detect a rat?
@adipose5724
@adipose5724 3 года назад
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?
@turbohotvedt
@turbohotvedt 4 года назад
Thanks now i have switches made out of apples
@turbohotvedt
@turbohotvedt 3 года назад
@@BlondieSL yes
@Raaaww
@Raaaww 3 года назад
Would this be possible on rpi 4?
@First.Last.99
@First.Last.99 Год назад
THANK YOU
@ravenclawgamer6367
@ravenclawgamer6367 4 года назад
Can I make something like this to power my CPU ...
@gustavopinzon9031
@gustavopinzon9031 4 года назад
Yes man, you just need to use a rele 5v to 220v or 110v
@chiraggoyal7637
@chiraggoyal7637 4 года назад
Is it possible to make it work over a diffused glass surface. I can't put metal behind the diffusor as i want to use it as light source
@Rallemuuss
@Rallemuuss 4 года назад
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.
@First.Last.99
@First.Last.99 Год назад
@@Rallemuuss how can one put a conductive metal around the edge of a glass? thank you
@sunitasharma9222
@sunitasharma9222 4 года назад
Can it be used as distance sensor
@chetanreddy4546
@chetanreddy4546 3 года назад
U can use IR sensor as a distance sensor...!
@gustavopinzon9031
@gustavopinzon9031 4 года назад
What happens when you touch without any resistor ?
@chetanreddy4546
@chetanreddy4546 3 года назад
Then There won't be a voltage regulator and finally you may get more voltage output.. 😜
@WarthogA100
@WarthogA100 2 года назад
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.
@yagneshpatel5934
@yagneshpatel5934 5 лет назад
Is it works for sensing water?
@z-hut1663
@z-hut1663 5 лет назад
no
@GeorgeGeorge-xj2bc
@GeorgeGeorge-xj2bc 4 года назад
With some modifications yes it could do it.
@nikhilrulz91
@nikhilrulz91 4 года назад
This did not work when I powered my Arduino with a battery
@jacobmelendrez7174
@jacobmelendrez7174 5 лет назад
Is there a way to specify the type of object that is touching the tactile sensor in the software?
@z-hut1663
@z-hut1663 5 лет назад
No
@davidlima3615
@davidlima3615 2 года назад
69 / 5.000 Hello! very good your video! Can I use this library in NANO 33 BLE?
@jeromebourdichon449
@jeromebourdichon449 2 года назад
Top
@nickbecker6939
@nickbecker6939 4 года назад
Mega!
@santoshdharme5927
@santoshdharme5927 4 года назад
Check out Sidtronics he have similar videos
@xkanight
@xkanight 5 лет назад
Do you know if this wound work as a water sensor? Running one wire around a sump pit and if water touched it, it could alert you?
@z-hut1663
@z-hut1663 5 лет назад
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
Далее
Breadboard capacitive touch sensor tutorial
15:13
Просмотров 89 тыс.
DIY Capacitive Touch PCBs
24:57
Просмотров 26 тыс.
Diy touch sensors
9:25
Просмотров 38 тыс.
How Capacitive Touch Screens Work
6:15
Просмотров 158 тыс.
Arduino Capacitive Touch Sensing!
8:51
Просмотров 9 тыс.
Making a Heated Seat
12:09
Просмотров 13 млн
TTP223 Capacitive Touch Switches
9:18
Просмотров 85 тыс.
I built a PC, but it moves
27:42
Просмотров 1,5 млн
iOS 18 в реальной жизни
14:42
Просмотров 203 тыс.