SK-404

Doc no. SK-404-H7Agarpati DryerRev A · Sheet 2.7 of 4

H7

Agarpati Dryer

Thermostat firmware for a solar incense-stick dryer: an Arduino UNO R4 WiFi reads a DHT22, switches a heater relay between 49 and 50 °C and reports faults on its display.

PrototypeRev A · 1 Dec 2026

01

Block diagram

DHT22air temp · humidity UNO R4 WiFi49 / 50 °C band Relayactive-LOW · D9 Heater12 or 24 V DC DisplayOLED · LED matrix Wi-Fi monitorread-only link Dashboardphone · laptop Heater off on any fault
Fig. 1: Sensor to relay, with a read-only window out
02

Characteristics

ThermostatA DHT22 on D4 measures the chamber air; a relay on D9 (active-LOW, normally-open contact) switches the heater on below 49.0 °C and off at 50.0 °C, a 1 °C hysteresis
Fail-safeThe heater stays off on any sensor fault and at 60 °C or more (E5); the normally-open contact keeps it off if the board resets, and a 4 s hardware watchdog drops the relay if the program hangs
Fault codesSix codes, shown steady on the UNO's built-in 12 × 8 LED matrix, the display and Serial: E1 sensor missing, E2 shorted, E3 corrupt data, E4 impossible reading, E5 over-temperature, E6 display missing
DisplaysModel A drives a 0.96-inch SSD1306 OLED over software I2C on D2 and D3; model B a 1.54-inch Waveshare ST7789 240 × 240 colour LCD over SPI
Wi-Fi dashboardOne variant serves a live page from the UNO R4's own Wi-Fi chip with 24 h of history and a self-healing watchdog; a separate ESP32 monitor reads the dryer over a one-way serial link through a 5 V to 3.3 V divider
Build kitAn illustrated build booklet (HTML and PDF) and a bill of materials of 22 parts, 24 pieces for the OLED model and 29 for the LCD model
03

Overview & build notes

A thermostat for a solar agarbatti (incense stick) dryer. The firmware runs on an Arduino UNO R4 WiFi and holds the chamber between 49 and 50 °C by switching the heater through a relay; the display shows the live reading, and the LED matrix shows ON, OFF or an error code.

Everything is built to fail safe. Sensor errors are only confirmed after three failed reads in a row, any fault or over-temperature forces the relay off, and the sensor reader gives up after about 0.3 ms instead of stalling interrupts, so the matrix never flickers.

The Wi-Fi code only reads dryer values: nothing in it can switch the heater. A pass that takes longer than 800 ms pauses Wi-Fi for 10 s, and a stalled Wi-Fi chip is rebuilt by the sketch while the thermostat keeps running.

04

Revision history

The current revision is A. Revisions are lettered from A in the order they were made, so a letter always means the same change.

Revisions of SK-404-H7, newest first
RevDateChange
AFirst release: thermostat firmware, build booklet and parts list, with a Wi-Fi dashboard variant and the OLED on D2 and D3.

Next on the BenchSIH 2026