I was wondering whether it is possible to use Arduino as Ampmeter for about 100mA only .
I've seen some example with a shunt resistor so I wanted to play with mine and print on my LCD the current drain of the system (Arduino, lcd, and other stuff around.
I know it takes about 120-150mA but I can't get my project of printing it on the lcd (neither on the serial monitor). It always says 00.00mA !
I'm using a 0.48 Ohm resistor in series in the power line (two 1/4W , 1 Ohm resistor in parallel).
mesureUshunt = analogRead(A2); //prend l'intensité par résistance SHUNT 0.48 Ohm
mesureUshunt1 = map(mesureUshunt, 0, 1023, 0, 1000);
Icons = mesureUshunt1 / 475.953; //résistance de 0.47953565 Ohm
//print different data on serial monitor for control
Serial.print(" mesureUshunt ");
Serial.print(" Ushunt ");
Serial.print(" Icons ");
//print current drain (Icons) in mA on LCD
Is my resistor to small , so it is the voltage I'm trying to measure with the analogpin ?
I'd like to be able to measure from 0 to 500mA.
Any advice welcome.
I'm a beginner.