Tekko BDSimSimulatorProjects

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.

▶ ফ্রি চালিয়ে দেখো / Run it free Parts অর্ডার করো (WhatsApp)

সার্কিট ডায়াগ্রাম · Circuit diagram

18650 Battery Health Checker circuit diagram — Arduino Uno R3, Voltage sensor (0–25 V), 18650 Li-ion cell (3.7 V), Resistor 330Ω, LED (green), LED (yellow), LED (red), Jumper wires

যা যা লাগবে · Parts you need

তার লাগানো · 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