A $10 microcontroller, three thermistor probes and a 12 V PC fan can hold a charcoal smoker at its target temperature for a 12-hour cook, and text you when the brisket is done. That is what this build does.
Commercial controllers do the same job, but they lock you into an app and a cloud account. This one runs a web dashboard straight off the board, logs every minute to its own flash, and sends push alerts through ntfy. The firmware and the KiCad design are open on GitHub at aglucas/esp32_smoker.
This post covers what the controller does, how the circuit works, how a KiCad layout became a perfboard build, and what calibration taught me along the way.
What it does
The controller reads three probes, runs the fan to hold the pit at a set temperature, and tells you when something needs attention.
| Feature | How it works |
|---|---|
| Temperature probes | 3 NTC thermistors in °F: probe 0 is the pit, probes 1 and 2 are meat. Unplugged or shorted probes show as --. |
| Fan control | A 12 V PC fan on slow 50 Hz PWM. Auto mode runs a PID loop on the pit target; Manual holds a fixed %; Off. |
| Dashboard | A phone-friendly page at http://smoker.local with live temps, targets and a 1, 2, 3 or 6 hour graph. No CDN, so it works offline. |
| Alerts | Pit too low, pit too high, pit probe lost, meat almost done, meat done, and a fan-maxed warning. Sent through ntfy, queued if Wi-Fi drops. |
| Data log | One CSV row per minute in on-board flash, roughly 2 to 4 weeks of cooks. Downloadable from the dashboard. |
| Cook steps | Named, timed plans such as 3-2-1 ribs. Each step fires an alert when its time is up, and a running plan survives a power cut. |
| Wi-Fi | Joins your network, or falls back to its own access point with a network picker. |
The low-pit alarm waits 60 seconds by default before it fires, so opening the lid to spritz doesn't set it off. It also stays disarmed until the pit first reaches temperature.
The hardware
The whole circuit is one microcontroller module, three resistors for the probes, one transistor for the fan and a linear regulator, all running from a single 12 V supply.

Brains: Seeed XIAO ESP32-C3
The XIAO ESP32-C3 is a thumb-sized RISC-V board with Wi-Fi and a USB-C port. It needs its external antenna attached for usable range out at the smoker.
Probes: three voltage dividers
Each probe plugs into a 3-contact audio jack (J1 to J3). The tip connects to an ADC pin, which is pulled up to 3.3 V through a 100 kΩ resistor (R1 to R3). The thermistor in the probe completes the divider to ground through the sleeve.
| Probe | Jack | XIAO pin | GPIO | Pull-up |
|---|---|---|---|---|
| Pit | J1 | A0 | GPIO2 | R1, 100 kΩ |
| Meat 1 | J2 | A1 | GPIO3 | R2, 100 kΩ |
| Meat 2 | J3 | A2 | GPIO4 | R3, 100 kΩ |
All three probes must sit on ADC1. The XIAO only exposes three ADC1 pins; A3 is on ADC2, which is unreliable on the C3 and blocked by ESP-IDF. That is why the board has exactly three probe inputs.
Fan driver: one NPN transistor
GPIO6 (D4) drives the base of Q1 through R4. The fan connects to J5 between +12 V and Q1's collector, so the transistor switches the fan's ground side. D1, a 1N4004 across the fan, clamps the voltage spike each time the PWM switches the motor off.
Power: 12 V in, 5 V and 3.3 V out
The 12 V supply runs the fan directly. An LM7805 (U1) drops it to 5 V for the XIAO's VBUS pin, with 0.33 µF (C2) on the input and 0.1 µF (C1) on the output per the datasheet. A 470 µF bulk capacitor (C3) on VBUS rides through current spikes when the Wi-Fi radio transmits. The XIAO's own regulator then makes the 3.3 V rail that feeds the probe dividers.
The 7805 drops 7 V at the XIAO's current draw of around 100 mA, so it burns about 0.7 W. A TO-220 handles that in open air without a heatsink.
From KiCad to perfboard
The board is hand-built on perfboard, but it was laid out in KiCad first so every part lands on a real hole. The finished outline is 59 × 28.6 mm.

