PropClock with Scrolling Pithy Sayings
tomcrawford
Posts: 1,127
This is a Scrolling Message Board with Clock/Calendar/Thermometer. It is based on Propeller and uses three Sure Electronics 16 x 32 tri-color display modules. A video of the finished project can be viewed at
http://youtu.be/ncgkNj_H5BQ
The code is a mixture of spin and PASM. I made use of several Objects, including Parallax Serial Terminal and SD-MMC_FatEngine.
I used seven of the eight cogs; at least two or three could have been combined into one.
Cog 0 Main program includes code to build display buffers and control the DS1302 clock chip. This program also launches the other six cogs.
Cog 1 Parallax Serial Terminal, used for debugging.
Cog 2 FatEngine. I have a micro SD card containing pithy sayings and anniversaries. They are scrolled across the bottom row of text.
Cog 3 Spin code controls the DS1620Thermometer and reads the switches.
Cog 4 PASM code drives the display. It refreshes the display (196 bytes) each time a column is written.
Cog 5 PASM code that reads an ambient light detecter.
Cog 6 Spin code reads sayings and birthdays using the FatEngine.
The code is appended. It is a mixture of spin and PASM. Nearly all of the spin variables are global; each of the two PASM cogs has its own variables.
The SD card contains a single file. It is a TXT file, comprising (currently) about 700 pithy saying and about 400 birthdays and anniversaries.
A schematic and a photo of the board are appended.
http://youtu.be/ncgkNj_H5BQ
The code is a mixture of spin and PASM. I made use of several Objects, including Parallax Serial Terminal and SD-MMC_FatEngine.
I used seven of the eight cogs; at least two or three could have been combined into one.
Cog 0 Main program includes code to build display buffers and control the DS1302 clock chip. This program also launches the other six cogs.
Cog 1 Parallax Serial Terminal, used for debugging.
Cog 2 FatEngine. I have a micro SD card containing pithy sayings and anniversaries. They are scrolled across the bottom row of text.
Cog 3 Spin code controls the DS1620Thermometer and reads the switches.
Cog 4 PASM code drives the display. It refreshes the display (196 bytes) each time a column is written.
Cog 5 PASM code that reads an ambient light detecter.
Cog 6 Spin code reads sayings and birthdays using the FatEngine.
The code is appended. It is a mixture of spin and PASM. Nearly all of the spin variables are global; each of the two PASM cogs has its own variables.
The SD card contains a single file. It is a TXT file, comprising (currently) about 700 pithy saying and about 400 birthdays and anniversaries.
A schematic and a photo of the board are appended.
Comments
Outstanding project Tom!
Nice execution with the custom board also.
Jim
http://forums.parallax.com/showthread.php?136525-Clock-Calendar-Thermometer-with-64-x-8-Led-Matrix-Display
Keep up the great work!
Jim