0

using INA219 with RaspberryPi4.
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

using INA219 with RaspberryPi4.

by DucDoug on Wed Jul 28, 2021 1:46 pm

Hi, 2 questions:
1) Raspberry Pi4 came with Thonny Python IDE and python 3.7.3. Will this be the same as Adafruit CircuitPython?
2) my script need INA219 module (from ina219 import ina219). After ina219 is installed (sudo pip3 install adafruit-circuitpython-ina219), python script still cannot find this? I cannot find its location using sudo find /var -name *ina219* either.

Thanks for help.

DucDoug
 
Posts: 6
Joined: Fri Apr 26, 2019 4:44 pm

Re: using INA219 with RaspberryPi4.

by mikeysklar on Thu Jul 29, 2021 5:30 pm

Try installing without sudo so it will be in your path. If you using sudo to install the libraries you often need to invoke python3 with sudo as well to find the libraries.

Code: Select all | TOGGLE FULL SIZE
pip3 install adafruit-circuitpython-ina219


You can use Thonny with CircuitPython.

https://learn.adafruit.com/circuitpytho ... onny-setup

We tend to recommend Mu.

https://learn.adafruit.com/welcome-to-c ... -mu-editor

mikeysklar
 
Posts: 5618
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.