Hi guys, I have been trying to connect Raspberry Pi 4B to Arduino by USB port, and then connect Arduino UNO to several sensors by I2C. Successfully, I install and run Arduino IDE on my Raspberry Pi and also compile with it. However, there's something wrong when I run the scratch code "I2C scanner" (from Library <Wire.h>). I couldn't find any I2C address in my Arduino UNO BUT with the same assembling, I could find the correct I2C address when I connect Arduino UNO to my PC. Could anyone tell me what step might be forgotten when I'm running this project?
Hardware: Raspberry Pi 4B(Raspbian) / PC(Win 10) / Arduino UNO
Communication: Raspberry Pi - Arduino: USB / Arduino - MAX30102: I2C
And I found that the TX LED twinkles when I connect Arduino UNO to PC, but the TX LED is dead when I connect Arduino UNO to RBP