Analog Input
Summary
This example demonstrates how to read analog input values from a potentiometer using the Harp Behavior board (see hardware schematics below).
Workflow
Details
- Creates a connection with the Behavior board. The PortName property in the Behavior node needs to be set to the COM device on the computer.
- Filters the messages from the Behavior board that pertain analog inputs.
- Selects the AnalogInput0 (AD0) from the list of possible analog inputs (see the output of the Parse node in 2).
Requirements
This example requires the following Bonsai packages:
- Harp - Behavior (from nuget.org)
Schematics
The Harp Behavior board has two analog input channels: AD0 and AD1. The maximum voltage allowed is 5V. In this example, the board receives an analog input signal from a potentiometer connected to AD0.