pcbway




Interfacing DC current sensor with arduino, DC current sensor with arduino, Interfacing current sensor in arduino, DC current sensor with arduino, DC current sensor using arduino, How to interface DC ccurrent sensor with arduinoHello everyone! I hope you all will be absolutely fine and having fun. Today, I am going to share my knowledge with all of you guys about DC Current Sensor ACS712 Arduino Interfacing. First of all, I would like to tell you that what is the importance of current sensing/measuring. Sensing the amount of the current passing through any circuit can be useful in a lot of applications. For example, in low power consuming equipment, current sensing will be helpful to understand the system’s impact on its battery life. The current sensing can also be used to make the decisions regarding safety in over current protection circuits.

Simply, we can say that the sensing and controlling the flow of the current through the circuits is now a fundamental requirement e.g. over current protection circuits, battery chargers, watt meters, power supplies etc. The easiest and the very basic for the current sensing is to place a resistance between load and the ground terminal and to measure the voltage drop across it. This voltage drop will be exactly equal to the current flowing through that circuit.

DC Current Sensor ACS712 Arduino Interfacing

Basically, there are two types of current senors AC and DC. But, in the tutorial,I am going to do the DC Current Sensor ACS712 Arduino Interfacing, and we will learn about the sensing of the DC current. I will use ACS712 DC current sensor for sensing the DC current.

  • You can download the complete Arduino source code there.
  • Download .rar file, extract it and enjoy the complete simulation.

Arduino Source Code

Components Required

Here I am going to tell you about the components necessary for this projects. The list of all the components is given below.

  • Arduino UNO
  • DC Current Sensor (ACS712)
  • DC Load
  • Wero Board
  • Soldering Iron
  • Soldering Gum
  • Jumper wires
  • Power Supply (12V)
  • 20 x 4 LCD
Description of the Components used

In this section of the tutorial Interfacing DC Current Sensor with Arduino, I will explain the reasons why I have used the specific components for this project.

  • Arduino UNO acts as the back bone of the project. It manipulates the whole source code uploaded to the board, prints the desired data on the serial monitor and also prints the executed commands on the LCD. Arduino UNO is shown in the figure below.

Interfacing DC current sensor with arduino, DC current sensor with arduino, Interfacing current sensor in arduino, DC current sensor with arduino, DC current sensor using arduino, How to interface DC ccurrent sensor with arduino

  • Power Supply of 12V is used to turn the entire system ON. Because, we can not test and verify our system until we have not switched it ON. Power supply used for this project is shown in the figure below.

Interfacing DC current sensor with arduino, DC current sensor with arduino, Interfacing current sensor in arduino, DC current sensor with arduino, DC current sensor using arduino, How to interface DC ccurrent sensor with arduino

  • LCD is used to display the digital values of the data which has been printed on the serial monitor of the Arduino software i.e all the executed commands will be printed on the LCD as well. The LCD which I have used for this is shown in the figure below.Interfacing DC current sensor with arduino, DC current sensor with arduino, Interfacing current sensor in arduino, DC current sensor with arduino, DC current sensor using arduino, How to interface DC ccurrent sensor with arduino
  • Jumper Wires are used to make the connections of the all the components in order to make the complete circuit with proper working. Jumper wires are shown in the figure below.

Interfacing DC current sensor with arduino, DC current sensor with arduino, Interfacing current sensor in arduino, DC current sensor with arduino, DC current sensor using arduino, How to interface DC ccurrent sensor with arduino

  • ACS712 is used to sense the Direct Current (DC) flowing through the any circuit. The DC current sensor used is shown in the figure below.

Interfacing DC current sensor with arduino, DC current sensor with arduino, Interfacing current sensor in arduino, DC current sensor with arduino, DC current sensor using arduino, How to interface DC ccurrent sensor with arduino




Flow Chart
  • Here, I would like to explain the entire algorithm with the help of a flow chart for DC Current Sensor ACS712 Arduino Interfacing.
  • The flow chart for this project DC Current Sensor ACS712 Arduino Interfacing is shown in the figure below.

Interfacing DC current sensor with arduino, DC current sensor with arduino, Interfacing current sensor in arduino, DC current sensor with arduino, DC current sensor using arduino, How to interface DC ccurrent sensor with arduino

  • The data from the sensor can be estimated on the serial monitor only after opening the serial port
  • Then data will be displayed on the LCD and at end serial port must be closed in order to avoid the exchange of unwanted commands.
Circuit Diagram
  • The complete wiring diagram for this project is shown in the figure below.

acs712 arduino, DC Current Sensor ACS712 Arduino, Interfacing DC current sensor with arduino, DC current sensor with arduino, Interfacing current sensor in arduino, DC current sensor with arduino, DC current sensor using arduino, How to interface DC ccurrent sensor with arduino

  • You can run this project properly, by making the circuit first, identical to the circuit diagram shown in the figure above.
  • The digital pin 0 of the Arduino UNO will help us in reading the data from the sensor.
  • The other two pins of the sensor are connected to the supply of 5V and ground respectively as you can see from the above figure.
Source Code Description
  • The source code for this project DC Current Sensor ACS712 Arduino Interfacing is given below.
  • You have to just copy and paste the code given below in your Arduino software after properly interfacing DHT11 with the Arduino.
  • After uploading the code onto your Arduino board you will be able to observe the humidity and temperature and humidity level on serial monitor.




  • I am going to explain you that how this code is working!
  • Then I have defined the library for LCD.
  • I have defined the pin at which DC current sensor is attached with the Arduino board.
  • Then I have defined the Arduino pins at which the LCD is interfaced.
  • Then by opening the serial port I have started to print the level of temperature and humidity on the serial monitor as well as on the 20×4 LCD.
  • At the end, I have added the delay of few seconds so that the speed of the data to be printed on the serial monitor can be reduced to some extent in order to observe properly.
  • This was the brief description of the source code.

This is all from the tutorial DC Current Sensor ACS712 Arduino Interfacing. I hope you all enjoyed this tutorial. If you face any sort of problem you can ask me anytime in comments without even feeling any kind of hesitation. I will try my level best to solve your issues in a better way, if possible. I will explore Arduino further in my later tutorials. Till then, Take care 🙂

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Post comment