This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] Battery monitor
#29
(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.
Reply


Messages In This Thread
[solved] Battery monitor - by Luckbert - 2017-09-01, 07:38 PM
RE: Battery monitor - by PaddyB - 2017-09-02, 10:30 AM
RE: Battery monitor - by Luckbert - 2017-09-02, 12:42 PM
RE: Battery monitor - by PaddyB - 2017-09-02, 12:56 PM
RE: Battery monitor - by tocan - 2017-09-02, 01:54 PM
RE: Battery monitor - by e-sailing - 2017-09-02, 02:33 PM
RE: Battery monitor - by Luckbert - 2017-09-03, 01:58 PM
RE: Battery monitor - by Luckbert - 2017-09-23, 04:16 PM
RE: Battery monitor - by tocan - 2017-09-23, 05:51 PM
RE: Battery monitor - by Luckbert - 2017-09-26, 09:30 AM
Battery monitor - by Alpenskipper - 2017-09-28, 02:26 PM
RE: Battery monitor - by Opie91 - 2018-02-27, 02:54 AM
RE: Battery monitor - by Lazzz - 2018-02-27, 08:17 AM
RE: Battery monitor - by Luckbert - 2018-02-27, 10:21 AM
RE: Battery monitor - by Opie91 - 2018-02-27, 11:48 PM
RE: Battery monitor - by Opie91 - 2018-03-01, 04:18 AM
RE: Battery monitor - by Opie91 - 2018-03-04, 01:01 AM
RE: Battery monitor - by Lazzz - 2018-06-09, 09:37 AM
RE: Battery monitor - by Opie91 - 2018-06-09, 02:45 PM
RE: Battery monitor - by Lazzz - 2018-06-09, 10:24 PM
RE: Battery monitor - by Lazzz - 2018-03-04, 04:59 AM
RE: Battery monitor - by Luckbert - 2018-03-04, 02:51 PM
RE: [solved] Battery monitor - by Luckbert - 2018-06-09, 09:47 AM
RE: [solved] Battery monitor - by Opie91 - 2018-06-10, 02:34 AM
RE: [solved] Battery monitor - by Lazzz - 2018-06-10, 05:12 AM
RE: [solved] Battery monitor - by Alethediver - 2018-07-28, 08:21 AM
RE: [solved] Battery monitor - by Opie91 - 2018-07-29, 01:55 PM
RE: [solved] Battery monitor - by tjmack - 2020-05-27, 02:36 PM
RE: [solved] Battery monitor - by SARASTRO - 2021-02-24, 08:09 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)