Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
INA219 with PI4
#4
Looks good. Now you should have the permission. The use of sudo is not required, but you have tested it with sudo and it did not work, which gives the hint, that the file/device does not exist.

I guess the i2c module is not loaded. You have to activate i2c on your Raspberry Pi.

Run raspberry-config: https://www.raspberrypi.org/documentatio...-config.md
Then activate i2c in "Interfacing Options"

After activation you could install i2c-tools, if they aren't installed.
Usually it should be already preinstalled.
If not:
apt-get update && apt-get install i2c-tools
Then run:
i2cdetect -y 1
This will show you all connected i2c devices on bus number 1. Bus number 0 is a different one, which is connected internally somewhere.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
INA219 with PI4 - by korenron - Nov-04-2019, 11:40 AM
RE: INA219 with PI4 - by DeaD_EyE - Nov-04-2019, 04:42 PM
RE: INA219 with PI4 - by korenron - Nov-05-2019, 12:11 PM
RE: INA219 with PI4 - by DeaD_EyE - Nov-05-2019, 01:19 PM
RE: INA219 with PI4 - by korenron - Nov-05-2019, 01:55 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020