Close
0%
0%

HC-01 Smart Humidor Controller

ESP32 + round GC9A01 TFT humidor controller: live humidity/temp, closed-loop fan control, custom PCB, plywood enclosure. Built at byitl.

Similar projects worth following
215 views
0 followers
The HC-01 keeps cigars at the right humidity automatically. An ESP32 reads temperature and humidity from an SHT40, shows it on a 1.28" round GC9A01 TFT, and runs a 5 V fan over a gel-bead drawer when the box drops below its band. It reports over Wi-Fi, so you can watch it without opening the lid. Where it stands: rev E of the custom PCB came back five for five working, after rev D was lost to a gerber flag that stripped the solder-side annular rings. It now runs in a real humidor, its readings agree with a reference hygrometer, and the log shows it closing the loop: below the band, fan on; back in band, fan off. It can only add moisture, and at 151 x 90 x 45 mm it is too big. Shrinking it is next. Board, firmware and the plywood enclosure are designed and built in-house at byitl. The build logs cover the whole arc, including the boards that arrived dead.

How it works

The HC-01 pairs an ESP32 with an SHT40 temperature/relative-humidity sensor and shows the reading on a 1.28" round GC9A01 TFT (240x240). A MOSFET drives a 5 V fan over a gel-bead drawer, and the controller closes the loop: below its humidity band the fan runs, back in band it stops. Firmware is built on ESP-IDF 6 with an LVGL display and a status endpoint over Wi-Fi, and the control logic is unit-tested on the host.

Why a round display

I wanted a gauge — something you can read across the room like the analog hygrometer it replaces. No commercial mount existed for the GC9A01 module, so I modeled a snap-fit bezel and enclosure from scratch and went through several 3D-printed test fits to get the display seated right.

From jumper wires to a custom board

The first prototype was an ESP32 dev board wired to the display and sensor with jumper wires, enough to prove out the display driver, the sensor pipeline (52.2% RH / 25.2 °C on the first live readout), and fan control. It was replaced by a custom PCB with an ESP32-WROOM-32E, USB-C programming via a CH340C, and plug-in headers for the display, sensor and fan. The first batch (rev D) failed with two separate faults. Two boards had an open display header caused by byitl's own tooling: a KiCad flag that stripped the solder-side annular rings. The other three were dead on arrival from a fault in the surface-mount power path that the flag could not have caused. Rev E set that flag correctly, and all five rev E boards work.

What's next

Closed-loop control and field testing are done: the controller runs in a real humidor and switches its fan on and off around the band. Next is making it smaller than 151 x 90 x 45 mm, seating the display carrier properly, and fixing phone provisioning. It can only add moisture, so drying a box that runs high is a separate problem.

More on the build

Full writeup: https://www.byitl.com/blog/hc-01-humidor-controller-jumper-wires-to-custom-pcb

Dead-boards forensics: https://www.byitl.com/blog/custom-pcb-fabrication-when-boards-arrive-dead

Rev E and the fix: https://www.byitl.com/blog/the-annular-ring-fix-held

In a real humidor: https://www.byitl.com/blog/it-works-it-is-also-too-big

BYITL: https://www.byitl.com

  • 1 × ESP32 (dev board → ESP32-WROOM-32E on revD PCB) Main microcontroller; jumper-wire prototype used a dev board, the custom board uses the WROOM-32E module
  • 1 × GC9A01 1.28" round TFT display (240x240, SPI) The gauge-style round display the enclosure and bezel were designed around
  • 1 × Temperature + relative humidity sensor module Feeds live environmental readings to the ESP32
  • 1 × MOSFET driver module Switches the 5 V circulation fan
  • 1 × 5 V DC fan Air circulation inside the humidor

