Most security gadgets are overpriced plastic boxes.
Commercial RF monitoring tools and penetration testing gadgets often cost upwards of ₹25,000 to ₹75,000 ($300 to $900). When you crack open the injection-molded shell, what do you find? An off-the-shelf ₹350 ($4) microcontroller, an unshielded antenna trace, and a custom logo.
We decided to build our own autonomous detection node — completely air-gapped, zero cloud dependencies, and capable of logging deauth storms and beacon spoofing in real time onto an OLED display.
:)
Bench Prototype
Breadboard rat nest with jumper wires everywhere. Worked on first boot.
:/
Then Day 3 Came
Wi-Fi buffer overflowed when 40 devices chatted simultaneously.
:(
5V Magic Smoke
Buck converter output was set to 5V, fed into the 3V3 pin. Module died instantly.
02 / SCHEMATIC & ARCHITECTURE Handling High-Rate 802.11 Frames in the Promiscuous Callback.
In promiscuous mode, the ESP-IDF Wi-Fi driver delivers raw 802.11 frames directly to a callback — the lwIP TCP/IP stack is not involved. The challenge is keeping the callback fast enough to avoid dropped frames under high traffic.
We registered a promiscuous mode callback that copies only the 24-byte management header into a FreeRTOS ring buffer, deferring all heavy processing to a separate task:
PRO TIP FROM THE BENCH
Octal PSRAM on the ESP32-S3 is slower than internal SRAM. Always keep your high-speed packet ring buffers inside the internal 512KB SRAM!
// BuildThatCrazy // Sentinel v2.1: passive deauth/disassoc detector
// Keep callback light — heavy work happens in a separate task.
typedef struct {
uint16_t len;
int8_t rssi;
uint8_t hdr[24]; // 802.11 mgmt header only
} mgmt_evt_t;
static void IRAM_ATTR promisc_cb(void *buf, wifi_promiscuous_pkt_type_t type) {
if (type != WIFI_PKT_MGMT) return;
const wifi_promiscuous_pkt_t *pkt = (const wifi_promiscuous_pkt_t *)buf;
const uint8_t *p = pkt->payload;
if (pkt->rx_ctrl.sig_len < 24) return;
uint8_t subtype = p[0] & 0xFC;
bool is_deauth = (subtype == 0xC0);
bool is_disassoc = (subtype == 0xA0);
if (!is_deauth && !is_disassoc) return;
mgmt_evt_t evt = { .len = pkt->rx_ctrl.sig_len, .rssi = pkt->rx_ctrl.rssi };
memcpy(evt.hdr, p, 24);
BaseType_t woken = pdFALSE;
xRingbufferSendFromISR(frame_rb, &evt, sizeof(evt), &woken);
}
The two dumb mistakes that almost killed the project.
FAILURE #1: Thermal throttling. After ~40 min of continuous scanning inside the PETG enclosure, the SoC hit 84°C (measured with IR thermometer) and the device reset.
FIX: Aluminum cold plate + dynamic CPU frequency scaling (80 MHz idle, 240 MHz on anomaly detection).
FAILURE #2: Power rail sag. The 3V3 rail dipped to 2.7V during Wi-Fi TX bursts, causing brownout resets.
FIX: Added low-ESR bulk capacitance near the module + 0.1µF ceramic. Root fix: better regulator and shorter power traces.
FAILURE #3 (magic smoke): Buck converter output was set to 5V and fed into the 3V3 pin. Module died instantly.
FIX: Always measure converter output with a multimeter BEFORE connecting the board.
HARDWARE SPECIFICATION SHEET
| Parameter | Bench Value | Notes |
|---|
| Microcontroller | ESP32-S3-WROOM-1 (Dual-Core 240MHz) | With hardware crypto |
| Antenna | 2.4GHz High-Gain SMA Swivel + LNA | 6 dBi antenna gain |
| Display | 0.96" I2C Monochrome OLED (SSD1306) | Custom bitmap telemetry |
| Battery | 18650 Li-Ion Cell (3400mAh) | Runtime depends on scan duty cycle |
| Total BOM Cost | ₹950 per unit | ESP32-S3 ₹420 + OLED ₹210 + Antenna ₹180 + PCB ₹140 |
Your weekend build checklist.
Grab your soldering iron and follow these exact steps. If you get stuck, look at the annotated schematic taped to the back of this document.
BENCH WORKFLOW CHECKLIST (CLICK TO TICK OFF)
Flash the bootloader via esptool.py at 921600 baud rate
Ensure GPIO0 is grounded before inserting USB-C.
Solder a low-ESR electrolytic capacitor and 0.1µF ceramic onto the 3V3 rail
Place as close to the ESP32 module as possible. Check polarity on the electrolytic.
Wire the I2C OLED display to GPIO8 (SDA) and GPIO9 (SCL)
Use 4.7k pull-up resistors if your module lacks them.
Mount external SMA antenna jack to the custom 3D enclosure
Keep the coaxial pig-tail shorter than 45mm.
Calibrate RSSI noise floor in clean RF environment
Run make calibrate_rssi in the terminal.