Red Light Green Light with a ESP32!
See demo video on Macondo system!
This was submitted to Hack Club's Macondo
-
ESP32-WROVER x1
-
GPIO Extension Board x1
-
Breadboard x1
-
LED x2 (Red & Green)een)
-
Resistor 220Ω x2
-
Jumper M/M x6
-
Resistor 10kΩ x2
-
Push button x1
-
Computer with Python (3.12 or higher i think)
_you can prob do without all of this but this is just what I have!
again, might not be the best way but it works for me
I recomend using this guide by freenove as it helped a lot when learning.
You can also use the screenshots bellow to copy wirering. I'm a bit of a perfectionist so I have color coded each componets jumper cable.
I use Arduino IDE as it is the easiest. You will need to open up the code and add in WIFI details.
const char* ssid = ""; #your networks SSID
const char* password = ""; # your networks password
const char* udpAddress = ""; # your computers IP
IP
Flash the code to the ESP32 and you should be good!
This is the bit I know a lot about! :hehe:
Check python is installed!
Run pip install playsound
Make sure the .mp3 files are in the same directory.
python server.py to run and boot up the ESP32, ya should be good!!!