Main Menu (Mobile)- Block

Main Menu - Block

Encoder Interface for Mouse Treadmill

janelia7_blocks-janelia7_node_tool_type_list | block
Laboratory Tools
node_title | node_title

Encoder Interface for Mouse Treadmill

node:body | entity_field

Encoder/Driver Interface for Mouse Treadmill and other devices

Designed primarily for use with the rodent treadmill, the Encoder Interface provides an inexpensive and easy-to-build method to connect a quadrature encoder to serial and analog interfaces. The emphasis is on simplicity and ease of assembly. The interface reads the encoder and calculates speed and direction based on the time between encoder edge changes using the internal timer on the processor. Speed is updated every time it changes. If no changes are detected over set time (typically 50 milliseconds), the speed is set to 0. Distance is also accumulated. The USB-serial connection prints the distance and speed of every change. The analog output sets a voltage proportional to forward speed (as it is a unipolar output). The analog output range is 0 to 3.3 volts.

The calibration of speed, distance, and output voltage can all be customized. For example, if analog forward and reverse speeds are needed, users could offset the output such that 1.5 volts is 0 speed, and 0 to -1.5 volts is reverse, and 1.5 to 3 volts is forward. Another example would be to output the absolute speed and add a digital output to indicate forward or reverse.


Free to make for Non-Profit Research by downloading designs at Flintbox link to the right.

Rights and designs available for Commercial License.

For inquiries, please reference:

Janelia 2017-055

node:field_image | entity_field
individual_tool_resources | views
janelia_helper-janelia7_publication_list | block
janelia7_blocks-janelia7_tool_collaborators | block
janelia7_blocks-janelia7_program_administration | block


Mike Perham
Director, Innovations and External Relations
addtoany-addtoany_button | block

Share this Tool