ESP32 MicroPython Capacitive Touch & Sound Tutorial

preview_player
Показать описание
This MicroPython tutorial demonstrates utilizing the ESP32’s built-in capacitive touch sensors. A simple music player is constructed utilizing a JQ6500 MP3 module connected to an ESP32 via serial communication. The touch interface provides feedback by using pulse width modulation to vary LED brightness.

Previous tutorials in this series:

Рекомендации по теме
Комментарии
Автор

Another fantastic video.
First of all, thanks for developing a Micropython library for the JQ6500 and sharing it with the community. Many thanks for continuing to program in Micropython, for beginners like me it allows us to really understand the code, adjust and apply it so much easier than Arduino/C.

This video is the by far the best description of touch capacitance on microcontrollers from a practical implementation point of view. It is really well explained and likely problems in setup are covered.
I know a lot of people watching will find it difficult to imagine attempting this project (making your own pcb etc), but the video is well broken down so various elements of your project could be attempted in isolation; press a lemon to start a mp3 track, press an orange to stop, etc, etc!

Up to now, I have kept well clear of the touch sensors on the ESP32 and have never tried any projects with sound. Given this impressive project I feel I have to give it a try! Thanks

philwilkinson
Автор

Very very informative. Thank you for spending the time to make this video.

robertlam
Автор

wow!!! Thanks for the video, it really helps me out..

jackyli
Автор

Could please create ESP32 capacity touch home automation display and control panel using MQTT?

MrHbpatel
Автор

hey!! it was an amazing tutorial. As a beginner i have learned a lot from your tutorials.


Right now i am trying to read and write a co2 sensor(mh-z19b) datas via esp32 using uart, but it always reads the data bytes as none and i am not able to understand it. Below is the code and can you tell me whats wrong in it?
Your help will be appreciated.
Thank you.



from machine import UART

uart = UART(2, 9600)
uart.init(9600, bits=8, parity=None, stop=1)
uart.read(9)

data = [0xFF, 0x01, 0x86, 0x00, 0x00, 0x00, 0x00, 0x00, 0x79] # request data bytes to get co2 concentration

while True:

w = uart.write(bytes(data))
print(w) # output --> 9
s = uart.read(9)
print(s) # output --> None
ppm = s[2] * 256 + s[3]
print(ppm) # output --> 'NoneTypeObject'

karansomani
Автор

Is there any way you can run the code to play the sound for both the orange and the mango over the top of each other if both objects are pressed at the same time?

beckiclews
Автор

you make a fantastic videos .... i want to make tutorial how to control IGBT 220v brushmotor A little more about soft and hard electric... thank you you are good man greetings

Leeprunner
Автор

do you think this would work with glass instead of acrylic?

elbaku
Автор

Is an mp3 module necessary? I thought an esp32 could play sound by itself

legoscratch
Автор

Hi!
One question, why micropython instead of C?

Calucig
welcome to shbcf.ru