Table of Contents

Ports and connections

This article covers the ports on the Behavior device, 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 device and requires a 12 V power supply.

USB (USB-C) - This port connects the device to the control computer running Bonsai or the Behavior app.

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 poke ports interface directly with the Mice Poke peripheral for poke detection and reward delivery. Alternatively, use the Breakout to interface with other accessories. Port P2 also has a quadrature counter for rotation tracking. Use it with the Rotary Encoder peripheral, or with a quadrature encoder connected through the Breakout.

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 control 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.

RGB (3-pin Flick Lock) - Connector for up to two addressable RGB LEDs (WS2812-type, e.g., NeoPixels). The LEDs are controlled as a serial chain on a single data line, with colors set with the RGB registers.

L0, L1 (Screw Terminal) - These connectors control two conventional single-color LED outputs. Each terminal pair is marked A (anode, the LED's long leg) and K (cathode, the short leg). The output 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 or AD1 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.


Documentation for release v3.4.0