🌡️ Beehive IoT sensors
Product direction
Beehive IoT sensors should grow through three clear hardware phases. The docs are now grouped by phase first, because each phase needs both a product description and a bill of materials:
- Phase 1 - Lab validation - prove firmware, wiring, calibration, and telemetry ingestion on a bench.
- Phase 2 - Field MVP - deploy a weatherproof DIY hive scale that measures the signals beekeepers need first.
- Phase 3 - Production kit - convert the proven design into a repeatable, supportable, sellable device.
This split keeps the first public build cheap and learnable while still showing the path to a finished Gratheon product. The current prototype already proves the most important path: an ESP32 collects temperature and weight data and sends readings to telemetry-api. The hardware scope, bill of materials, functionality, electrical interfaces, mechanical interfaces, and upgrade path are documented under the relevant phase so the sidebar follows the build journey.
Phase overview
| Phase | Goal | Primary user | Target cost | Product description | BOM |
|---|---|---|---|---|---|
| Phase 1 - Lab | Fast bench prototype for firmware and API validation | Developer, contributor, early maker | €20-35 | Product description | Bill of materials |
| Phase 2 - Field MVP | Weatherproof DIY hive scale for pilot apiaries | Pilot beekeeper, field tester | €45-90 | Product description | Bill of materials |
| Phase 3 - Production | Calibrated, supportable hardware kit | Paying customer, reseller, managed apiary | €90-180+ | Product description | Bill of materials |
System connection model
The hardware should be described as connected subsystems, not as a loose parts list. This makes electrical, mechanical, and service decisions explicit.
flowchart LR
subgraph Mechanical[Mechanical system]
frame[Hive scale frame]
loadcell[Load cell]
stops[Overload stops and side guides]
end
subgraph Electrical[Electrical system]
hx711[HX711 or 24-bit ADC]
esp32[ESP32 firmware]
temp[DS18B20 probe]
humidity[SHT31/BME280 ambient sensor]
power[Battery, charger, fuel gauge, solar input]
end
subgraph Cloud[Gratheon services]
telemetry[telemetry-api]
graphql[graphql-router]
app[web-app dashboards and alerts]
end
frame --> loadcell
stops --> frame
loadcell -- low-level differential signal --> hx711
hx711 --> esp32
temp --> esp32
humidity --> esp32
power --> esp32
esp32 -- HTTPS metrics --> telemetry
app --> graphql
graphql --> telemetry
Current approach assessment
| Area | Current state | Gap | Recommended change |
|---|---|---|---|
| Documentation grouping | Older docs had separate parent folders for product phases and BOM. | Readers had to jump between layers for one build phase. | Use phase-first folders: each phase contains its product description and bill of materials. |
| Value proposition | Docs say sensors support the beehive scales product. | The page did not explain why a beekeeper should build it or what events it detects. | Lead with “DIY hive scale + climate telemetry” and map metrics to beekeeper decisions. |
| Bill of materials | Existing BOM listed purchased parts and many research sensors together. | It mixed lab, MVP, optional research sensors, mechanical prototype parts, and missing prices. | Keep BOM per phase: Lab, Field MVP, Production. |
| Electrical interfaces | Parts were listed, but connection boundaries were implicit. | Load-cell, 1-Wire, I2C, power, and service/debug connections need different treatment. | Add per-phase interconnect maps, pin tables, connector choices, and wiring rules. |
| Mechanical interfaces | Scale frame was treated as a component. | Weight accuracy depends on load path, side load, overload stops, cable protection, and calibration access. | Treat the frame, load cell, top plate, stops, and cable routing as one mechanical subsystem. |
| Chip choice | ESP32 is listed as popular and cheap. | No decision rule for WiFi vs LoRa vs cellular. | Keep ESP32-WROOM/DevKit for Lab and Field MVP; add LoRa/cellular gateway as Production variants. |
| Telemetry API | telemetry-api supports temperatureCelsius, humidityPercent, weightKg, timestamps, batching, and dedupeKey. |
Firmware/docs should consistently use the /iot/v1/metrics JSON contract; battery voltage is not yet represented. |
No backend blocker for MVP; add future batteryVoltage, batteryPercent, rssi, firmware, hardware, and calibration metadata. |
| Power | Firmware sleeps most of the time. | Page had no battery budget, send interval guidance, or solar recommendation. | Use 30-60 seconds in lab and 10-15 minutes in field, then size battery/solar from measured current. |
| Product representation | Page was engineering-only. | It did not look like a phased product with install scope, cost, data examples, or next purchase/action. | Use the three-phase roadmap and phase-specific BOM pages. |
Research findings
Local research notes and internet checks point to the same MVP order: weight + temperature/humidity first, then acoustic, CO2, air-quality, and tamper sensors later.
- A multisensor hive-monitoring platform measuring weight, sound, temperature, humidity, and CO2 was shown to detect events such as swarming, theft, honey gathering, food shortage, and colony decline through sensor fusion (A Smart Sensor-Based Measurement System for Advanced Bee Hive Monitoring, DOI:10.3390/s20092726). For Gratheon, this validates the long-term multimodal direction, but not all sensors are needed on day one.
- A 2024 low-cost beehive monitoring review highlights temperature, humidity, hive weight, and sound as common practical modalities, while stressing that accuracy and beekeeper interpretation determine usefulness (Advances in Beehive Monitoring Systems: Low-Cost Integrating Sensor Technology for Improved Apiculture Management, DOI:10.1051/e3sconf/202458904001).
- Energy-focused precision-beekeeping work confirms that offline field deployments must be designed around sleep cycles, radio duty cycle, and reduced edge processing rather than constant streaming (Analysis of Energy Consumption in a Precision Beekeeping System, arXiv:2010.14934).
- ESP8266/ESP32 + ESP-NOW + GSM/GPRS gateway research shows a cost-effective apiary topology where cheap hive nodes talk locally to a single internet gateway (Bee colony remote monitoring based on IoT using ESP-NOW protocol, DOI:10.7717/peerj-cs.1363). This is a good production architecture for apiaries without WiFi.
- Open DIY examples and component guides repeatedly use ESP32/ESP8266 + HX711 + load cell + DS18B20/DHT-style climate sensor, including public tutorials and open-source smart-scale projects. This reduces adoption risk because beekeepers can source parts and debug with common Arduino/ESP32 tooling.
- Outdoor sensor wiring should treat cable entry, strain relief, sealing, O-rings, and unused connector caps as part of the design, not as afterthoughts. For this reason, the production phase now has a connector strategy instead of a generic “waterproof connectors” line item.
Services
- https://github.com/Gratheon/hardware-beehive-sensors - sensor firmware and hardware notes
- https://github.com/gratheon/telemetry-api - server-side ingestion and querying
- Telemetry API docs - service-owned OpenAPI documentation
Current service architecture
flowchart LR
beehive-sensors[<a href="https://github.com/Gratheon/hardware-beehive-sensors">hardware-beehive-sensors</a>] -."send metrics".-> telemetry-api
telemetry-api --"store sensor time series" --> mysql[(<a href="https://github.com/Gratheon/mysql">mysql</a>)]
telemetry-api --"verify API tokens for REST calls"--> user-cycle[<a href="https://github.com/Gratheon/user-cycle">user-cycle</a>]
web-app[<a href="https://github.com/Gratheon/web-app">web-app</a>] --"render telemetry charts"--> graphql-router[<a href="https://github.com/Gratheon/graphql-router">graphql-router</a>]
graphql-router --"query metric history"--> telemetry-api