Difference between revisions of "24" Wall Clock"

From OpenCircuits
Jump to navigation Jump to search
Line 1: Line 1:
[http://dustisimmon.ifrance.com/description/cheap-international.html cheap international calls] [http://brittcrisler.talk4fun.net/1000-base-t-ethernet.html 1000 base t ethernet] [http://dustisimmon.ifrance.com/description/limited-edition.html limited edition toy chest] [http://leiatynan.w8w.pl/articles/shoes-tennis.html wedge tennis shoes] [http://daniellemallett.w8w.pl/avicenna-ibn-sina.html avicenna ibn sina] [http://rolandepolitte.free-site-host.com/text/crisis-management.html crisis management more software] [http://dustisimmon.ifrance.com/description/electromatic-s.html electromatic s system] [http://marybethcramer.ifrance.com/missouri-home.html missouri home builders] [http://shusipes.ifrance.com/wiki/sss.html sss contribution] [http://manmaday.free-site-host.com/styles/enea-family.html enea family funeral home] [http://bonnieproffitt.w8w.pl/styles/powerpuff-girl.html powerpuff girl world] [http://delaineresto.ifrance.com/pages/blondie-heart.html blondie heart of glass] [http://robinsherron.ifrance.com/data/astor-piazzolla.html astor new piazzolla quintet tango] [http://brittcrisler.talk4fun.net/map-of-lewis.html cartographic clark lewis map reconstruction trail] [http://nikkideck.ifrance.com/education-book.html special education book] [http://burmahentz.ifrance.com/resources/nodispsettingspage.html nodispsettingspage] [http://shayzeller.w8w.pl/wiki/precision-tig.html precision tig 185] [http://burmahentz.ifrance.com/resources/salvage-car.html car rebuildable salvage] [http://nikkideck.ifrance.com/refurbished-ibm.html refurbished ibm laptop] [http://dustisimmon.ifrance.com/description/us-military.html us military involvement in africa] [http://paulettelynde.freehostia.com/australia-bank.html australia bank notes] [http://gerdaguerrera.freehostia.com/web/puccini.html puccini vittoria] [http://marybethcramer.ifrance.com/pole-saw.html part pole remington saw] [http://heebroughton.ifrance.com/intex-easy-set.html intex easy set pool parts] [http://dustisimmon.ifrance.com/description/animal-posters.html animal posters] [http://eboniedanek.free-site-host.com/estimulacion-del.html estimulacion del clitoris] [http://mindyfredrickso.w8w.pl/thrush-symptoms.html symptom of oral thrush] [http://gerdaguerrera.freehostia.com/web/balloon-rides.html hot air balloon ride] [http://shusipes.ifrance.com/wiki/shaved-artistic.html shaved artistic nudes] [http://eboniedanek.free-site-host.com/lamaze-parents.html lamaze parents] [http://marilouwillson.ifrance.com/bloodrayne-topless.html bloodrayne topless] [http://slyviasaville.free-site-host.com/new/andersoncom-clinton.html anderson.com clinton] [http://shayzeller.w8w.pl/wiki/ummus.html ummus] [http://vandapriestley.w8w.pl/description/christian-videos.html christian video clip] [http://rosariatsao.freehostia.com/library/en-game-language.html en game language msn] [http://paulettelynde.freehostia.com/memory-foam-response.html memory foam response material] [http://erinoceguera.ifrance.com/topic/always-and-forever.html donna lewis i love you always forever lyric] [http://orahennis.ifrance.com/description/privates.html buck privates] [http://orahennis.ifrance.com/description/sandra-bullock.html sandra bullock wedding] [http://gerdaguerrera.freehostia.com/web/candy-samples-tribute.html candy samples tribute] [http://bonnieproffitt.w8w.pl/styles/ta412.html ta412] [http://kaylenelaflamme.ifrance.com/view/mugwort.html mugwort smoking] [http://jaclynfinkbeine.ifrance.com/wiki/geraniums.html geraniums] [http://delaineresto.ifrance.com/pages/babu.html babu dilated junkie] [http://kaylenelaflamme.ifrance.com/view/park.html theme parks] [http://lindyschwandt.w8w.pl/articles/girls-during.html girls during puberty] [http://lisabethcarrara.ifrance.com/lib/1053.html rock 105.3] [http://bonnieproffitt.w8w.pl/styles/elizabeth-city.html elizabeth city north carolina newspapers] [http://roselleeisenber.talk4fun.net/us-collages.html us collages] [http://bonnieproffitt.w8w.pl/styles/njac-stormwater.html n.j.a.c stormwater] [http://marybethcramer.ifrance.com/almost-here.html almost here its lyric perfect] [http://shayzeller.w8w.pl/wiki/ny-estates.html staten island ny real estate] [http://starrerdman.freehostia.com/lib/vaginal-pleasure.html vaginal insertion for pleasure] [http://dallashultgren.ifrance.com/beyonce-world.html beyonce world] [http://doreenhiller.ifrance.com/lib/large-poster-board.html large poster board] [http://erinoceguera.ifrance.com/topic/aventyl.html aventyl] [http://nikkideck.ifrance.com/mexican-cooking.html mexican cooking class san francisco] [http://robinsherron.ifrance.com/data/on-surveillance.html on surveillance cameras] [http://delaineresto.ifrance.com/pages/moms-screwing.html moms screwing] [http://vandapriestley.w8w.pl/description/order-ortho.html order ortho] [http://missylineberry.ifrance.com/styles/watch-free-movies.html watch free movie] [http://paulettelynde.freehostia.com/download-free.html free full anime movie download] [http://brittcrisler.talk4fun.net/the-boondock-saints.html boondock saints 2] [http://shayzeller.w8w.pl/wiki/tara-reid-nipple.html nipple reid slip tara] [http://marylnaybar.w8w.pl/web/sonny-barger.html sonny barger] [http://burmahentz.ifrance.com/resources/free-business-card.html business card free printing software] [http://orahennis.ifrance.com/description/porn-sophia-star.html porn sophia star] [http://dallashultgren.ifrance.com/spirulina.html nutrex spirulina] [http://kristianspeck.w8w.pl/outdoor-soccer.html outdoor soccer rules] [http://dararousey.ifrance.com/article/james-bond-nightfire.html james bond nightfire pc cheats] [http://kristianspeck.w8w.pl/stone-balustrade.html stone balustrade lamp] [http://slyviasaville.free-site-host.com/new/shirtless-teen.html shirtless male teen] [http://robinsherron.ifrance.com/data/beer-song.html al beer song weird] [http://kaylenelaflamme.ifrance.com/view/sculptural.html decorative ironwork sculptural tool] [http://paulettelynde.freehostia.com/motocross-gear.html motocross gear] [http://dustisimmon.ifrance.com/description/english-in-lop.html english in lop ohio rabbit] [http://roxanekerfoot.talk4fun.net/rv-water-filter.html rv water filter] [http://missylineberry.ifrance.com/styles/good-news.html good news bible] [http://manmaday.free-site-host.com/styles/kara-and-shelby.html kara and shelby hoffman photos] [http://lisabethcarrara.ifrance.com/lib/frontman-fender.html frontman fender amplifier] [http://gerdaguerrera.freehostia.com/web/out-of-africa-hypothesis.html out of africa hypothesis] [http://jacquelynndesro.talk4fun.net/what-is-a-colossus.html what is a colossus] [http://missylineberry.ifrance.com/styles/educate.html billions drawing educate million york] [http://kaylenelaflamme.ifrance.com/view/yamaha-watercraft.html engine personal watercraft yamaha] [http://rolandepolitte.free-site-host.com/text/indian-institute.html indian institute of modern management] [http://dararousey.ifrance.com/article/abl-electronics.html abl electronics corp] [http://orahennis.ifrance.com/description/film-reviews.html film reviews] [http://johnnywinbush.ifrance.com/small/lewd.html lewd] [http://rosariatsao.freehostia.com/library/amazing-race-tryout.html amazing race tryout] [http://jamicarbaugh.ifrance.com/description/search-sites.html search web site] [http://lindyschwandt.w8w.pl/articles/jim-morrison.html jim morrison poetry] [http://marylnaybar.w8w.pl/web/aldo-nova.html aldo nova lyric] [http://eboniedanek.free-site-host.com/gas-tank.html gas tank repair shop] [http://dallashultgren.ifrance.com/kohler-vessel.html kohler vessel sink] [http://delaineresto.ifrance.com/pages/rock-1053.html rock 105.3 kioz] [http://jacquelynndesro.talk4fun.net/julie-christie.html julie christie] [http://marybethcramer.ifrance.com/personal-loans.html personal loan for people with bad bad credit] [http://delaineresto.ifrance.com/pages/responsesendredirect.html response.sendredirect target] [http://kaylenelaflamme.ifrance.com/view/free-blonde-thumbs.html free blonde thumbs] [http://bonnieproffitt.w8w.pl/styles/t42-thinkpad.html t42 thinkpad review] [http://eboniedanek.free-site-host.com/kougra.html kougra] [http://roxanekerfoot.talk4fun.net/appraisal-home-jersey.html appraisal home jersey new] [http://erminiabroomfie.talk4fun.net/directory/schuetzen-park.html schuetzen park in nj] [http://jacquelynndesro.talk4fun.net/gas-pumps.html gas old pump] [http://brittcrisler.talk4fun.net/unity-11.html unity 11] [http://lucillalinton.free-site-host.com/metclub.html metclub] [http://erinoceguera.ifrance.com/topic/returning-military.html returning military] [http://patriadossett.freehostia.com/number-ordinal.html number ordinal spanish] [http://roselleeisenber.talk4fun.net/puerto-rican.html puerto rican] [http://lucillalinton.free-site-host.com/feminine-skirts.html feminine man skirt] [http://leiatynan.w8w.pl/articles/as-seen-on-tv.html as seen on tv store locator] [http://manmaday.free-site-host.com/styles/social-security.html social security contact number] [http://eboniedanek.free-site-host.com/leonards-sales.html leonards sales trailer] [http://manmaday.free-site-host.com/styles/josie-bissett.html josie bissett] [http://leiatynan.w8w.pl/articles/cd-recorders.html music cd recorder] [http://patriadossett.freehostia.com/current-kentucky.html current kentucky derby odds] [http://roxanekerfoot.talk4fun.net/german-shepherd.html german shepherd pedigree] [http://marybethcramer.ifrance.com/jvc-gr-dvl500u.html jvc gr dvl500u] [http://robinsherron.ifrance.com/data/ember.html ember haze] [http://marybellewestla.w8w.pl/lib/lover-key-beach.html lover key beach] [http://paulettelynde.freehostia.com/webroot.html webroot] [http://gerdaguerrera.freehostia.com/web/yashiro-factory.html yashiro factory] [http://leiatynan.w8w.pl/articles/ex3000.html ex3000] [http://dallashultgren.ifrance.com/famous-stars-and.html famous stars and straps hats] [http://doreenhiller.ifrance.com/lib/circle-jerk-videos.html circle jerk videos] [http://leiatynan.w8w.pl/articles/san-rafael-mac.html san rafael mac consultant] [http://paulettelynde.freehostia.com/merrill-lynch.html merrill lynch mortgages] [http://missylineberry.ifrance.com/styles/alberta-research.html alberta research council inc.] [http://kristianspeck.w8w.pl/free-phone-numbers.html find free number phone] [http://marilouwillson.ifrance.com/pilates-certification.html certification online pilates] [http://rosariatsao.freehostia.com/library/javascript-profiler.html javascript profiler] [http://kristianspeck.w8w.pl/koi-oil-paintings.html koi oil paintings] [http://gerdaguerrera.freehostia.com/web/jamaica-vacation.html jamaica vacation deals] [http://orahennis.ifrance.com/description/computer-repair.html computer repair] [http://kristianspeck.w8w.pl/aveda-institute.html aveda institute san antonio] [http://dararousey.ifrance.com/article/web-courses-lexis.html web courses lexis] [http://burmahentz.ifrance.com/resources/sweet-amy-lee.html sweet amy lee] [http://roselleeisenber.talk4fun.net/portable-air-conditioning.html portable air conditioning unit] [http://doreenhiller.ifrance.com/lib/jo-bonner.html jo bonner] [http://bonnieproffitt.w8w.pl/styles/look-at-my-now.html fashion fifty look new now years] [http://paulettelynde.freehostia.com/dorset-holiday.html dorset holiday cottage] [http://heebroughton.ifrance.com/string-instruments.html history instrument string] [http://dustisimmon.ifrance.com/description/audio-recording.html audio recording mixing software] [http://dararousey.ifrance.com/article/awareness-may-month.html awareness may month] [http://shusipes.ifrance.com/wiki/ron-harris.html harris ron] [http://patriadossett.freehostia.com/geneaology.html geneaology] [http://erinoceguera.ifrance.com/topic/television-repair.html television repair schematic] [http://lindyschwandt.w8w.pl/articles/true-babescom.html true-babes.com] [http://slyviasaville.free-site-host.com/new/roadstar-tv.html roadstar tv dvd] [http://dustisimmon.ifrance.com/description/alaris-medical.html alaris medical systems inc] {| align=right
+
{| align=right
 
|-
 
|-
 
|  
 
|  
Line 58: Line 58:
  
  
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.
+
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.
 
----
 
----
  

Revision as of 11:32, 27 December 2007

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 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 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 Items: