An open API service indexing awesome lists of open source software.

https://github.com/omerkel/microcontroller_aggregated_stuff

Hosting some microcontroller related stuff
https://github.com/omerkel/microcontroller_aggregated_stuff

arduino esp32 esp32-arduino microcontroller micropython raspberry-pi raspberry-pi-pico

Last synced: 26 days ago
JSON representation

Hosting some microcontroller related stuff

Awesome Lists containing this project

README

          

# microcontroller_aggregated_stuff

Hosting some microcontroller related stuff

# Setup of Jukebox

Assuming you have a recent Python installed:

```
python -m venv venv
venv/Scripts/activate
pip install -r requirements.txt
pdm update
pdm run thonny
```

* This should open the Thonny IDE.
* Now connect to your prepared RaspberryPi Pico Controller as usual
* Open the file jukebox/jukebox.py
* When starting it from inside Thonny the onboard LED of your Pico should start flashing with 20Hz
* If a passive buzzer is connected as described in jukebox/jukebox.py you should hear a scale being played
* See jukebox/main.py on usage and how to play the included songs
* Song files need to be transferred to your Pico, too, such that these can be imported.
* Starting jukebox/main.py obviously starts playing the song files
* On Raspberry Pico 2 WH ( W indicates WIFI ) or similar you can run jukebox/webapp.py
* Beforehand you need to update WIFI_SSID and WIFI_PASS in jukebox/secrets.py to match your environment
* Started in Thonny you will find your IP address in the log output when running the webapp.py
* Use this IP address in a Webbrowser to access the Webapp
* Enjoy...

# Links

* https://wokwi.com/ In case you plan to emulate the RaspberryPi Pico then wokwi might come in handy.