I have just shared a new project: “Arduino E-Paper Clock”
This project started with a desire to have a modern digital clock that would use the natural light of the room for illumination. This means the screen is always the right brightness, looking like paper rather than a traditional screen. By using an E…
Read more
Hey @Jamie239740
Welcome to the forum! That’s an awesome little clock, and a great use of the E-Paper hat.
Hello Jamie.
Your clock looks great. I don’t see how to access the files behind your project. You mention Github but can you give a more specific link, please?
John
Sorry John, it seems like the link must’ve been accidentally left out of the published version. Here’s the link: https://github.com/JamieK0/E-paper-Clock
Both the CAD models and code (under the E-paper_Clock folder) are included.
Nifty!
… How much scope is there for mucking around with the font and layout, with the libraries you’ve used?
The u8g2 library has a heap of available fonts.
The main limitation is the Arduino Nano that is used. It doesn’t have enough memory to store a full font file, so the “u8g2_font_logisoso50_tn” font is used as it only contains numbers. It can be replaced with any other number only fonts indicated by the “_tn” suffix from the u8g2 font library. In the code anywhere where it contains u8g2Fonts.setFont
should be updated to use the new font you’d like.
If you use a different microcontroller with more memory you may be able to use all the available fonts.
Also layouts can be adjusted by changing the x and y values where it says u8g2Fonts.setCursor(x, y)
in the code to adjust the positioning of the time. The size of the time can be adjusted by using a different font with a different height. Like u8g2_font_logisoso30_tn instead of u8g2_font_logisoso50_tn.