Skip to content

hippogriff101/RedLightGreenLight

Repository files navigation

RedLightGreenLight

Red Light Green Light with a ESP32!

See demo video on Macondo system!

This was submitted to Hack Club's Macondo

What you need!

  • 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!

How to set up

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!

Python

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!!!

Screenshots

image image

((swap pins to match code)

About

Red Light Green Light with a ESP32

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published