Multi-Mode Table Clock With Graphics LCD Screen

by hobbyman in Circuits > Gadgets

2583 Views, 37 Favorites, 0 Comments

Multi-Mode Table Clock With Graphics LCD Screen

IMG_2592.JPG
IMG_2593.JPG

Some time ago I've designed a steampunk table clock I had also produced the electronics for it to generate steam engine sound effects, display some steampunk graphics etc. Recently I planned to design a more modern 3d printable case for the circuitry. Here is the case I've made, the circuitry and the resulting table alarm clock.

The 3D Model of the Case

clock2.jpg
clock6.jpg
clock3.jpg
clock1.jpg
clock4.jpg
IMG_2591.JPG
IMG_2590.JPG

I've made the model in Solidworks. Wanted the clock case to be printable with the smallest printers at the market so kept the dimensions to the minimum still comfortably housing the interior electronics and the LCD screen.

The link for the STL files

For my build, the STL files are printed on an UP printer. Surely any 3D printer will do the job. :)

The Circuit

FDT5FQKIGHOIODE.LARGE.jpg
FV8KUF6IGJARRBB.LARGE.jpg
FHVYDRWIGJARR7S.LARGE.jpg
FDUXD0HIGJARR3Q.LARGE.jpg
FRX9VSPIGHOIODD.LARGE.jpg
FJCVAHVIGHOIOAY.LARGE.jpg
FSPH76DIGHOIOBQ.LARGE.jpg
FPAAJSYIGJARREC.LARGE.jpg
clock5.jpg

I've designed the circuitry in Proteus ISIS and then tested it on breadboards first and did the initial program development

Later the pcb is designed in Proteus ARES program by labcenter electronics. Proteus is such a great tool for not only pcb design but all kind of circuit, even electromechanical system design including very successful simulation capabilities. As you can see at the first schematic picture, the circuit including a microcontroller is being simulated by the proteus software and actually the program written in CCS C for pic micro is running with all the buttons, sensors are also in operation. The PCB of the circuit schematic above can be downloaded from this link: PCB

Note that the microcontroller used in the project is pic 18F4620. I've upgraded it to be able to embed more sound effects into it.

Code and the Screen Graphics

FT3ZECVIGHOIOE5.LARGE.jpg
F2RGVOVIGJARRCJ.LARGE.jpg
F8FVUNTIGGW1EF4.LARGE.jpg
FW11QQYIGHOIOIP.LARGE.jpg
FIX7HW4IGHOIODF.LARGE.jpg
FN5E86RIGHOIOGA.LARGE.jpg
F0CNXTGIGHOIOE8.LARGE.jpg

The code is written in CCS C and compiled into a hex file. It generates several graphics for the LCD screen, produces sound effects, retreives the time data from the real time clock chip and runs the menus etc for time adjustments etc.

The code uses the 1 bit sound algorithm for producing sounds without using any sound chip or DAC etc.

Code for the microcontroller

Assembled Clock

IMG_2592.jpg
IMG_2596.JPG
IMG_2595.JPG
IMG_2594.JPG

After completing the assembly of the pcb, it fits inside the case quite okay with minimum modifications as everything is designed to fit and tested in Solidworks. The case can be sanded or acetone treated for a smoother surface and painted for better looks. The circuitry also can be used in your own projects.