Monday on the farm — Jumatatu ya kupanga: Plan your week and check your numbers. Learn more ↗
Back to blog
· 7 min read

18650 Batteries and Solar Trickle Charging — Powering Field Sensors That Run for Years

How to pick genuine 18650 lithium cells, size your solar panel for Kenya's sun, and wire it all together so your field nodes run without a battery change for...

Share:

18650 Batteries and Solar Trickle Charging — Powering Field Sensors That Run for Years

A field sensor that needs its battery changed every six months is a sensor you will eventually stop maintaining. The trick to a reliable farm IoT setup is matching battery capacity, solar panel size, and sensor power draw so the battery never empties — it just stays topped up indefinitely.

This post is the practical guide to doing that with the workhorse of small-scale IoT: the 18650 lithium-ion cell. We will cover what they are, how to identify genuine ones, how to wire them safely, and how to size your solar panel for Kenya's equatorial sun.

What is an 18650?

The name comes from its dimensions: 18mm wide, 65mm long. It looks like an oversized AA battery but stores about 10 times more energy. It is the same cell used inside laptop batteries, Tesla cars, e-bikes, and most rechargeable power banks.

Key properties:

  • Nominal voltage: 3.7V (varies from 3.0V empty to 4.2V full)
  • Typical capacity: 2,500–3,500 mAh for a good cell
  • Cycle life: 500–1,000 cycles for budget cells, 1,500–2,000 for good ones
  • Working temperature: -10°C to +60°C (Kenya is always inside this range) A single 18650 can run a sensor node sleeping most of the time and waking once an hour for over a year with no recharge. Add a solar panel and that becomes effectively forever.

Genuine cells versus fakes — how to tell

This is where most people get burned. Counterfeit 18650 cells are the most common scam in the IoT supply chain. A fake cell:

  • Advertises 9,000–12,000 mAh on the wrapper (physically impossible — real cells max out around 3,500 mAh)
  • Costs USD 1–2 per cell
  • Discharges in a few hours and won't hold a charge after a month Rule of thumb: if a cell costs less than USD 4–5 from a Chinese seller, or under KES 1,500 locally, it is fake. Real branded cells cost USD 5–10 each.

Trusted brands:

BrandModelCapacityNotes
SamsungINR18650-30Q3000 mAhReliable, honest spec, common
SamsungINR18650-25R2500 mAhHigher current capability
LGMH13200 mAhWidely tested
LGM505000 mAh (21700, not 18650)Larger cell, if you have space
PanasonicNCR18650B3400 mAhBest longevity, Tesla's choice
SanyoNCR18650GA3500 mAhExcellent, sometimes faked

Where to buy genuinely:

  • AliExpress: use only well-rated sellers (4.8+, 5,000+ orders, with photos showing serial numbers). Cells should arrive in plain wrap, not flashy packaging.
  • Pull-cells from used laptop batteries — these are real but their capacity is reduced. Useful for budget builds.
  • Avoid: roadside stalls, generic "GTL" or "UltraFire" brands, anything advertising over 4000 mAh.

How to wire 18650 cells safely

A 18650 cell is bare. It has no built-in protection, no exposed wires, no charging electronics. You connect it through:

  • A holder — holds the cell, provides spring contacts, exposes red/black leads
  • A protection circuit — prevents over-discharge, over-charge, and short circuit
  • A charge controller (TP4056) — manages the charging from your solar panel A complete sensor-node power module looks like this:
Solar panel (5W)
     │
     ▼
TP4056 charge module ────► 18650 cell in holder ────► 3.3V regulator ────► ESP32
                                                                              │
                                                                              ▼
                                                                          Sensors

The TP4056 is a tiny board costing under USD 1 that handles solar charging, cell protection, and battery output. You can buy them as "TP4056 with protection" — get this variant, not the bare ones.

Sizing your solar panel for Kenya

Kenya's sun is one of the most reliable solar resources in the world. The equator gets approximately 5–6 peak sun hours per day on average, with some seasonal variation:

  • January–March: strong sun, 5.5–6.5 peak hours
  • April–May (long rains): weak, 3–4 peak hours
  • June–September: good, 5–6 peak hours
  • October–November (short rains): weak, 3.5–4.5 peak hours
  • December: strong, 5.5–6 peak hours The worst-case month is the wettest one. Size your solar panel for April or November, not for sunny February.

A simple sizing example

A typical farm sensor node draws:

  • 80mA for 1 second every 10 minutes (when transmitting) ≈ 0.13mAh/hour

  • 50µA continuously when sleeping ≈ 1.2mAh/day

  • Total daily consumption: about 5–10mAh Compare that with what a 5W solar panel produces:

  • 5W ÷ 3.7V = 1.35A peak output

  • 1.35A × 3.5 peak sun hours (worst month) = ~4,700mAh per day in long rains

  • ~6,500mAh per day in sunny months You have a 500–1,000× safety margin in normal weather. Even after losses (clouds, dust, panel angle, inefficiency), you have more than 100× margin. A 5W panel is overkill for a single sensor node, but the cost premium for going from 2W to 5W is small (under USD 5) and the resilience to bad weather is worth it.

Recommended panel sizes:

Use casePanel sizeDaily output (worst month)Cost
Single sensor, low-frequency reporting2W~1,800mAhUSD 3
Single sensor, frequent reporting + LoRa5W~4,700mAhUSD 6
Camera or higher-power device10W~9,500mAhUSD 12
Farm brain power backup50–100W~50,000–100,000mAhUSD 50–80

Panel orientation — the equator advantage

In most of the world, solar panels need to be tilted to face the sun. In Kenya, much of the country sits within a few degrees of the equator, where the sun passes nearly overhead.

Practical rules:

  • For a field-deployed sensor node: mount the panel nearly horizontal, with a 5–10° tilt for rainwater runoff
  • The tilt direction does not matter much — pick whichever direction has the cleanest horizon
  • Keep the panel clear of shade from trees, buildings, or the box itself
  • A panel shaded for even 10 minutes a day loses far more energy than dust does in a month

Battery life over years — what to expect

A 18650 cell loses capacity gradually over many charge cycles. With a properly sized solar panel, your cell sees very few full charge-discharge cycles per year — maybe 10–20 in worst case. Real-world lifespan for a 18650 in a solar field-node application:

YearCapacity remainingAction
Year 195–100%None
Year 290–95%None
Year 380–90%Replace if you notice missed readings during long rains
Year 465–80%Replace
Year 5+VariableReplace if not already done

Replacement cells cost USD 5–8 each. The "replace battery every 3–4 years" cycle is the only routine maintenance most field nodes need.

Safe handling of 18650 cells

A 18650 is safe when handled correctly and dangerous when not. The rules:

  • Never short-circuit the terminals. Always store in a holder or wrapped in tape.
  • Never charge above 4.2V or discharge below 2.5V. The TP4056 handles this automatically — never bypass it.
  • Never puncture the cell. If a cell is dropped hard or dented, discard it.
  • Never put a damaged cell in an enclosed space — they can vent flammable electrolyte.
  • Dispose of dead cells responsibly. In Kenya, take them to electronics shops that accept e-waste — Lake Naivasha and Total stations sometimes have battery bins. A properly housed, properly charged 18650 in a sensor enclosure is no more dangerous than a phone. The danger is in misuse: short-circuiting, fast-charging without protection, or mechanical damage.

Toolkit and cost per power module

What you need (one sensor-node power stack):

  • 2× Samsung 30Q or LG MH1 cells — USD 12–16
  • 1× battery holder for 2 × 18650 — USD 2
  • 1× TP4056 with protection circuit — USD 1
  • 1× 5W solar panel — USD 6
  • 1× 3.3V regulator (AMS1117 module or LDO) — USD 1
  • Wire, connectors, in-line fuse — USD 2

Where to buy: AliExpress for everything except cells; cells from a verified branded seller on AliExpress only.

Steps:

  1. Solder solar panel leads to the TP4056 input.
  2. Solder battery holder leads to the TP4056 battery terminals.
  3. Solder TP4056 output to the 3.3V regulator input.
  4. Solder regulator output to your ESP32 power pin.
  5. Add an in-line 1A fuse on the battery output for safety.

Time: 30–45 minutes per module once you have done one.

Total cost per power module: USD 22–28 (KES 2,800–3,600).

Common battery and solar problems

SymptomLikely causeFix
Node dies after 1–2 weeksCounterfeit cell with real capacity 1/10 of advertisedReplace with branded cell
Node dies only in long rainsSolar panel too small or too dirtyUpsize panel; wipe monthly
Cell will not charge above 50%TP4056 board faulty or wired wrongReplace TP4056, check polarity
Cell drains overnight when node sleepsExcessive sleep current; bad regulatorUse known-good regulator, measure sleep current
Node only works in midday sunPanel charging directly into ESP32 without batteryWire through TP4056 + battery, not direct

What to do next

If you want to go deep, build one power module on a bench, run a node off it for a week without recharging by leaving the panel covered. Then expose to sun for two days and confirm the cell recharges. That single test tells you your sizing is correct.

Once your sensors are running for free off the Kenyan sun, you have built something rare: a piece of farm infrastructure with effectively zero running cost.

While the hardware is settling in, the operating-cost side of your farm — feed, labour, sales, vet bills — still matters. Track those at shira.farm for a complete picture.

See it in action

Tap this exact setup on our interactive visual guide — photorealistic farm scenes with clickable explainers showing what every device does, what it costs, and which Shira tier unlocks it.

Open the IoT Showcase