Close

Installing Firmware

A project log for Positivity Pusher | infinite affirmation generator

Hear a new encouraging phrase with every push

stephSteph 06/24/2023 at 16:400 Comments

(Drag and) Drop It Like It's Hot

Installing the UF2 image

The Raspberry Pi Pico W comes with a "permanent ROM UF2 bootloader". What do those words mean? Let's dig in. 

For simplicity, Positivity Pusher is programmed with a custom UF2 image that contains CircuitPython and all the code and other files needed for operation. You'll be done in three easy steps:

Step 1:

Download the latest Positivity Pusher Firmware here.

Step 2:

Install it! All you have to do is plug in the Pico W to your computer while holding down the BOOTSEL button. A removable drive called RPI-RP2 should appear.

Now, simply drag the positivityPusher.uf2 file to the RPI-RP2 drive. 

Once the board reboots, you'll see a USB drive now called CIRCUITPY. The contents should look like this:

Step 3:

Almost there! The last step is to provide your API keys for OpenAI and Microsoft's Azure Speech Services. If you need to get those keys, here's how.

Open the file "settings.toml" with any text editor. You'll see this:

OPEN_AI_KEY="Bearer xx-xxxxxxxxx..."
AZURE_TTS_KEY="xxxxxxx..."

Overwrite the placeholders with your actual keys and save the file. (note: the OpenAI key must start with "Bearer ", don't replace that part)

That's it! Your firmware is now installed and ready. 

You'll probably hear an audible message asking you to set up wifi now. Press the "configure" button to reset your board and enter the wifi setup process. Supply your network credentials and prompt information. You're now ready to get affirmations!

Discussions