sagar saini
Published © GPL3+

DIY Current meter using Arduino

The basics of measuring the current. Making a own current sensor to measure the current using voltmeter. YES CURRENT USING VOLTMETER

IntermediateFull instructions provided1 hour6,386
DIY Current meter using Arduino

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
General Purpose Dual Op-Amp
Texas Instruments General Purpose Dual Op-Amp
×1

Software apps and online services

EasyEDA
JLCPCB EasyEDA
Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Custom parts and enclosures

Current meter Gerber

Current sensor Gerber

Schematics

Current meter schematics

Code

Arduino current meter

Arduino
// current meter
// We has 10mv per amp shunt amplified to 500mv per amp by OP-amp non-inverting confg. Rf=49, Rin= 1k 
// Now 0.5v= 1A,so we changed the output as current/2, which gives 0.5v as 0.5amp
// Resolution

#include <Wire.h> 
#include <LiquidCrystal_I2C.h>
int analogPin=1;
float current = 0;

LiquidCrystal_I2C lcd(0x27,16,2);  // set the LCD address to 0x27 for a 16 chars and 2 line display

void setup()
{
  lcd.init();                      // initialize the lcd 
  lcd.init();
  // Print a message to the LCD.
  lcd.backlight();
 
}
void loop()
{
  float c= analogRead(analogPin);
  current= c/1023*5.0;
  if (current<0.5)
  {
   lcd.setCursor(1,0);
   lcd.print("Current=");
   lcd.setCursor(4,1);
   lcd.print(current*1.1);
  delay(500);  
}
else{
      lcd.setCursor(1,0);
   lcd.print("Current=");
   lcd.setCursor(4,1);
   lcd.print(current);
  delay(500);  
}} 

Credits

sagar saini

sagar saini

78 projects • 81 followers
I am Sagar Saini an electronic hardware enthusiast

Comments