A simple multi-purpose device for learning the basics of the Harp standard. Although the repository contains working device metadata, firmware and high-level interface, the Harp Hobgoblin device is made to be adapted and modified for a variety of purposes.
The Harp Hobgoblin is designed to operate directly from a Raspberry Pi Pico / Pico 2 board. To make it easier to interface with a variety of inputs and outputs we recommend the Gravity: Expansion Board.
Note
The following links are provided as a reference only. We are not connected to or in any other way affiliated with the suppliers listed below.
- Raspberry Pi Pico:
- Gravity Sensors:
- Press-and-hold the Pico BOOTSEL button while you connect the device to the computer USB port.
- Drag-and-drop the
.uf2
file matching your Pico board into the new storage device that appears on your PC.
Harp Hobgoblin is designed for use with the Bonsai visual reactive programming language.
- Install the
Harp.Hobgoblin
package using the Bonsai package manager. - Insert the
Device
source from the editor toolbox. - For additional documentation and examples, refer to the official Harp documentation.
- Install Visual Studio Code.
- Install the Raspberry Pi Pico extension.
- Update the Harp Core submodule:
git submodule update --init --recursive
Follow the steps outlined in Firmware/README.md.
- Install Visual Studio Code.
- Install the YAML extension.
The device.yml
file in the root of the project contains the Hobgoblin device metadata. A complete specification of all device registers, including bit masks, group masks, and payload formats needs to be provided.
- Install
dotnet
. - Install
dotnet-t4
.
dotnet tool install -g dotnet-t4
The Generators
folder contains all text templates and project files required to generate both the firmware headers and the interface for the Hobgoblin device. To run the text templating engine just build the project inside this folder.
dotnet build Generators