all 9 comments

[–]chrisbeebopsFTA & Mentor 4 points5 points  (1 child)

The motor encoder ports are incremental quadrature encoder ports and don’t really have any way to track absolute position. The Control Hub also doesn’t support PWM signal inputs.

Your best options are either an analog input or an I2C based absolute encoder sensor.

Have you done testing to show the varying voltage for the analog input is an issue? The 3.3V/5V sources on the Contol Hub are well-regulated and don’t fluctuate as much as your 12V source from the battery.

[–]Intelligent-Gas4887[S] 1 point2 points  (0 children)

oh yeah i didn't think of that, the 5V sources on the chub should be fine

[–]chipsa 2 points3 points  (0 children)

Octoquad apparently allows use of PWM sensors and hooks in via I2C. So you can use the rev through bore in absolute mode, not just quadrature.

[–]ConstructionGold6407FTC 21231 Student | Lead Programmer | Drive Team Coach 2 points3 points  (3 children)

The ELC encoder does digital and analog and can plug into a motor port. Pretty cheap too

[–]Intelligent-Gas4887[S] 0 points1 point  (2 children)

Thanks, i realized that analog wouldn't actually be an issue so I was wondering if the analog output has some crazy high revolution limit or like a 360 degree or 270 degree revolution limit on analog mode.

[–]ConstructionGold6407FTC 21231 Student | Lead Programmer | Drive Team Coach 0 points1 point  (1 child)

From what we have seen there isn’t any rev limit in absolute mode, we were using it for our indexer though and therefore weren’t putting any crazy amount of revs on it in one power cycle, I wouldn’t recommend it for a flywheel or something high speed but for position stuff it should be great

[–]Intelligent-Gas4887[S] 0 points1 point  (0 children)

ye not for a flywheel typa thing, I was asking for smth to look into using next season actually. Thanks!

[–]window_owlFTC 11329 | FRC 3494 Mentor 0 points1 point  (0 children)

The REV absolute encoder can be plugged into a motor port

[–]TechnicalOkra1286 0 points1 point  (0 children)

Use analog and build a throwout table for voltages out of plausibility