Skip to content

Sensor: Relative Rotary Encoder SENSOR

Jaume Olivé Petrus edited this page Oct 30, 2017 · 3 revisions

Back to sensor blocks

Sensor information

What Comments
Interface 3 GPIO GPIO 1: A signal
GPIO 2: B signal
GPIO 3: SW signal (switch)
Read () from sensor
When () changes from sensor
dir -1: counter clockwise
0: no movement
1: clockwise
val encoder value
sw 0: switch released
1: switch pressed

This sensor requires debouncing by hardware.

Back to sensor blocks

Clone this wiki locally