Go Down

Topic: Evaluating the current consumption of IOT devices (Read 519 times) previous topic - next topic

RIN67630

Mar 14, 2018, 02:33 am Last Edit: Mar 14, 2018, 02:56 pm by RIN67630
When designing/programming Arduinos/IOT devices, i frequently had the problem of evaluating their current consumption, which is highly variable if you are using radios/WiFi modules.

The idea is to use this cheap device:

Mobile-Power-Current-and-Voltmeter-Ammeter

It is designed for usb, but works pretty well for any voltage between 3v and 9v (did not test higher).

The advantage is, that it displays the used mAh and the total time, so you can get easily an average over  a long time.

If you are tweaking your current consumption you will find that the measured intensity range is too high, you get only a 10mA resolution with theoretical a max range of 9,9A.
You can easily hack the device to diffeent mA sensitivity:
Changing the mA Range

On the back of the you will find a SMD 0,05Ω Resistor labeled R050.
You may remove it and use two 1Ω  in // instead which will give you a 1mA display resolution with a max of 1A.

Using two 10Ω resistors will give you 0,1mA resolution with a max range of 100mA respectively.

Enjoy!

robtillaart

And how can I connect it to my Arduino ? 
on batteries?
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

RIN67630

#2
Mar 14, 2018, 09:57 am Last Edit: Mar 14, 2018, 09:58 am by RIN67630
And how can I connect it to my Arduino ? 
on batteries?

The USB module is self-powered.
The easiest way to use it "off-USB" is to use an USB extender cable (1m or 50cm).

You cut the cable in the middle and connect:
-the +- power wires* of the female side to you battery or power supply
-the +- power wires* of the male side to your Arduino Vin/Vcc.
-the measurement device between the USB connectors.

Of course the measurement module has its own power consumption and will drain the battery by itself, so it is to be used just temporarily for evaluation. For operation without the mesurement unit, just connect the USB plugs of the extender cable together.

*the power wires are frequently red/black for +-, else connect the cut cable to an USB source and search with a voltmeter.

Go Up