TINKER PiEDESIGN IN INDIA

Current + voltage sensor INA219 with TinkerPie

Measure how much power a motor or solar panel uses.

TypeSmart sensors (I2C)
Connect toSENSOR port · 0x40
GivesV and mA
SimulatorYes: a control appears under the simulated board

How it works

The INA219 measures the small voltage across a tiny resistor (a shunt, 0.1 Ω) placed in the power wire. From that it works out the current, and it also measures the voltage, so you can calculate power (watts = volts × amps).

How to wire it

Plug into any SENSOR 1-4 port (SDA, SCL, 3.3 V, GND). Each type has a fixed I2C address, so different types can share the bus.

Code

In blocks: Accessories category in TinkerPie Studio. As code:

// JavaScript
sensors.powerVoltage()
sensors.powerCurrent()

// Arduino C++
sensors::powerVoltage()
sensors::powerCurrent()

Good to know

Try it in TinkerPie Studio

Similar modules

More projects to try

Questions

Can I try the Current + voltage sensor INA219 without buying one?

Yes. In TinkerPie Studio the simulator shows a control for it under the board, so you can test your program before you build it.

What can I learn with the INA219?

How much power a motor uses at different speeds, how much a solar panel makes during the day, or how long a battery will last.