A generic harp device that runs the harp protocol on a raspberry pi pico
-
Upload the custom firmware to the pico:
- Unplug your pico from the USB.
- Click the
BOOTSEL
button. - While clicking the
BOOTSEL
button, reconnect your pico. - The device will be recognized as a general storage device. Simply drag and drop the firmware file
./firmware/microharp/bin/firmware.uf2
to the root folder. - The pico will reset and the new firmware is now uploaded. This step should only be necessary once.
-
Upload the device code to the device:
- Install Thonny
- Clone this repo.
- Connect your pico device to Thonny by selecting the appropriate COM port. pico will show up as two identical devices, you should use the lowest number COM port to upload your code.
- Replicate the structure of the repo in Thonny and upload the files to the pico. E.g.:
- Power cycle the device.
-
Interface with your pico from Bonsai.
- Open Bonsai and add a
Device(Harp)
operator; - Select the COM port. It should be the highest COM port of the two made available by connecting the pico.
- You can now send/receive
HarpMessages
to/from theDevice
operator.
- Open Bonsai and add a
For more information on the harp protocol and its pico implementation check: