ESP-NOW sensor network with one gateway

Several battery nodes send readings over ESP-NOW without joining Wi-Fi, and one gateway forwards them to MQTT or Home Assistant.

Server / Home Assistant Board: ESP32-C3 SuperMini Level: ●●● ⏱ 2–4 h

⚠ Caution

Batteries: watch polarity, use protected cells and a charger with protection, never charge damaged cells unattended.

Many tiny nodes, one that talks to the router

ESP-NOW lets an ESP32 send a packet of up to 250 bytes to another ESP32 without joining a Wi-Fi network. A battery node wakes, sends, and sleeps in a fraction of the time that a Wi-Fi connection takes, so its battery lasts much longer. One gateway board that is on Wi-Fi receives the packets and forwards them to MQTT or Home Assistant.

Things that bite

  • The gateway’s channel is that of your router, and the nodes must send on the same channel. Fix the router channel, or let the nodes scan.
  • Use the send callback and retry when a packet is not acknowledged; radio is not a wire.
  • Encryption is available but the number of encrypted peers is limited, so check the documentation of your version.
  • Give each node an identifier and a counter in the packet, so the gateway can tell a lost message from a quiet sensor.

The range is similar to Wi-Fi, so walls matter. A mains-powered node can also repeat packets for far ones.

Components

  • ESP32 DevKit V1 (30 pin, WROOM-32)
  • ESP32-C3 SuperMini × 2
  • BME280 I2C module (3.3V) × 2
  • 18650 Li-ion cell + holder × 2
  • TP4056 USB-C Li-ion charger with protection × 2

What you need

Buy the parts kit · Estimated total: $24.60

ESP32 DevKit V1 (30 pin, WROOM-32) × 1
$4.00
Buy at AliExpress Buy at Amazon.com
ESP32-C3 SuperMini × 2
$5.00
Buy at AliExpress Buy at Amazon.com
BME280 I2C module (3.3V) × 2
$6.00
Buy at AliExpress Buy at Amazon.com
18650 Li-ion cell + holder × 2
$8.00
Buy at AliExpress Buy at Amazon.com
TP4056 USB-C Li-ion charger with protection × 2
$1.60
Buy at AliExpress Buy at Amazon.com
🇺🇦 Ukraine🌍 Other countries

Other countries: order these parts on AliExpress with the links below.

Some links are affiliate links: we may earn a commission at no extra cost to you.

Related ideas

⚠ Caution

Batteries: watch polarity, use protected cells and a charger with protection, never charge damaged cells unattended.

BLE temperature beacon

An ESP32-C3 on a Li-ion cell that advertises temperature over BLE and lasts months on deep sleep.

  • Board ESP32-C3 SuperMini
  • Level ●●○ Intermediate
  • Build time 1–2 h
Pick parts / kit
⚠ Caution

Batteries: watch polarity, use protected cells and a charger with protection, never charge damaged cells unattended.

Solar-powered weather node

A small outdoor station on a Li-ion cell and a solar panel that reports temperature, humidity and pressure trend every few minutes.

  • Board ESP32-C3 SuperMini
  • Level ●●○ Intermediate
  • Build time 2–3 h
Pick parts / kit
⛔ High risk

Mains 220–230 V can kill. Work with the power off, use certified isolated modules in an enclosure, fuse the line, and ask a qualified electrician if you are not sure.

Power outage notifier

A battery-backed ESP32-C3 that detects when mains disappears and sends a message with the time of the blackout.

  • Board ESP32-C3 SuperMini
  • Level ●●○ Intermediate
  • Build time 2–3 h
Pick parts / kit

← All module ideas →

Comments

No comments yet. Share your experience or ask a question.

Comments are moderated.