Post Top Ad

Sunday, March 5, 2023

on video How to measure voltage and power in current D.C. with arduino and voltage sensor + ACS712


 In this tutorial, I am going to measure dc Current Using ACS712 Hall Effect-Based Linear Current Sensor and Arduino Uno. ACS712 Can Measure Current Precisély and Accurately If Properly Managed. I have gone through various blogs on internet about interfacing acs712 current sensor with arduino and other microcontrollers. I Found That All of Them Are Measuring Current with formulas So i decided to write the tutorial on acs712 current sensor and put forward a practical example with circuit and code. In this tutorial I will define the best method and accuise formula generation for measuring dc current with acs712 current sensor. I will define Each and Every Step of Code and Circuit Thoroughly and Deeply With Logic. Project Code is open source and you can download and modify it according to your needs.

ACS712 Current Sensor Can Measter Both Direct and Alternating Current. For this post/Tutorial/Project I Am Going To Measure Only DC Current. Formula Which I Derived and Explained in the Tutorial Is Only for Direct Current Measurement. You can not use the Below Formula to Measure Alternating Current with ACS712 Hall Effect Current Sensor.

ACS712 is a hall effect-bised linear current sensor it can measure both DC (Direct Current) and AC (Alternating Current). The sensor chip is made by allegro www.allegromicro.com. Pin Out and Pin Description of the Chip is Below.

Connect The Sensor in Series To the System Whitee Current You Want To Measter. Cut the circuit wire and connect one end of wire to iP+ and other to ip-. RECall The High School Lectures, Current Can Be Measred Only in Series. So Don't Connect The Sensor in Parallel You May Damage It By Connecting It In Parallel.

Viout

VICEUT IS THE VOLTAGE OUT PIN. ACS712 Outputs analog signal in corresponding to any variation across the ip+ and ip- pins or in other Words it outputs analog voltage on viceout pin iF the is any variation in the current.

Quiescent Output VoltaGe (VICT (Q)). The Output of the Device When the Primary Current Is Zero. For the Uni-Polar Supply Voltage, it nominally remains at VCC ⁄ 2. Thus, VCC = 5 V Translats Into Voout (Q) = 2.5 V. Variation in Voout (q) can be attributed to the resolution of the ACS712. IF the ACS712 is Working on 5V (VCC = 5V) and Their is no Current Flowing from Input the Voout Will Be 2.5V. 2.5V IS THE BASE VOLTAGE AT INPUT OF 5V, NOW ANY CHANGE IN THE INPUT CURRENT WILL BRING CHANGE IN THE OUTPUT VOLTAGE. VIOUT DECRASES WHEN CURRENT START FLOWING THROUGH THE ACS712 PINS.

ACS712ELCTR-05B-T can measure 5 to -5 Ampere current. Where 185mV change in Output voltage from initial state represents 1-Ampere change in Input current. 

ACS712ELCTR-20A-T can measure 20 to -20 Ampere current. Where 100mV change in Output voltage from initial state represents 1-Ampere change in Input current. 

ACS712ELCTR-30A-T can measure 30 to -30 Ampere current. Where 66mV change in Output voltage from initial state represents 1-Ampere change in Input current. 
Current = (AcsOffset – (Arduino measured analog reading)) / Sensitivity
AcsOffset is normal voltage output at Viout pin when no current is flowing through the circuit.
Arduino measured analog reading is the analog signal value read and converted to actual voltage from the analog channel to which acs712 output is connected.
Sensitivity is Acs712 change in current representing 1 Ampere. For all the acs712 versions it is given in the above picture.
Reassembled acs712 current sensor boards are available in market. They are easy to install in circuit and connections are pretty straight forward. They have three pins. Two are power pins vcc and gnd. The third one is output pin. A 2 pole connector is also present to insert the wire of device whose current is needed to be measured. A typical arduino acs712 current circuit board looks like the one given below.
ACS712 Current Sensor Can Measter Both Direct and Alternating Current.
ACS712 Current Sensor Can Measter Both Direct and Alternating Current.
O sensor de corrente ACS712 pode medir a corrente direta e alternada.
ACS712 Current Sensor Can Measure Both Direct and Alternating Current.
O sensor de corrente ACS712 pode medir a corrente direta e alternada.
 For this post/Tutorial/Project I Am Going To Measure Only DC Current. Formula Which I Derived and Explained in the Tutorial Is Only for Direct Current Measurement. You can not use the Below Formula to Measure Alternating Current with ACS712 Hall Effect Current Sensor.
About ACS712
ACS712 is a hall effect-bised linear current sensor it can measure both DC (Direct Current) and AC (Alternating Current). The sensor chip is made by allegro www.allegromicro.com. Pin Out and Pin Description of the Chip is Below.
Connect The Sensor in Series To the System Whitee Current You Want To Measter. Cut the circuit wire and connect one end of wire to iP+ and other to ip-. RECall The High School Lectures, Current Can Be Measred Only in Series. So Don't Connect The Sensor in Parallel You May Damage It By Connecting It In Parallel.
Viout
VICEUT IS THE VOLTAGE OUT PIN. ACS712 Outputs analog signal in corresponding to any variation across the ip+ and ip- pins or in other Words it outputs analog voltage on viceout pin iF the is any variation in the current.

