SunFounder ESP32 Starter Kit
(continued from previous page)
# If detects an obstacle, change the direction of the LED strip
else:
for i in range(num_pixels-1, -1, -1):
pixels[i] = color
pixels.write()
pixels[i] = (0, 0, 0)
time.sleep_ms(100)
LEDs on the RGB Strip light up one by one when the script runs. As soon as an object is placed in front of the obstacle
avoidance module, the LEDs on the RGB Strip light up one by one in the opposite direction.
3.35 6.3 Light Theremin
Theremin is an electronic musical instrument that does not require physical contact. Based on the position of the
player’s hand, it produces different tones.
Its controlling section is usually made up of two metal antennas that sense the position of the thereminist’s hands and
control oscillators with one hand and volume with the other. The electric signals from the theremin are amplified and
sent to a loudspeaker.
We cannot reproduce the same instrument through ESP32, but we can use photoresistor and passive buzzer to achieve
similar gameplay.
• Theremin - Wikipedia
Required Components
In this project, we need the following components.
It’s definitely convenient to buy a whole kit, here’s the link:
Name ITEMS IN THIS KIT LINK
ESP32 Starter Kit 320+
You can also buy them separately from the links below.
3.35. 6.3 Light Theremin 415