Description
Rotary Encoder Module v2 improves on its predecessor with an array of new features and improvements. Like the original module, it captures position data from a quadrature rotary encoder (e.g. Yumo E6B2-CWZ3E). Position thresholds can be set, and reported as behavioral events to the Bpod state machine. Version 2 adds:
- USB2 high speed data transfer to the PC, eliminating the need for a microSD card.
- A faster processor, enabling X4 encoding and more complex threshold criteria.
- Two analog output channels configurable to report the wheel position or to deliver 3.3V sync pulses.
- The ability to set the next trial's thresholds without affecting the current trial (for use with TrialManager).
- An improved laser-cut enclosure
The Bpod-CAD repository includes open designs for a 3D printable rotary encoder mount and paw-interface wheels, which can be used as a starting point for constructing custom paw-motion interfaces.
Note: Version 2 omits two features present on the original module: 1. the microSD card and 2. the output jack to directly stream position data to other Bpod modules. Minor changes to existing code may be necessary if the SD card was used, to switch to USB streaming. Version 1 will continue to be available at the Sanworks assembly service, subject to availability of raw materials.