View all 7 components

  • What the screen says, and why the small line matters

    Jerome Privott • 10/06/2026 at 15:22 • 0 comments

    The HC-01 controller mounted inside an open wooden humidor with its round screen lit

    Mounted inside the humidor, screen on, reporting over Wi-Fi. Four lines are worth reading off it.

    73.1%                  
    

    Those two humidity numbers used to be one number, and the screen showed the wrong one.

    The SHT40 sits in a walled chamber inside the enclosure, which exists so it samples humidor air rather than bead-bay air. The side effect is that with no air moving it measures the chamber. We measured that gap at twelve points: 55.8 %RH sitting still against 67.8 %RH from the same sensor sixty seconds of fan later, with a reference hygrometer in the box reading 71.

    The old screen headlined the still-air value, because it refreshed every five seconds and looked alive. It was confidently wrong by more than a tenth of the scale, and nothing on the panel admitted it.

    So the headline is now the post-purge sample, carrying its own age, and the still-air reading is demoted to a labelled line underneath. A number that is fifteen minutes old and says so is worth more than a fresh one that is lying. The same precedence is in the web UI, and /api/status grew a sample_age_s field so anything polling it can tell a stale sample from a missing one.

    Close-up of the round display showing the humidity reading, its age, and the still-air value beneath it

    The honest reading of that photo: the display still sits proud of the plywood, because the printed carrier does not seat flat and its clamp holes do not go all the way through. That part is modelled and not yet cut.

    Full write up: https://www.byitl.com/blog/it-works-it-is-also-too-big

  • It works in a real humidor. It is also too big.

    Jerome Privott • 10/06/2026 at 14:24 • 0 comments

    HC-01 is in a humidor with cigars in it, reading the air, running its fan on its own schedule and reporting over Wi-Fi. That was the point of the whole project.

    It logs to its own /api/status, which means I can watch it without opening the lid. Opening the lid is the single biggest disturbance you can apply to a humidor, and every measurement before this one had that baked in.

    The number the controller acts on is a post-purge sample: sixty seconds of fan, then a reading. Those are the ones worth quoting.

    2026-10-05 15:34   71.4 %
    2026-10-05 15:50   71.3 %
    2026-10-05 16:07   71.4 %
    2026-10-05 16:22   71.6 %
    2026-10-05 16:38   71.8 %

    A reference hygrometer sitting in the same humidor read 71 % across that afternoon. Five samples inside a 0.5 point spread, landing on an independent instrument's number. The next morning, after the box sat shut overnight, five more samples ran 72.6 to 74.0 % (mean 73.28, stdev 0.56) against 76 % on the hygrometer.

    That proves the sensor. It does not prove the controller. For that the thing has to notice it is dry and do something, and the log has one clean instance:

    15:07   control sample 67.8 %   fan ON
    15:34   control sample 71.4 %   fan OFF

    The band is 68.0 to 72.0, from a 70 % setpoint with 4 % hysteresis. 67.8 is under the floor by two tenths, the fan came on, air moved over the gel beads, and by the next sample the box was in band and the fan stood down. One event, and confounded: I pushed a firmware update at 15:19 that rebooted the unit and dropped the fan, so it ran about twelve of those twenty-seven minutes.

    The assembled HC-01 beside its printed bead drawer full of humidity gel and the jar the gel came from

    It is also 151 x 90 x 45 mm. About 0.6 litres of controller inside a box you bought to store cigars. Nothing in it is sized by vanity, and every item is a first-prototype decision I would revisit:

    The bead drawer is 40 x 78 x 13.5 mm of gel. That is the humidifier and the single largest consumer of volume. It is a drawer because I wanted to recharge it without disassembling anything, and a drawer costs rails, clearance and a front opening.

    The fan is a 30 mm case fan (YD3010HSL) chosen because it was in a drawer and runs on 5 V. It needs a shroud, a mounting face and a path to the beads.

    The display is a 1.28 inch round panel in a printed carrier, and a screen is the most expensive thing you can add to a small enclosure, in millimetres.

    The sensor gets its own walled chamber, because a reading taken in bay air is not a reading of the humidor. That is why a two dollar part occupies a quarter of the deck.

    Then six faces of 3 mm birch ply around a printed internal chassis. Laser-cut plywood is wonderful for a prototype and is not how you build the tenth one.

    Top-down view of the HC-01 board, harness, SHT40 sensor and 30 mm fan inside the plywood enclosure

    What it still cannot do is dry anything out. The fan is a humidification actuator: it moves air over wet beads. There is no vent and no desiccant. humidor_ctl_step returns true below the band and false above it, and false means stop adding, not start removing. The box has been sitting at 73 to 74 % against a 70 % target since that one control event, and the controller has correctly done nothing, because nothing is all it can do.

    Also not done: the display carrier is held in with superglue because it does not seat flat, phone provisioning does not work (the firmware speaks protocomm security2 and the stock apps speak security1), and the sensor still sits in a pocket that lags between purges.

    Full write up, including the numbers and the rest of the list: https://www.byitl.com/blog/it-works-it-is-also-too-big

  • The probe said OPEN while the display was working

    Jerome Privott • 10/05/2026 at 18:21 • 0 comments

    Quick catch-up since July. Rev D's failures turned out to be two separate faults, only one of them ours, and rev E came back from PCBWay five boards for five working: https://www.byitl.com/blog/the-annular-ring-fix-held

    This log is about the two pieces of my own test code that lied to me during that bring-up.

    The display hangs off a seven-pin header with no MISO line, so the SPI path is write-only. esp_lcd_panel_draw_bitmap() returns ESP_OK whether or not anything is on the other end of the wire, and "LCD panel create success" logs identically with nothing connected at all. The firmware is blind to a dead panel by construction.

    So I wrote a probe. The GC9A01 module silkscreens R8 as a CS pull-down sitting at the far end of the line, which makes a meter-free continuity test possible: float the ESP32's CS pin as an input with its internal 45k pull-up and let it fight R8. Reads low, R8 is winning and the whole chain is intact. Reads high, nothing is out there.

    It read open. The harness really was open, on four of seven conductors. Fresh jumpers fixed the display in seconds and I filed the probe away as validated.

    Two days later, qualifying the rest of the batch, board #1 gave me this in a single boot:

    W (1297) display_task: SENSE: CS   (IO16, J5.6) pullup=1 pulldown=0  -> OPEN (nothing pulling -- broken chain)
    W (1537) display_task: BRINGUP: pass 1/3 -- WHITE
    W (2517) display_task: BRINGUP: pass 1/3 -- RED
    W (3497) display_task: BRINGUP: pass 1/3 -- GREEN
    W (4477) display_task: BRINGUP: pass 1/3 -- BLUE

    Those lines are 1.2 seconds apart. The probe says the CS chain is broken, then the panel runs three full passes of white, red, green and blue, which it cannot do unless CS is being driven end to end. R8 is unpopulated on these modules whatever the silk says, so the probe reports OPEN on a broken cable and on a working one alike. It has no pass state. It agreed with the real fault once, by coincidence, and I took that as validation.

    The second one was worse, because it shipped. HC01_BRINGUP_FANBLINK square-waves the fan three seconds on and three seconds off and bypasses the controller:

    fan_effective = ((now_s % 6) < 3);

    It exists for a good reason. On an open bench the room sits far below a 70% setpoint, so the controller asks for the fan continuously and never exercises the off path, which is also exactly what a shorted MOSFET looks like. But that qualification image stayed on the demo unit, and for two days the fan cycling read as a control bug. It was now_s % 6.

    HC-01 rev E wired into its enclosure: board, harness, SHT40 and the 30 mm fan

    Two rules out of it.

    A diagnostic gets a known-good reading before I trust a bad one. Thirty seconds on a working board would have binned the probe.

    Anything that changes product behaviour has to be provably absent from the shipped binary by a command, not by memory:

    $ strings -a qual-image.bin | grep -c FANBLINK
    1
    $ strings -a build/humidor.bin | grep -c FANBLINK
    0

    The assembled HC-01 next to the printed gel tray and the humidifier beads

    Full write-up with the rest of it: https://www.byitl.com/blog/the-probe-said-open-the-display-worked

  • 3 of 5 boards arrived dead — proving it wasn't the design

    Jerome Privott • 07/23/2026 at 14:37 • 0 comments

    Real talk: three of the five assembled revD boards arrived dead. Same cable, same firmware — one board lights up, another reads millivolts where 5 volts should be.

    Here's where a month-old design decision paid off. Because the board has labeled test points on every power rail, a documented power path, and a firmware mode that lets a board report its own voltages, "where does the voltage stop?" became a checklist instead of an investigation. The diagnosis took minutes, not days: bad solder joints from assembly — an assembly defect, not a design error. The evidence was strong enough that the fab opened an after-sales review within hours.

    The lesson for anyone shipping hardware: design for the failure investigation you hope you'll never run.

    Full forensics — measurements, joint photos, and the checklist: https://www.byitl.com/blog/custom-pcb-fabrication-when-boards-arrive-dead

    Meanwhile, the good boards took firmware without complaint (photo: first flash on a working revD). Next up: full assembly in the enclosure and closed-loop humidity control.

  • From spaghetti to silicon: the revD boards arrive

    Jerome Privott • 07/23/2026 at 14:36 • 0 comments

    The custom HC-01 boards are here. One photo tells the story: the new revD board sitting right above the jumper-wire prototype it replaces.

    Every jumper is now a routed trace. Every module — display, environmental sensor, fan driver — gets a dedicated plug-in header. USB-C with a CH340C replaces the dev-board dongle, and the ESP32-WROOM-32E sits directly on the board. Designing it meant learning schematic capture, layout, and DFM as a company of one.

    The lesson from this phase: the prototype's job is to be wrong fast. The board's job is to be right forever. You need both.

    Full writeup of the jump from jumper wires to a custom PCB: https://www.byitl.com/blog/hc-01-humidor-controller-jumper-wires-to-custom-pcb

    Next: bring-up on the new boards — which turned into a story of its own.

  • It's alive: 52.2% RH / 25.2 °C, live from the sensor

    Jerome Privott • 07/23/2026 at 14:35 • 0 comments

    Milestone day. The HC-01 went from parts on a bench to a working prototype: 52.2% relative humidity and 25.2 °C, read by the sensor, processed by the ESP32, and drawn live on the round display in a gauge-style readout.

    The whole chain works — sensor to firmware to screen — and the display module also passed its fit test in the 3D-printed enclosure (last photo).

    Still ahead: fan control tuning, closed-loop humidity regulation, final enclosure fit, and field testing in an actual humidor. But today, we celebrate.

  • First light: the round TFT is alive

    Jerome Privott • 07/23/2026 at 14:34 • 0 comments

    Nothing beats the moment a screen you wired yourself lights up for the first time.

    Color test passed: the GC9A01 is alive and talking to the ESP32 over SPI. The test pattern cycles through solid colors and gradients to check every pixel and confirm the driver timing is right. In the background of the last shot you can see the 3D-printed enclosure waiting for its guts.

    It might not look like much, but this frame means the display, the wiring, and the code are all doing their jobs. From here, the next step is putting real numbers on that screen.

  • Wiring day: ESP32, helping hands, and triple-checked jumpers

    Jerome Privott • 07/23/2026 at 14:33 • 0 comments

    With the bezel sorted, time to give the display something to say. The brain is an ESP32 dev board; wiring it to the GC9A01 over SPI and to the temperature/humidity sensor happened in the helping hands, under the magnifier, one triple-checked jumper at a time.

    No factory, no team — BYITL is a one-person shop, and the lab is a folding table with a soldering station. Every connection was soldered and buzzed out by hand before power ever touched the board.

    Nothing glamorous in these photos, which is exactly why they're here: this is what building a product actually looks like. Next log: first light.

  • Meet the build: a round display needs a home

    Jerome Privott • 07/23/2026 at 14:32 • 0 comments

    Every build starts somewhere. This one started with a display: a 1.28" round GC9A01 TFT, chosen because a humidor controller should read like a gauge — glance at it across the room, know your humidity.

    Problem: nobody makes a mount for this module. So the enclosure came first. I modeled a lid with a circular cutout and a snap-fit bezel to capture the display, then ran test print after test print until the module seated flush without pressure on the glass.

    These photos are day one of the project (mid-July): the bare display module, the first printed lid with the display cutout, and the bezel fit checks. Next up: wiring the ESP32.

View all 9 project logs

Enjoy this project?

Share

Discussions

Does this project spark your interest?

Become a member to follow this project and never miss any updates