HOW TO USE
- Install requirements
Make sure Flask is installed:
pip install flask flask-socketio
-
Set up the Raspberry Pi Pico W
-
Open Thonny.
-
Connect the Raspberry Pi Pico W to your computer.
-
Open main.py and edit these fields: ssid = "YOUR_WIFI_NAME" password = "YOUR_WIFI_PASSWORD" pc_ip = "YOUR_COMPUTER_IPV4_ADDRESS" (find your IP by running ipconfig in Command Prompt; use the IPv4 Address).
-
Upload main.py to the Pico W.
-
Run the client.py on your computer
-
Open Command Prompt in the project folder
-
Run:
python client.py -
Keep https://zdsdam.github.io/easound open in your browser.
-
If the Pico setup fails If you can’t upload main.py or connect the Pico:
-
Make sure client.py is already running.
-
In a new Command Prompt window, send a test message:
curl -X POST http://127.0.0.1:5000/message -H "Content-Type: application/json" -d "{\"message\": \"Blinding: Armoury!\"}"