24" Wall Clock

From OpenCircuits
Revision as of 19:50, 19 August 2007 by 208.255.68.245 (talk)
Jump to navigation Jump to search

lampada tavolo staffa fissaggio tv lcd a parete san giorgio ghibli febbre fascicolo nero sborra lecca cornuto centrino 15 radeon x800 gpu guardarci gasparetti copertina troy dvd www grandiviaggi hp 1200 scanner alfa romeo 147 jtd box per hard disck ups siraj wahhaj hanno rubato un tram costi ionita mare e lumea www us raniero renato it stradario di bergamo testo di you know you re right le bon simon lamu offerte portatili iomega rev sata labtec ultra flat sandali con tacco 5 5 olimpus dm 10 nike air max turbolence jamaican dominoes garland, judy simionato spa the darkness lyrics i don t want you back fuck it escort orion studi avvocati tommi serenissima bridg decoder cryptoworks honda firenze hippo rave video motorola v1050 black nuove immagini per midnight club 3 annuncio privato massaggiatrice stivali sabelt hunzinger fuori vena lettori dvx portatili desk video scandalo celebrita baillie, joanna sono io baglioni erika ramirez cipele vaffanculo techsolo 500 watt hard disk esterno maxtor e floppy lost in you media express video album san romano in garfagnana gta1 computer frasi mdi ogni tipo samsung laser tonsilla rivederti ancora costruttori di rimorchi agricoli decapitazione ostaggio americano in iraq peg aria portable media player gb ricariche inchiostro michelle vith serena garritta foto lucignolo lies in a box iste cipele petra nemcova navigatore per nokia escort a roma frullatori 2 litri volvo v50 2.0 d kinetic mac os 9 kenwood smoothie pro bangbus com media player portable preso tra due fuochi istituto fossombroni arezzo internet camera casa vendi ponte benevento adriana russo okie cale cd musicali summerson soulmagic macchina tempo spartiti kenny g egs behind head braddon, mary elizabeth lancia montecarlo tel aviv shopping mostra mercato del disco treviso contapassi oregon scientific universita di parma innamorati in blue jeans bluetooth auricolare vivavoce proiettore 4000 lumen gandhi collector s edition film dvd ospedale san raffaele milano veronica la duchessa di santa lucia age of empires iii tuya soy delalim timbres polifonicos de celulares braw benpensano champion league live luomo di alcatraz filmato bulgari conte live sex videos garage diva componente bigiotteria pappe per neonati film italiani albergo dubai trazio jk fitness if ain t got you midi file agriturismo alba video musicali anni 80 lunch machine jagran com ben stiller donini ambrogio libri carnevale animali nickelodeon cd evanences barry whaite epson stylus photo 900 multi tap ps2 paprika www compleanni vip com marebito negras enasarco it hitachi 60gb 7200rpm hard disk e floppy jamina you have friend in me fuji foto mini camera gamepad ps2 accessori console cursillos reblochon dvx 2600 sexy pussy d-link dsl 504t offerta samsung cellulari cure per crisi d ansia televisione acer www umbria it mvx10i sakura wars. vol. 01 bedrock apple auricolari in ear mvx 330i il solitario sound qube maska codici tps home 100w nicholes berg quattro chiacchiere su half life 2 lavagna elettronica plattsburg dejala perversioni sesso network service palermo praga biglietti aerei agenzia divorzi philips sl300i zyxel wi-fi la canzone dei nibelunghi corse clandestine di macchine trova numeri cellulari a valguarnera scugnizz o mi bela madunina cuba ristorante jeans uomo armani bistecchiere delonghi telefono fisso siemens 2020 video porno di oggi sony vaio t2xp lavorazione metalli e leghe speciali composizioni fiori hex file viaccess tps lamma toscana sick end tired free game kamakawiwo ole israel impianto elettrico radeon 9100 foto donne comuni nude dvd marrakech express corrieri espressi internazionali micra km 0 diesel tito schipa anyware srl residence majestic fotografie baglioni mercury the video collection igrice radio kiss kiss nb cdc disagi di un adolescente omosessuale assessori regionali politiche sociali la casa della morte virgilo nomadi kar zen 1 gb annuncio immobile privato le relazioni pericolose e c w kia cerato download software free misteriosa la storia di ian curtis e dei joy samsung lcd tv 19 albergo 4 stelle parigi mercedes c 230 kompr riassunto gli orfani agriservice psp sony value pack best western opera richepanse dance awrd notebook benq a32 midi alexia radeon x800xl 256 mb agp agp slot router wpn824 adobe premiere pro 1 5 cinema monza remix midi telecamera infrarossi [http://kinunia.cn/pellets.htm pell 1000 ets] week end romantici agriturismo san michele vacanza hergen warhammer chacalon yunior darbuka oo7 decapitazione ostaggio cinese rex lavabiancheria incasso 30 cm piani cottura d ozone chat con singola sicilia il sapore della paura illegale monitor samsung syncmaster 193p trading on line italia nonno bionico festa da brivido per halloween la spia dal dente doro annuncio annuncio personali sottomarina di chioggia barotex stefan de la barbulesti niurka y boby suzana mancic il parcheggio burger framcesco renga asian beauties 2 screensaver cellulare navigatore senza sacco ipaq hp 1930 schede video galaxy lbero clasico philips dect fiore domicilio consegna fiore banfi chianti 2001 videos clips de savage garden dlgs 196 2003 lo stile del dragone cemento di calce jvc plasma 42 suonerie siemens c62 prove d esame il quarto desiderio laetitia amore apocalisse 23 effetto serra anormale sexwiew tv china sex pussy teen gli orsi vanno in giappone love object bambini vacanza cristian meier manutenzioni tecnologiche industriali uruguay (fiume) mp3 cruzer samsung sr l 679 evs cultura profetica sei tu l200 acer way plaques lg lcd 19 flatron o r o vivo per lei hassin viola del pensiero [http://amohseni.info/img/styles/hp-laserjet/ hp laserjet hp stamp 1000 anti] don giovanni di mozart barlow, jane multichannel rav4 d seno 7 gioco mac sport leonardodavinci esame di qualifica fica di bellucci s s i drive flash grouch alloggio bologna giochi motorola a 835 casiraghi andrea olympics pallacanestro risultati minijuegos.com corriera della sera mbube chat excite ha 2 cd per bambini ragazzo passivo home theatre sony 6 1 valenzano manutenzioni idrauliche karino crack gripenberg, bertel ixus 750-new mobili per computer organizzazione eventi volkswagen bora louis vuitton reggio emilia monitor lcd amstrad condizionatori olimpia donne con addominali ferrovia virtuale imbuti pliko peg perego bat man accessori per doccia frigo da tavolo classe a mittellandkanal volvo c70 2.4 t navigatori satellitari per auto phanton placed rz 42 intimo uomo cavalli incontro bolzano www tempoitalia it san fabio barbi jako roszpunka beethoven per elisa videos de pesca impastatrice farina seggiolino auto jane de grenet topless la donna ideale creative muvo fm 128 mb orologi zenith gabry ponte figli di pitagora midi residence albachiara lena katina catalogo rolex goggles nikon af-nikkor 70-300mm canoscan lide 25 monsieur ibrahim [http://kinunia.cn/ati-radeon.htm ati radeon 9550 1000 128 mb] carta treviso hotel benessere montagna ipn fokkerdr1 video di britney il mastino dei baskerville thermaltake tower voyeurweb com surimana cime pc amd 3500 plus valenza suoli edificabili auto usata km0 lounge event com fotos2004 buzios lanza franco srl programma per dj {| 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 trust 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 con 1000 sumption 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 Port 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 1000 Items: