24" Wall Clock

From OpenCircuits
Revision as of 17:29, 28 August 2007 by 194.104.99.10 (talk)
Jump to navigation Jump to search

benny progettazione giardino calabria fujifilm finepix f601z agrigento hotel mercedes c sw vecina masturbazione singole gale force foto di linda batista lavatrice rex incasso je veux vivre monitor 17 schermo piatto attrezzatura sportiva articolo sportivo quattrocchi filmato la boda de belen voli verona olbia registratori vocale memoria janet leigh mercedes c220 d sw codici sky key polsat soggiorno taranto come seminare un prato inglese contestazione generale asus a8n nforce4 grammaticale plafoniere casa fifa futbal 2004 las vegas travel segreteria don carlo gnocchi diendan la famiglia sullivan seat toledo 2 serie diritti della donna notizie di maria teresa di calcutta e c m la ragazza con il bastone hit mania dance summer 2004 batteria np new hotel arles camargue piastra per bistecchiera timcafe it lumix fz-30 schede memoria mmc mostra doltremare napoli www patriciello it tesina matematica santa fe ristorante tiziano ferro sito unofficial macchina per hot-dog capuccetto rosso twentieth century-fox passeggino loola come controllare i cavi firenze ibiza biglietti aerei batteria philips genie the sims ps2 videogiochi voli isola del giglio gefen hdtv splitter silicon case sms anonimi classe 15 con attestato di rischio me libere ami mouse 250s cordless canon - selphy milano bergamo siviglia biglietti aerei mobili per ospedali agarum trampolin borse gucci accessori gps cantu siciliano hard disk case esterno video sex free o zone dragonstea din dei mappa porto recanati make me an island jvc gr d245 sita salerno libretto nero frozen.frenzy luis royo libri la ragazza del prete piastre di cottura bordeaux, henry televisore schermo piatto a 32 pollici foto moglie esibizionista www tommyvee ef-s 10-22 morris il mondo dei cartoni duello nel pacifico nepalese hostage killed agenzia pubblicitaria la playa try tradotta accessori passeggino www cori milan mp3 desideri il linguaggio dei fiori fifa calcio 2004 en dag tilbage cursori animati gif peg-perego navetta video mutu a luci rosse gta libertycitystories laser ad eccimeri pista reggaeton on oublie jamais rien on vie avec macchina elettrica per pasta foto dei gatti piu belli archilochus gayangos, pascual de- ntsc pal www cannondale best of acoustic memory card lettore hard supporto auto pda mitac mio 168 la primavera hitleriana eugenio montale specchi del desiderio ricetta bimby ibiza annual 2005 benq fp931 19 lcd tft pellegrino di puglia mario bross hs 21w sesso e fica wwe survivor series un maledetto imbroglio carlo cracco libri summer madness marcela morelo musica star wars. clone wars. vol. 01 club azzurro suteki da ne darna udine manifestazioni calma e sngue freddo saint-michel orata epson t041 air classic bw lumix 8 maquillaje artistico antonello de pierro calendari donne sean pul ww gov cba ar software videoscrittura macchina a vapore nikon d100 petula clark. this is my song - the ultimate portrait of petula clark concorsi miss 2004 flash ttl coralia dahab z9 yamaha dule el amor morti sospette copertina cd saro migliore chicken little amici per le penne wharfedale wh 20 acer mp3 flashstick 512 km0 alfa romeo 147 2005 diesel auto km 0 nuove immagini per legend of kay claudia de falco breathe tezza verona cerco maschi ventole raffreddamento case prato citta anoressia e bulimia foto mogli si estoy facil to mei oh boy mp3 http my caledonian ac uk liviu liceo e pascal rover 25 1.4 epson stilus color b c d e f g h i j k l m n o p q r s t u v w x y z prestito artigiano ristorazione scolastica del comune di ve traduzione sacrifice nero.2 magik lnb la fine la capra di u saba henry kissinger duello nel ventre della terra volkswagen golf 2.0 tdi sportline subsonica colpo pistola calendari feticisti divinita e personaggi mitologici golf 1.6 sportline acer 16 les amants de saint jean iceberg profumi donna da 32 pollici tv televisori lcd immaggini di bellissime studentesse amanti nelle tenebre {| align=right |- | Light Sticks |}

Project Scope

Description:
Sometime ago a friend challenged us to build a 6 foot digital clock - just like the alarm clock next to your bed. Well, because of scaling issues, 6 foot was a bit too expensive. Instead, we are going with a 2 foot clock. I'm not entire sure about the end size, but you get the idea. And just to be geeky, let's use GPS to snag the time with 100ns accuracy.

The control system is fairly straight foward. Break the segments of a 7-segment display into some sort of high-output light source, and then turn on/off those 'segments' as time goes by. A PIC is used to read the GPS time from a Lassen iQ and control the light segments.

LED7SEGLG 300.jpg

Here is an example of the customary 7-segment display. We aren't going to copy this directly, but close.

We need to use something to illuminate each segment of the display. How about a light bar. What's a light bar? Well, it's usually composed of a bunch of LEDs combined together with the needed resistors, diodes, what have you. We could build our own, but I'm lazy and [Best Hong Kong] has something called a Sign Light Module that looks like it could do the job really well, for only $2.39 a piece! That's cheaper than I can put a stick together, so I put 50pcs on order. We'll see how they look when they come in.

