Go to Post When we learn physics, we almost always "ignore friction". The real world never does... - Mike Betts [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-11-2007, 08:04
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
Talking Crazy idea involving hundreds of LEDs

For the past couple of days, I thought it would be *really cool* to make either my own marquee hat, or eventually a vest of LEDs. It could display words or pictures (using PWM to dim the lights and get something besides ON and OFF) and it would be really hard to not notice a flashing LED vest.

Now, since I'm just a programmer, I'm used to having all the outputs on my processor. As far as I know, there's not a processor in the world with a few thousand outputs...that would be impractical and stupid. But how do I multiplex? What chips are available?

I started Googling around, and remembered seeing Christmas light controllers on computerchristmas.com and immediately went there. On that site, there's 2 different methods of controlling lights; one involving flip-flops and decoders (Link) and one with 595 shift registers (Link).

Both of these seem horridly inefficient, especially if the final goal is to have thousands of channels (can you picture me with a huge box of flip-flops on my back? ). Is there a better method? I'm probably going to learn some of this at college, but I'm not there yet (I wish...).

How do real commercial marquees do it? They have cool multi-color effects and fading in and out...I'm sure it's all pulse-width because I can see them flicker.

So....any suggestions would be greatly appreciated.
JBot
__________________
Aren't signatures a bit outdated?

Last edited by JBotAlan : 11-11-2007 at 08:05. Reason: Oops...It's URL, not LINK...
  #2   Spotlight this post!  
Unread 11-11-2007, 09:33
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,022
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Crazy idea involving hundreds of LEDs

see if you can figure out how monitors work.

Seems to me that you're just trying to make a low resolution monochrome monitor, using LEDs
  #3   Spotlight this post!  
Unread 11-11-2007, 11:48
Schnabel's Avatar
Schnabel Schnabel is offline
Seriously I'm almost never serious!
AKA: Eric Schnabel
FRC #0469
Team Role: Mentor
 
Join Date: Apr 2006
Rookie Year: 2003
Location: Troy, MI
Posts: 1,174
Schnabel has a reputation beyond reputeSchnabel has a reputation beyond reputeSchnabel has a reputation beyond reputeSchnabel has a reputation beyond reputeSchnabel has a reputation beyond reputeSchnabel has a reputation beyond reputeSchnabel has a reputation beyond reputeSchnabel has a reputation beyond reputeSchnabel has a reputation beyond reputeSchnabel has a reputation beyond reputeSchnabel has a reputation beyond repute
Re: Crazy idea involving hundreds of LEDs

Here is something to take a peek at! Link
We have over 33,000 LED's on it including a strobe to each panel. We use the serial port on the back of a laptop in order to control 34 different micro controllers which in turn control four different triangles. I really can't elaborate too much on how it works, but Alan Anderson can.
__________________
I win! XD
  #4   Spotlight this post!  
Unread 11-11-2007, 11:57
Smaug's Avatar
Smaug Smaug is offline
Registered User
FRC #0675 (Tech High Phantom Robotics)
Team Role: Electrical
 
Join Date: Jul 2006
Rookie Year: 2006
Location: California
Posts: 82
Smaug is a jewel in the roughSmaug is a jewel in the roughSmaug is a jewel in the roughSmaug is a jewel in the rough
Re: Crazy idea involving hundreds of LEDs

well daft punks has a helmet that dose that you could try to email them and see how they did it
__________________


If it isn't broken, Fix it till it is ~ Baker
  #5   Spotlight this post!  
Unread 11-11-2007, 14:03
steve d steve d is offline
Registered User
FRC #1277
 
Join Date: Jan 2007
Location: Groton, ma
Posts: 38
steve d is an unknown quantity at this point
Re: Crazy idea involving hundreds of LEDs

I saw an awesome vest with fiber optic lights woven in it. It diplayed the coolest light show on his back. At the 2006 Boston match, there were people from MIT's Waerable Computer lab. http://www.media.mit.edu/wearables/index.html
  #6   Spotlight this post!  
Unread 11-11-2007, 14:26
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,795
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Crazy idea involving hundreds of LEDs

Jacob,
LED displays frequently use row/column multiplexing to make moving and animated displays. An LED only needs to be turned on for a short period of time for the human eye to notice it. As long as the refresh rate exceeds 24 Hz (30Hz is the TV vertical frame rate) then the human eye integrates the LEDs into a still or moving frame. You then just need to produce row and column switch generators and output a control signal in sync with the row/column encoder.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #7   Spotlight this post!  
Unread 11-11-2007, 15:29
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: Crazy idea involving hundreds of LEDs

Dynamo from "Running Man"
  #8   Spotlight this post!  
Unread 11-11-2007, 21:00
danshaffer's Avatar
danshaffer danshaffer is offline
Stanford 2012
AKA: if it quacks like a duck...
FRC #0008 (Paly Robotics)
Team Role: Mentor
 
Join Date: Apr 2007
Rookie Year: 2007
Location: Palo Alto, CA
Posts: 190
danshaffer is just really nicedanshaffer is just really nicedanshaffer is just really nicedanshaffer is just really nice
Re: Crazy idea involving hundreds of LEDs

we've talked about doing something like this...
one way you could try doing this is with n-bit counter chips, attaching an LED to each bit of the counter, then count up on the counter until you get to the state you want. processor should be able to do it faster than you could notice, although using 4-bit counters doesn't expand your ability too much.

i'm no EE, but if someone who is could critique this idea, that would be awesome:

you arrange your LEDs in a matrix, with one end of the diode connected in each column to every other in the column and the other end of the diode connected in the row to every other in the row. each row and each column's continuity is controlled by a transistor, so closing the transistor on a row and a column will complete the circuit. not sure how you'd deal with the current requirements of LEDs to avoid blowing them or anything, or if this will work at all, but just throwing it out there. i could probably draw a schematic if my description wasn't clear...
__________________
FRC8 Co-Captain 2007-2008
FRC8 Mentor 2008-present
CalGames Ref 2008, 2009

Stanford 2012, Computer Science
  #9   Spotlight this post!  
Unread 11-11-2007, 22:14
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Crazy idea involving hundreds of LEDs

I found a concise article describing how LED matrices work here: http://www.acm.uiuc.edu/sigarch/tutorials/ledarray/
This is more or less the way I've always seen it done.
Quote:
Originally Posted by danshaffer
one way you could try doing this is with n-bit counter chips, attaching an LED to each bit of the counter, then count up on the counter until you get to the state you want. processor should be able to do it faster than you could notice, although using 4-bit counters doesn't expand your ability too much
It's a pretty good idea, but instead of a counter just use a shift register (as described above).
Quote:
Originally Posted by JBotAlan
They have cool multi-color effects and fading in and out...I'm sure it's all pulse-width because I can see them flicker.
As has already been discussed, the only realistic way to build a large LED array is to scan through them using rows and columns. Once you have that in place (using just ON or OFF states for each LED), you can then implement brightness by scanning faster. For example, if you normally turn on one of the LEDs for 10 milliseconds when it's supposed to be "ON", you can subdivide that 10ms further to implement brightness. ON 2.5ms OFF 7.5ms for 1/4 brightness, ON 5ms OFF 5ms for half, etc. The challenge here is not having so many LEDs that your scan time for each LED is too low. Depending on how many LEDs to want to have total, you might have to break down the overall matrix into smaller grids and have a microcontroller dedicated to each grid. If you want color, then repeat the whole process with a different color LED. Once you do that, then you need to figure out how to communicate with all of them. As you can probably tell, the basics of an LED matrix are straightforward, but the practical implementation can get complicated.
  #10   Spotlight this post!  
Unread 11-11-2007, 23:40
karlcswanson's Avatar
karlcswanson karlcswanson is offline
Registered User
FRC #0111 (WildStang)
Team Role: Alumni
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Arlington Hts.
Posts: 63
karlcswanson is just really nicekarlcswanson is just really nicekarlcswanson is just really nicekarlcswanson is just really nicekarlcswanson is just really nice
Re: Crazy idea involving hundreds of LEDs

This hat is pretty cool. I think it uses shift registers and an array of leds. Too much soldering for me.
__________________
  #11   Spotlight this post!  
Unread 12-11-2007, 00:14
rainy846's Avatar
rainy846 rainy846 is offline
Registered User
AKA: Yuzhi
FRC #0846 (Funky Monkey)
Team Role: Leadership
 
Join Date: Mar 2007
Rookie Year: 2005
Location: San Jose , California
Posts: 27
rainy846 will become famous soon enoughrainy846 will become famous soon enough
Re: Crazy idea involving hundreds of LEDs

we though of like a LED moving team sign thing.
the programming part shouldn't be too bad (well, depends on how complicated you want to make it), but finding a portable power supply was a problem for us.
__________________
Go FUNKY MONKEYS!!!
846!!!
Attending : Silicon Valley Regional, Hawaii Regional

2007:
4th Seed Silicon Valley Regional Semifinalist
1st Seed Lone Star Regional Semifinalist
Woodie Flowers Award for our Mentor : Mr. Xie Silicon Valley Regional
Gracious Professionalism at Lone Star Regional
  #12   Spotlight this post!  
Unread 12-11-2007, 11:57
Qbranch Qbranch is offline
wow college goes fast.
AKA: Alex
FRC #1024 (Kil-A-Bytes)
Team Role: Alumni
 
Join Date: Apr 2006
Rookie Year: 2006
Location: Indianapolis
Posts: 1,174
Qbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond repute
Re: Crazy idea involving hundreds of LEDs

What I suggest you use is a family of 8255 Programmable Peripheral Interface chip ($5 From Jameco).

Essentially, what an 8255 gets you is 24 bits of I/O from 8 pins on your processor. (An 18F8722 has I believe 8 ports of I/O or 64 lines, so, if you really wanted to just with one level of multiplex, one 8255 chip per port, you could run 192 led's). The interface is REALLY simple, just sit down with the data sheet and about one cup of coffee (or tasty beverage of your choice) later you should have enough knowledge to go out and hook up an 8255 to your processor of your choice.

Of course, if 192 output lines isn't enough, you can just add another level of multiplexing (1 byte I/O from processor => 1 8255 Chip => One 8255 chip for each byte on the previous=> 9 bytes of I/O per 1 byte of processor I/O (or 72lines per every 8)). So, if you added one more level of multiplexing on all of those ports you'd still EASILY make your update rate with the 18F8722 (or other 40MIPS+ processor) and be able to run up to 576 led's.

BUT! Remember to put resistors in series with your leds or you'll easily go over the 2.5mA per line drive current. You'll most likely need a darlington array IC to drive your LED's in the end if you want bright ones... but thats another story which i'll write if there is interest.

Have fun! Sounds like a fantastic for-the-heck-of-it-project!

-q
__________________
Electrical Engineer Illini
1024 | Programmer '06, '07, '08 | Driver '08
  #13   Spotlight this post!  
Unread 12-11-2007, 14:01
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Crazy idea involving hundreds of LEDs

Quote:
Originally Posted by Qbranch View Post
Remember to put resistors in series with your leds or you'll easily go over the 2.5mA per line drive current.
2.5mA is likely not going to cut it. We typically supply 10mA to LEDs in our projects, and that is acceptable but usually not super-bright, and this is for regular status LEDs that are not multiplexed. When you multiplex them, they're only on for a fraction of the time, making them appear even dimmer than usual.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Crazy drivetrain idea lukevanoort Technical Discussion 7 26-10-2005 21:19
500 hundreds of a inch JulieB General Forum 8 18-02-2005 01:09
Crazy NEW Idea! Kyle Love Championship Event 14 07-11-2004 16:50
crazy idea for autonomous Mike Ciance Programming 16 24-04-2003 21:50
Crazy Idea, looking for comments archiver 1999 74 23-06-2002 22:56


All times are GMT -5. The time now is 06:58.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi