Author Topic: Christmas lights  (Read 3409 times)

0 Members and 1 Guest are viewing this topic.

Offline codemonkeyrawksTopic starter

  • Contributor
  • Posts: 10
  • Country: us
    • Home
Christmas lights
« on: November 26, 2010, 02:43:23 am »
I want to drive some Christmas lights from a Arduino but not quite sure how to do it and multiplex the pins together since the arduino only has 12 pins. I am thinking of using a 12 relays and need to output 40 lines. Any Suggestions :P
 

Offline tinsmith

  • Contributor
  • Posts: 29
Re: Christmas lights
« Reply #1 on: November 26, 2010, 04:48:14 am »
Here's one. Do you really need to set it up as a 40-element matrix display? Strand lights usually don't. Common effects like the "racing" cycle tend to use sub-arrays tied to a common signal.

LEDs also don't need to be at logic high all the time in order to appear on. Even a fairly low duty cycle will usually look like it's persistently lit, but you'll start losing some apparent brightness if you go too far. Because of this, a common technique for arrays of LEDs is to set up an m x n matrix and strobe over it.
 

Offline tyblu

  • Frequent Contributor
  • **
  • Posts: 287
  • Country: 00
    • blog.tyblu.ca
Re: Christmas lights
« Reply #2 on: November 26, 2010, 06:30:23 am »
Shift registers are great for this type of low-update rate and pin count situations. 4094 is serial to parallel converter. You'll need a driver if the lights aren't LEDs, like the ULN2803A.
More resources: http://www.lightorama.com/products.html
http://www.avrfreaks.net/index.php?name=PNphpBB2&file=printview&t=18054
Tyler Lucas, electronics hobbyist
 

Offline badSCR

  • Contributor
  • Posts: 40
Re: Christmas lights
« Reply #3 on: November 26, 2010, 06:54:55 am »
I lave light-o-rama....  Very good company to do business with.    ;D ;D

I use there controllers for my display.  ;D   I am a very happy customer, and my neighbors love my display.
Buy your lights and stuff when they go 75% off for the after christmas sale.


 

Offline House91320

  • Regular Contributor
  • *
  • Posts: 176
Re: Christmas lights
« Reply #4 on: November 26, 2010, 09:10:23 am »
I am blanking on the name but there chips that will do this.
 

Offline Murphy

  • Regular Contributor
  • *
  • Posts: 54
Re: Christmas lights
« Reply #5 on: November 26, 2010, 06:00:26 pm »
Look into using solid state relays, they can be switched by just 5v.

Or make your own circuitry using triacs or mosfets if you need it cheap.
« Last Edit: November 26, 2010, 06:19:20 pm by Murphy »
 

Offline tinsmith

  • Contributor
  • Posts: 29
Re: Christmas lights
« Reply #6 on: November 26, 2010, 09:04:53 pm »
I am blanking on the name but there chips that will do this.

Well, there's the TLC5940 16-channel chainable PWM controller. But it's probably overkill for this.
 

Offline oPossum

  • Super Contributor
  • ***
  • Posts: 1417
  • Country: us
  • Very dangerous - may attack at any time
Re: Christmas lights
« Reply #7 on: November 26, 2010, 09:12:06 pm »
8 bit power shift registers

TPIC6A595
TPIC6B595
TPIC6C595

« Last Edit: November 26, 2010, 09:21:54 pm by oPossum »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf