@ Explicit: Had visitors this evening so I will reply to your post tomorrow afternoon (I have an appointment in the morning), it's past 11:00pm overhere, I'm tired (had a working day of more than 12h), can't think properly anymore, and I need to sleep... Sweet dreams to everybody... CD
Yeah... As if I had not enough projects in the run... Yes, I etch my own PCB's. It wouldn't be a problem to send some etched PCB's to Canada (I already sent several to Australia). The DCF77 version doesn't need buttons (except for Time Zone setting, and alarm settings if implemented) The RTC based version has to be set up like a standard consumer clock, therefore it needs buttons for DD/MM/YY,HH:MM setting, and also alarm settings if implemented. Can't wait myself! Unfortunately I only have a few hours available in the evening and a few hours during the weekend to finalize the design (I have my own company which takes most of my time). I will add this project to my webpage as soon the schematic is finalized (just found a "bug" in the actual schematic with the digit drivers... ). It depends. Switching from 0.56" displays to 1" displays is no problem as both have one LED per segment (forward voltage of about 3.4V for blue ones). Unfortunately the 2.3" and 4" displays have five LEDs in series per segment, resulting in a forward voltage of about 16V per segment for the blue ones. Therefore, power supply voltage for the display section and serial resistors for the segments will be different. Serial resistor values will also change when using other display colors (ex. red or green). CD
PCBs shipped here woule be very appreciated. I suppose I would just program the PIC w/ that in circuit programming thing?
Hi Turbokeu, I read with great interest about your latest 6 digit clock using a Pic uP. I have built many 6 digit clocks in my time, the first one I built was in 1975 still working 29 years later in my son's bedroom that has an alarm. It uses the Mostek MK50250 clock ic. Actually the 1st failure was early this year, the clock chip died but I had a replacement in my stock. I want to thank you for the link to the company who sells Blue displays at a great price here in the USA, I will order the 4 inch 7 segments for my next clock. Lately, I have been building clocks with older technology displays, Nixie tubes and Numitrons. Nixie tubes are neon filled and Numitrons are incandescent. Below I will post links to my latest clocks. I just finished builing another 1 tube nixie clock last night but I have to build a case for it now. I enjoyed looking at your website and your projects. In your clock projects, I noticed you do not like to use the line frequency as a source of your clock timing. Here in the USA it is very accurate as the power companies will compensate it during a 24 hour period to make it accurate at 60hz. I wish I had the knowledge to write a program using a Pic or AVR. I have 2 programmers. I will experiment one day, I always look at the source code to get an idea what is happening. Ideally to me the perfect clock chip would be using a 16F84 PIC or AT90S2313 AVR 12 hour 6 digit multiplexed with BCD output so you can use a 7441/74141 for Nixie tubes or a 7447/7448/4511 and other decoder/driver chips for LED or Numitrons Tubes. Another feature would be 60hz from the power company for clock timing. Regards, Sal Brisindi http://www.tuberadios.com Clocks at http://www.tuberadios.com/nixie/nixie.html http://www.tuberadios.com/numitron/ http://www.tuberadios.com/numitron2/ http://www.tuberadios.com/nixie/in18.html using 40mm nixie tubes.
Had some time to connect one of the 4" displays to a lab power supply. Through a 22 Ohm resistor (all segments in parallel for testing) and a voltage of about 19V I measured a forward current of 20mA/segment (5 LEDs in series/segment). It wasn't easy to reproduce the right color saturation onto the pics (Digicams don't like deep blue color, although mine is a Minolta Dimage7...). As my Dimage7 sees it: As I see it LED current reduced to 2.5mA/segment and in tempered light: In full darkness at 20mA/segment: Close-up at 20mA/segment: Close-up at 5mA/segment: In reality the blue color is much "deeper" blue. I'm aware now that I need one or another automatic luminosity regulation (ex. with a LDR) to avoid lighting up my whole living room (and half the street ). Does anybody knows a little schematic? I was thinking of a LM317 with a LDR to regulate the output voltage proportionally to the ambient light and to obtain a LED current of about 2.5 tot 20mA/segment. CD
In the past I've used an A/D channel on the PIC to alter the duty cycle of the LEDs. I'm sure you could use your LM317 idea, although the brightness change would probably be very non-linear.
Beautiful Displays, my son would love a 6 digit clock with them! Time to order 6. I probably will use the MK50250 clock ic with alarm. Thanks for the photos. Sal
You're welcome, For those who want to order and use the 4" displays from LC Led Inc.: - Only order samples: Shipping cost is $4.95 worldwide and no taxes or duties are due (they are sent as "commercial samples"). - The displays are only available in Common Anode version. - The specs on LC Led Inc.'s website are wrong: Every segment does not contain 2x4 serial Leds but 5 LEDs in series (forward voltage/segment is about 16.2V @ 20mA). Beware: the decimal point only contains 1 (ONE) LED (3.4V @ 20mA), therefore you need a different serial resistor for it as for the segments. - The pin spacing of the display is 0.2" (5.08mm), not 0.1" (2.54mm). CD
Thanks... I too made several clocks in the 70's based on (50Hz here) line frequency. Problem is accuracy over longer periods (months), and backup in case of power failure. DCF77 is very common overhere, accurate to 1/1,000,000th of a second, and no need for backup (day, month, year, century, and leap year and winter/summer time corrections are provided too in the DCF77 signal). The DCF77 receivers/decoders are readily available overhere at about 12-15$. I²C RTC's (like the PCF8583) are easy to use too as they run from a 32KHz Xtal and only need about 1 or 2V to 6V to work, a little 3V Li-battery (like the one on your mobo) is enough to operate them for years without mains power. Most of the time they have day, month year, century and several alarm registers as well, and some free general purpose RAM. I started with PICs by making projects from others, analyzing the code and optimizing/modifying it to my needs... The PIC16F84 is now obsolete, and costs actually more than let's say a 16F876, 16F88 or even a 18F258... Also the 16F84 only has 1KB of flash memory (as opposed to 8, 16 or 32KB for the actual PICs) and has only 13 I/O lines (as opposed to the 22 or 32 of similar priced PICs), which is quite small for a 6-digit clock with alarm options. CD
Thanks for the information. I knew the 16F84 was obsolete but I have a bunch in my stock.. . Keep us posted with the progress of your Blue LED clock, I would love to see it when it is complete. Thanks, Sal
In the meanwhile I modified the schematics a little more: The digit select transistors have been replaced by a TD62783A (or UDN2981A) High Side Voltage Driver (I told you there was a bug with the management of the BC337 PNP transistors), and IC2 decoder by a 74238 (was 74138 with inversed outputs). All inputs are now on port A, pin PGC en PGD are reserved for ICSP, as well as RC6 (TX) and RC7 (RX) if connection to a PC COMport is needed. I'm still looking for a circuit with a LDR resistor and the code to vary the duty cycle of the multiplexed displays (automatic brightness control) through an A/D input of the PIC (hint, hint to SteveyG...). With RTC chip (and 1" displays): With DCF77 module (and 1" displays): Four blue LEDs are provided for the semicolons between the displays. CD Schematics are clickable (PDF-file).
Sorry I didn't get chance to reply - been a bit busy the past few days. There are various ways to add an LDR to alter the brightness of the display, but it really depends on how you plan to multiplex the display. You'll have to connect your LDR, along with another resistor to create a potential divider, to one of the analogue inputs. You'd probably want to use the 8 MSB's of the result to vary the brightness of the display. If you're multiplexing the displays pretty slowly then you could just use a pin to PWM (using the result from the A/D conversion) the enable pin on one of your display drivers. Alternatively, you can implement PWM into your routine for driving the displays - keeping the period between displaying each digit (or segment, depending on which way you're multiplexing the displays) the same, but altering the amount of time the actual display (or segment) is on for.
No worry... Yes, I was planning to multiplex the displays at about 1kHz and I preferred to software PWM them. Didn't have a chance yet to think about the implementation of it. Did you use a timer or a software counter to vary the duty cycle of the displays? On the other side I'd liked to use a display with separate 4543 counters (one/digit as I explained in an earlier post) as the latch in the 4543 keeps the displayed value till another value has to be displayed. Advantages are lower CPU utilization, every digit is addressable separately and also higher luminosity is achieved as the segments are purely DC driven. Disadvantage is the higher power consumption (x6!) for a 6-digit display, and no more PWM to vary the luminosity of the displays. Decisions, decisions... CD PS: I have big troubles using multiplexed displays in Proteus VSM 6.3, any clue?
If you want to use the 4543, add a MOSFET or BJT between the GND pin of the 2803 and ground and apply a PWM signal to that for brightness control. I used one of the timers for mine, but it would work equally well in the main program loop. I seem to remember my main program only consisting of 'goto $'. The rest was in interrupts.
Thanks for your reply. PWM-controlling the GND pin of the ULN2003/2803's is just a great idea (why didn't I think about it... ) CD