I am trying to connect a Pan Til Module I bought from Amazon that has a Pan Tilt Hat with my raspberry pi
Raspberry pi boots up, i2c is enabled and i2cdetect -y 1, indicates that 0x39, 0x40 and 0x70 are available/enabled.
None of the examples at https://github.com/pimoroni/pantilt-hat/tree/master/examples work. After debugging I finally got one stepper to move. (I had to change the example to use
import pantilthat as p
pantilthat = p.PanTilt(address=0x40)
from just importing pantilthat and using it rather than using the default address of 0x15.
Now one stepper moves when i pan(90) but pan (-90) also moves the stepper in the same direction instead of in the opposite direction. The other stepper does not respond at all with the tilt command.
Is the different address typical? Or is the module faulty. This is the module at amazon https://www.amazon.com/MakerFocus-Raspberry-Controller-Intensity-Resolution/dp/B07PVS85VK