Here's the plan:

18:88 will be displayed worst case.

  • Each 8 is made up of 7 segments
  • 1 is made of 2 segments
  • : is made of 1/2 segments each

To make the clock slightly larger, we are going to use two light 'sticks' for each segment. Each stick looks like it's about 6" long, which will make a segment aprox. 12", which whill make the number height ~24" overall. Each dot in the ':' will be made out of one stick (6" tall). This may look a bit odd, only time will tell.

3 8's x 7 segments * 2 sticks per segment = 42 sticks
1 1 x 2 segments * 2 sticks per segment = 4 sticks
1 : x 1 segments * 2 sticks per segment = 2 sticks

48 sticks needed overall
Minimum of 23 inidividual control channels needed


Power Regulation

Quick math : Each stick is 3 LEDs. Each Piranha LED is 20mA according to the website (I don't tr 1000 ust the Hong Kong Website very much, but we'll assume). So each stick is 12V @ 60mA. 50 sticks * 60mA = 3A @ 12V. This is a bit juicy for a wall-wart. I am going to cheat with a bench power supply that can output 18V/3A (we stock them).

3A is really the worst case scenario. We only have 48 sticks (not 50) and 10:08 seems to be the real time with the most number of segments lit (44 sticks turned on). We obviously should never see a time of 18:88. At 10:08 we'll need 44 * 60mA = 2640mA = 2.6A. Not too horrendous.

The control board will need some power as well. 5V for logic, 3.3V for GPS. But the overall consumption will be peanuts compare to the lighting. Probably under 50mA for the control board.


Clock Control

Who wants to set the real time when we've got GPS to set it for us?! :) I am going to use the Lassen iQ to get a time lock and use a couple buttons to get the local time from that.

We need to control 23 channels 18:88:

  • 1 has two segments, but the entire number is either on or off
  • : is always on, but we may way to flash it for seconds
  • 888 21 channels

I decided on 25 channels just in case I need some extra ['flare']. Perhaps an alarm of sorts. 'Beer Time' alarm at 4:30pm? We've got to keep our options open...

The need for 25 I/O pushed me towards the PIC 16F877A:

  • Easy to program (I've got a big code base)
  • Has enough I/O
  • It can be bootloaded!
  • It's got an RTC (when you add an external 32.768kHz xtal)
  • UART to read the incoming GPS NMEA from Lassen iQ


ToDo : It's possible to reduce the number of channels by multiplexing. A gain cost is also possible by multiplexing digits, less cm2 of board, less expensive components, less comsumption. 7 segments x 4 digits (remenber the 24:00 time format from 00:00 to 23:59) = 4 channels for digits and 7 channels for segments = 13 wires 1 for ":" 4 for extensions = 18 wires. Some other components like CA3161 (bcd to 7seg) can also reduce necessary wires on PIC for displaying about 4 4 1 4 = 13 wires.


Light Control

Well if the PIC 16F877A has got the timing and control down, how exactly do we turn on/off the light stick?

Since the sticks only pull 60mA, we can use cheap BJT transistors. Let's go solid state! Many itty-bitty SOT-23 SMD BJTs can handle up to 1A with a max input of 40V. The maximum power output is 350mW though. Luckily, when forward biased, the MMBT2222 has around 0.5V drop.

So 60mA with 0.5V drop, we are looking at 30mW dissapation. That's atleast in theory. I'll believe it when I see it of course. For the time being, I'm going to assume this will work...

All I need is an NPN BJT for each channel:

Clock-Channel.jpg

While this should work, it's going to leave a bunch of connections with one pin 'hot'. A better design would probably utilize a PNP connected to RAW. Ehh - no big deal.

If you're planning to use a beefy light source, like Neon or super powerful LEDs, you could easily use the same setup to control a relay. Relays can handle 5-20A in some cases, are relatively cheap, and sound really cool! The only problem is they are big. And for this project, we wanted a relatively small control board. The next rev may use beefy 5A relays to toggle all sorts of potential snazzy light sources.


Board Layout

The PIC is connected to 25 channels, the GPS, a couple buttons, and a status LED. Here's the current layout in all its random glory:

Clock-Layout.jpg

You can see it's a bit dense, but the polarized two-pin connectors should make it easy to attach the light sticks. Everything was SMD to ease the assembly as much as possible. It's much easier for us to do solder paste with a stencil and SMD devices than it is to bend 25 resistors and solder 25 BJTs into place, then clip all the leads. PTH is actually pretty time consuming. I digress...

There is a switch to multiplex the PIC's RX UART inbetween Debugging and listening to the GPS unit. Be sure to use Po 1000 rt 2 on the Lassen iQ if you want NMEA output (4800bps by default).


Things to Improve

Nothing at the moment. We have to wait for all the parts to come in. Should be about 4 weeks.

We may need a cover on the light sticks to give more of an opaque presentation. TBD.


Documents

SFE Wall Clock Main Board Schematic

Channel Control Schematic

Footprints:
SFE Footprint Library

FP Name: All sorts of FPs used.

Supplier Info:

Related Items: