Digital Clock with the Parallax P1 Microcontroller
I’m happy to share with you my digital clock with the Parallax P1 microcontroller.
Thanks to Parallax, @JonnyMac , and the forums.
-Learn how to use the P1/P2 Microcontrollers and how to write drivers.
-I wanted a creative clock and alarm for my office to help me keep track of time.
-Digital clock with Segment LEDs and 2x 50 pixel LEDs
-Real Time Clock with temperature compensation and battery backup
-Visual alarm that displays a pixel LED “light show” on every passing hour.
-Temperature and humidity indications
-Ability to adjust brightness and color of pixel LEDs and to adjust brightness of segmented displays
-Ability to adjust the weekday, month, day, year, hour, minute, and civilian or military time
-Parallax P1 Microcontroller, Propeller Mini package
-HT16K33, Adafruit Featherwing, 16 and 8 Segment LEDs, I2C
-CM2302 Temperature and Humidity Sensor, One Wire
-DS3231 Real Time Clock, I2C
-2x 50 Pixel LEDs WS2811, One Wire
-3x KY040 encoders with pushbuttons
-ATX PSU 250W
-12VDC Wall PSU 8A
-This uses methods learned from JonnyMac’s P2 presentations and coding! I probably couldn’t have learned this without his presentation.
-I started with the P1 because the documentation available at the time was a little easier for me to read. I will be moving to the P2 next.
-I really enjoyed learning how to write the drivers. I wrote my own versions based on JonnyMac’s example coding and the datasheets.
-The coding is about 1750 total lines of code. Includes SPIN and PASM.
-Includes drivers for I2C, one-wire, and encoders. IC drivers include DS3231, CM2302, WS2811, and HT16K33
-The cogs are really powerful! They make coding much easier. Took me some time to figure out using cogs with PASM.
-The clock and Pixel LEDs sit behind my computer. Randomly 1 out of 3 pixel light shows are displayed to signify the passing hour. I see the light show and it helps me keep track of time when I’m using my computer or desk. I can become so focused that I lose track of time easily.
-I’ve tracked the RTC time versus my computer time and they are extremely close over weeks period.
-My dad made the digital clock box out of oak wood based on my specifications. Turned out great! Thanks, Dad! Looking into 3D printer for the next project.
-All the electrical components are solderless.
-This project took me ~6 months at a medium pace.
-Schematic made with KiCad.
Thanks for looking! Ask questions anytime. – Ludis, Pittsburgh PA USA
See attached functional requirements document
See attached electrical schematic