Radio Links for Raspberry Pi Sensors: HC-12 vs WiFi with ESP32-C3
This guide is generated from data/guides.json and data/parts.json. Don’t edit by hand — edit the data.
Comparison
| Part | Role | Interface | Verdict | Price |
|---|---|---|---|---|
| HC-12 433 MHz wireless module | Radio link shed <-> Pi 4 | Serial1, 9600 baud, RX20/TX21 | yes | — |
| HiLetgo HC-12 433 MHz SI4438 module with antenna. Reliable for 100–1 000 m links. | ||||
| ESP32-C3 dev board | Shed node MCU | GPIO; Serial1 HC-12 (RX20/TX21); I2C SDA8/SCL9 | yes | ~$10.99 |
| The shed node MCU. Runs the AI_optimized_shed_TX.ino sketch. Seeed’s own board. | ||||
| Raspberry Pi 4 | 1-Wire master + villa collector | dtoverlay=w1-gpio; SQLite timeseries.db | yes | — |
| Used in the running shed build; works reliably. |
Verdict
Pick the part that matches your interface and accuracy needs. If you need humidity, prefer BME280 over BMP180. For long 1-Wire runs, DS18B20 is the most robust choice.
Disclosure: SensorRig is reader-supported. Some links may be affiliate links; if you buy through them I may earn a commission at no extra cost to you.
Related reading
- SQLite Rollups and Retention: Stop Your Sensor DB From Eating the SD Card
How rollup tables and a retention policy keep a Raspberry Pi sensor SQLite database from growing unbounded — and why SD-card wear is rarely the real problem.
- CT Clamp Burden Resistor Calibration for ADS1115: Avoiding Voltage Drift in Home Sensor Projects
A practical guide to calibrating CT clamp sensors with ADS1115 ADC, covering burden resistor selection, capacitor stabilization, and common failure modes in home sensor projects.
- HC-12 Packet Loss and Retry Protocol
The HC-12 433MHz serial bridge has no built-in retry or CRC at the UART passthrough level. Here is a practical application-level framing scheme with CRC-16, timeout-based retry, and backoff that actually worked on a live link — plus what went wrong.