@vykintas52 wrote:
Hi friends,
I’m using Pan Tilt Hat from Pimoroni to control to servo motors. I found here (https://pinout.xyz/pinout/pan_tilt_hat) that Pan Tilt Hat uses 3 GPIO pins and 5V power to work. To my understanding it uses pins no. 2 (5V), 3,5 (I2C) and 36 (GPIO). For my pan tilt hat connection I use wires, as I need some stand-offs to fit my other components. Also I cannot afford to use all 40 pins by pan tilt hat. So I manually connect pins 2,3,5 and 36 to the hat. However, in such case, I get an error: IOError: Failed to write byte. It seems that it fails to communicate over I2C. When I connect my pan tilt hat directly to 40 pin header it works fine.
i2cdetect -y 1
gives me:
Thank you for helping.
Posts: 7
Participants: 3