Relative Content

Tag Archive for micropythonraspberry-pi-picoadafruitmotordriver

Reading encoder output in MicroPython (Pi Pico) doesn’t seem to work properly, any suggestions?

I’ve put together a pi pico, motor driver board, and a motor with 2 integrated hall effect encoders. The latter is from adafruit and the example code is written for Arduino. I’ve attempted to adapt this for MicroPython and my specific motor driver, but I just seem to get ‘0 RPM’ when the motor is moving, or when I manually move the encoder wheel. I’ve been at this for a while and I’m at a loss, any clue where I might be going wrong?