👉 Don't forget to check arduino-tutorials.net for more Arduino tutorials and projects. If you have questions, don't hesitate to ask them in de comments. Remember: There are no stupid questions 😃 🔔 Want to stay up-to-date with the latest videos? Subscribe to the Bas on Tech channel!
@papendudas38343 ай бұрын
Thank You so much @BasonTech for the debounce code and the wonderful explanation.
@BasonTech3 ай бұрын
Great I could help! Have fun with your projects! 😃
@dhruv_1953 жыл бұрын
I have watched so many tutorials on Arduino but no one has ever talked about millis() function. I always wanted to use the concept of debounce in my project but I didn't know how to. Thank you so much for the help.
@BasonTech3 жыл бұрын
Great to hear! This tutorial of mine also uses millis() so might be useful to check as well 😃 arduino-tutorials.net/tutorial/long-press-button-on-the-arduino-with-millis
@markolengyel6254 Жыл бұрын
Awesome, thank you.
@BasonTech Жыл бұрын
Thanks! My pleasure! 😃
@LuisLopez-cv5ew3 жыл бұрын
Thanks for sharing that nice example also the sensor alone can made the same and soldering pin 4, 5, 6 of the CMOs together acts as a toggle switch.
@BasonTech3 жыл бұрын
Hi Luis, thanks for sharing! 👍🏻
@First.Last.992 жыл бұрын
Amazing tutorial :) thank you a lot. Have 20 these similar touch sensors will do a work clock for me with pause :)
@BasonTech2 жыл бұрын
Nice! 😃
@alinmanu2180 Жыл бұрын
Hi there! Can You attache this zensor to a glove .. so,when i press with the glove . I will like to show me o a screen the force with witch i press mesured in kilograms You think that could be posibile ?
@BasonTech Жыл бұрын
That would be a bit too much to ask of this basic sensor. I can't think of another sensor which can achieve this.
@Fasmaee10 ай бұрын
Hi, not sure why, i have included the simple code in IDE, yet when i compile it it gives me error codes This is the code, which i think is identical to yours. What am I missing? void setup() { // put your setup code here, to run once: pinMode(5, INPUT); pinMode(LED_BUILTIN, OUTPUT); digitalWrite(LED_BUILTIN; LOW); } void loop() { if(digitalRead(5) == HIGH) { digitalWrite(LED_BUILTIN, HIGH); } else { digitalWrite(LED_BUILTIN, LOW); } delay (100); }
@BasonTech10 ай бұрын
The compiler is right, there is a small typo in the code. Look very careful for all commas, semicolons etc. I am sure you can spot the typo 😃
@Shri-yf7yc Жыл бұрын
Can you list the components used
@BasonTech Жыл бұрын
It's listed in the video description 😃
@luluvahhuzaifa72002 жыл бұрын
How would you use this on an added LED
@BasonTech2 жыл бұрын
Sorry I don't understand your question. Add a LED to?
@ramsc58133 жыл бұрын
Hi there, i have a question. I guess you know the game Tablesoccer. I am a professional player and it can get hard with speeds up to 80 km/h to recognize if the ball went into the goal or not. Sometimes it bounces out right away and it looks as if the goalie blocked the ball although it was a goal. This is a problem in tournaments. My thoughts were, if it is possible to have a soft sensor-mat which you can glue to the walls inside the goal. Do you think this would be possible in a way, that it is extremely accurate? Thank you :-)
@BasonTech3 жыл бұрын
Hi, I don't think this is the best sensor to use. Speeds of 80 km/h will completely destroy the device, and besides it is a captive sensor so it does not work on a ball. My suggestion would be to use a laser on the goal boundary. I've found this video of people who already made such a system: kzbin.info/www/bejne/q5-7hmijbKqkl7c
@yusufyusuf79194 жыл бұрын
Thanks man this helped
@BasonTech4 жыл бұрын
Glad I could help! 😃
@toritoxx1294 жыл бұрын
can the sensor be activated by anything? (like you gat a pen or a toothpick, will it turn on?)
@BasonTech4 жыл бұрын
Unfortunately not, this sensor is capacitive which means it needs to be touched by conductive materials which allow current to flow through like our finger.
@toritoxx1294 жыл бұрын
Ok, thanks. This was really helpful
@BasonTech4 жыл бұрын
Great! Glad I could help 😃
@stephen2853 жыл бұрын
thnks for the vid ---- can they detect velocity, how hard you are touching?
@BasonTech3 жыл бұрын
Not really, this is a digital sensor, not analog. You can of course detect how long it was pressed.
@smurf65952 жыл бұрын
Any way I can wire up one of these to act as a PC power button?
@BasonTech2 жыл бұрын
Sure! You'll then need a relay to switch the PC power. This relay is switched by the touch sensor.
@EnergySeeker2 жыл бұрын
is there a touchless sensor ? am trying to find it
@BasonTech2 жыл бұрын
Not that I know. There might be a sensor which can detect a certain resistance when something approaches the sensor. Maybe you can do something with a LDR or PIR?
@EnergySeeker2 жыл бұрын
@@BasonTech thanks for your fast answer
@hi_beemo1808 Жыл бұрын
5:50 so that means if you hold touching led will blink?
@BasonTech Жыл бұрын
It will not since the if is not triggered when the sensor is LOW.
@gofarperdana2659 Жыл бұрын
Why my sensor LED turn red instead of green?
@BasonTech Жыл бұрын
As far as I can see there is only 1 LED on the PCB. Therefore I guess the manufacturer used a red LED instead of a green one.
@gofarperdana2659 Жыл бұрын
@@BasonTech Its green sir, mine is red. lately i just know that i burnt my sensor by plugging it onto 5V Pin.
@BasonTech Жыл бұрын
Interesting according to the specs it should be able to operate between 2V and 5.5V
@gofarperdana2659 Жыл бұрын
@@BasonTech In my opinion its better to use the 3.3V before continuing to higher volt like 5V etc to prevent burnt the sensor
@ahmedfayez45963 жыл бұрын
Hello Sir, I have this sensor and i need some help please. I need to control two LEDs with this sensor. 1 touch turn on or off LED1, while double touch turn on or off LED2. how can I do it?
@BasonTech3 жыл бұрын
Hi Ahmed, what have you tried already and what issue did you ran into?
@ahmedfayez45963 жыл бұрын
@@BasonTech Acutally I didnt even try because i dont know how am going to write the code. If you can make a video it would be great Thanks for replying
@BasonTech3 жыл бұрын
The videos are already there 😃 I've made tutorials on LED, long press and the touch sensor. Combine these and you should have what you want.
@ahmedfayez45963 жыл бұрын
@@BasonTech I watched the video and its really helpful but still i cant program double touch and single touch. What i want to do is, single touch turn on or off led1, double touch turn on or off led2, then long touch to turn on or off led1 and led2
@BasonTech3 жыл бұрын
This is still the same as the longpress video with an extra state. You need to measure the time between taps to determine if it single, double or longpress.
@mohammedahzan76853 жыл бұрын
WHAT IS THE USE OF THIS SENSOR
@BasonTech3 жыл бұрын
for example: you can use it a a button without having moving parts
@6반5번김서윤4 жыл бұрын
What is that touch sensor's model name?
@BasonTech4 жыл бұрын
Hi, in the description of the video you'll find all the parts used in the tutorials. The sensor is this one: arduino-tutorials.net/r/0cVKLS 😃
@6반5번김서윤4 жыл бұрын
@@BasonTech Oh thank you~
@amirabouzour95102 жыл бұрын
Where is the code?
@amirabouzour95102 жыл бұрын
I cant find it on the website
@BasonTech2 жыл бұрын
On the bottom of arduino-tutorials.net/tutorial/reading-touch-sensor-with-arduino you see a link to Github 😃