using INA219 with RaspberryPi4.

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
DucDoug
 
Posts: 6
Joined: Fri Apr 26, 2019 4:44 pm

using INA219 with RaspberryPi4.

Post by DucDoug »

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.

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: using INA219 with RaspberryPi4.

Post by mikeysklar »

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

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

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”