wa5znu / kuzu

kuzu - a tiny dust display

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Small Environment Sensor Display

Displays readings from MQTT bus, and optionally publishes BME280 temperature, humidity, and pressure.

I bought a very small SoC board, an ESP32-C3 with a tiny 0.42 inch SSD1306 72x48 pixel display, a Qwiic/Stemma type 4-pin connector, USB-C power/serial/programming, and a Neopixel-like LED.

The LED was a painfully bright blue from the start, so I brought in the Adafruit NeoPixel library to cut it back, using the Adafruit blink example to start with, and also to give a Green-Yellow-Red range for PM 2.5 values. Green < 5, Yellow < 20, Red > 20.

I used the manufacturer's 01Space Graphics Test sketch to start, then once I'd settled issues and gotten a working environment, I moved to following the examples below and connected to my own local MQTT brokers. Since the MQTT sketch included a BME280, I ordered a Qwiic/Stemma breakout board from Adafruit, and integrated that in as well.

Provenance

Cobbled together from these examples:

Issues Overcome

  • Set CDC on Boot in Arduino IDE Menu to make Serial.print work
  • Multiple copies of u8g2 and u8g2_arduino installed with different fonts
  • As always, string parsing in C
  • Can't find a font size that supports more than four key-value lines on LCD

Issues not yet overcome

  • style and utility
  • can we read the B button for UI

References

About

kuzu - a tiny dust display

License:MIT License


Languages

Language:C++ 100.0%