Built on XDAI built a $15 ESP32 smart clock that does things no store-bought one canBy Adam ConwayCompatibility checks
No issues found
Wiring steps
- 1
MAX7219 4-in-1 32x8 LED matrix
- GNDtoGND
- VCCto5V
- CLKtoGPIO26
- DINtoGPIO27
- CStoGPIO25
- 2
Plug in the USB cable last.
ESPHome config
Paste into ESPHome Device Builder.
esphome:
name: smart-clock
esp32:
board: esp32dev
logger:
api:
encryption:
key: !secret api_encryption_key # make one at esphome.io/components/api
ota:
- platform: esphome
password: !secret ota_password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
spi:
- clk_pin: GPIO26
mosi_pin: GPIO27
font:
- file: "gfonts://Roboto"
id: font_main
size: 14
time:
- platform: homeassistant
id: ha_time
display:
- platform: max7219digit
cs_pin: GPIO25
num_chips: 4
lambda: |-
it.strftime(it.get_width() / 2, it.get_height() / 2, id(font_main), TextAlign::CENTER, "%H:%M", id(ha_time).now());
Some board drawings are from Wokwi and Seeed Studio.