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

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2018
  • 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/?page_id=1081
    Check us out on Facebook: / zarduino
  • НаукаНаука

Комментарии • 103

  • @James-uz9se
    @James-uz9se 3 года назад +82

    Legend has it: he’s still in that cave

  • @ilikepie6879
    @ilikepie6879 2 года назад +4

    my man went ham on the reverb lol. Good video!

  • @antoniochetta9596
    @antoniochetta9596 4 года назад +4

    Thank you, I've been looking for this thing for 1 hour and I found your video that helped me

  • @ThierryC2373
    @ThierryC2373 4 года назад +8

    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 Год назад +1

      Can you give me a schematic diagram of the electrical circuit?

  • @melchiortod29
    @melchiortod29 2 года назад +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

  • @solidussmith
    @solidussmith 4 года назад +3

    Informative! I was curious how another youtubers synth project had these cool touch buttons, now I understand. Thank you!

    • @Argosh
      @Argosh Год назад

      Rainbow? 😁

  • @serjeelranjan8345
    @serjeelranjan8345 5 лет назад +20

    I used 1 M ohm resistor. And value jump from 50 to 10,000 on touching. Perfect thanks.

  • @demiurgiac
    @demiurgiac 2 года назад +1

    As is often the case, I needed a little shove in the right direction. You provided it, thanks.

  • @frollsshontay
    @frollsshontay 4 года назад

    Great video - just wondering how you would amend the sketch to avoid the use of Delay - and use Millis instead?

  • @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.

  • @aplicarciencias
    @aplicarciencias 4 года назад

    Very nice! Great stuff! Thanks

  • @ianm1898
    @ianm1898 4 года назад +1

    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

  • @mr.selfdestruct2917
    @mr.selfdestruct2917 10 месяцев назад

    Will this work on nano every? Thanks. Great vid.

  • @Duelista23
    @Duelista23 4 года назад +1

    this was very helpfull thank you :D

  • @johnanderson9619
    @johnanderson9619 2 года назад +3

    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.

  • @ianbaxter3905
    @ianbaxter3905 Год назад +2

    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.

  • @yorganyog
    @yorganyog Год назад

    What are the range of them? Do they have much noise to have false detections?

  • @fernandolopes3545
    @fernandolopes3545 7 месяцев назад

    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?

  • @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

  • @troylee1541
    @troylee1541 4 года назад

    Nice work!!
    I have a question. Do you happen to know the unit of the output in the serial monitor?

    • @z-hut1663
      @z-hut1663  4 года назад

      Actually I don't think there is one

  • @chrisfoot6680
    @chrisfoot6680 3 года назад +3

    Jesus Christ that intro is epic!

  • @Raaaww
    @Raaaww 3 года назад

    Would this be possible on rpi 4?

  • @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.

  • @jayfish9810
    @jayfish9810 5 лет назад +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?

  • @markmin7382
    @markmin7382 2 месяца назад

    Hi what the model arduino you use

  • @tangsongyao5893
    @tangsongyao5893 4 года назад +1

    thanks man now it's time to copy

  • @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

  • @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?

  • @MateoTheDev
    @MateoTheDev Год назад +1

    Dunno why you sound like a god in the video but thanks for help!

  • @options9119
    @options9119 3 года назад +4

    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

  • @MultiRdh
    @MultiRdh 4 года назад

    Can you guide how to add 1 more sensor with led

  • @Slaptile
    @Slaptile 4 года назад

    Will the capacitor sensor produce very different results if I were to try compare it with glass and plastic?

  • @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 лет назад +1

      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

  • @FMighty
    @FMighty 3 года назад

    Hello, is it a arduino nano ? Thanks

  • @jbjb303
    @jbjb303 3 года назад

    what Arduino board are you using???

  • @MemphisPains
    @MemphisPains 5 лет назад +1

    My goal is to use capacitive touch sensors as the buttons for an Arduino midi controller, is that something that is possible?

  • @coreys_art_stuffwcs4897
    @coreys_art_stuffwcs4897 2 года назад +1

    Could you put multiple of these metal 'switches' on one breadboard?

    • @davidlima3615
      @davidlima3615 2 года назад

      Yes, You can light at tree objects

  • @AbdElAzizINFO
    @AbdElAzizINFO Год назад +1

    Can you give me a schematic diagram of the electrical circuit?

  • @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?

  • @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 года назад +1

      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

  • @kouroshghazvini5592
    @kouroshghazvini5592 Год назад +1

    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.

  • @kelseyriano908
    @kelseyriano908 2 года назад

    can this be made using arduino uno?

  • @michaelberhanu6584
    @michaelberhanu6584 2 года назад +1

    So thankful for this, this could save my project!

  • @TCreatorO
    @TCreatorO 4 года назад +13

    Out of anything metal?...🤔, make 1 out of a slipknot shirt

    • @ta1bubba
      @ta1bubba 4 года назад +2

      i do not believe that is metal enough. try something with more gurth, please.

  • @erictronical4143
    @erictronical4143 3 года назад +1

    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.

  • @boxjump8948
    @boxjump8948 2 года назад +1

    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

  • @First.Last.99
    @First.Last.99 Год назад

    THANK YOU

  • @James-uz9se
    @James-uz9se 3 года назад

    Can I bind multiple of these to multiple keys so I have an controller build?

  • @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

  • @anosvoldigod2943
    @anosvoldigod2943 5 месяцев назад

    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

  • @Rayyarhs
    @Rayyarhs 3 года назад

    Like the intro music!

    • @amir3515
      @amir3515 3 года назад

      same intro song found in hydraulic press channel videos

  • @yagneshpatel5934
    @yagneshpatel5934 4 года назад

    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??

  • @edgarwalk5637
    @edgarwalk5637 3 года назад +1

    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.

  • @osupolo
    @osupolo 2 года назад

    is it possible to make a capacitive potato touch sensor?

  • @jacobmelendrez7174
    @jacobmelendrez7174 5 лет назад +1

    Is there a way to specify the type of object that is touching the tactile sensor in the software?

  • @industron22
    @industron22 2 года назад

    Why it is blinking when we touch it long time

  • @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

  • @sunitasharma9222
    @sunitasharma9222 4 года назад

    Can it be used as distance sensor

    • @chetanreddy4546
      @chetanreddy4546 3 года назад

      U can use IR sensor as a distance sensor...!

  • @nikhilrulz91
    @nikhilrulz91 4 года назад

    This did not work when I powered my Arduino with a battery

  • @yagneshpatel5934
    @yagneshpatel5934 4 года назад

    Is it works for sensing water?

  • @akshay.kumar.k
    @akshay.kumar.k 2 года назад +1

    I think one can make a _model accelerometer_ with this technique, if you know what I mean..😎😉

  • @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?

  • @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?

  • @gustavopinzon9031
    @gustavopinzon9031 4 года назад

    What happens when you touch without any resistor ?

    • @chetanreddy4546
      @chetanreddy4546 3 года назад +1

      Then There won't be a voltage regulator and finally you may get more voltage output.. 😜

  • @jeromebourdichon449
    @jeromebourdichon449 2 года назад

    Top

  • @user.A9
    @user.A9 6 месяцев назад

    For a live animal trap, could this detect a rat?

  • @subwayz_qt5
    @subwayz_qt5 2 года назад +1

    You sound like you are giving a class in an empty classroom

  • @chrisjeaaalbertos3802
    @chrisjeaaalbertos3802 6 месяцев назад

    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

  • @nickbecker6939
    @nickbecker6939 3 года назад

    Mega!

  • @davidlima3615
    @davidlima3615 2 года назад

    69 / 5.000
    Hello! very good your video! Can I use this library in NANO 33 BLE?

  • @santoshdharme5927
    @santoshdharme5927 4 года назад

    Check out Sidtronics he have similar videos

  • @turbohotvedt
    @turbohotvedt 3 года назад +1

    Thanks now i have switches made out of apples

  • @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.

  • @ravenclawgamer6367
    @ravenclawgamer6367 4 года назад +1

    Can I make something like this to power my CPU ...

    • @gustavopinzon9031
      @gustavopinzon9031 4 года назад +1

      Yes man, you just need to use a rele 5v to 220v or 110v