Zio Current & Voltage Sensor Qwiic Start Guide
This post is part of our Zio Qwiic Start Guide Blog Series.
Table of Contents
- Zio Qwiic Current & Voltage Sensor Overview
- Configuring your Zio Qwiic Current & Voltage Sensor
- Modules Connection Setup
- Testing example Code
This board can be used for many applications such as estimating battery life, measuring battery levels, tracking solar power generation or monitoring the amount and cost of electricity consumption.
It can measure voltage up to +26VDC, incorporating a 0.1 ohm shunt resistor for measuring the current (labeled at R100). The INA219 has a very precise rate on measuring voltage draw over the shunt. The current flow is determined along the voltage drop over the shunt, based on Ohm’s law. With the voltage and current known, the power can be also calculated.
- Power and Logic Pins
- Power Pins: VIN+, VIN-, GND, 3V3
- Logic Pins: SDA, SCL
- Qwiic connector
- Vin+ and Vin- Terminal
- INA219 IC
- R100 Resistor
This qwiic guide has a separate post on our development board guides. Check them out below:
You need to install the following libraries to your Arduino IDE before you can start programming your Zuino board with Zio Qwiic Current & Voltage Sensor.
Download the following libraries and save it on your local Arduino IDE libraries folder:
To install the libraries open your Arduino IDE, go to Sketch tab, select Include Library -> Add .Zip Library. Select the above libraries to be included on your IDE.
For this example, we will monitor the current & voltage value of our Zio Qwiic Ultrasonic Distance Sensor using the Zio Qwiic Current & Voltage Sensor.
1.Get Current Test
Open your Arduino
Go to File > Examples > Adafruit INA219 > getcurrent
Open Serial editor at 115200 baud rate to view the results
Got questions or suggestions? Or just want to greet us? Drop us a comment below!