A Touch of Innovation: ESP32's Touch Interrupt!

  Переглядів 3,214

Programming Electronics Academy

Programming Electronics Academy

День тому

🤩 Check out this Free Arduino Course 👇
bit.ly/get_Arduino_skills
**Get the code, transcript, challenges, etc for this lesson on our website**
bit.ly/3PIQpg6
Want to learn more? Check out our courses!
bit.ly/3ZzbmOS
_/\\\\\\\\\\\\\_____\\\\\\\\\\\\\\\_____/\\\\\\\\\___
\/\\\/////////\\\_\___\\\///////////_______/\\\\\\\\\\\\\_
\/\\\_______\/\\\__\/\\\____________/\\\/////////\\\
\/\\\\\\\\\\\\\/___\/\\\\\\\\\\\_____\/\\\_______\/\\\
\/\\\/////////_______\/\\\///////________\/\\\\\\\\\\\\\\\
\/\\\_____________\/\\\______________\/\\\/////////\\\
\/\\\_____________\/\\\______________\/\\\_______\/\\\
\/\\\_____________\/\\\\\\\\\\\\\\\____\/\\\_______\/\\\
\///_______________\///////////////_________\///________\///_
We designed this circuit board for beginners!
Kit-On-A-Shield: amzn.to/3lfWClU
FOLLOW US ELSEWHERE
---------------------------------------------------
Facebook: / programmingelectronics...
Twitter: / progelecacademy
Website: www.programmingelectronics.com/
**About Us:**
This Arduino lesson was created by Programming Electronics Academy. We are an online education company who seeks to help people learn about electronics and programming through the ubiquitous Arduino development board.
**We have no affiliation whatsoever with Arduino LLC, other than we think they are cool.**
00:00 Introduction
01:05 Touch Pins
02:01 Sketch
03:05 Adjusting Thresholds
05:56 Call Back Function
13:20 Testing!

КОМЕНТАРІ: 11
@andrea-mazzilli
@andrea-mazzilli 6 місяців тому
your videos are very explanatory and clear! good job and keep going! we need more
@programmingelectronics
@programmingelectronics 6 місяців тому
Thanks! Will do!
@pjforde1978
@pjforde1978 Місяць тому
This is a great video, but I was sincerely hoping that you'd address how to use Touch14 for active shielding. It's the most under-documented aspect of this whole ESP32 capacitive touch landscape. (See page 23 of the ESP32-S3 hardware design guidelines, section 3.12)
@robertrobert5583
@robertrobert5583 4 місяці тому
Not on topic, but not sure where else to ask! I see references to struct in sketches (eg esp_now) and I wonder what they are and how they differ from classes. I've tried to Google and asked chatgpt but find the explanations rather technical. If you could cover this in a future video that would be great. Thanks for all your superb videos.
@programmingelectronics
@programmingelectronics 4 місяці тому
Thanks Robert! structs essentially help you organize and collect variables into a single "entity" They "sound" sort of technical, but are in usage superduper easy and fun to implement. Not sure if you're a PEA academy member or not, but in our pointers course we talk about using structs, and passing them to functions. I'll see if I can get something out about them on UKposts. All the best!
@TheEngadine
@TheEngadine 7 місяців тому
🤔 I guess it could be used in those lamps with a long metallic stem whose luminosity can be rosen or diminished just by touching the stem continously or by little spaced touches. No?.
@programmingelectronics
@programmingelectronics 7 місяців тому
Definitely!
@mortimersnead5821
@mortimersnead5821 7 місяців тому
Could this be used to make a theremin?
@robertherzog2087
@robertherzog2087 7 місяців тому
Your demo implies the touch pin suffers from a bounce effect like a button. Would you use the same debounce routine as you would a button? I frequently use a Schmitt trigger for this. Would a Schmitt trigger function in the same way for both?
@TheSelfUnemployed
@TheSelfUnemployed 7 місяців тому
i use something like this to debounce the button press: volatile bool touchDetected = false; volatile unsigned long lastTouchTime = 0; const unsigned long debounceDelay = 50; // Adjust as needed void handleTouch() { unsigned long currentMillis = millis(); // Check if it's been enough time since the last touch if (currentMillis - lastTouchTime >= debounceDelay) { // Record the time of this touch lastTouchTime = currentMillis; // Set the flag to indicate a valid touch touchDetected = true; } }
@robertherzog2087
@robertherzog2087 7 місяців тому
I thought the use of millis() was not valid in an ISR routine.
#328 ESP32 Secrets: Interrupts, and Deep-Sleep under the Hood
18:57
Andreas Spiess
Переглядів 171 тис.
Get started with ESP32 touch buttons [Code and Wiring Diagram Included]
15:20
Programming Electronics Academy
Переглядів 4,7 тис.
YOU can Learn the ESP32 in 15 Minutes:  Hello World!
22:52
Dave's Garage
Переглядів 275 тис.
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Переглядів 503 тис.
PlatformIO: All you need to know in 10 Minutes!
10:56
J's e-shack
Переглядів 277 тис.
How to Use Arduino Interrupts The Easy Way
33:28
Rachel De Barros
Переглядів 68 тис.
12 Useful & Interesting ESP32 Projects for Beginners!
9:41
ToP Projects Compilation
Переглядів 563 тис.
Control Anything With IOT Easy Internet of Things with ESP32 and Arduino
17:56
The Cheapest Microcontroller? Getting started with the 10 cent Puya PY32.
21:36
Zach of All Trades
Переглядів 21 тис.
Finally,  ESP32 board with an AMOLED display .LilyGO T-display S3 AMOLED
13:15