Encoders on Inventor HAT Mini

Interesting! Thank you for testing that. So the encoders are fine (yes I know you said that before but this is actual evidence), but there’s still unknowns whether the signals are not getting to the IHM or if the IHM firmware/software is not behaving correctly.

Unless I missed it (quite likely!), I don’t believe you specifically asked for a picture of the physical pinout before. Anyway, here you go:

  • 1 = MOT +
  • 2 = MOT -
  • 3 = 3.3V
  • 4 = ENC A
  • 5 = ENC B
  • 6 = GND

About that wiring setup your mentioned for connecting to the Pi, IHM actually supports 2 additional encoders via its GPIO pins. Perhaps you could try wiring the motor up to GPIO 1 and GPIO 1 and running this example inventorhatmini-python/examples/extras/gpio_encoder.py at main · pimoroni/inventorhatmini-python · GitHub (connecting 3.3V and GND of course)

If that works, then that points to the firmware/software of IHM being correct, but there being an electrical issue between the motors and IHM (either in the cable, or in the PCB itself)

If that does not work, then that is certainly a firmware/software issue, though I honestly could not tell you what would be failing there if the program is not returning any error. Incorrectly flashed at our factory?? I don’t know.

That would be a case of reach out to support for a replacement, and to return your current units so I can test them personally. It may also be worth getting our cables bundled in at the same time too.