Usecase 19
Usecase 19
🎯 Objective:
Develop hardware that protects the battery from over-voltage, under-voltage, and short circuits using Arduino and safety mechanisms.
Voltage Sensor 1 A0
Voltage Sensor 2 A1
Voltage Sensor 3 A2
Relay Module D4
Buzzer D5
// LCD setup
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
Serial.begin(9600);
lcd.begin(16, 2);
lcd.backlight();
pinMode(VOLTAGE_SENSOR_1, INPUT);
pinMode(VOLTAGE_SENSOR_2, INPUT);
pinMode(VOLTAGE_SENSOR_3, INPUT);
pinMode(CURRENT_SENSOR, INPUT);
pinMode(RELAY_PIN, OUTPUT);
pinMode(BUZZER_PIN, OUTPUT);
pinMode(LED_GREEN, OUTPUT);
pinMode(LED_RED, OUTPUT);
void loop() {
// Read voltage values
float voltage1 = analogRead(VOLTAGE_SENSOR_1) * (5.0 / 1023.0) * 5;
float voltage2 = analogRead(VOLTAGE_SENSOR_2) * (5.0 / 1023.0) * 5;
float voltage3 = analogRead(VOLTAGE_SENSOR_3) * (5.0 / 1023.0) * 5;
lcd.setCursor(0, 1);
lcd.print("V3:");
lcd.print(voltage3, 2);
lcd.print("V I:");
lcd.print(current, 2);
lcd.print("A");
delay(1000);
}
2️⃣Fault Detection
● Over-voltage protection: If any cell voltage > 4.2V, relay disconnects battery
● Under-voltage protection: If any cell voltage < 3.0V, relay disconnects battery
✅ Final Outcome
✔ Monitors voltage & current in real-time
✔ Automatically disconnects battery on over-voltage, under-voltage, or overcurrent
✔ Alerts user using LCD, buzzer, and LED indicators
✔ Prevents battery damage and increases lifespan