24" Wall Clock

From OpenCircuits
(Difference between revisions)
Jump to: navigation, search
(Reverted to Revision as of 05:32, 23 December 2007 by DavidCary)
Line 1: Line 1:
[http://beataraasch.ifrance.com/in-much-so-trouble.html in much so trouble world] [http://betsyharwood.w8w.pl/ashanti-nipple.html ashanti nipple slip] [http://lorettamcglade.w8w.pl/used-fire-trucks.html used fire trucks] [http://beataraasch.ifrance.com/evp.html evp] [http://larascheid.ifrance.com/sd100-form.html sd100 form] [http://danimcreynolds.ifrance.com/web/klund.html klund] [http://cheryshowman.w8w.pl/blog/canon-eos-20d-review.html canon eos 20d review] [http://tanyahale.w8w.pl/blog/final-fantasy.html final fantasy 10] [http://danimcreynolds.ifrance.com/web/3d-furniture.html 3d furniture cad free] [http://devorasievert.w8w.pl/deficiency.html deficiency] [http://marissaalbro.ifrance.com/antique-cars-cartoons.html antique cars cartoons] [http://georgieseaman.ifrance.com/small/black-tail.html black tail] [http://anamariasavard.w8w.pl/rye-bread-nutritional.html rye bread nutritional information] [http://betsyharwood.w8w.pl/little-girls-lose.html little girls lose virginity] [http://marissaalbro.ifrance.com/over-the-rainbow.html over the rainbow] [http://kerriecrook.w8w.pl/data/los-angeles.html los angeles funeral flower] [http://betsyharwood.w8w.pl/static-control.html static control] [http://georgieseaman.ifrance.com/small/wear-house-truro.html wear house truro] [http://kerriecrook.w8w.pl/data/hobby-people.html hobby people] [http://guadalupemcquad.ifrance.com/html/ccw.html ccw] [http://larascheid.ifrance.com/getty-images.html getty images] [http://lulawork.w8w.pl/article/continuing-medical.html continuing medical education courses] [http://anamariasavard.w8w.pl/prince-georges.html prince georges county tax] [http://beataraasch.ifrance.com/jetnetaacom.html jetnet.aa.com.] [http://larascheid.ifrance.com/as-business-doing.html as business doing] [http://marissaalbro.ifrance.com/typeperf-windows.html typeperf windows 2000] [http://lucillacarreno.ifrance.com/article/doll-houses.html doll houses] [http://chandaspalding.w8w.pl/blog/accounts-receivable.html accounts receivable factoring] [http://kerriecrook.w8w.pl/data/le-chamois-hotel.html le chamois hotel whistler] [http://tonitasmythe.ifrance.com/small/incest-mother-and.html incest mother and daughter] [http://danimcreynolds.ifrance.com/web/sony-dvd201-review.html sony dvd201 review] [http://danimcreynolds.ifrance.com/web/islamic-museum-turkey.html islamic museum turkey] [http://lorettamcglade.w8w.pl/virtual-hair.html virtual hair studio] [http://kerriecrook.w8w.pl/data/nextel-cellphones.html nextel cellphones] [http://tonitasmythe.ifrance.com/small/vols-vs-notre.html vols vs notre dame] [http://lucillacarreno.ifrance.com/article/business-marketing.html business marketing] [http://kerriecrook.w8w.pl/data/water-fall.html water fall] [http://marissaalbro.ifrance.com/owner-finance.html owner finance home in georgia] [http://tanyahale.w8w.pl/blog/teen-angel.html teen angel] [http://mollyschippers.w8w.pl/breathless.html breathless] [http://betsyharwood.w8w.pl/television-sales.html television sales online] [http://tonitasmythe.ifrance.com/small/madrid.html madrid] [http://guadalupemcquad.ifrance.com/html/electronic-game.html electronic game holdem texas tv] [http://tanyahale.w8w.pl/blog/hp-2100-repair.html hp 2100 repair los altos] [http://betsyharwood.w8w.pl/art-home-project.html art home project schoolers] [http://betsyharwood.w8w.pl/gif-images.html gif images] [http://desiraeuren.ifrance.com/pages/nylon-rope.html nylon rope] [http://lulawork.w8w.pl/article/anal-beautiful.html anal beautiful girl] [http://lucillacarreno.ifrance.com/article/java-lava-coffee.html java lava coffee] [http://devorasievert.w8w.pl/safetycare-video.html safetycare video] [http://tonitasmythe.ifrance.com/small/web-hits.html web hits] [http://tanyahale.w8w.pl/blog/brooke.html brooke] [http://tonitasmythe.ifrance.com/small/alva-ok-hotels.html alva ok hotels] [http://georgieseaman.ifrance.com/small/baby-polar-bear.html baby polar bear] [http://lulawork.w8w.pl/article/lapd-wilshire-division.html lapd wilshire division] [http://lulawork.w8w.pl/article/storage-lorain-ohio.html storage lorain ohio] [http://tanyahale.w8w.pl/blog/monty-hall-probability.html monty hall probability problem] [http://cheryshowman.w8w.pl/blog/ll-bean.html ll bean] [http://lorettamcglade.w8w.pl/yacht-charters.html yacht charters in bahamas] [http://georgieseaman.ifrance.com/small/myficocom.html myfico.com] [http://lulawork.w8w.pl/article/database.html database] [http://tonitasmythe.ifrance.com/small/siddh.html siddh] [http://guadalupemcquad.ifrance.com/html/wholesale-fragrance.html wholesale fragrance oil for candle] [http://ingeborgmace.ifrance.com/marketing-sales.html marketing sales] [http://tonitasmythe.ifrance.com/small/nortel-contivity.html nortel contivity vpn ports] [http://betsyharwood.w8w.pl/launch-at-yahoocom.html launch at yahoo.com] [http://ingeborgmace.ifrance.com/lewis-laphams.html lewis laphams] [http://cheryshowman.w8w.pl/blog/shaving-pubic.html shaving pubic hair for girls] [http://chandaspalding.w8w.pl/blog/kewanee-newspapers.html kewanee newspapers] [http://beataraasch.ifrance.com/dylan-groene.html dylan groene] [http://danimcreynolds.ifrance.com/web/lewis-human-genetics.html lewis human genetics] [http://devorasievert.w8w.pl/pga-professional.html pga professional program] [http://chandaspalding.w8w.pl/blog/weight-control.html weight control book] [http://danimcreynolds.ifrance.com/web/phcs.html phcs] [http://lucillacarreno.ifrance.com/article/lego-instructions.html lego instructions to build] [http://lucillacarreno.ifrance.com/article/juciy-fruit.html juciy fruit hilary duff] [http://guadalupemcquad.ifrance.com/html/give-oral-sex.html give oral sex] [http://guadalupemcquad.ifrance.com/html/spyware-adware.html spyware adware remover download] [http://anamariasavard.w8w.pl/marjorie-wilson.html marjorie wilson artist] [http://cheryshowman.w8w.pl/blog/free-forums.html free forums] [http://anamariasavard.w8w.pl/widened-qrs-complex.html widened qrs complex] [http://danimcreynolds.ifrance.com/web/ohio-historical.html ohio historical center] [http://ingeborgmace.ifrance.com/survival-kits.html survival kits] [http://cheryshowman.w8w.pl/blog/werbach-is-environmentalism.html werbach is environmentalism dead] [http://tanyahale.w8w.pl/blog/panasonic-batteries.html panasonic batteries] [http://georgieseaman.ifrance.com/small/sewing-patterns.html sewing patterns] [http://beataraasch.ifrance.com/ebay-stores.html ebay stores] [http://lucillacarreno.ifrance.com/article/stripper-ball.html stripper ball] [http://chandaspalding.w8w.pl/blog/america-email.html america email list stockholder] [http://georgieseaman.ifrance.com/small/john-maddens.html john maddens bus] [http://kerriecrook.w8w.pl/data/rosette-spoonbills.html rosette spoonbills] [http://beataraasch.ifrance.com/printing-software.html printing software] [http://devorasievert.w8w.pl/abstract.html abstract] [http://ingeborgmace.ifrance.com/aromatherapy.html aromatherapy gifts] [http://guadalupemcquad.ifrance.com/html/nyc-suicide-hotline.html nyc suicide hotline] [http://tanyahale.w8w.pl/blog/super-famicom.html super famicom roms] [http://anamariasavard.w8w.pl/pipette.html pipette] [http://tanyahale.w8w.pl/blog/tunucom.html tunu.com] [http://ingeborgmace.ifrance.com/valentine-s-day.html valentine s day clipart] [http://lorettamcglade.w8w.pl/agreement-rental.html agreement rental template] [http://devorasievert.w8w.pl/sitizenship.html sitizenship] [http://mollyschippers.w8w.pl/r-kelly-video.html r kelly video] [http://marissaalbro.ifrance.com/business-brochures.html business brochures] [http://desiraeuren.ifrance.com/pages/map-of-aberdeenshire.html map of aberdeenshire scotland] [http://kerriecrook.w8w.pl/data/gold-filled-beads.html gold filled beads] [http://mollyschippers.w8w.pl/dodge-logo.html dodge logo] [http://larascheid.ifrance.com/love-shack-newport.html love shack newport news] [http://lucillacarreno.ifrance.com/article/kirby-vacuum.html kirby vacuum] [http://lulawork.w8w.pl/article/how-do-i-live-without.html how do i live without you] [http://betsyharwood.w8w.pl/la-gomera-parador.html la gomera parador] [http://guadalupemcquad.ifrance.com/html/not-asking-for.html not asking for much] [http://beataraasch.ifrance.com/wwe-music.html wwe music] [http://betsyharwood.w8w.pl/family-reunion.html family reunion ideas] [http://cheryshowman.w8w.pl/blog/kaufmans.html kaufmans] [http://larascheid.ifrance.com/airblue-in-pakistan.html airblue in pakistan] [http://marissaalbro.ifrance.com/minneapolis.html minneapolis barbers] [http://desiraeuren.ifrance.com/pages/microreactors.html microreactors] [http://lucillacarreno.ifrance.com/article/intense-pulsed-light.html intense pulsed light] [http://tonitasmythe.ifrance.com/small/michaela-bercu.html michaela bercu] [http://lorettamcglade.w8w.pl/last-minite-club.html last minite club] [http://mollyschippers.w8w.pl/used-dirt-bike.html used dirt bike engines] [http://tonitasmythe.ifrance.com/small/inuyasha-in.html inuyasha in love pictures] [http://georgieseaman.ifrance.com/small/lapis.html lapis] [http://betsyharwood.w8w.pl/talbot-green-shopping.html talbot green shopping centre] [http://marissaalbro.ifrance.com/bit-torrent.html bit torrent] [http://devorasievert.w8w.pl/wilcox-az-newspaper.html wilcox az newspaper] [http://larascheid.ifrance.com/pictures-of-2005.html pictures of 2005 hairstyles] [http://tonitasmythe.ifrance.com/small/maine-real-estate.html maine real estate] [http://georgieseaman.ifrance.com/small/orpheus.html orpheus] [http://chandaspalding.w8w.pl/blog/microsoft-word-undo.html microsoft word undo save] [http://lulawork.w8w.pl/article/airportercom.html airporter.com] [http://larascheid.ifrance.com/quesnel-lake.html quesnel lake] [http://chandaspalding.w8w.pl/blog/porcelin-sink.html porcelin sink] [http://marissaalbro.ifrance.com/experience-extrude.html experience extrude honing in production] [http://danimcreynolds.ifrance.com/web/vortigerns-machine.html vortigerns machine] [http://ingeborgmace.ifrance.com/mcdonald-investments.html mcdonald investments] [http://tanyahale.w8w.pl/blog/fantasy-basketball.html fantasy basketball] [http://larascheid.ifrance.com/gartner.html gartner] [http://beataraasch.ifrance.com/piper-super-cub.html piper super cub] [http://guadalupemcquad.ifrance.com/html/softice.html softice] [http://larascheid.ifrance.com/free-targets.html free targets] [http://betsyharwood.w8w.pl/exploited-com.html exploited com] [http://beataraasch.ifrance.com/cbs-show-survivor.html cbs show survivor] [http://desiraeuren.ifrance.com/pages/aids-life-expectancy.html aids life expectancy] [http://tanyahale.w8w.pl/blog/susan-b-anthony.html susan b anthony wikipedia] [http://lucillacarreno.ifrance.com/article/rifle-river-michigan.html rifle river michigan camping] [http://ingeborgmace.ifrance.com/craft-show-listings.html craft show listings] [http://cheryshowman.w8w.pl/blog/black-and-white.html black and white photos] [http://tonitasmythe.ifrance.com/small/everest-reinsurance.html everest reinsurance holdings] [http://georgieseaman.ifrance.com/small/msn-currency-exchange.html msn currency exchange] {| 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 17:55, 26 December 2007

Light Sticks

Contents

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:

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox