Skip to content

Latest commit

 

History

History
114 lines (85 loc) · 4.36 KB

README.org

File metadata and controls

114 lines (85 loc) · 4.36 KB

head_fixation_controller_python

Package Information

Name
head_fixation_controller_python
Version
0.0.1
License
BSD
URL
https://github.com/janelia-python/head_fixation_controller_python
Author
Peter Polidoro
Email
[email protected]

This Python package (head_fixation_controller) creates a class named HeadFixationController.

Example Usage

from head_fixation_controller import HeadFixationController
dev = HeadFixationController() # Might automatically find devices if available

Installation

Setup PhidgetSBC

https://github.com/janelia-experimental-technology/phidgets_setup

Clone This Repository

mkdir ~/git
cd ~/git
git clone https://github.com/janelia-python/head_fixation_controller_python.git

Update Configuration File

Update information in “configuration.yaml” file, in particular, the phidget device_serial_numbers.

Hardware

Actuators

Head Fixation Rig <-> Connector <-> Head Fixation Controller

Head Fixation RigCOLORACTUATORS DB-25Head Fixation ControllerCOLOR
MOTOR 0BLACK12MOTOR 0 A+BLACK
MOTOR 0GREEN11MOTOR 0 A-GREEN
MOTOR 0RED10MOTOR 0 B+RED
MOTOR 0BLUE9MOTOR 0 B-WHITE
MOTOR 1BLACK8MOTOR 1 A+BLACK
MOTOR 1GREEN7MOTOR 1 A-GREEN
MOTOR 1RED6MOTOR 1 B+RED
MOTOR 1BLUE5MOTOR 1 B-WHITE

Connector Polarity

ACTUATORS DB-25 RigACTUATORS DB-25 Controller
MALE PINSFEMALE SOCKETS

Sensors

Head Fixation Rig <-> Load Cell

Head Fixation RigCOLORPhidgets Voltage Ratio Input
LOAD CELL +5VREDINPUT 0 5V
LOAD CELL +GREENINPUT 0 +
LOAD CELL -WHITEINPUT 0 -
LOAD CELL GROUNDBLACKINPUT 0 G

Head Fixation Rig <-> Connector <-> Head Fixation Controller

Head Fixation RigCOLORSENSORS DB-25Head Fixation ControllerCOLOR
MOTOR 0 HOME COMYELLOW21SWITCH 0 GNDBLACK
MOTOR 0 HOME NCORANGE20SWITCH 0 DIWHITE
MOTOR 1 HOME COMYELLOW19SWITCH 1 GNDBLACK
MOTOR 1 HOME NCORANGE18SWITCH 1 DIWHITE
HEADBAR SWITCH BPURPLE6SWITCH 2 GNDBLACK
HEADBAR SWITCH APURPLE5SWITCH 2 DIWHITE
VoltageRatioInput GNDBLACK16LOAD CELL GNDBLACK
VoltageRatioInput 5VRED15LOAD CELL 5VRED
VoltageRatioInput DATAWHITE14LOAD CELL DATAWHITE

Connector Polarity

SENSORS DB-25 RigSENSORS DB-25 Controller
FEMALE SOCKETSMALE PINS

Head Fixation Controller

Single Board Computer

PhidgetSBC4Head Fixation Controller
VINT 0MOTOR 0
VINT 1SWITCH 0
VINT 2MOTOR 1
VINT 3SWITCH 1
VINT 4SWITCH 2
VINT 5LOAD CELL
USBVINT Hub Phidget

VINT Hub

VINT Hub PhidgetHead Fixation Controller
VINT 0SWITCH 3