An ultra-low-cost, edge-only acoustic drone detector on ESP32-S3 with encrypted LoRa or wired Ethernet/PoE alerting.
"Built for defense, hoping it becomes unnecessary. We believe in a world where no one needs to fear the sky."
Flash firmware directly from your browser — no toolchain needed:
Requires Chrome or Edge on desktop. Connect a Heltec V3/V4 (Detector, Relay or Gateway) or a LILYGO T-ETH-Lite S3 (Wired Detector) via USB-C and click Install.
Give your node a proper home. This community-designed enclosure for the Heltec WiFi LoRa 32 V3 by @nelson8588x2 has a window for the OLED and access to the buttons — download the model and print your own:
- 🖨️ MakerWorld — ready-to-print profiles
- 📐 GitHub — STEP source files to remix
Batear is officially fiscally hosted by the Open Source Collective (OSC). Your contribution directly supports the deployment of civil defense technology where it is needed most.
- 🇺🇦 Field Testing in Ukraine: We are partnering with local experts to verify Batear in active EW (Electronic Warfare) environments.
- 🔬 Hardware R&D: Funding allows us to procure high-precision sensors (ICS-43434) and PoE-capable hardware for professional-grade reliability.
- 🏢 Corporate Matching: Since we are a 501(c)(3) non-profit project, check if your employer matches your donation!
- 💎 100% Transparent: View every single receipt and transaction on our Public Ledger.
💖 Become a Sponsor on Open Collective
Drones are an increasing threat to homes, farms, and communities — and effective detection has traditionally required expensive radar or camera systems. Batear changes that.
For ultra-low-cost hardware, Batear turns a tiny ESP32-S3 microcontroller and a MEMS microphone into an always-on acoustic drone detector. It runs entirely at the edge — no cloud subscription, no internet connection, no ongoing cost. Deploy one at a window, a fence line, or a rooftop and it will alert you the moment drone rotor harmonics are detected nearby.
One LoRa node firmware runs as a Detector (mic + LoRa TX), a Relay (re-transmits other nodes' packets), or a Gateway (LoRa RX + OLED + LED + MQTT) — chosen per device at flash time — and the nodes form a small mesh. Any number of gateways forward alerts to Home Assistant via MQTT with automatic device discovery, one HA device per detector. The Wired Detector (mic + Ethernet/PoE + MQTT) is a separate build that publishes directly over Ethernet — no LoRa or gateway required, ideal for permanent installations.
Stop checking serial monitors. Batear brings drone detection directly to your dashboard.
- Plug & Play: Auto-Discovery via MQTT.
- Rich Diagnostics: Monitor signal strength (RSSI/SNR) in real-time.
- Automations Ready: Trigger your smart lights, alarms, or notifications when a drone is detected.
- Historical Logs: Analyze drone activity patterns in your area.
"Batear bridges the gap between complex signal processing and simple home automation."
Full documentation is available at batear.io.
| Getting Started | Prerequisites and supported boards |
| Hardware | Parts list, wiring diagrams, pin map |
| Build & Flash | Compile and flash the firmware |
| Configuration | Encryption keys, frequencies, MQTT, device IDs |
| How It Works | FFT harmonic detection algorithm |
| Calibration | Tuning detection thresholds |
| Adding a Board | Porting to new hardware |
Batear supports two deployment models — pick whichever fits the site:
direct, when in range
┌─────────────────────────────────────────────────────────────┐
│ ▼
┌─────────┴────────┐ ┌──────────────────┐ ┌──────────────────────┐
│ DETECTOR (×N) │ │ RELAY (×0..N) │ │ GATEWAY (×1..N) │
│ │ LoRa │ optional │ LoRa │ │
│ ICS-43434 mic │ ───────► │ │ ───────► │ SX1262 LoRa RX │
│ FFT detection │ │ re-transmits │ │ SSD1306 OLED + LED │
│ Battery monitor │ │ others' packets │ │ Wi-Fi + MQTT │
│ SX1262 LoRa TX │ │ up to 3 hops │ │ relay (optional) │
└──────────────────┘ └──────────────────┘ └───────────┬──────────┘
│ MQTT
▼
┌──────────────────────┐
│ HOME ASSISTANT │
│ │
│ one device per │
│ detector, whichever │
│ gateway heard it │
└──────────────────────┘
Every LoRa box is a Heltec WiFi LoRa 32 V3/V4 running the same node
firmware; its role comes from capabilities set at flash time.
Packets: AES-128-GCM, 38 bytes.
┌──────────────────────┐
│ WIRED DETECTOR (×N) │ Ethernet (PoE)
│ │ ───────────────────────────► ┌──────────────────────┐
│ ICS-43434 mic │ MQTT / JSON │ HOME ASSISTANT │
│ FFT harmonic detect │ + REST API / OTA │ (auto-discovery) │
│ W5500 Ethernet │ └──────────────────────┘
└──────────────────────┘
LILYGO T-ETH-Lite S3
# Clone
git clone https://github.com/batear-io/batear.git && cd batear
# Build detector (swap sdkconfig.detector → sdkconfig.gateway or
# sdkconfig.wired_detector for the other roles)
idf.py -B build_detector \
-DSDKCONFIG=build_detector/sdkconfig \
-DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.detector" \
set-target esp32s3
idf.py -B build_detector -DSDKCONFIG=build_detector/sdkconfig build
# Flash (replace PORT)
idf.py -B build_detector -DSDKCONFIG=build_detector/sdkconfig -p PORT flash monitorSee the full build guide for gateway and wired-detector setup and detailed instructions.
Batear is a community-driven project. We welcome contributions, whether through code, field data, or financial sponsorship.