When I run i2cdetect -y 1 it comes up with a blank table. I have an adafruit 16 pwm servo hat connected. The servo hat functions on another raspberry pi (pi zero) but not on the raspberry pi 4.
I have installed ServoKit, i2c tools and python3-smbus (standard python-smbus comes back with an error of "has no installation candidate").
Anyone have any ideas on how to get this sorted?
Thanks,
formlessform
i2cdetect -y 1 Empty Table
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- formlessform
- Posts: 5
- Joined: Tue Nov 22, 2022 7:57 pm
Re: i2cdetect -y 1 Empty Table
Have an Adafruit 16 PWM Servo HAT connected to a Raspberry Pi 4B.
I get an error:
ValueError: No i2c device at address 0x40
When I try run:
import time
from adafruit_servokit import ServoKit
kit = ServoKit(channels=16)
kit.servo[0].angle = 180
kit.servo[4].angle = 20
time.sleep(0.5)
kit.servo[4].angle = 0
time.sleep(0.5)
kit.servo[0].angle = 0
Just as an fyi, i2cdetect -y 20 and i2cdetect -y 21 display contents, just not i2cdetect -y 1. Is that normal?
This exact same code runs perfectly when I connect the HAT to a raspberry pi zero.
Thanks
-formlessform
I get an error:
ValueError: No i2c device at address 0x40
When I try run:
import time
from adafruit_servokit import ServoKit
kit = ServoKit(channels=16)
kit.servo[0].angle = 180
kit.servo[4].angle = 20
time.sleep(0.5)
kit.servo[4].angle = 0
time.sleep(0.5)
kit.servo[0].angle = 0
Just as an fyi, i2cdetect -y 20 and i2cdetect -y 21 display contents, just not i2cdetect -y 1. Is that normal?
This exact same code runs perfectly when I connect the HAT to a raspberry pi zero.
Thanks
-formlessform
- adafruit_support_carter
- Posts: 29167
- Joined: Tue Nov 29, 2016 2:45 pm
Re: i2cdetect -y 1 Empty Table
The address should show up with
Please post a photo of both sides of the HAT removed from the Pi so we can look for any obvious hardware issues.
Code: Select all
i2cdetect -y 1
- adafruit_support_carter
- Posts: 29167
- Joined: Tue Nov 29, 2016 2:45 pm
Please be positive and constructive with your questions and comments.