Encoders and Odometry

20 views
Skip to first unread message

Pito Salas

unread,
Aug 11, 2025, 10:13:30 AMAug 11
to LINOROBOT
These motors typically have two encoders at a certain angle from each other. I thought technically you only need one in order to count ticks. Does the Linorobot2 code use both encoders? I ask because I have a motor where one of the two encoders does not work and the motor_test (as well as ROS) is not detecting the RPM of the motor. Thank you!

hipp...@gmail.com

unread,
Aug 25, 2025, 2:10:37 AM (14 days ago) Aug 25
to LINOROBOT
Yes, every encoder needs two inputs to work. Teensy uses software interrupts, while esp32 and pico use hardware pulse counter and PIO.

- Thomas

pito...@gmail.com 在 2025年8月11日 星期一晚上10:13:30 [UTC+8] 的信中寫道:

Chris Albertson

unread,
Aug 25, 2025, 12:26:40 PM (13 days ago) Aug 25
to hipp...@gmail.com, LINOROBOT
As of late I have been using these.   The cost is about $2.50 each if you buy ten.  They use a serial interface so only half as many pins are needed.   



They are non-contact so they don’t need to be precision mounted 0.5mm of “slop” is tolerable and gets calibrated out.  I use CA glue to put a magnet on the shaft and mount these with a tiny air gap.   I get about 4000 counts per rev.  They are very good for measuring robot joints.   But for controlling a BLDC motor you must use the SPI interface I2C is too slow.   There are several kinds, some low cost and some up to $15 that have better specs




--
You received this message because you are subscribed to the Google Groups "LINOROBOT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linorobot+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/linorobot/67341756-90e7-422a-92b4-51367e1cf19cn%40googlegroups.com.

hipp...@gmail.com

unread,
Aug 25, 2025, 7:17:44 PM (13 days ago) Aug 25
to LINOROBOT
Sometimes, the hall sensor is too far from the magnetic disc. You may bend it closer to the magnetic disc. But keep the hall sensor from touching the disc.

pito...@gmail.com 在 2025年8月11日 星期一晚上10:13:30 [UTC+8] 的信中寫道:
These motors typically have two encoders at a certain angle from each other. I thought technically you only need one in order to count ticks. Does the Linorobot2 code use both encoders? I ask because I have a motor where one of the two encoders does not work and the motor_test (as well as ROS) is not detecting the RPM of the motor. Thank you!
Reply all
Reply to author
Forward
0 new messages