I. LAYOUT
I make the PCB design for this clock, it's small enough and have size about 4.5 x 4.5 cm. For the display, I use a small type 7-segmen, so the device can be mounted in a small box.
Here is the PCB design for Pino's clock (Min_ClkP.pcb, Minimum_PIC_Clock_Layout.pdf, Minimum_PIC_Clock_Artwork.pdf)
J. PART LIST
Here are part list for Pino's clock circuit :
1. Resistors :
R1 = 220 Ohm, 1/4W, 5% ..................................... 1 pcs
R2 ~ R5 = 10k, 1/4W, 5% .................................... 4 pcs
R6 = 4k7, 1/4W, 5% ......................................... 1 pcs
R7 = 100 Ohm, 1/4W, 5% ..................................... 1 pcs
2. Capasitors : C1 ~ C2 = 33 pF (for oscillator) ........................... 2 pcs C3 = 100 nF (for IC decoupling, used as necessary).......... 1 pcs C4 = 1000 uF/ 25 V ......................................... 1 pcs
3. Semiconductors : IC1 = PIC16F84/A (PIC microcontroller) .................... 1 pcs IC1 optional = PIC16F628 (PIC microcontroller) alt ......... 1 pcs IC2 = 7805 (Voltage regulator) ............................. 1 pcs D2 = 1N914 (Silicon diode) ................................. 1 pcs D1, D3 = 1N4007 (Silicon diode) ............................ 2 pcs DS1 ~ DS4 = 7-segmen common anode (FJ3161 mini) ............ 4 pcs LED1 = 3mm, Red (For indicator) ............................ 1 pcs
4. Others : X1 = 4 MHz (Clock Crystal oscillator) ...................... 1 pcs Optional IC socket for 18-pins (use 20-pins) ............... 1 pcs Optional terminal connector CON1 ~ CON2 = 2 pin (power) .... 2 pcs S1 ~ S2 = Miniature push button (Push on) .................. 2 pcs
K. FIRMWARE
Original Pino's design included with hex file for PIC16F84/A or PIC16F628 type. Both file could be downloaded at his page (PIC16F84/A and PIC16F628). The firmware run well. I make my own firmware, by modified the above version. All is still the same except that the display now has it's own generated code BCD to 7-segmen driver. Note that the hex file is for PIC16F84/A type. for another type please change the proper lines.
Here is my own firmware to run Pino's digital clock (Clk_Min.asm, Clk_Min.hex).
L. PROTOTYPE
Here are my prototype for Pino's clock design :
M. IMPLEMENTATION
Pino's design more simple than mine. So this project end with the choose of his clock. Here is the implementation of my prototype, for the car's clock. The car power taken from the car's lighter. My design will be expanded to another purpose like desk clock for example. The alarm routine not develop yet. Much more we can do from that point, eg: snooze routine, song for the alarm chime, recurrent alarm, etc. May be for next project development. Happy programming!
N. FEEDBACK
Some people build my PIC digital clock, but not satisfy with the result. Here are a few feedback from them ask to improved or modified some of the clock functional running;
- Make it run for only 12 hours clock (not 24 hours version). So here is the modified version.
-
Make the first digit unseen while the hours still below 10 o'clock (only just 1 digit displayed). So here is the modified version.
- New version firmware for PIC digital clock, using Bresenham - 1 second algorithm base on Roman Black design. More precision now counting the clock.
- Unique clock design using pic digital clock firmware and universal I/O board from junk. I made a unique clock from this junk board, just to utilize the purpose. Now I have one useful device! First design using Atmel AT89S52, but a pity not successful, the refresh rate is too slow (blinking visual effect). Using PIC series much more smooth.
- Bill Sherman design (modified from minimum pic digital clock). He made a mayan clock system count, like the movie, predator self destructive device, very attractive and inspirative idea. What a piece of a code!
Note that, I didn't test the firmware yet, so I leave it to you then. If you find some error, please give me a report!
No comments:
Post a Comment