18650 ব্যাটারি হেলথ চেকার — তিনটা বাতি দিয়ে রায়18650 Battery Health Checker
ভোল্টেজ সেন্সর মডিউল ভোল্টেজ ৫ ভাগে ভাগ করে দেয়, তাই ২৫ ভোল্ট পর্যন্ত নিরাপদে মাপা যায়। ৩.৫ ভোল্টের উপরে সবুজ, ৩.০ এ হলুদ, তার নিচে লাল — দুর্বল সেল আর প্যাকে ঢুকতে পারে না।
The voltage-sensor module divides a dangerous input by five, so even a 25 V battery reads safe at A0. Green above 3.5 V, yellow from 3.0, red below — a tired cell never sneaks into a pack again.
সার্কিট ডায়াগ্রাম · Circuit diagram
যা যা লাগবে · Parts you need
- 1 × Arduino Uno R3 Arduino Uno
- 1 × Voltage sensor (0–25 V) ভোল্টেজ সেন্সর (0–25 V)
- 1 × 18650 Li-ion cell (3.7 V) 18650 লিথিয়াম ব্যাটারি (3.7 V)
- 3 × Resistor 330Ω Resistor
- 1 × LED (green) LED বাতি
- 1 × LED (yellow) LED বাতি
- 1 × LED (red) LED বাতি
- 14 × Jumper wires জাম্পার তার
তার লাগানো · Wiring
| Voltage sensor (0–25 V) + | → | Arduino Uno R3 5V |
| Voltage sensor (0–25 V) - | → | Arduino Uno R3 GND |
| 18650 Li-ion cell (3.7 V) + | → | Voltage sensor (0–25 V) VCC |
| 18650 Li-ion cell (3.7 V) - | → | Voltage sensor (0–25 V) GND |
| Voltage sensor (0–25 V) S | → | Arduino Uno R3 A0 |
| Arduino Uno R3 D13 | → | Resistor a |
| Resistor b | → | LED A |
| LED K | → | Arduino Uno R3 GND.3 |
| Arduino Uno R3 D12 | → | Resistor a |
| Resistor b | → | LED A |
| LED K | → | Arduino Uno R3 GND.3 |
| Arduino Uno R3 D11 | → | Resistor a |
| Resistor b | → | LED A |
| LED K | → | Arduino Uno R3 GND.3 |
Code (Arduino C++)
// 18650 battery health checker: the voltage-sensor module divides the cell's
// voltage by 5, so a dangerous 20 V battery becomes a safe 4 V at A0. Green
// above 3.5 V (good), yellow 3.0-3.5 (recharge soon), red below 3.0 (cell is
// tired — do not trust it in a pack). Swap the 18650 for any source under 25 V.
void setup() {
Serial.begin(9600);
pinMode(11, OUTPUT); pinMode(12, OUTPUT); pinMode(13, OUTPUT);
}
void loop() {
float volts = analogRead(A0) * (5.0 / 1023.0) * 5.0;
digitalWrite(13, volts >= 3.5 ? HIGH : LOW);
digitalWrite(12, volts >= 3.0 && volts < 3.5 ? HIGH : LOW);
digitalWrite(11, volts < 3.0 ? HIGH : LOW);
Serial.print("Battery: "); Serial.print(volts, 2);
Serial.print(" V | Verdict: ");
Serial.println(volts >= 3.5 ? "GOOD" : (volts >= 3.0 ? "RECHARGE" : "REPLACE"));
delay(400);
}
আরো project · More projects
- চুম্বকীয় দরজার গার্ড — রিড সুইচ আর সireন দিয়েMagnetic door guard (reed switch + grace siren)
- এলপিজি লিক অটো-কাটঅফ — গ্যাস ধরলেই ভালভ বন্ধLPG leak auto-cutoff (gas detector closes the valve)
- অটোমেটিক পেট ফিডার — এক চাপে এক পোরশনAutomatic pet feeder (one button, one portion)
- সিও ভেন্টিলেটর — MQ-7 সেন্সরে এক্সহস্ট ফ্যান ঘোরেCO ventilator (MQ-7 spins the exhaust fan)