A very short tutorial (for my IoT students) explaining how to use the INA219 device to measure voltage and current in a circuit.
As with most of my projects, a Wemos D1 Mini is used to provide the control/sensing interface (rather than risking the GPIO pins on a Raspberry Pi).
The tutorial explains how to sense the voltage on the Wemos 3V3 and 5V pins (and the current flowing through a 330 ohm resistor acting as a 'light' load), and then goes on to connect a solar panel to the experiment.
Hi! I a have a question. I found this contrib for ina219 https://flows.nodered.org/node/node-red-contrib-easybotics-ina219-sensor . Do you thing that is compatible with raspberry pi 4? I'm new in and i don't have any practise with this. I tried your tutorial it was working with Wemos but I'm not sure about wiring and programming into rpi.