Quiescent Output VoltaGe (VICT (Q)). The Output of the Device When the Primary Current Is Zero. For the Uni-Polar Supply Voltage, it nominally remains at VCC ⁄ 2. Thus, VCC = 5 V Translats Into Voout (Q) = 2.5 V. Variation in Voout (q) can be attributed to the resolution of the ACS712. IF the ACS712 is Working on 5V (VCC = 5V) and Their is no Current Flowing from Input the Voout Will Be 2.5V. 2.5V IS THE BASE VOLTAGE AT INPUT OF 5V, NOW ANY CHANGE IN THE INPUT CURRENT WILL BRING CHANGE IN THE OUTPUT VOLTAGE. VIOUT DECRASES WHEN CURRENT START FLOWING THROUGH THE ACS712 PINS.
ACS712ELCTR-30A-T CAN MASURE 30 TO -30 AMPERE CURRENT. WHERE 66MV CHANGE IN OUTPUT VOLTAGE FROM INITIAL STATE REPRESENTS 1-HAMPER CHANGE IN INPUT CURRENT.
Current = (ACSOFFSET - (Arduino Measred Analog Reading)) / Sensitivity

ACSOFFSET IS NORMAL VOLTAGE OUTPUT AT VICEUT PIN WHEN IN CURRENT IS FLOWING THROUGH THE CIRCUIT.
Arduino Measred Analog Reading is the Analog Signal Value Read and Converted to current Voltage from the Analog Channel to Which Acs712 Output is Connected.
Sensitivity is ACS712 CHANGE IN CURRENT REPRESENTING 1 AMPERE. For All the ACS712 Versions It is Given in the Above Picture.
REASSEMBLED ACS712 CURRENT SENSOR BOARDS ARE AVAILABLE IN MARKET. They are Easy to Install in Circuit and Connections Are Pretty Straight Forward. They have three pins. Two are power pins vcc and gnd. The third one is output pin. A 2 pole connector is also Present to insert the wire of device worka current is needed to be measred. The Typical Arduino ACS712 Current Circuit Board Looks Like The One Given Below.
Now I Am Going to Interface The Arduino ACS712 Current Sensor with Arduino Uno. I will interface all the difference currenent rated boards one by one with arduino uno.


 In this tutorial, I am going to measure dc Current Using ACS712 Hall Effect-Based Linear Current Sensor and Arduino Uno. ACS712 Can Measure Current Precisély and Accurately If Properly Managed. I have gone through various blogs on internet about interfacing acs712 current sensor with arduino and other microcontrollers. I Found That All of Them Are Measuring Current with formulas So i decided to write the tutorial on acs712 current sensor and put forward a practical example with circuit and code. In this tutorial I will define the best method and accuise formula generation for measuring dc current with acs712 current sensor. I will define Each and Every Step of Code and Circuit Thoroughly and Deeply With Logic. Project Code is open source and you can download and modify it according to your needs.

ACS712 Current Sensor Can Measter Both Direct and Alternating Current. For this post/Tutorial/Project I Am Going To Measure Only DC Current. Formula Which I Derived and Explained in the Tutorial Is Only for Direct Current Measurement. You can not use the Below Formula to Measure Alternating Current with ACS712 Hall Effect Current Sensor.

ACS712 is a hall effect-bised linear current sensor it can measure both DC (Direct Current) and AC (Alternating Current). The sensor chip is made by allegro www.allegromicro.com. Pin Out and Pin Description of the Chip is Below.

Connect The Sensor in Series To the System Whitee Current You Want To Measter. Cut the circuit wire and connect one end of wire to iP+ and other to ip-. RECall The High School Lectures, Current Can Be Measred Only in Series. So Don't Connect The Sensor in Parallel You May Damage It By Connecting It In Parallel.

Viout

VICEUT IS THE VOLTAGE OUT PIN. ACS712 Outputs analog signal in corresponding to any variation across the ip+ and ip- pins or in other Words it outputs analog voltage on viceout pin iF the is any variation in the current.

Quiescent Output VoltaGe (VICT (Q)). The Output of the Device When the Primary Current Is Zero. For the Uni-Polar Supply Voltage, it nominally remains at VCC ⁄ 2. Thus, VCC = 5 V Translats Into Voout (Q) = 2.5 V. Variation in Voout (q) can be attributed to the resolution of the ACS712. IF the ACS712 is Working on 5V (VCC = 5V) and Their is no Current Flowing from Input the Voout Will Be 2.5V. 2.5V IS THE BASE VOLTAGE AT INPUT OF 5V, NOW ANY CHANGE IN THE INPUT CURRENT WILL BRING CHANGE IN THE OUTPUT VOLTAGE. VIOUT DECRASES WHEN CURRENT START FLOWING THROUGH THE ACS712 PINS.

