Skip to content

garthvh/arduino-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Arduino Clock

Clock Body

I don't really have a great plan for this project, I already had a 4x20 LCD and 1307 breakout, I bought a $3 prototype laser cut case on a whim and ordered some buttons to fit from china.

I recently ordered a bunch of $5 SMD Uno clones with a micro USB connection that come without headers soldered on. I am going to use one of these to liberate my Adafruit metro from my Ciclop 3D Scanner and I soldered some male headers onto one for use in the clock. This has allowed me to connect everything together using jumper wires.

Currently the clock and sketch supports the following hardware

The case has a cutout for a rocker switch, and a three way switch is pictured in the Retro Built Games photos. I currently have a two way rocker switch installed in the case but don't have it actually connected and have not used it in any code yet.

Clock Body

To Start with I added a an enum to store the "modes" for the clock. Pushing button 1 will switch to the next mode. There are currently 4 different modes configured in the sketch.

  • SHOW_SPLASH - Displays the Splash Screen for 5 seconds and then switches to SHOW_TIME
  • SHOW_TIME - Displays the time using a large 3 row font below the date in the first row
  • SHOW_CUSTOM_TEXT - Displays the time and custom text loaded from the serial port
  • SHOW_SYSTEM_INFO - Displays System Information

Clock Screen Time

SHOW_TIME Display

Clock Screen Custom Prompt

SHOW_CUSTOM_TEXT Prompt Screen

Clock Screen Custom Text

SHOW_CUSTOM_TEXT Display Screen

Clock Screen System Information

SHOW_SYSTEM_INFO Display

The SHOW_SPLASH and SHOW_SYSTEM_INFO modes are essentially the same at this point, but the SHOW_SPLASH mode can be set as the default and then will load SHOW_TIME after the splash text has been up for 5 seconds.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages