manodeep
Published © Apache-2.0

DIY ammeter using Arduino

Current measurement device using Arduino.

BeginnerFull instructions provided10,574
DIY ammeter using Arduino

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
Resistor 1k ohm
Resistor 1k ohm
×2
5 mm LED: Red
5 mm LED: Red
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Ammeter

Code

Ammeter

Arduino
float Vacross,Iamp = 0;
const int Shunt_Res = 1000; //for 1k resistor

void setup() {
  Serial.begin(9600);
}

void loop() {
  Vacross = analogRead(A0);
   
  Vacross = (Vacross * 5.0) / 1023.0;
  Iamp = (Vacross * 1000) / Shunt_Res;
  
  Serial.print("Current = ");
  Serial.print(Iamp);
  Serial.println("mA");
  delay(1000);
}

Credits

manodeep

manodeep

0 projects • 4 followers

Comments