Encoder
The sensOrange Encoder is a very compact and versatile angle sensor.
Specs
- 24x24x6mm
- 7mm hex bore to interface with GoBilda 8mm REX
- 16x16 M4 mounting pattern
Features
- Absolute Analog and Relative Quadrature output
- Differential Hall sensing for stray magnetic field immunity
- 100HZ update rate to reduce noise and match REV Control Hub polling rate
- TVS diode for ESD protection
CAD and Drawings
CAD Link (Onshape)↗
Dimension Drawing (pdf)
Analog Usage
The analog output of the encoder scales the voltage nominally from 0.043V to 3.1V as specced by the chip. To measure angle accurately in code, please reference the code below.
//Initialization Code
AnalogInput encoder = hardwareMap.get(AnalogInput.class, "encoder");
double offset = 0;
//Run in Loop
double angle = AngleUnit.normalizeDegrees((encoder.getVoltage()-0.043)/3.1*360 + offset);
Quadrature Usage
NO