New answers tagged

0 votes

Python code cannot detect my i2c address

The I2C bus requires pull-ups to 3V3 on the SDA and SCL pins. GPIO 2 (SDA) and GPIO 3 (SCL) have hard-wired 1k8 ohm resistors fitted on the Pi board. If you use different GPIO for the I2C bus you will ...
  • 69.3k
0 votes

i2cdetect doesn't catch ANY address (no device detection)

I had the same problem. I solved it by adding to the /boot/config.txt dtparam=i2c_arm=on dtoverlay=i2c1,pins_2_3 and reboot the PI.
  • 1
0 votes
Accepted

i2c Real Time Clock IC on Raspberry

Finally I found a solution!!!! No building custom modules is needed, only stock kernel configuration. The trick is that the I2c used bus IS NOT THE STANDARD ONE (i.e. usually with Raspberry the I2c ...
2 votes

How to run Hyperpixel 4.0 on I2C-0 (GPIO's 44&45)?

The I2C pins on the touch controller are wired to the software I2C pins (GPIO 10 & 11) on the display. Nothing you can do in software can move these PCB traces. The i2c_gpio driver that is loaded ...
  • 21
0 votes

i2c Real Time Clock IC on Raspberry

Fiddling with modprobe is ancient history (as are customised kernels). All modern Linux use Device Tree to configure hardware. There a i2c-rtc overlay which adds support for a number of I2C Real Time ...
  • 56.8k
0 votes

Change I2C address for ADS1015

I think the ADS1015 has 4 channels, all which can be read using the same address, you only need to change the I2C address if you have more ADS1015 chips or have a clash of addresses with other devices....
  • 1
0 votes

How can Rpi4B use python to talk to the I2C DHT20 / SHT20 temperature and humidity sensor?

It seems like smbus is deprecated, but smbus2 works as well. Just adapt the code of @ultracold: import time import smbus2 address = 0x38 #Put your device's address here i2cbus = smbus2.SMBus(...
  • 101

Top 50 recent answers are included