Rotary Angle Sensor

Documentation for the Grove Rotary Angle Sensor driver.

class zorg_grove.rotary_angle_sensor.RotaryAngleSensor(options, connection)[source]

Bases: zorg.driver.Driver

This may also be known as a potentiometer.

read_angle()[source]

Read and return the current angle of the sensor in degrees. The rotary angle sensor produces analog output between 0 and Vcc (D1).