Table of Contents

Ports and Connections

This article covers the ports on the Behavior board, as well as how to connect the device to peripherals and external devices.

Ports

Harp Behavior Device Pinout

12V PWR (Barrel Jack) - This port powers the Behavior board and requires a 12 V power supply.

USB (Mini-B/USB-C) - This port connects the device to the control computer running Bonsai or the GUI. The connector type depends on the hardware version of the board.

CLKIN (Stereo Jack) - This Harp clock input accepts a clock output from any compatible Harp clock generator or synchronizer (e.g. Harp Timestamp Generator) for synchronization with other connected devices.

State - This status LED cycles on and off with a period of:

  • 2 seconds when it's communicating with Bonsai
  • 4 seconds when in standby
  • 100 milliseconds when a catastrophic error occurs

P0, P1, P2 (RJ45) - These specialized peripheral ports interface directly with the Mice Poke peripheral for poke detection and reward delivery. Alternatively, use the Breakout extension board to interface with other peripherals and accessories. Port P2 additionally accepts the Rotary Encoder peripheral for rotation tracking.

ADC (Screw Terminal) - This connector carries the first analog input (AD0), a 5 V supply pin and two ground connections.

Output (Screw Terminal) - These general-purpose 5 V digital outputs can be used to communicate with external devices. DO0/DO1 can generate camera triggers and DO2/DO3 can drive servo motors; all four support PWM.

Input (Screw Terminal) - This connector carries the second analog input (AD1), the digital input DI3 and one ground connection. This connector is only available on hardware v2.0 or later boards.

RGB (3-pin Flick Lock) - Connector for up to two WS2812-type individually addressable RGB LEDs, driven as a serial chain on a single data line. Colors are set with the RGB registers.

L0, L1 (Screw Terminal) - These connectors control two regular current-controlled LED outputs. Each terminal pair is marked A (anode, the LED's long leg) and K (cathode, the short leg). The drive current is configurable from 2 to 100 mA.

Connections

Analog Input

  1. Wire the analog signal (0–5 V) to either AD0 on the ADC connector (shown above) or AD1 (hardware v2.0 or later) on the Input connector.
  2. Connect the ground wire to any GND pin.
  3. Refer to the Acquire Analog Data article to read the signal in Bonsai.


Last updated with:
Hardware v2.1
Firmware v3.3
Bonsai Package v0.2