i2cdetect -y 1 Empty Table

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
formlessform
 
Posts: 5
Joined: Tue Nov 22, 2022 7:57 pm

i2cdetect -y 1 Empty Table

Post by formlessform »

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

User avatar
formlessform
 
Posts: 5
Joined: Tue Nov 22, 2022 7:57 pm

Re: i2cdetect -y 1 Empty Table

Post by formlessform »

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

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: i2cdetect -y 1 Empty Table

Post by adafruit_support_carter »

The address should show up with

Code: Select all

i2cdetect -y 1
Please post a photo of both sides of the HAT removed from the Pi so we can look for any obvious hardware issues.

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: i2cdetect -y 1 Empty Table

Post by adafruit_support_carter »

Cross posted:
viewtopic.php?t=196371

Locking this thread. Will work in other thread.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”