The trick is to treat the PCB editor as a perfboard planner rather than a fab tool:
- Set the grid to 2.54 mm (0.1 in), the hole pitch of standard perfboard, and snap every footprint to it.
- Use through-hole footprints only. Every part in this build (the XIAO in DIP form, the audio jacks, the TO-220 regulator, the TO-92 transistor, the axial diode) drops straight into 0.1 in holes.
- Route traces on the grid as well. Each trace becomes a run of tinned wire or a solder bridge on the back of the board.
- Print the layout at 1:1 and check it against the actual board before soldering. Then flip it, because you wire from the copper side.
The layout groups the board into zones that match the schematic. The three probe jacks sit on the left edge so the cables leave one side. The XIAO and the three 100 kΩ pull-ups sit in the middle. The 12 V side (regulator, filter caps, fan transistor, flyback diode and fan header) stays on the right, away from the analog probe traces.
The ERC and DRC checks still earn their keep on perfboard. They catch an unconnected pin or a swapped net before it becomes a cut wire and a reflowed joint.
Firmware highlights
The firmware is plain C on ESP-IDF v5.5.3, with no Arduino layer. A few design choices are worth calling out.
Slow PWM for the fan. A 2- or 3-wire PC fan has no PWM input, so the transistor chops its power. At the usual 25 kHz the fan stalls at low duty. At 50 Hz it spins steadily down to about 5 %, which is the range a smoker actually lives in. Any non-zero output below 5 % is raised to 5 %, and a 1-second full-speed kick gets a stopped fan turning.
A simple PID. Auto mode starts with Kp = 4 % per °F and Ki = Kd = 0, a proportional-only loop. The output (0 to 100 %) drives the fan directly. If the pit hits the high alarm, the fan shuts off and stays off until the pit cools back to target.
A fuel warning from the fan. If the fan sits at or above 90 % for 15 minutes, the controller sends one alert: the fire may be low on fuel or the vents may be set wrong. Both thresholds are adjustable.
Wi-Fi that falls back. The board tries its saved network first. If that fails, it starts its own access point (ESP32-Smoker-XXXX) with a network picker, and keeps retrying your Wi-Fi every 60 seconds in the background.
Logging without an SD card. History lives in a LittleFS partition in the ESP32's internal flash, one row per minute. After a power cut, the graph reloads the last 12 hours from flash once the clock syncs, and the outage shows as a gap.
A JSON API. Everything on the dashboard is also available at endpoints like GET /api/now and POST /api/fan, so the controller can feed a home automation system.
The dashboard
Everything is controlled from a phone browser; there is no app to install.

The top of the page shows each probe's current reading and target. The pit card holds the target, the low and high alarms, and the low-alarm delay.


The graph draws the pit target as a green line and the low and high alarms as red lines. The fan % sits on its own half-height graph underneath, on the same time axis, so you can see the PID working.
Calibration and lessons learned
The probes read correctly at a 180 °F oven and at boiling water, which is about 202 °F here at 5,400 ft.
- Probe choice drives the resistor value. Maverick ET-72/73 style probes measure about 200 kΩ at room temperature. A 100 kΩ pull-up keeps the divider in a usable range, and HeaterMeter's published Steinhart-Hart coefficients for that probe convert resistance to temperature.
- The C3's ADC tops out early. It is only accurate up to about 2.5 V, versus about 3.1 V on the classic ESP32. Below about 49 °F a cold probe looks the same as an unplugged one, so the dashboard says "below 49° or unplugged". That never matters during a cook.
- Measure the 3.3 V rail. The firmware converts millivolts to ohms using the supply voltage, so setting it to the measured value tightens accuracy. The serial log prints mV and ohms for every probe every 2 seconds for exactly this.
- Watch the strapping pin. GPIO2 (A0, the pit probe) is sampled at reset to pick the boot mode. If the board ever fails to boot with the pit probe plugged in, unplug it during power-up.
- Tie the grounds together. The 12 V fan supply and the XIAO must share ground, or the transistor never switches cleanly.
Build it yourself
The firmware, the KiCad project and the wiring notes are all in aglucas/esp32_smoker. With ESP-IDF v5.5.3 installed, building and flashing takes three commands:
idf.py set-target esp32c3
idf.py build
idf.py -p <PORT> flash monitor
To have the board join your Wi-Fi on first boot, copy main/secrets.h.example to main/secrets.h and fill in your network. It is git-ignored, so the password never gets committed. Without it, pick a network from the setup page instead.
If flashing can't connect, hold BOOT, tap RESET, then release BOOT to enter download mode. Probe names, pins and thermistor constants all live in PROBE_TABLE in main/config.h.