A small desk clock powered by an ESP8266/ESP-01 and a 128x32 I2C 0.91" OLED Display.
For a while I wanted a nice small clock on my desk that would tell me both the date and time.
Now the specific code for this project is only ready-for-use if you (like me) live in the Netherlands (or the same timezone); and don't ever plan on changing your wifi password. For anyone else, consider it a starting point for a project like this. I hope you find it useful.
- 0.91 inch 128x32 I2C Blue OLED Display (12832 SSD1306)
- ESP8266 ESP-01 Module
- CJMCU USB Micro B Breakout
- AMS1117 800MA DC-DC 5V to 3.3V Step-down converter
- A 3D-printed enclosure (See Clock case.stl and Clock case lid.stl)
- Some wires
- Some code (See MiniClock.ino)
Please note that on this display, only VCC, NC (GND), SDA and SCL are exposed.
- I found out on mine that the lid was a little too big. I have corrected the STL file for that, but not checked if it is actually okay now. Please let me know if you have issues with it.
- If you want to go the extra mile (be less lazy than me) and include a button and a CH340 you can keep it programmable.
- You can also implement OTA updates by making some minor changes to the code: https://randomnerdtutorials.com/esp8266-ota-updates-with-arduino-ide-over-the-air/
- I used a 3D pen to mount all the parts inside the enclosure. A hot glue gun will work just as fine.