Skip to content

How It Works

System overview

Final system architecture (solid lines: power; dashed lines: data and control).
How information flows through the system: sensors → Arduino → Raspberry Pi → report.

Only the two battery holders and a small humidity probe go inside the TAMUQ climate chamber. All the electronics stay outside on the bench, protected from condensation. An Arduino reads every sensor once per second, runs each test step and enforces the safety limits. A Raspberry Pi stores the data, calculates battery health, runs the machine-learning model and creates the PDF report.

The six subsystems

  • Power

    Nitecore D2 standard charger (0.5 A), Nitecore SC4 fast charger (3 A), programmable electronic load (constant current to 2.5 V), five normally-open relays, 4 A fuses and 70 °C thermal cut-offs.

  • Sensing

    Two INA226 voltage and current sensors with 20 mΩ shunts, a DS18B20 temperature probe in each holder, and an SHT31 temperature and humidity probe in the chamber.

  • Interface PCB

    Our own two-layer board that plugs onto the Arduino Uno and carries the relays, fuses, sensors, the hardware cut-off and screw terminals. Fabricated by TAMUQ free of charge.

  • Control

    Arduino Uno firmware. It checks the safety limits 10 times per second, has a 2-second watchdog, and takes 1,000 samples per second right after the load switches on.

  • Data and analysis

    A Raspberry Pi with a database, Python analysis, and a Random Forest or Gradient Boosting model.

  • User interface

    Test setup, the 30-second Speed Test, the PDF report and CSV data export.

The battery holder

None of the holders we found online had a place for a temperature sensor, so Fahad Al Rwaili and Abdulaziz Al Jaber designed our own in SolidWorks. A built-in slot presses the probe against the cell, so we measure the battery's temperature, not the air's. Spring contacts with separate power and sense wires measure the voltage right at the cell.

It will be 3D-printed in PETG, ABS or ASA, plastics that stay rigid above 70 °C (PLA softens around 55–60 °C, so it was rejected).

The final plastic depends on the printer available [TO CONFIRM].

Custom 18650 holder with a slot for the temperature probe (SolidWorks model).

The circuit board (PCB)

PCB v1, the single-channel prototype of an earlier design (Altium, 3D view).

We first designed a single-channel prototype board (PCB v1). Reviewing it taught us five lessons that we applied to the new two-channel board, which is currently being designed:

  1. The temperature sensor resistor was 220 Ω instead of 4.7 kΩ fixed to 4.7 kΩ.

  2. There was no fuse in the battery path a 4 A fuse and a 70 °C thermal cut-off were added to each channel.

  3. A 25 W power resistor sat next to the battery discharging moved to an external electronic load.

  4. A small transistor did the switching replaced by relays rated for 5 A or more.

  5. The design-rule check was not clean the board is now checked against TAMUQ's rules before submission.

Inside the circuit (for engineers)

Three layers of safety

  1. Layer 1

    Software limits

    The Arduino disconnects a battery within 200 ms if the voltage goes above 4.25 V or below 2.45 V, the current goes above 3.5 A, or the battery goes above 60 °C.

  2. Layer 2

    Hardware cut-off

    A separate circuit (LM393 comparator with a latch) disconnects within 100 ms above 4.30 V or below 2.40 V, even if the Arduino freezes, and stays off until the operator presses a reset button.

  3. Layer 3

    Fuse and thermal cut-off

    Each channel has a 4 A fuse and a 70 °C thermal cut-off at the holder.

Hardware cut-off, part 1: threshold detection
Hardware cut-off, part 2: latch and relay-supply switch.

How a test runs

Each battery is discharged at a constant current down to 2.5 V, rests for at least 30 minutes, is recharged with its own charger, and rests again.

Health is graded as Good (State of Health 90 % or more), Degraded (80–90 %) or Poor (below 80 %).

Test sequence of one channel (dashed red: any fault leads to a safe stop).

Test plan

Cycles1–5Chamber condition25 °C · 50 % RHCell AStandard, 0.5 ACell BFast, 3 A
Cycles6–10Chamber condition35 °C · 60 % RHCell AStandard, 0.5 ACell BFast, 3 A
Cycles11–15Chamber condition40 °C · 70 % RHCell AStandard, 0.5 ACell BFast, 3 A
Cycles16–20Chamber conditionDischarge at 45 °C · 85 % RH; charge at 40 °C · 70 % RHCell AStandard, 0.5 ACell BFast, 3 A
CyclesBefore cycle 1 and after each blockChamber conditionReference capacity test at 25 °CCell AStandard, 0.5 ACell BStandard, 0.5 A

In the last block, the cells are charged at 40 °C and only discharged at 45 °C, so they are never charged above their 45 °C limit. The full test takes about 295 hours (about 12 days of running, or about three weeks of chamber time).