Arduino Projects

Max471 Current Sensor with Arduino and 16×2 LCD, Max471 Arduino

Description:

 

Max471 Current Sensor with Arduino and 16×2 LCD- In this tutorial, you will learn how to use the Max741 bidirectional, high-side current-sense amplifier with Arduino for measuring the DC current. We will measure the current of a 12V DC MCPCB LED module. We will display the current value on the serial monitor and later we will modify the code and circuit connections to display the current value on the 16×2 LCD.

In this tutorial, we will cover,

allpcb circuit
  1. Max471 Pinout and technical specifications
  2. Complete circuit diagram
  3. Max471 interfacing with Arduino
  4. Max471 Arduino programming and Finally
  5. Testing

Without any further delay let’s get started!!!



Amazon Links:

Arduino Nano USB-C Type (Recommended)

Max471 3A current Sensor breakout board Module:

12v Adaptor:

16X2 LCD

LCD 16×2 i2c:

*Disclosure: These are affiliate links. As an Amazon Associate I earn from qualifying purchases.

About the MAX471:

Max471

This is the Max471 bidirectional, high-side current-sense amplifier breakout board. This IC can take an input voltage of 3 to 36 volts. It can measure up to ±3 amp. Inside the IC there is a sensing resistor and it’s across these two Blue color terminals. These terminals are also connected with the RS+ and RS- pins.

This resistor is a very low value it’s 35 milliohms so if we apply our plus voltage supply to one side of the resistor and another side of the resistor we feed to our load then the current flowing through the resistor will be the same current flowing through our load. Now the max471 takes the voltage drop across that resistor and it calculates the current and that’s the current flowing through our load.



Max471 Applications:

Portable PCs:

Notebooks/Subnotebooks/Palmtops

Smart Battery Packs

Cellular Phones

Portable Phones

Portable Test/Measurement Systems

Battery-Operated Systems

Energy Management Systems

Max471 Absolute Maximum Ratings:

Max471

MAX471 Pinout:

As you can see the max471 breakout board has a total of 6 male headers which are clearly labeled as

  1. RS- Pin which is the negative side of the sensing resistor
  2. GND Pin
  3. SIGN Pin the sign pin will actually tell which way the current is flowing. In battery-powered operation, it actually gives us an indication of discharge and charging feature.
  4. OUT Pin this is the voltage output pin, so we will get a voltage output of one volt per amp and we can feed that into an analog to digital converter on our Arduino Uno or Arduino Nano and we could actually calculate the current through a load. So it is very simple, the voltage out is actually the current through the load.
  5. GND pin is the same as the other ground pin and finally
  6. RS+ Pin which is the positive side of the sensing resistor.

Download Max471 Datasheet:max471 datasheet


MAX471 Arduino Circuit Diagram:

Max471

As you can see the circuit diagram is very simple. The positive voltage wire of the power supply is connected with the RS+ terminal, while the ground wire of the power supply is connected with the ground pins of the MAX471 and Arduino board.

The positive voltage wire of the DC load is connected with the RS- pin of the MAX471 while the ground wire of the load will be connected with the ground pin of the Max471 module.

The out pin of the max471 is connected with the Arduino’s analog pin A1.

Max471 Interfacing with Arduino and DC Load:

Max471

As you can see a DC female power jack is soldered with the + and ground of the MCPCB DC 12V LED Bulb.

To connect this LED module with the MAX471 module cut the voltage wire. Connect the voltage wire coming from the power supply with the RS+ terminal of the max741 and the other wire with the RS- terminal of the Max45.

Max471

So now as you can see the positive wire from the DC female power jack is connected with the RS+ terminal of the max471 and the positive wire from the LED module is connected with the RS- terminal of the max471 module.

Max471

Finally, I connected a wire from the power supply ground with the ground pin of the max471. The Red wire is connected with the out pin which is connected with the Analog pin A1 of the Arduino. While the ground pin of the max471 is connected with the ground pin of the Arduino. You can connect any of the GND pins with the Arduino as both the ground pins on the Max471 module are internally connected.


MAX471 Arduino Programming:

The purpose of this program is to read the out pin of the max471 module and display the current value on the serial monitor. I uploaded this program and I was able to see the current value on the Serial Monitor.

Max471

At this point, I was quite satisfied with my programming and connections. It seems quite impractical to use the laptop for only monitoring the current value. Let’s display the current value on the 16×2 LCD.

MAX471 and 16×2 LCD with Arduino Circuit Diagram:

Max471

This is the modified circuit diagram. As you can see the max471 module connection with the Arduino remains the same. This time I add the 16×2 LCD.

Pin number1 and pin number 16 are connected with the Arduino’s ground. Pin number 2 and pin number 15 are connected with the Arduino’s 5 volts. Pin number 3 is the contrast pin of the 16×2 LCD and is connected with the middle leg of the Variable resistor or Potentiometer. While the other two legs of the variable resistor are connected with the Arduino’s 5 volts and ground. The RS pin of the LCD is connected with the Arduino’s pin number 10, the R/W pin is connected with the ground, the enable pin is connected with the Arduino’s pin number 9.  The data pins D4 to D7 of the LCD are connected with the Arduino’s pin number 6, 5, 4, and 3.


About the PCB board Sponsored by the PCBWay:

High quality & Only 24 Hours Build time:

The PCB board used in this project is sponsored by the PCBway Company, which is one of the most experienced PCB and PCB assembly manufacturer. They create high-quality PCBs at reasonable prices. The Gerber files of the PCB board used in this project can be downloaded from the PCBway official website by clicking on the download link given below.

Max471

For the easy interfacing, I designed a PCB board for the 16×2 LCD module. This PCB is manufactured by the PCBway Company. As you can see the quality is really great, the silkscreen is quite clear and the black solder mask looks amazing. I am 100% satisfied with their work…

Download 16×2 LCD PCB Board Gerber files:

Download Power supply board:

This is how the 16×2 PCB board looks after soldering. Now, I can easily interface this 16×2 LCD module with Arduino.

Max471


16×2 LCD interfacing with Arduino:

Max471

I connected the 16×2 LCD with the Arduino Nano as per the circuit diagram explained above.

MAX471 and 16×2 LCD Arduino Programming:

This is the same exact program, this time I added the LiquidCrytal library and defined pins of the Arduino. The RS pin is connected with the Arduino’s pin number 10, the enable pin of the LCD module is connected with the Arduino’s pin number 9, while the data pins d4 to d7 are connected with the Arduino’s pins 6, 5, 4, and 3…and finally, added these instructions for displaying the current value on the LCD. So, that’s all about the programming. Finally, I uploaded the code and I was able to monitor the current value on the 16×2 LCD module.


Max471

This is how easily you can use the MAX471 Current Sensor module with the Arduino and display the current value of a DC load on the Serial Monitor and 16×2 LCD. If you want to be notified each time I post a new article then don’t forget to subscribe to my website. For the complete step by step explanation and practical demonstration, watch the video tutorial given below. Support my YouTube channel “Electronic Clinic” by sharing the video, and don’t forget to subscribe.

Watch Video Tutorial:

 

 

Engr Fahad

My name is Shahzada Fahad and I am an Electrical Engineer. I have been doing Job in UAE as a site engineer in an Electrical Construction Company. Currently, I am running my own YouTube channel "Electronic Clinic", and managing this Website. My Hobbies are * Watching Movies * Music * Martial Arts * Photography * Travelling * Make Sketches and so on...

Related Articles

Leave a Reply

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

Back to top button