Quantcast
Viewing all articles
Browse latest Browse all 4914

General discussion • unable to find my i2c slave

I'm using Raspi 5 to communicate with an Arduino via I2C.
In `raspi-config`, I enable I2C, and I set parameters in `/boot/firmware/config.txt`:

Code:

dtparam=i2c_arm=ondtparam=i2c_arm_baudrate=400000
I set the address at `0x08` for the slave.
But the slave device is still missing:

Code:

i2cdetect -y 1
With response:

Code:

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f00:                         -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --                            
I use serval slaves and get the same issue.

Diagnostics I have done so far:
  • the waves of `i2cdetect` without any slave connection (channel 1 for SCK and 2 for SDA):
    Image may be NSFW.
    Clik here to view.
    default.png
  • `raspinfo` shows a suspicious message:

    Code:

    i2c_designware 1f00074000.i2c: i2c_dw_handle_tx_abort: lost arbitration
    after reboot, there is no such message in `raspinfo`, but it shows again after I run `i2cdetect`.

Statistics: Posted by wangprice — Wed Jul 31, 2024 2:46 pm



Viewing all articles
Browse latest Browse all 4914

Trending Articles