Arduino Capacitive Touch-Free Touch Sensor Tutorial

  Переглядів 23,128

Playful Technology

Playful Technology

День тому

This is the fourth video in a series in which I'll be considering various methods that can be used to replace a traditional Arduino button input with a touch-free interface instead, requiring no physical contact. This is just one possible consideration of how you can make an escape room (or any other public-facing Arduino interface) more "Covid-secure".
In this part I'll be looking at an "Capacitive Touch Sensor" CAP1188 component, which costs around $10, can be purchased from several online suppliers and is easy to wire and code on an Arduino, ESP32, or other Microprocessor using an I2C interface.
They can be purchased from, e.g. www.banggood.com/custlink/3v3...
Though some capacitive sensors work by physical touch (e.g. those on a mobile phone screen), by increasing the sensitivity of the board (which can be done by writing a registry value through code), it is possible to detect a hand (or a glass of water, metallic object, or any other object with sufficient capacitance) at a distance of about 15cm from the sensor, with no need for contact. There are 8 different inputs, each with an onboard LED and corresponding output pin, and the readings can be extracted via SPI or I2C interface.

КОМЕНТАРІ: 44
@olivernovelles8609
@olivernovelles8609 3 роки тому
Wow! Awesome, as usual. Thank you so much to bring us your knowledge and make our life a little more happy!!
@PanayiotisMavrokefalos
@PanayiotisMavrokefalos 3 роки тому
Amazing stuff! Thanks for bringing this into my attention.
@seanmcdonald656
@seanmcdonald656 3 роки тому
Great video love the detail you go into
@kris_maussen
@kris_maussen 3 роки тому
Thanks, looking already for the next learning episode
@vedantbhoyarxd
@vedantbhoyarxd 3 роки тому
just uploads these type of creative ideas for us amazing bro
@xenusceptic
@xenusceptic 3 роки тому
For me this was a very useful video as I want to integrate nontouch switches into furniture I’m designing to control lights and other devices
@ImperialLightandMagic
@ImperialLightandMagic 3 роки тому
Wow, didn't know those boards existed. Gonna order a couple to play with.
@bibel2k
@bibel2k 3 роки тому
Great ! You are the best Mr. Allister. The use of fritzing really kicks up the explanation. Do you keep a library with all sensors and chips to share ? I use the old ttp223. ‏ the main advantage of using that sensor is the ability to receive data according to soldering down in the back of the sensor. That means one or zero or toggle with every touch. Another thing to mention is that connecting your wire during activity will be read as a signal, but if connected while sensor is off off.the the wire won't be taken in consideration. The true advantage is the amount of signals for 2 wires in i2c protocol.
@jackisgoofingoff5510
@jackisgoofingoff5510 7 місяців тому
So cool, I wonder how u connect the copper wire? Is it just a closed shape connected to a pin input?
@kovacp1
@kovacp1 2 роки тому
Where can we download your code? Thank you!!
@ashwin372
@ashwin372 3 роки тому
Mind blowing!
@pavano6970
@pavano6970 3 роки тому
I was recently using infrared sensor for a dispenser project. The issue is sunlight affects the reading of the sensor. does sunlight affect the sensors you show other than ir sensor?
@gerdfeller6667
@gerdfeller6667 2 роки тому
Greetings from Germany. Sorry for my bad English. I have been working with CAP sensors for the Arduino for some time, and always used the "MPR121 as keypad 4x3, I2C" Unfortunately it doesn't work to put too little sensitivity behind the glass Have you ever tested whether the sensor is also addressed by glass. Thanks for your effort. Greetings Gerd
@technicaljourneywithpuneet
@technicaljourneywithpuneet 3 роки тому
Good... I Subscribed👍
@bobshagit9503
@bobshagit9503 Рік тому
where did you get the quick connectors for the wires? im trying to find some but there is so many
@mrmustache2039
@mrmustache2039 2 роки тому
kinda Arduino noob here, Are you able to use more than 1 of these boards on an Arduino? A project of mine needs around 4 of these boards simultaniously.
@jbjb303
@jbjb303 3 роки тому
Newbie Here... I have a few Questions. Does the memory on either board CAP118 or the Nano stop working when memory is filled? 2) Once the CAP1188 is setup does it still need the Nano to work? 3) Can you give an example how to increasing the sensitivity of the board? 4) After a "complete setup" when running is this able to restart if there is an error detected and how can this be done? 5) Is there a location you have this code in text form to be copied? I search and found nothing. Thanks for your time...
@bobshagit9503
@bobshagit9503 Рік тому
do you know how to wire up led lights to the cap1188? a video would be awesome
@physicist137
@physicist137 3 роки тому
Nice module. There are ways to get touch sensing without extra hardware on the Nano etc., but that I like that module and just ordered one. Btw, setting the register to "reg | sensitivity" with sensitivity =0x3f for example overwrites the low nibble of reg with f (hex). Use sensitivity=0x30 (and so on) instead to keep the nibble. Seems to work anyway though.
@physicist137
@physicist137 3 роки тому
Just checked the data sheet, the low nibble defaults to F (hex) anyway, so no harm done.
@dhfr89
@dhfr89 Рік тому
Question: If I make a large pad (like the wire "hand" you used) The whole thing turns into an antenna, including the lead going to it. How can I isolate the pad? Im struggling with having a distinction with several pads as all of their leads go to the same spot ( the chip) I'm also having accidental reads through the side of my projects and have not figured out how to shield anything, since conductors seem to enhance the effect and insulators dont seem super effective at blocking.
@yorganyog
@yorganyog Рік тому
Can we have analog output or just 0 and 1?
@ChrisDragotta
@ChrisDragotta 2 роки тому
I'm trying to do something similar, using a 12 touch pin capsense breakout board, ADAFruit MPR121. I want to be able to scan the touches and get all 12 pin states in one step. You are sort of explaining how to do this, but I'm not really getting it. Where can I go for answeres? Probably the teensy forum. I am going to need three capsense boards, as I need all 36 touches for my project. I'm using clk and data to daisychain all three boards to a Teensy 3.2 board. I'm trying to figure out the code..
@omargaray9457
@omargaray9457 10 місяців тому
Excelent video, I was looking for something like this for a long time, just have a question, Can you share the code? please. Best.
@binal5542
@binal5542 2 роки тому
Hello please send the sketch link. I can’t find it
@user-ll1ed5ng1y
@user-ll1ed5ng1y 5 місяців тому
The sensor is triggering with just the pin wiring what to do?
@andyvious
@andyvious 2 роки тому
which type of sensor would you recommend for close range motion tracking in 3D space? something a bit more accurate than this particular sensor..
@PlayfulTechnology
@PlayfulTechnology 2 роки тому
Motion-tracking, or just distance-tracking? If you want to track an object that always remains within clear line-of-sight, I'd use a computer vision-based solution (e.g. marker- or marker-less tracking using OpenCV)
@Eden-pi4zs
@Eden-pi4zs 2 роки тому
Can anybody help me? CAP1188:6:10: fatal error: src/CAP1188.h: No such file or directory #include "src/CAP1188.h"
@jaccosam
@jaccosam 2 роки тому
Hello Eden0210
@jaccosam
@jaccosam 2 роки тому
The reason is that Mr Alistor modify s the original CAP1188.h library, and renamed it as "src/CAP1188.h" witch you can download with the .ino file if you are a Partreon subscriber. But I cant find it, at the Patreon site. No code en no src.Cap1188.h. !
@weerobot
@weerobot 3 роки тому
😯Wow
@connormitchell9837
@connormitchell9837 2 роки тому
Where can I find the download for the library?
@guusmangnus634
@guusmangnus634 2 роки тому
same question here
@jaccosam
@jaccosam 2 роки тому
Look at this link www.patreon.com/posts/touch-input-in-44328904
@Yoctopory
@Yoctopory 2 роки тому
Would this work through 6mm glass?
@PlayfulTechnology
@PlayfulTechnology 2 роки тому
Yes - glass has no significant capacitance, so shouldn't affect the reading if you were to increase the sensitivity to work at that distance.
@jarrodvsinclair
@jarrodvsinclair Рік тому
On the manure hauling: how much does it cost? How long does it take for you to make an average video? What is your average revenue per video? See where I am going? Rather then spend a week or 2 of your time doing that I but you could spend a couple days edit together another video and make more then enough to cover it
@gumgon
@gumgon 3 роки тому
?????????? PLEASE PLEASE - provide useful information such as a RASPBERRYPI telephone recorder. Wish not to have a WIN pc always on , instead a raspberry pi - or other option of a LOW power telephne recording device ???????????
@kenwoods9657
@kenwoods9657 3 роки тому
Hello, just found this-! Can I buy you a cup of coffee or subscribe on patron for the code? Thanks a bunch-!
@PlayfulTechnology
@PlayfulTechnology 3 роки тому
Hi! There's not much code to this one, tbh - you can see it all in the video! But if you want to download it, that's one of the perks for my Patreon subscribers.
@jaccosam
@jaccosam 2 роки тому
@@PlayfulTechnology I cant found nothing on the Patreon site !!
@PlayfulTechnology
@PlayfulTechnology 2 роки тому
@@jaccosam www.patreon.com/posts/touch-input-in-44328904
TTP223 Capacitive Touch Switches
9:18
Simple Electronics
Переглядів 78 тис.
How to Program ATtiny10 with Arduino IDE (Full guidance)
7:01
DIY GUY Chris
Переглядів 10 тис.
Arduino Laser Time-of-Flight Sensor Touch-Free Input Tutorial
18:24
Playful Technology
Переглядів 7 тис.
How Touchscreen Works In Simple Words
10:00
BRIGHT SIDE
Переглядів 1,3 млн
how to make a ttp223 touch based Light Mirror Touch Switch Controller
13:47
Muhammad Ansar
Переглядів 367 тис.
1-Day Project: MPR121 Capacitive Touch Sensor Music Organ
14:29
Julian Ilett
Переглядів 71 тис.
12 Useful & Interesting ESP32 Projects for Beginners!
9:41
ToP Projects Compilation
Переглядів 569 тис.
From Start To Finish: TTP223 Touch Sensor
15:06
David Watts
Переглядів 19 тис.
Touch-sensitive Smart Table. Reveal all the secrets! Ver. 2.0
8:43
Axes: Woodwork
Переглядів 55 тис.
поворотний механізм для антени
0:17
Lazeruk
Переглядів 14 тис.
С Какой Высоты Разобьётся NOKIA3310 ?!😳
0:43
Наушники Ой🤣
0:26
Listen_pods
Переглядів 458 тис.
Вы поможете украсть ваш iPhone
0:56
Romancev768
Переглядів 396 тис.
Клавиатура vs геймпад vs руль
0:47
Balance
Переглядів 976 тис.