Site icon Circuit Ideas for You

Arduino Battery Charger Circuit

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

Here, charger stop and start charging using MOSFET and then Arduino read battery temperature with TMP36 sensor and decide safe charging.

Additionally, circuit is simple and work with basic components.

Arduino Code:

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:

ComponentsValuesQty
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

To begin with, Arduino get 5 volt from USB power and then temperature sensor TMP36 give analog voltage to Arduino pin A1, and then Arduino read this value.

If temperature is below safe value then Arduino output goes HIGH to gate of IRF510 and then IRF510 switches ON and allow current to battery through R2 resistor.

After that, capacitor C1 make sensor reading clean and stable.

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

Finally, 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:

Overall, this project is about Arduino Battery Charger Circuit and temperature protection make safe charging; also circuit is easy to build and understand.

We can improve this circuit later by adding voltage sensing, current sensing, an LCD display, or solar charging, as this basic design works well for learning and DIY projects.

Exit mobile version