2021-02-24, 08:09 PM
(2020-05-27, 02:36 PM)tjmack Wrote: This is an old thread but I like what was done with an INA3221 in OP1. Could someone give me some pointers for doing this in OP2? Specifically, how do I insert the program in OP2 where there isn't a "Tools" folder? I am new to this and I'm still at a point where I do 95% of my python by copying examples. Thanks in advance.
A simple way is to start Voltage_Code_1.Py at boot using rc.local.
I put both files (Votage_Code_1.py and SDL_pi_INA3221.py in a new folder /home /pi/voltimetro)
So, add anew line in /etc/rc.local, with.
sudo python /home/pi/voltimetro/Voltage_Code_1.py
And all will work.
NOTE: I bought a breadboard from TECNOIOT, that has both three shunt resistances connected to POW. So; its necessary to cut the PC connection between them in three points to get it Ok for separate reading of all channels.