Pan Tilt Hat Not Detected

Performed the following:

Enabled i2c via raspi-config and rebooted

curl https://get.pimoroni.com/pantilthat | bash

lsmod | grep i2c_
i2c_bcm2835 7167 0
i2c_dev 6913 0

sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – – – – – – – – – – – – –
10: – – – – – – – – – – – – – – – –
20: – – – – – – – – – – – – – – – –
30: – – – – – – – – – – – – – – – –
40: – – – – – – – – – – – – – – – –
50: – – – – – – – – – – – – – – – –
60: – – – – – – – – – – – – – – – –
70: – – – – – – – –

python ~/Pimoroni/pantilthat/examples/smooth.py

Traceback (most recent call last):
File “smooth.py”, line 6, in
import pantilthat
File “/usr/lib/python2.7/dist-packages/pantilthat/init.py”, line 15, in
pantilthat = PanTilt(i2c_bus=SMBus(1))
File “/usr/lib/python2.7/dist-packages/pantilthat/pantilt.py”, line 63, in init
self._set_config()
File “/usr/lib/python2.7/dist-packages/pantilthat/pantilt.py”, line 100, in _set_config
self._i2c_write_byte(self.REG_CONFIG, config)
File “/usr/lib/python2.7/dist-packages/pantilthat/pantilt.py”, line 191, in _i2c_write_byte
raise IOError(“Failed to write byte”)
IOError: Failed to write byte

Using latest Raspbian image

uname -a
Linux raspberrypi 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l GNU/Linux

Am I missing something obvious?

Not as far as I’m aware, is the Pan Tilt HAT pushed firmly down on the Pi?

Thanks, that’s what I thought. Tried a different rpi and it worked flawlessly.

Your i2c detect shows nothing detected. Hammer headers or soldered headers?

They’re soldered. The pi that doesn’t work I just bought, may be defective?

It’s possible, do you have another SD card to try in it? Or did you switch the SD card and Pan Tilt HAT over to your other Pi?

Same issue here. When I run gpio i2cdetect I get :
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – -- – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – 39 – -- – -- – --
40: 40 – -- – -- – -- – -- – -- – -- – -- –
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: 70 – -- – -- – -- –

Please help. I’m using RPi 4 with 4GB memory.

Do you have anything else connected to i2c?
Hat firmly attached to GPIO?

Hi, I get exactly the same issue than you. Same result for i2cdetect.
Did you finally find a solution ?
Thanks.

having the same issue as mentioned before ):