Site icon Circuit Ideas for You

Arduino Battery Charger Circuit

This article show how to make a simple Arduino Battery Charger Circuit.

Charger stop and start charging using MOSFET.

Arduino read battery temperature with TMP36 sensor and decide safe charging.

Circuit is simple and work with basic components.

Arduino Coding:

int tempPin = A1;
int mosfetPin = 9;
float voltage = 0;
float temperatureC = 0;

void setup() {
pinMode(mosfetPin, OUTPUT);
digitalWrite(mosfetPin, LOW);
}

void loop() {
int sensorValue = analogRead(tempPin);
voltage = sensorValue * (5.0 / 1023.0);
temperatureC = (voltage - 0.5) * 100.0;

if (temperatureC < 40) {
digitalWrite(mosfetPin, HIGH);
} else {
digitalWrite(mosfetPin, LOW);
}

delay(500);
}

Code Explanation:

Circuit Working:

Arduino Battery Charger Circuit Diagram

Parts List:

Part NameSpecificationQty
Resistors10k ,10Ω 10 watt1 each
CapacitorElectrolytic 1µF 25V1
SemiconductorsMOSFET IRF5101
Temperature Sensor TMP361
Battery Holder AA Size1
Rechargeable Battery NiMH AA 1
Arduino Uno1

Arduino get 5 volt from USB power.

Temperature sensor TMP36 give analog voltage to Arduino pin A1.

Arduino read this value.

If temperature is below safe value then Arduino output goes HIGH to gate of IRF510.

IRF510 switches ON and allow current to battery through R2 resistor.

Capacitor C1 make sensor reading clean and stable.

If temperature go high then Arduino output goes LOW and MOSFET switches OFF and charging stops.

Battery connect to circuit using two wires as shown in circuit diagram.

Ground of Arduino, battery, sensor MOSFET all are common.

How to Build:

To build a Arduino Battery Charger Circuit follow the below steps for connections:

Conclusion:

This project is about Arduino Battery Charger Circuit.

Temperature protection make safe charging.

Circuit is easy to build and understand.

Can be improved later with voltage sensing, current sensing, LCD display or solar charging.

This basic design is good for small learning and DIY purpose.

References:

Arduino battery charging circuit

Exit mobile version