Introduction: Digital Ammeter Using Arduino

About: hIOTron is an IoT Based company that offers IoT Platforms, IoT Solutions, IoT Training.

In this project, we are going to measure the current using ohm's law.

Supplies

Hardware Components

Arduino Uno

10k pot

Multimeter

Connecting wires

Resistor 22ohm

LED

LDC 16X2

Software Application

Arduino IDE

Step 1: About Project

As we all are aware of ohm's law, which states that

V=IR

Where V= voltage in volt (v)

I= Current in Ampere (A)

R= Resistance in ohm (Ω)

To find I we have to use I= V/R

This Ammeter circuit contains a resistor and LED as a load. The resistor is attached in series to the LED that current flows via the load and voltage drops are discovered from the resistor. In the ADC of Arduino that modifies the voltage into 10-bit resolution numbers from 0-1023.

So we require to modify it in voltage value bu utilizing the programming. The value of voltage from the ADC of Arduino is ranged between 0-1023 and the reference voltage is ranges between 0-5v. From the above voltage value and by dividing it with 22 ohm we can calculate current. Here we have utilized the value of 22ohm resistor as current sensor.

IoT Training Online will give you a thorough view of such IoT Applications.

Step 2: Run a Program

#include LiquidCrystal lcd (7,8,9,10,11,12); void setup() { // put your setup code here, to run once: Serial.begin(9600); lcd.begin(16,2); lcd.clear(); } void loop() { // put your main code here, to run repeatedly: int voltage_value0 = analogRead(A0); int voltage_value1 = analogRead(A1); int subraction_value =(voltage_value0 - voltage_value1) ; float temp_val = (subraction_value*0.00488); float current_value = (temp_val/22); Serial.print(current_value); lcd.setCursor(0,0); lcd.print("current value="); lcd.setCursor(0,1); lcd.print (current_value); lcd.print("A"); delay(1000); }