• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

K8LH Novelty Single Chip Clock

Status
Not open for further replies.
#41
Yes it does get hot... Total current comsumption is ~200mA. I think it should be ok. The clock is running little fast compared to my digital watch ~1 second on 24hrs.
Anyway thanks for sharing your work. Sananh
 
#45
Sananh,
Good work. Nice job on your project. Can you provide specific links to the two projects you combined? I know one is at the beginning of this thread.

Mike, K8LH;
Not sure if you recall helping me last year on my led clock project from Sixca.com using the TPIC6B595N's But Its finally completed and ticking away. thanks again

Time to try a new one and I'd like to give this project a run, Do you have a BOM(Bill of Materials) needed for your project?

I'd like to build it as its presented, then make a second one or alter the first in a countdown format which incorporates an alarm.

Cheers
Steve
 

Mike - K8LH

Well-Known Member
Thread starter #46
Hi Steve,

I prototyped this one chip Clock simply to verify the design. While it works well, the Charlieplexed display brightness is awful. You really should be able to figure out the small BOM from the schematic -- some 1N914 or 1N4148 diodes, three dual-digit non-multiplexed common anode 7 segment displays, seven NPN transistors (2N3904, 2N4401, etc.), four momentary contact push button switches, etc.

Regards, Mike
 

Mike - K8LH

Well-Known Member
Thread starter #50
Hi Gayan,

When the "beep task" is running it toggles the "speaker" pin during each 1 msec interrupt. Toggling the speaker at this 1 KHz rate produces a 500 Hz tone.

Code:
/********************************************************************
 *  interrupt service routine, 1 msec Timer 2 interrupts            *
 ********************************************************************/
Code:
 /*                                                                 *
  *  beep task produces a 500 Hz 'beep' with 1 msec interrupts      *
  *                                                                 */
  if(beepctr)                   // if beep task running
  { porta ^= 1 << spkr;         // toggle speaker pin
    beepctr--;                  // decrement msec counter
  }
 
#52
Hi Mike...

In your pictures, we can see some diodes, what is their values?

Thanks.
 
#54
Hi Mike...

It´s very hard to find 16F88... I will try to use a 16F628 to see what happens.

Best.

Rafael

edit:

Congratulations for your project!!
 
Last edited:
#55
No sucess to convert it to run in 628A... :(
 
#57
I am using BoostC 6.97 in MPLAB IDE 7.50.

I´ve just create a new project using PIC16F628A.

When I try to compile:

Clock.c(20): warning: unknown or invalid pragma (ignored)
Clock.c(21): warning: unknown or invalid pragma (ignored)
Clock.c(167:2): error: unknown identifier 'ansel'
Clock.c(167:2): error: invalid operand 'ansel'
Clock.c(167:8): error: failed to generate expression

So, to compile, I need to comment this:

// ansel = 0; // a2d off, digital i/o

In MPLAB with BoostC, there isn´t a dialog to set the fuses... So, I do this in the programmer, just set PWRTE to ON and other to OFF/DISBALE

In breadboard, I am trying to see what happens using only one display (seconds) and it show only a number 9.

Only these parts:

1x PIC16F628A
1x Xtal 16Mhz
1x 2N3904
2x 22pf
1x DISPLAY COMMON ANODE

Merry Christmas
 
Status
Not open for further replies.

Latest threads

EE World Online Articles

Loading

 
Top