Single-turn Analog Encoder Configuration with Teensy

Hello everyone,

I am working on an AgOpenGPS steering setup and want to use an analog encoder mounted on the steering gear. Most analog encoders I have found are single-turn (0-5V over 360°), but I need the encoder to correctly track multiple turns.

My idea is to:

  • Use a single-turn analog encoder (e.g., 0-5V output).
  • Process the signal using a Teensy 4.1 with the AIO 4.5 Board
  • Implement a software-based solution to count rotations and create a multi-turn effect.

My questions:

  1. Is this functionality already built into the AgOpenGPS software, or do I need to program it myself on the Teensy?
  2. Is it possible to write logic in the Teensy to track when the voltage transitions from 5V back to 0V (or vice versa) to correctly count the number of rotations? Does anyone have experience with this or know of a better solution?

I’d love to hear your thoughts before purchasing all the parts!

Best regards,
Ticeman11

Is the steering using an orbitrol or direct mechanical linkage?

The functionality os not in the current Teensy firmware. You would have to create the routines to track how many revolutions clockwise and counter-clockwise.

My steering setup has a direct mechanical linkage. The encoder and motor are both connected to a gear that is mounted on the steering shaft.

This is because you want to use it as wheel angle sensor (WAS)?

Or what is the interest in monitoring the steering wheel turns?

You could also think about using quadrature encoder, they give an X number off pulses per turn.

Hello pat
I am going for a quadrature encoder , thanks

@Ticeman11 Would love to hear how you came along with this? I’ve been thinking of something similar. I used a Danfoss encoder years ago building tractors and it was CAN based, easy to use. I believe this is also how Fieldbee works with their steering wheel replacement.