Sem8th-Final Project Report-Mkhatri
Sem8th-Final Project Report-Mkhatri
Submitted by
This is to certify that Project work embodied in this report entitled “DESIGN
Date:
Place: Kera-Kutch, Gujarat INDIA
Acknowledgement
2
It would impossible to name each and every individual who had offered the support
encouragement and idea which made this user defined project a possible thing. We are
greatly thankful to our internal guide prof. M. S. Thacker of “HJD Institute of Technical
Education and research, Kera – Kutch, Gujarat INDIA” who has given us a tremendous
effort for shaping our idea and knowledge according to industrial requirement. He had
helped us on reaching each and every milestone of the project, he had encouraged us every
failure during the project, and he has increased our confidant with every success in the
project. We are also thankful to our Head of the Department, Prof. P. R. Makad and other
professors of the Electrical Department of our collage.
3
Abstract
The demand for power has increased exponentially over the last century. One
avenue through which today’s energy problems can be addressed is through the reduction
of energy usage in households. This has increased the emphasis on the need for accurate
and economic methods of power measurement.
The main object of the project is to develop smart energy meter where it is not only
used to measure the consumer’s power consumption in KWH but also enable and support
real consumption in rupees according to consumer tariff, so meter reader don’t need to visit
each customer for the consumed data collection and to distributed the bill slip. In our
developed prototype of Smart Energy meter do not have any rotating parts. The energy
consumption is calculated using measurement voltage and current with help of potential
divider and ACS712, measure voltage and current respectively. Power product of voltage
and current, its unit watt or KW and energy is product of power (watt) and time (Hour). We
have used above mentioned formulas for calculating Total Energy Consumption of
consumer with Arduino Programming.
Microcontroller has an interface and we are using 16 X 2 LCD, it is used to show important
unit measurements such as voltage, current, frequently, active and reactive power and
power factors.
4
INDEX
Title Page
No.
Title page I
Certificate II
Acknowledgement III
Abstract IV
1. Introduction and project overview 7
1.1 1.1 Introduction 7
1.2 Overview 7
1.2.1 Basic types of energy meter 7
2. Literature Survey 10
2.1 Paper study- 1 10
2.2 Paper study- 2 10
3. Power and Power Measurement 11
3.1 Power 11
3.2 Power Measurement 13
3.3 Power factor 18
4. Arduino Microcontroller 19
5. AC Power Measurement 21
5.1 Current Measurement using Arduino 21
5.2 Voltage Measurement using Arduino 24
5.3 Equipments 26
5.4 Power Measurement using Arduino 29
5.5 GSM Module Shield 33
5.6 Result of Measurement 35
6. Conclusion 37
6.1 Conclusion
6.2 Scope for work
7. Reference 38
8. Appendix – (A) Source Code 39
9. Appendix – (B) ACS712 Current Sensor Datasheet 49
5
TABLE OF FIGURES
Sr. Figure No. & Title Page
No. No.
1. Figure-(a) Analog Electronic Energy Meter 8
2. Figure-(b) Digital Electronic Energy Meter 9
3. Figure-(c) Power Measurement-1 13
4. Figure-(d) Power Measurement-2 15
5. Figure-(e) Electrodynamometer Wattmeter 15
6
Chapter 1 Introduction and Project Overview
1.1 Introduction
7
1.2.1.2 Electronic Energy meters
These are of accurate, high procession and reliable types of measuring instruments
as compared to conventional mechanical meters. It consumes less power and starts
measuring instantaneously when connected to load. These meters might be analog or
digital. In analog meters, power is converted to proportional frequency or pulse rate and it
is integrated by counters placed inside it. In digital electric meter power is directly
measured by high end processor. The power is integrated by logic circuits to get the energy
and also for testing and calibration purpose. It is then converted to frequency or pulse rate.
- Analog Electronic Energy Meters
In analog type meters, voltage and current values of each phase are obtained by
voltage divider and current transformers respectively which are directly connected to the
load as shown in figure.
9
Chapter 2 Literature Survey
10
Chapter 3 Power and Power Measurement
3.1 Power-
Power means rate of expanding energy. The unit of power is watt (joule per second
j/s ). In DC circuit and purely resistive AC circuit power is product of voltage and current.
For reactive AC circuit the product of r.m.s values voltage and r.m.s value of current is
called apparent power (VA).
The potential difference in volts between two points is equal to the energy per unit
charge (in joules/coulomb) which is required to move electric charge between the points
since the electric current measure the charge per unit time (in coulomb/second). The
electric power P is given by the product of the current I and the voltage V (in joule/sec =
watts).
Where,
Q=electric charge in coulombs
t=time in sec.
I=electrical current in ampere
V=electrical potential or voltage in volts
3.1.1 DC Circuit Power-
In a dc circuit if VL is the voltage supped to load and IL is the load current ten the dc
load power is given by the product of the load supply voltage V L and the load current I L
thus,
Pdc = VL IL watt
If RL is the resistance of the load than,
11
3.1.2 AC Circuit Power-
In alternating current circuit due to energy storage element such as inductance and
capacitance may result in periodic reversals of the direction of energy flow.
Thus,
Where,
V = r.m.s. value of the voltage=Vm/√ 2
I = r.m.s. value of the current=Im/√ 2
Cosφ = power factor of circuit
Φ = power factor angle=V^I
The production of power flow that avarage over a complate cycle of the ac waveform
result is net transfor of energy is one cycle is known as real power (active power ) it is
power consumed by the resistive element in the circuit active power is the power that is
actualy being consume by the load.
3.1.4 Reactive Power–
The portion of the power flow due to storage element that return to the source in each
cycle is known as reactive power When the voltage and current are perodic with same
functional frequency. the instantaneous power is also perodic with twice the functional
frequency.
12
3.1.5 Avarage Power-
Average power is defined as energy transfer rate average over many peroid of the
lowest frequncy in signal. It is also defined as average amount of workdone or energy
converted per unit of time, if ∆ ω is the amount of work performed during a period of time
∆t .
The average power Pavg over the period is given by the formula
Pavg=∆ ω/∆ t
3.1.6 Instantaneous Power-
The instantaneous power is than the limiting value of average power as the time
interval ∆ t approaches zero.
P=Limit→ avg
Electric power is generally developed by electric generator but can also be supplied
by chemical source such as electric battery. Electric power generally supplied to businesses
and home by the electric power energy.
13
The ammeter measures the load current Il and there is voltage drop Va=IlRa across
the ammeter where Ra is the ammeter resistance.
VL = V - Va
PDC = VLIL = (V – VA)IL
Pdc = VIL – VAIL
Where,
Hence the product of ammeter and voltmeter does not give correct power
consumed by the load.
If the voltmeter is shifted across the load to measure the load voltage, the
circuit becomes as shown in the Fig.
Where,
14
Figure-(d) Power Measurement-2
This by any method, the power measured is higher than the power actually
consumed by the load. The power loss in the instrument near the load causes the error.
3.2.2 Using wattmeter
3.2.2.1 Dynamometer –
A dynamometer can measure power in both DC and AC systems. A dynamometer
has two coils: static coil and movable coil. It uses the interaction between the
magnetic fields produced by the currents in two coils or sets of coils to measure
power. Torque is proportional product of current in current coil and current in
voltage coil. The Accuracy of dynamometer is nearly 0.25 %.
15
3.2.2.2 Digital wattmeter (up to 100 kHz)–
A modern digital electronic wattmeter/energy meter samples the voltage and
current thousands of times a second. For each sample, the voltage is multiplied by
the current at the same instant; the average over at least one cycle is the real power.
A computer circuit uses the sampled values to calculate RMS voltage, RMS current,
VA, power (watts), power factor, and kilowatt-hours. The readings may be
displayed on the device, retained to provide a log and calculate averages, or
transmitted to other equipment for further use.
Real and reactive powers can also be calculated directly from the apparent power,
when the current and voltage are both sinusoids with a known phase angle θ between them:
16
In Multisim power can be measured using various methods like 1-wattmeter
method, 2-wattmeter method, 3-wattmeter method. One such method is discussed in
detail here.
Two wattmeter method: In this method power is measured for three phase balanced
loads using two wattmeter. The total power consumed is calculated using the below
formula.
Where,
The ratio between real power and apparent power in a circuit is a called the power
factor it is a practical measure of the efficiency of a power distribution system.
For example if two system transmitting transfer equal amount of real power, if one
transmitting system have lower power factor so higher circulating current due to energy to
the source from energy storage in the load due to higher current its produced higher losses
and efficiency of transmission line is decrease and a lower power factor circuit subjected to
higher apparent power and higher losses for equal or same value of real power.
When voltage and current waveform are in a phase than power factor is unity and when
current leads or lags to the voltage by 90 degree when power factor is zero. Basically power
factor state as ‘leading’ or ‘lagging’ to show the sign of phase angle of current with respect
to voltage.
In purely capacitive circuit supply is reactive power so current lead the voltage by 90
degree which purely inductive circuits property of inductance is absorb reactive power so
current waveform lagging to the voltage waveform by 90 degree.
That means if capacitor and inductance connected in single circuit that cancel out effect
of each other.
When the system waveform is purely sinusoidal the power factor is the cosine of the
phase angle between the I V sinusoidal waveform.
18
Chapter 4 Arduino Microcontroller
In our project we have used Arduino Uno board has a digital input / output pins, six
analog inputs, 6 PWM pins and 16Mhz ceramic resonator a power jack on OICSP heady
and a reset button it has on board one USB to serial convert and connect to computer using
USB cable.
Features of Arduino Uno board-
It is based on AI mega 328 microcontroller
Input voltage range is 7.12V.
Digital I/O pins is 14 (of which 6 pin provide PWM output)
6 analog input pins.
32KB flash memory 0.5KB used by boot leader.
16MHz clock speed.
DC current for I/O pin 40mA.
19
Figure-(h) Arduino Uno board
20
Chapter 5 AC Power Measurement using Arduino
• ACS 712-
21
Figure-(j) ACS 712 Sensors
.
The ACS712 device comes in three variants, providing current range of±5A
(ACS712-05B), ±20A (ACS712-20B), and ±30A (ACS712-30A). The ACS712-05B
can measure current up to ±5A and provides output sensitivity of 185mV/A (at +5V
power supply), which means for every 1A increase in the current through the
conduction terminals in positive direction, the output voltage also rises by 185 mV. The
sensitivities of 20A and 30A versions are 100 mV/A and 66 mV/A, respectively
The variable power supply consist of an AC input circuit and transformer, a bias
supply consisting of an rectifier, filter, pre-regulated and reference voltage source, a
main regulating circuit consisting of the main rectifier and filter, a series regulator, a
current comparator, voltage comparator, reference voltage amplifier and relay control
circuit.
Single phase power is applied to transformer through the input circuit and
auxiliary rectifier provides bias voltage is filtered by capacitor that provides a regulated
voltage for element of active. The main rectifier, a full wave bridge rectifier, provides
the power which is filtered by capacitor and derivers to the output.
22
•
Figure-(l) Output Result of DC Power measurement
23
5.2 Voltage Measurement using Arduino –
5.2.1 Voltage sensor
Voltage is a force that makes to move electricity through wire Voltage is electric
potential energy per unit charge measured by joules per coulomb. It has unit as volt. It’s
also used to define the potential difference between two points. Voltage is always measured
between two points, for example between the positive and negative ends of battery, or
between a wire and ground.
24
5.2.1.2 Output waveform of Voltage Circuit -
The output of voltage divider circuit is so small around 1.5 to 2v.for eliminating the
negative portion of signal we have added the DC voltage offset so resultant output of
voltage circuit is violet between 0 to 5v corresponding 230v ac voltages.
25
5.3 Equipments –
5.3.1. Transformer –
The step-down converters are used for converting the high voltage into low voltage.
The converter with output voltage less than the input voltage is called as a step-down
converter, and the converter with output voltage greater than the input voltage is called as
step-up converter. There are step-up and step-down transformers which are used to step up
or step down the voltage levels. 230V AC is converted into 12V AC using a step-down
transformer. 12V output of step-down transformer is an RMS value and its peak value is
given by the product of square root of two with RMS value, which is approximately 17V.
5.3.2. Rectifier –
Bridge rectifier consists of four diodes which are connected in the form a bridge.
We know that the diode is an uncontrolled rectifier which will conduct only forward bias
and will not conduct during the reverse bias. If the diode anode voltage is greater than the
cathode voltage then the diode is said to be in forward bias.
During positive half cycle, diodes D2 and D4 will conduct and during negative half
cycle diodes D1 and D3 will conduct. Thus, AC is converted into DC; here they obtained is
not a pure DC as it consists of pulses. Hence, it is called as pulsating DC power. But
voltage drop across the diodes is (2*0.7V) 1.4V; therefore, the peak voltage at the output of
this rectifier circuit is 15V (17-1.4) approx.
26
Figure-(p) Bridge rectifier
5.3.3. Rheostat –
It is a variable resistance usually consistence of a coil of a wire have two terminal
one is fixed and other is sliding contact that move along the coil to tap of the current
rheostat adjustable resistors so connected that it is resistance to be changed without opening
electrical circuit in which it is connected there by controlling the current in the circuit.
Figure-(q) Rheostat
5.3.4. IC7805 –
Voltage regulator IC's are the IC’s that are used to regulate voltage. IC 7805 is a 5V
Voltage Regulator that restricts the voltage output to 5V and draws 5V regulated power
supply. It comes with provision to add heat sink.
27
Figure-(r) IC7805
The maximum value for input to the voltage regulator is 35V. It can provide a
constant steady voltage flow of 5V for higher voltage input till the threshold limit of 35V.
If the voltage is near to 7.5V then it does not produce any heat and hence no need for heat
sink. If the voltage input is more, then excess electricity is liberated as heat from 7805.
5.3.5. Display –
LCD (Liquid Crystal Display) screen is an electronic display module and find a
wide range of applications. A 16x2 LCD display is very basic module and is very
commonly used in various devices and circuits. These modules are preferred over seven
segments and other multi segment LEDs. A 16x2 LCD means it can display 16 characters
per line and there are 2 such lines. In this LCD each character is displayed in 5x7 pixel
matrix.
28
5.4 Power Measurement using Arduino –
The power is an A.C. circuit is given by the relation,
P = V*I*cos Ø
Such that cos Ø power factor of circuit .purely inductive and capacitive circuits do
not consume any power because load waveform of such type of circuits are voltage and
current are out of phase means the phase difference between them equal to zero cos 90=0
so power in load is P=V*I*0=0
Whereas resistive load the waveform of voltage and current are in phase means the
phase difference between them equal to zero cos 0=1 so power in resistive load is P=V*I
only.
29
5.4.2 Flow chart of power measurement-
31
Figure-(x) smart energy meter
32
5.5 GSM Module Shield –
The Arduino GSM Shield connects your Arduino to the internet using the GPRS
wireless network. Just plug this module onto your Arduino board, plug in a SIM card from
an operator offering GPRS coverage and follow a few simple instructions to start
controlling your world through the internet. You can also make/receive voice calls (you
will need an external speaker and microphone circuit) and send/receive SMS messages.
The Arduino GSM Shield allows an Arduino board to connect to the internet,
make/receive voice calls and send/receive SMS messages. The shield uses a radio modem
M10 by Quectel. It is possible to communicate with the board using AT commands. The
GSM library has a large number of methods for communication with the shield.
We have used SIM900 model of GSM Module shield, The Arduino GSM Shield
allows an Arduino board to connect to the internet, make/receive voice calls and
send/receive SMS messages. The shield uses a radio modem M10 by Quectel. It is possible
to communicate with the board using AT commands. The GSM library has a large number
of methods for communication with the shield.
GPRS module is a breakout board and minimum system of SIM900
Quad-band/SIM900A Dual-band GSM/GPRS module. It can communicate with controllers
via AT commands (GSM 07.07 ,07.05 and SIMCOM enhanced AT Commands). This
module supports software power on and reset.
Features:
Quad-Band 850/ 900/ 1800/ 1900 MHz
Dual-Band 900/ 1900 MHz
GPRS multi-slot class 10/8GPRS mobile station class B
Compliant to GSM phase 2/2+Class 4 (2 W @850/ 900 MHz)
Class 1 (1 W @ 1800/1900MHz)
Control via AT commands (GSM 07.07 ,07.05 and SIMCOM enhanced
AT Commands)
Low power consumption: 1.5mA(sleep mode)
Operation temperature: -40°C to +85 °C
Specification:
33
Electrical Characteristics:
Pi
Interface Description
n
Rx 4 UART data in
- 7 GND
+ 8 VCC
Installation
Power on GPRS module
User can power on the GPRS module by pulling down the PWR button or the P pin of
control interface for at least 1 second and release. This pin is already pulled up to 3V in the
module internal, so external pull up is not necessary. When power on procedure is
completed, GPRS module will send following URC to indicate that the module is ready to
operate at fixed baud rate.
34
Indicator LED and Buttons:
NETSTATUS: The status of the NETSTATUS LED is listed in following table:
Status Description
64ms On/3000ms
SIM900 registered to the network
Off
PWR: After the GPRS module power on, you need to press the POWER button for a moment to power
on the SIM900 module.
35
Figure-(y) Result of First load
36
Chapter 6 CONCLUSIONS
Conclusion
Power measurement is done for resistive loads using Arduino environment. Results for the
various loads are shown in simulation. Arduino Power Measurement is an advanced
method of determining power and this method is more advantageous than other software’s
such as matlab. The advantages of Arduino over other software’s are it simplifies the
amount of hardware and software development required in order to get a system running. In
this also measure the energy consumption in real value and also store its display with help
of 16*2 LCD display. It is open source software and can be extended by experienced
programmers. Arduino has simple and clear programming environment and also has a
quicker writing code.
37
Reference:
[1] An Automated Energy Metering System - Home Based Approach Aswathy P.R1,
C.Shanthi2
[2] A COGNITIVE ENERGY DISTRIBUTION SYSTEM SANUKRISHNAN S.B.
[3] A Novel Approach for Automatic Monitoring of Power Consumption using Smart
Meter P. Saraswathi1, M. Prabha2
[4] YoMo - The Arduino-based Smart Metering Board Christoph Klemenjak, Dominik
Egarter, and Wilfried Elmenreich Institute of Networked and Embedded
SystemsAlpen- Adria-Universit¨atKlagenfurt,Austria {name.surname}@aau.at
[5] Development of a prototype for remote current measurements of PV panel using WSN
S. Zahurula*, N. Mariuna , V. Grozescub , M. Lutfia , H. Hashima, M. Amrana,
Izhamc
[6] Design and Building of a Cheap Smart Meter Arne Ellerbrock, Student Member,
IEEE, Ahmad Abdel-Majeed
[7] Energy and Water Monitoring System for Smart Metering and Consumer Awareness
Shiu Kumar
[8] Programming in ANSI C Balagurusamy Tata McGraw-Hill Education, 2008
[9] MOOC - Coursera - The Arduino Platform and C Programming by Prof. Ian Harris
Associate Professor, The University of California, Irvine
[10] MOOC - Coursera - Interfacing with the Arduino by by Prof. Ian Harris Associate
Professor, The University of California, Irvine
[11] Getting Started with Arduino, 2nd Edition By Massimo Banzi
[12] Arduino Cookbook 2nd Edition by Michael Margolis
[13] ARDUINO WITH GSM - Making a Call & Sending SMS
Ref. https://youtu.be/WAvZ3SSQR74
[14] Arduino connected to an Android phone via Bluetooth (JY-MCU module) Ref.
https://youtu.be/K1S6G4_eCZM
[15] Arduino Tutorial Series by Jeremy Blum
Ref. https://youtu.be/fCxzA9_kg6s?list=PLA567CE235D39FA84
[16] Measurement of Power and Energy Using Arduino - ISCA
Ref. www.isca.in/IJES/Archive/v2/i10/2.ISCA-RJEngS-2013-115.pdf
Source: Oct 24, 2013 - Research Journal of Engineering Sciences. ISSN 2278 –
9472. Vol. 2(10) ... Srividyadevi P., Pusphalatha D.V. and Sharma P.M.. Gokaraju
[17] An automated energy metering system Home based approach.
Aswatht D. R. ,C. shabthi , International journal of advance research in electrical,
electronics and instruments engineering.
Ref. www.ijets.in/Downloads/Published/E0160303021.pdf
38
Appendices:
Appendix A: Source Code
Description: Arduino program for measuring power displaying using LCD
/*
@Author : Mayur Khatri
Description: Smart Energy Meter
Last Edited: 01-May-2016
Implementatation: GSM Module shield implementation with arduino
tested with LCD.
*/
#include <SoftwareSerial.h>
#include <LiquidCrystal.h> // Importing LCD Library file
/*
* RS: Pin 12
* EN: Pin 11
* D4: Pin 5
* D5: Pin 4
* D6: Pin 3
* D7: Pin 2
*/
LiquidCrystal lcd (12, 11, 5, 4, 3, 2); //lcd display pin
void setup()
{
Serial.begin(19200);
SIM900.begin(19200);
delay(500);
SIM900.print("AT+CLIP=1\r"); // turn on caller ID notification ,
to get missed call number
delay(100);
lcd.begin(16,2); // Display Columms, Rows and Size
lcd.clear();
40
SIM900.print("Dear Customer, Your Energy Consumption is :");
SIM900.print(sumWH);
SIM900.print(" and Total Billing is Rs. ");
SIM900.print(sumRupees);
delay(100);
SIM900.println((char)26); // ASCII code of CTRL+Z
delay(100);
}
void energyCalculations()
{
// getting voltage from Input PIN
Voltage = getVPP(0);
vrms = (Voltage / 2.0) * 0.707 * 575; //find total voltage
Serial.print("VOLTAGE : ");
Serial.print(vrms);
Serial.println("Volt");
// getting current from Input PIN
current = getVPP(1);
irms = (current / 2.0) * 0.707 * 1000 / mVperAmp;
Serial.print("CURRENT :");
Serial.print(irms);
Serial.println("Amps");
power=(vrms * irms * 0.3099);
Serial.print("POWER :");
Serial.print(power);
Serial.println("watt");
41
WH = (power / 3600);
Serial.print("ENERGY CONSUMED :");
Serial.print(WH);
Serial.println("Watt-Hour");
rupees = getReading();
Serial.print("ENERGY CONSUMED IN RUPEES :");
Serial.print(rupees);
Serial.println("Rs.");
42
delay(1000);
lcd.clear(); // clear the screen
lcd.setCursor(1,0); // set the cursor at 1st col and 1st row
lcd.print(WH);
lcd.print("WH ");
lcd.setCursor(1,1); // set the cursor at 1st col and 2nd row
lcd.print(rupees);
lcd.print("Rs.");
delay(1000);
lcd.clear(); // clear the screen
lcd.setCursor(1,0); // set the cursor at 1st col and 1st row
lcd.print(sumWH);
lcd.print("Total WH ");
lcd.setCursor(1,1); // set the cursor at 1st col and 2nd row
lcd.print(sumRupees);
lcd.print("Total Rs.");
delay(1000);
lcd.clear();
void loop()
{
energyCalculations();
gsm();
void gsm()
{
43
if(SIM900.available() > 0)
{
delay(10);
mobileNumber = SIM900.read();
Serial.print(mobileNumber);
if(mobileNumber == 'x')
{
delay(10);
mobileNumber = SIM900.read();
if(mobileNumber == 'x')
{
delay(10);
mobileNumber = SIM900.read();
if(mobileNumber == 'x')
{
delay(10);
mobileNumber = SIM900.read();
if(mobileNumber == 'x')
{
delay(10);
mobileNumber = SIM900.read();
if(mobileNumber == 'x')
{
delay(10);
mobileNumber = SIM900.read();
if(mobileNumber == 'x')
{
delay(10);
mobileNumber = SIM900.read();
if(mobileNumber == 'x')
44
{
delay(10);
mobileNumber = SIM900.read();
if(mobileNumber == 'x')
{
delay(10);
mobileNumber = SIM900.read();
if(mobileNumber == 'x')
{
delay(10);
mobileNumber = SIM900.read();
if(mobileNumber == 'x')
{
Serial.println("Number
Matched !");
Serial.println("Sending Billing
to Customer");
sendBilling();
}
}
}
}
}
}
}
}
}
}
45
}
}
46
// see if you have a new maxValue
if (readValue > maxValue)
{
/*record the maximum sensor value*/
maxValue = readValue;
}
if (readValue < minValue)
{
/*record the maximum sensor value*/
minValue = readValue;
}
}
return result;
}
float getReading()
{
float solution;
47
solution = (WH * 5.20);
return solution;
48
Appendix B: ACS712 Current Sensor Datasheet
ACS712
Fully Integrated, Hall Effect-Based Linear Current Sensor IC
with 2.1 kVRMS Isolation and a Low-Resistance Current Conductor
Typical Application
+5
V
1 VCC 8
IP+
2 V C
IP+ VIOUT 7 OUT
BYP
0.1 μF
IP ACS712
3 IP– FILTER 6 CF
IP– 5 1 nF
4
GND
49
Application 1. The ACS712 outputs an analog signal, VOUT . that varies linearly with
the uni- or bi-directional AC or DC primary sampled current, I P , within the range
50
ACS712 Fully Integrated, Hall Effect-Based Linear Current Sensor IC
with 2.1 kVRMS Isolation and a Low-Resistance Current Conductor
Description (continued)
the device at up to 5× overcurrent conditions. The terminals of The ACS712 is provided in a small, surface mount SOIC8 package. The
the conductive path are electrically isolated from the signal leads leadframe is plated with 100% matte tin, which is compatible with
(pins 5 through 8). This allows the ACS712 to be used in standard lead (Pb) free printed circuit board assembly processes.
applications requiring electrical isolation without the use of Internally, the device is Pb-free, except for flip-chip high-temperature
opto-isolators or other costly isolation techniques. Pb-based solder balls, currently exempt from RoHS. The device is fully
calibrated prior to shipment from the factory.
Selection Guide
Part Number Packing* TA Optimized Range, IP Sensitivity, Sens
(°C) (A) (Typ) (mV/A)
ACS712ELCTR-05B-T Tape and reel, 3000 pieces/reel –40 to 85 ±5 185
ACS712ELCTR-20A-T Tape and reel, 3000 pieces/reel –40 to 85 ±20 100
ACS712ELCTR-30A-T Tape and reel, 3000 pieces/reel –40 to 85 ±30 66
*Contact Allegro for additional packing options.
Isolation Characteristics
Characteristic Symbol Notes Rating Unit
V Agency type-tested for 60 seconds per
Dielectric Strength Test Voltage* ISO UL standard 60950-1, 1st Edition 2100 VAC
V For basic (single) isolation per UL standard
Working Voltage for Basic Isolation WFSI 60950-1, 1st Edition 354 VDC or Vpk
V For reinforced (double) isolation per UL standard
Working Voltage for Reinforced Isolation WFRI 60950-1, 1st Edition 184 VDC or Vpk
* Allegro does not conduct 60-second testing. It is done only during the UL certification process.
Parameter Specification
CAN/CSA-C22.2 No. 60950-1-03
Fire and Electric Shock UL 60950-1:2003
EN 60950-1:2001
51
ACS712 Fully Integrated, Hall Effect-Based Linear Current Sensor IC
with 2.1 kVRMS Isolation and a Low-Resistance Current Conductor
+5 V
VCC
(Pin 8)
Hall Current
Drive
IP+ (Pin
Sense Temperature
1)
Coefficient Trim
IP+ (Pin
2)
Dynamic Offset
Cancellation
Signal VIOUT
Recovery (Pin 7)
R
F(INT)
IP− (Pin 3)
GND FILTER
(Pin 5) (Pin 6)
Pin-out Diagram
IP+ 1 8 VCC
IP+ 2 7 VIOUT
IP– 3 6 FILTER
IP– 4 5 GND
52
ACS712 Fully Integrated, Hall Effect-Based Linear Current Sensor IC
with 2.1 kVRMS Isolation and a Low-Resistance Current Conductor
1
COMMON OPERATING CHARACTERISTICS over full range of TA , CF = 1 nF, and VCC = 5 V, unless otherwise specified
Characteristic Symbol Test Conditions Min. Typ. Max. Units
ELECTRICAL CHARACTERISTICS
V
Supply Voltage CC 4.5 5.0 5.5 V
I
Supply Current CC VCC = 5.0 V, output open – 10 13 mA
C
Output Capacitance Load LOAD VIOUT to GND – – 10 nF
R
Output Resistive Load LOAD VIOUT to GND 4.7 – – kΩ
R
Primary Conductor Resistance PRIMARY TA = 25°C – 1.2 – mΩ
Rise Time tr IP = IP(max), TA = 25°C, COUT = open – 3.5 – μs
Frequency Bandwidth F –3 dB, TA = 25°C; IP is 10 A peak-to-peak – 80 – kHz
E
Nonlinearity LIN Over full range of IP – 1.5 – %
E
Symmetry SYM Over full range of IP 98 100 102 %
V VCC ×
Zero Current Output Voltage IOUT(Q) Bidirectional; IP = 0 A, TA = 25°C – 0.5 – V
Output reaches 90% of steady-state level, TJ = 25°C, 20 A present
t
Power-On Time PO on leadframe – 35 – μs
2
Magnetic Coupling – 12 – G/A
3 R
Internal Filter Resistance F(INT) 1.7 kΩ
1
Device may be operated at higher primary current levels, IP, and ambient, TA , and internal leadframe temperatures, TA , provided that the
Maximum Junction Temperature, TJ(max), is not exceeded.
2
1G = 0.1 mT.
3
RF(INT) forms an RC circuit via the FILTER pin.
1
COMMON THERMAL CHARACTERISTICS
Min. Typ. Max. Units
Operating Internal Leadframe Temperature TA E range –40 – 85 °C
Value Units
2 R
Junction-to-Lead Thermal Resistance θJL Mounted on the Allegro ASEK 712 evaluation board 5 °C/W
Mounted on the Allegro 85-0322 evaluation board, includes the power con-
R
Junction-to-Ambient Thermal Resistance θJA sumed by the board 23 °C/W
1
Additional thermal information is available on the Allegro website.
2 2
The Allegro evaluation board has 1500 mm of 2 oz. copper on each side, connected to pins 1 and 2, and to pins 3 and 4, with thermal vias connect-ing the
layers. Performance values include the power consumed by the PCB. Further details on the board are available from the Frequently Asked
Questions document on our website. Further information about board design and thermal performance also can be found in the Applications
Informa-tion section of this datasheet.
53
ACS712 Fully Integrated, Hall Effect-Based Linear Current Sensor IC
with 2.1 kVRMS Isolation and a Low-Resistance Current Conductor
1
x05B PERFORMANCE CHARACTERISTICS TA = –40°C to 85°C, CF = 1 nF, and VCC = 5 V, unless otherwise specified
Characteristic Symbol Test Conditions Min. Typ. Max. Units
I
Optimized Accuracy Range P –5 – 5 A
Sensitivity Sens Over full range of IP, TA = 25°C 180 185 190 mV/A
Peak-to-peak, TA = 25°C, 185 mV/A programmed Sensitivity,
V
Noise NOISE(PP) CF = 47 nF, COUT = open, 2 kHz bandwidth – 21 – mV
∆V TA = –40°C to 25°C – –0.26 – mV/°C
Zero Current Output Slope OUT(Q)
TA = 25°C to 150°C – –0.08 – mV/°C
TA = –40°C to 25°C – 0.054 – mV/A/°C
Sensitivity Slope ∆Sens
TA = 25°C to 150°C – –0.008 – mV/A/°C
2
Total Output Error E I =±5 A, T = 25°C – ±1.5 – %
TOT P A
1
Device may be operated at higher primary current levels, I P, and ambient temperatures, TA, provided that the Maximum Junction Temperature, TJ(max), is not
exceeded.
2
Percentage of IP, with IP = 5 A. Output filtered.
1
x20A PERFORMANCE CHARACTERISTICS TA = –40°C to 85°C, CF = 1 nF, and VCC = 5 V, unless otherwise specified
Characteristic Symbol Test Conditions Min. Typ. Max. Units
Optimized Accuracy Range IP –20 – 20 A
Sensitivity Sens Over full range of IP, TA = 25°C 96 100 104 mV/A
Peak-to-peak, TA = 25°C, 100 mV/A programmed Sensitivity,
V
Noise NOISE(PP) CF = 47 nF, COUT = open, 2 kHz bandwidth – 11 – mV
∆V TA = –40°C to 25°C – –0.34 – mV/°C
Zero Current Output Slope OUT(Q)
TA = 25°C to 150°C – –0.07 – mV/°C
TA = –40°C to 25°C – 0.017 – mV/A/°C
Sensitivity Slope ∆Sens
TA = 25°C to 150°C – –0.004 – mV/A/°C
2
Total Output Error E I =±20 A, T = 25°C – ±1.5 – %
TOT P A
1
Device may be operated at higher primary current levels, I P, and ambient temperatures, TA, provided that the Maximum Junction Temperature,
TJ(max), is not exceeded.
2
Percentage of IP, with IP = 20 A. Output filtered.
1
x30A PERFORMANCE CHARACTERISTICS TA = –40°C to 85°C, CF = 1 nF, and VCC = 5 V, unless otherwise specified
Characteristic Symbol Test Conditions Min. Typ. Max. Units
Optimized Accuracy Range IP –30 – 30 A
Sensitivity Sens Over full range of IP , TA = 25°C 63 66 69 mV/A
V Peak-to-peak, TA = 25°C, 66 mV/A programmed Sensitivity,
Noise NOISE(PP) C F = 47 nF, C OUT = open, 2 kHz bandwidth – 7 – mV
54
ACS712 Fully Integrated, Hall Effect-Based Linear Current Sensor IC
with 2.1 kVRMS Isolation and a Low-Resistance Current Conductor
Characteristic Performance
IP = 5 A, unless otherwise specified
10.05 VCC = 5 V
C
10.00
Mean I
9.95
9.90
9.85
9.80
9.75
-50 -25 0 25 50 75 100 125 150
TA (°C)
Magnetic Offset versus Ambient Temperature
0
–0.5
–1.0
–1.5
M(mA)
–2.0
VCC = 5 V; IP = 0 A,
–2.5
O
After excursion to 20 A
I
–3.0
–3.5
–4.0
–4.5
–5.0
-50 -25 0 25 50 75 100 125 150
TA (°C)
Mean Total Output Error versus Ambient Temperature
8
6
4
(%)
2
TO
T
0
E
–2
–4
–6
–8
–50 –25 0 25 50 75 100 125 150
TA (°C)
Output Voltage versus Sensed Current
4.0
3.5
3.0 VCC = 5 V
(V)
2.5
IOU
T (°C)
T
2.0 A
V
–40
1.5 25
85
1.0
150
0.5
0
–7 –6 –5 –4 –3 –2 –1 0 1 2 3 4 5 6 7
IP (A)
0 A Output Voltage versus Ambient Temperature
2520
2515
2510 IP = 0 A
(mV)
2505
IOUT(
Q)
2500
V
2495
2490
2485
55
183.0
Supply Current versus Supply Voltage 182.5
10.9 182.0
10.8 181.5
181.0
10.7
–50 –25 0 25 50 75 100 125 150
(mA)
10.6
TA (°C)
10.5
Sensitivity versus Sensed Current
C
C
I
10.4 200.00
10.3 190.00
10.2 180.00
(mV/A)
10.1 170.00
10.0 160.00 TA (°C)
Sen
4.5 4.6 4.7 4.8 4.9 5.0 5.1 5.2 5.3 5.4 5.5 150.00 –40
s
VCC (V) 25
140.00
85
Nonlinearity versus Ambient Temperature 130.00 150
0.6 120.00
110.00
0.5 100.00
-6 -4 -2 0 2 4 6
VCC = 5 V
(%)
0.4 Ip (A)
0.3
E
0.20
0.2
0.15
0.1
0.10 IP = 0 A
(A)
0
0.05
–50 –25 0 25 50 75 100 125 150
OUT(
Q)
TA (°C) 0
184.0
s
183.5
56
ACS712 Fully Integrated, Hall Effect-Based Linear Current Sensor IC
with 2.1 kVRMS Isolation and a Low-Resistance Current Conductor
Characteristic Performance
IP = 20 A, unless otherwise specified
TA (°C)
Mean Supply Current versus Ambient Temperature
9.7
9.6
(mA)
9.5
C
C
9.4 VCC = 5 V
Mea I
n
9.3
9.2
9.1
-50 -25 0 25 50 75 100 125 150
TA (°C)
Magnetic Offset versus Ambient Temperature
0
–0.5
–1.0
–1.5
(mA)
–2.0
M
O
–2.5 VCC = 5 V; IP = 0 A,
–3.0 After excursion to 20 A
–3.5
–4.0
–4.5
–5.0
-50 -25 0 25 50 75 100 125 150
TA (°C)
Mean Total Output Error versus Ambient Temperature
8
6
2
(%)
TO
0
T E
–2
–4
–6
–8
–50 –25 0 25 50 75 100 125 150
TA (°C)
Output Voltage versus Sensed Current
5.0
4.5
4.0
3.5 VCC = 5 V
(V)
3.0
2.5 TA (°C)
IOU
–40
T
2.0
V
–20
1.5 25
1.0 85
0.5 125
0
–25 –20 –15 –10 –5 0 5 10 15 20 25
IP (A)
0 A Output Voltage versus Ambient Temperature
2525
2520
2515
(mV)
2510 IP = 0 A
IOUT(
2505
Q)
2500
V
2495
2490
2485
-50 -25 0 25 50 75 100 125 150
57
n
s
99.6
Supply Current versus Supply Voltage 99.4
10.4 99.2
10.2 99.0
–50 –25 0 25 50 75 100 125 150
10.0
(mA)
TA (°C)
9.8 Sensitivity versus Sensed Current
C
C
I
9.6 110.00
108.00 TA (°C)
9.4 –40
106.00 25
9.2 104.00 85
(mV/A)
102.00 150
9.0
4.5 4.6 4.7 4.8 4.9 5.0 5.1 5.2 5.3 5.4 5.5 100.00
Sen
VCC (V) 98.00
s
96.00
Nonlinearity versus Ambient Temperature 94.00
0.35 92.00
90.00
0.30
–25 –20 –15 –10 –5 0 5 10 15 20 25
0.25 Ip (A)
(%)
0.25
0.15
0.20
0.10
0.15
0.05
(A)
0.10 IP = 0 A
0
OUT(
0.05
Q)
–50 –25 0 25 50 75 100 125 150
0
TA (°C)
–0.05
Sensitivity versus Ambient Temperature
100.8 –0.10
100.6 –0.15
100.4 -50 -25 0 25 50 75 100 125 150
100.2
(mV/A)
TA (°C)
100.0
99.8
Se
58
ACS712 Fully Integrated, Hall Effect-Based Linear Current Sensor IC
with 2.1 kVRMS Isolation and a Low-Resistance Current Conductor
Characteristic Performance
IP = 30 A, unless otherwise specified
9.6
9.5
9.4
(mA)
9.3 VCC = 5 V
C
C
9.2
Mean
9.1
9.0
8.9
-50 -25 0 25 50 75 100 125 150
TA (°C)
Magnetic Offset versus Ambient Temperature
0
–0.5
–1.0
–1.5
(mA)
–2.0
M
VCC = 5 V; IP = 0 A,
O
–2.5
–3.0 After excursion to 20 A
–3.5
–4.0
–4.5
–5.0
-50 -25 0 25 50 75 100 125 150
TA (°C)
Mean Total Output Error versus Ambient Temperature
8
6
4
(%)
2
TO
T
0
E
–2
–4
–6
–8
–50 –25 0 25 50 75 100 125 150
TA (°C)
Output Voltage versus Sensed Current
5.0
4.5
4.0
3.5 VCC = 5 V
(V)
3.0
IOU
T (°C)
T
2.5 A
V
–40
2.0
–20
1.5 25
1.0 85
0.5 125
0
–30 –20 –10 0 10 20 30
IP (A)
0 A Output Voltage versus Ambient Temperature
2535
2530
2525
2520
(mV)
2515 IP = 0 A
IOUT(
2510
Q)
2505
V
2500
2495
2490
2485
-50 -25 0 25 50 75 100 125 150
59
Supply Current versus Supply Voltage
10.2
10.0
(mA)
9.8
C
C
9.6
I
9.4
9.2
9.0
4.5 4.6 4.7 4.8 4.9 5.0 5.1 5.2 5.3 5.4 5.5
VCC (V)
0.30 VCC = 5 V
0.25
LI
N
E
0.20
0.15
0.10
0.05
0
–50 –25 0 25 50 75 100 125 150
TA (°C)
Sensitivity versus Ambient Temperature
66.6
66.5
Sens (mV/A)
66.4
66.3
66.2
66.1
66.0
65.9
65.8
65.7
–50 –25 0 25 50 75 100 125 150
TA (°C)
Sensitivity versus Sensed Current
70.00
69.00
68.00
Sens (mV/A)
67.00
66.00
65.00
64.00 TA (°C)
–40
63.00 25
62.00 85
61.00 150
60.00
–30 –20 –10 0 10 20 30
Ip (A)
0.15 IP = 0 A
OUT(
0.10
Q)
0.05
I
0
–0.05
–0.10
–0.15
-50 -25 0 25 50 75 100 125 150
TA (°C)
60
ACS712 Fully Integrated, Hall Effect-Based Linear Current Sensor IC
with 2.1 kVRMS Isolation and a Low-Resistance Current Conductor
100 {[
1–
2 (V
IOUT_half-scale amperes
–V
IOUT(Q)
)
[{
The ratiometric change in sensitivity, SensRAT (%), is defined as:
‰ SensVCC / Sens5V _
where VIOUT_full-scale amperes = the output voltage (V) when 100
the sampled current approximates full-scale ±IP . VCC / 5 V
100 V –V
IOUT(Q) IOUT_–full-scale amperes Accuracy
25°C Only
Electrical offset voltage (VOE). The deviation of the device out- –IP (A) +IP (A)
Full Scale
put from its ideal quiescent value of V CC / 2 due to nonmagnetic IP(max)
Decreasing VIOUT(V)
61
62
ACS712 Fully Integrated, Hall Effect-Based Linear Current Sensor IC
with 2.1 kVRMS Isolation and a Low-Resistance Current Conductor
Rise time (tr). The time interval between a) when the device
reaches 10% of its full scale value, and b) when it reaches 90% of
its full scale value. The rise time to a step response is used to derive
the bandwidth of the device, in which ƒ(–3 dB) = 0.35 / tr.
Both tr and tRESPONSE are detrimentally affected by eddy
current losses observed in the conductive IC ground plane.
T
63
ACS712 Fully Integrated, Hall Effect-Based Linear Current Sensor IC
with 2.1 kVRMS Isolation and a Low-Resistance Current Conductor
Chopper Stabilization is an innovative circuit technique that is used the filter. As a result of this chopper stabilization approach, the
to minimize the offset voltage of a Hall element and an asso-ciated output voltage from the Hall IC is desensitized to the effects of
on-chip amplifier. Allegro patented a Chopper Stabiliza-tion temperature and mechanical stress. This technique produces
technique that nearly eliminates Hall IC output drift induced by devices that have an extremely stable Electrical Offset Voltage,
temperature or package stress effects. This offset reduction technique are immune to thermal stress, and have precise recoverability
is based on a signal modulation-demodulation process. Modulation is after temperature cycling.
used to separate the undesired DC offset signal from the This technique is made possible through the use of a BiCMOS
magnetically induced signal in the frequency domain. Then, using a process that allows the use of low-offset and low-noise amplifiers
low-pass filter, the modulated DC offset is sup-pressed while the in combination with high-density logic integration and sample
magnetically induced signal passes through and hold circuits.
Regulator
Clock/Logic
Low-Pass
Hall Element
Filter
Hold
Amp Sample and
64
65
ACS712 Fully Integrated, Hall Effect-Based Linear Current Sensor IC
with 2.1 kVRMS Isolation and a Low-Resistance Current Conductor
Typical Applications
+5 V
+5 V
V
PEAK C
BYP
C R1
BYP C2 0.1 μF 100 kΩ
V
0.1 μF 0.1 μF RESET
R4 Q1
C 10 kΩ 2N7002 R2
8 OUT 100 kΩ 1 LM321
1 IP+ VCC 0.1 μF 8 5
V
IP 7 V
1 IP+ VCC + 4 OUT
2+ VIOUT
RF
OUT + 7
2 IP+ VIOUT RF 3 – 2
IP ACS712 10 kΩ R1 – U1 D1 I
P ACS712 1 kΩ C1
LT117 R3 1000 pF
3 IP– FILTER
6
1 MΩ 8 1N914 6
3 IP– FILTER CF 3.3 kΩ
CF
4 IP– 5 0.01 μF
4 5 1 nF
IP– GND GND
R2 R3 C1
33 kΩ 330 kΩ 0.1 μF
Application 3. This configuration increases gain to 610 mV/A
(tested using the ACS712ELC-05A).
+5 V C
BYP R1
C 0.1 μF
BYP 33 kΩ
0.1 μF R
PU
R2 100 kΩ
8 8 100 kΩ
1 VCC D1
IP+ 1N4448W 1 IP+ VCC
7 V
2 IP+ VIOUT OUT A-to-D
Faul
RF Converter
7 V
IP ACS712 2 kΩ R1 2 IP+ VIOUT OUT
4 – 5 1 t
6 ACS712
3 IP– 10 kΩ C1 IP 3
FILTER
CF
+ 2 U1
6
4 5 1 nF 3 IP– FILTER CF LMV7235
IP– GND
4 IP– 5 1 nF
GND
D1
Application 4. Rectified Output. 3.3 V scaling and rectification application for A- 1N914
66
ACS712 Fully Integrated, Hall Effect-Based Linear Current Sensor IC
with 2.1 kVRMS Isolation and a Low-Resistance Current Conductor
In low-frequency sensing applications, it is often advantageous temperature. Therefore, signal attenuation will vary as a function
to add a simple RC filter to the output of the device. Such a low- of temperature. Note that, in many cases, the input impedance,
pass filter improves the signal-to-noise ratio, and therefore the
RINTFC , of a typical analog-to-digital converter (ADC) can be
resolution, of the device output signal. However, the addition of as low as 10 kΩ.
an RC filter to the output of a sensor IC can result in undesirable
device output attenuation — even for DC signals. The ACS712 contains an internal resistor, a FILTER pin connec-
Signal attenuation, ∆VATT , is a result of the resistive divider tion to the printed circuit board, and an internal buffer amplifier.
With this circuit architecture, users can implement a simple
effect between the resistance of the external filter, RF (see
Application 6), and the input impedance and resistance of the RC filter via the addition of a capacitor, CF (see Application 7)
customer interface circuit, RINTFC. The transfer function of from the FILTER pin to ground. The buffer amplifier inside of
this resistive divider is given by: the ACS712 (located after the internal resistor and FILTER pin
R
INTFC connection) eliminates the attenuation caused by the resistive
∆V V +R
.
ATT = IOUT R
Allegro ACS706
Application 6. When a low pass filter is constructed
externally to a standard Hall effect device, a resistive Voltage
Regulator
divider may exist between the filter resistor, RF, and To all subcircuits
Temperature
Gain Coefficient Offset CF
R
1 nF INTFC
Trim Control
67
ACS712 Fully Integrated, Hall Effect-Based Linear Current Sensor IC
with 2.1 kVRMS Isolation and a Low-Resistance Current Conductor
4.90 ±0.10 8°
0° 0.65 8 1.27
8
0.25 1.75
0.17