ACS712ELCTR-05B-T can measure 5 to -5 Ampere current. Where 185mV change in Output voltage from initial state represents 1-Ampere change in Input current. 

ACS712ELCTR-20A-T can measure 20 to -20 Ampere current. Where 100mV change in Output voltage from initial state represents 1-Ampere change in Input current. 

ACS712ELCTR-30A-T can measure 30 to -30 Ampere current. Where 66mV change in Output voltage from initial state represents 1-Ampere change in Input current. 
Current = (AcsOffset – (Arduino measured analog reading)) / Sensitivity
AcsOffset is normal voltage output at Viout pin when no current is flowing through the circuit.
Arduino measured analog reading is the analog signal value read and converted to actual voltage from the analog channel to which acs712 output is connected.
Sensitivity is Acs712 change in current representing 1 Ampere. For all the acs712 versions it is given in the above picture.
Reassembled acs712 current sensor boards are available in market. They are easy to install in circuit and connections are pretty straight forward. They have three pins. Two are power pins vcc and gnd. The third one is output pin. A 2 pole connector is also present to insert the wire of device whose current is needed to be measured. A typical arduino acs712 current circuit board looks like the one given below.
ACS712 Current Sensor Can Measter Both Direct and Alternating Current.
ACS712 Current Sensor Can Measter Both Direct and Alternating Current.
O sensor de corrente ACS712 pode medir a corrente direta e alternada.
ACS712 Current Sensor Can Measure Both Direct and Alternating Current.
O sensor de corrente ACS712 pode medir a corrente direta e alternada.
 For this post/Tutorial/Project I Am Going To Measure Only DC Current. Formula Which I Derived and Explained in the Tutorial Is Only for Direct Current Measurement. You can not use the Below Formula to Measure Alternating Current with ACS712 Hall Effect Current Sensor.
About ACS712
ACS712 is a hall effect-bised linear current sensor it can measure both DC (Direct Current) and AC (Alternating Current). The sensor chip is made by allegro www.allegromicro.com. Pin Out and Pin Description of the Chip is Below.
Connect The Sensor in Series To the System Whitee Current You Want To Measter. Cut the circuit wire and connect one end of wire to iP+ and other to ip-. RECall The High School Lectures, Current Can Be Measred Only in Series. So Don't Connect The Sensor in Parallel You May Damage It By Connecting It In Parallel.
Viout
VICEUT IS THE VOLTAGE OUT PIN. ACS712 Outputs analog signal in corresponding to any variation across the ip+ and ip- pins or in other Words it outputs analog voltage on viceout pin iF the is any variation in the current.

Quiescent Output VoltaGe (VICT (Q)). The Output of the Device When the Primary Current Is Zero. For the Uni-Polar Supply Voltage, it nominally remains at VCC ⁄ 2. Thus, VCC = 5 V Translats Into Voout (Q) = 2.5 V. Variation in Voout (q) can be attributed to the resolution of the ACS712. IF the ACS712 is Working on 5V (VCC = 5V) and Their is no Current Flowing from Input the Voout Will Be 2.5V. 2.5V IS THE BASE VOLTAGE AT INPUT OF 5V, NOW ANY CHANGE IN THE INPUT CURRENT WILL BRING CHANGE IN THE OUTPUT VOLTAGE. VIOUT DECRASES WHEN CURRENT START FLOWING THROUGH THE ACS712 PINS.
ACS712ELCTR-30A-T CAN MASURE 30 TO -30 AMPERE CURRENT. WHERE 66MV CHANGE IN OUTPUT VOLTAGE FROM INITIAL STATE REPRESENTS 1-HAMPER CHANGE IN INPUT CURRENT.
Current = (ACSOFFSET - (Arduino Measred Analog Reading)) / Sensitivity

ACSOFFSET IS NORMAL VOLTAGE OUTPUT AT VICEUT PIN WHEN IN CURRENT IS FLOWING THROUGH THE CIRCUIT.
Arduino Measred Analog Reading is the Analog Signal Value Read and Converted to current Voltage from the Analog Channel to Which Acs712 Output is Connected.
Sensitivity is ACS712 CHANGE IN CURRENT REPRESENTING 1 AMPERE. For All the ACS712 Versions It is Given in the Above Picture.
REASSEMBLED ACS712 CURRENT SENSOR BOARDS ARE AVAILABLE IN MARKET. They are Easy to Install in Circuit and Connections Are Pretty Straight Forward. They have three pins. Two are power pins vcc and gnd. The third one is output pin. A 2 pole connector is also Present to insert the wire of device worka current is needed to be measred. The Typical Arduino ACS712 Current Circuit Board Looks Like The One Given Below.
Now I Am Going to Interface The Arduino ACS712 Current Sensor with Arduino Uno. I will interface all the difference currenent rated boards one by one with arduino uno.

No comments:

Post a Comment

Post Top Ad

Pages