Arduino LED fading

Hello.

I have a project going on where im going to use lots of leds fading in and out when i open the door on my car. What i need some help with is finding out what part's i need.

  • Arduino
  • Blue LED (x100-500)
  • transistor (?)

I am using 100 of LED's because im gonna have light's all over the car. Thaught of having lights under the seats and under the front door so that when i open the door they all pulsate.

What transistor do i need

Is there any way to use only 1 transistor or do i need multiple to power them all ?

What facts, what do you need to know ?

The LED's are just gonne be lit when the door is open, so when the door is closed, the coupe light switch will cut the power to the LED's and the arduino.

if you used 2222 transistors you could push (and push is the key word here) 30 led's running at 20 ma each

course there are factors to take into consideration, like are these wired in parallel or serial?

whats your source voltage (I assume 12 but heck you could be running it off of a phone adapter or a 36 volt camper)

what are the "stats" of the led's your using, normal red is totally different from super bright white

if you really want just "door open turn on light" why do you even need to bring in a "computer"

I think parallel would be best, but i dont know. But that's what i made this thread for, because i dont realy know what is the best way of doing this.

Yes it's a normal 12v battery in the car.

I dont have any LED's yet because the project is still in the planning stage, but i was thinking normal 5mm blue LED's.

The "computer" is for making all the lights pulsate.

well

personally I would go for X banks of serial its easier wiring

so 12 v into a serial circuit of 100 of a "normal" 3.2v 20ma would provide ...

Solution 1: 2 x 50 array uses 100 LEDs exactly
+12V

  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
  • -|>|- -|>|- -///- + R = 330 ohms
    The wizard says: In solution 1:
  • each 330 ohm resistor dissipates 132 mW
  • the wizard thinks 1/4W resistors are fine for your application Help
  • together, all resistors dissipate 6600 mW
  • together, the diodes dissipate 6400 mW
  • total power dissipated by the array is 13000 mW
  • the array draws current of 1000 mA from the source.

http://led.linear1.org/led.wiz

as far as "pulse", pulse is a word that has infinite meanings when it comes down to it please explain (ie: I can make a led pulse with a total of 9 passive components in 2 different ways, neither require a cpu)

I can realy feel that i havent gotten enough rest, cause im not thinking clearly now. I dont think i need 100 LED's. The light is only gonna be under the door(2*1 meter LED strips) and under the seat, and depending on the spreading angle of the LED, i should't need more than about 1 LED every 10 cm or so, so that would be 10-20 LED's per door plus another 2-5 per seat.

Pulse as in dimmin in and out slowly.

What ways do you recomend ?

sort of like

and please remember if your going though the trouble, the more the better

if you start making things spartan it will show, in this case as led blob dots, which in all honestly could be defused out by elaborate means, but probably at the came cost and hassle as a "hd" array of lights

things to think about...

come back when you have a clear vision :wink:

making crap is the easy part, planning it out to match your imagination is the difficult part (coming from someone who made a 1024 led matrix I dont use with hand wirewrap on perfboard)

I would use RGBs with ICs included like the ones from http://www.bliptronics.com/ and a $30 spectrum analyzer board. That will be major impressive .. take less work and may even cost less if your time is worth anything.

I spend hundreds of dollars and more time than that on raw LEDs and shift registers. From this experience I will say that unless you really LOVE the learning process you should just get the LEDs that have the IC build in and start with working code. No shift registers or transistors needed - run 100 from your 12V car system using a standard A/C converter and a 5v power supply.

100 of those LEDs using an arduino and code provided a snap .. 100 raw LEDs otherwise is very hard. I am not affiliated with bliptronics but do use the same and other similar IC included LEDs and they are the only way to go when you just want to get the job done. I have used the LEDs from them and can say the code provided works fine.

I have run 100 of those type LEDs using my vans 12v system and had no issues. Currently you can see 100 leds running in my van at www.hookedup.com.

  • site subject to change.
  • note that the video is not arduino but 100 works fine with blips code.

Good luck and have fun.

I have to disagree on "hundreds of dollars" you can pick up 100 leds and 100 shift registers (which are not needed in this idea) for less than 40 bucks using wholesale outlets

sorry if marklar spent 5 bucks each at sparkfun for basic components, but its 27 cents each for shift registers and even less for LED's at any reasonable electronics dealer

I have done it both ways. Disagree all you like .. that is the facts.

This guy is new. You really think he SHOULD run out and run 100 LEDs using transistors and shift registers?

If they OP loves to solder and figure stuff out .. then by all means.

its an on off situation, there is no indication of individual control needed, please take your blatant spam elsewhere

and bother to read the requirements before advertising

k thanks

It is not spam. I buy from this guy and it works. I have spend over $500 on raw leds and shift registers online and they took so much time and effort. Check out my VERY helpful posts on using the 595.

Take your @ elsewhere.

And see ALL my other VERY nice posts and then review yours. My goal is to help some guy that wants to run LEDS in his car.

Im gonna go get some sleep, and come back with a clear head, cause right now i cant think straight. But im gonna leave you a summary of what i want.

4 LED strips. 2* 1meter and 2* about 60cm. As i said, that would be around 50 LED's in total. I want the LED to pulsate in and out. All the LED's are gonna pulsate as one. And the reason why i want to use an arduino is because then i can reprogram it to blink in another patern quickly witout having to buy and solder another circuit for just that patern

the REQUIREMENT states open and closed switches, fade in and out

where do you get shift registers from????????

dude its a simple analog circuit ran though a fet to handle the load

I have spend over $500 on raw leds and shift registers online

whooptie doo! this currently has no need for shift registers and your post only serves as a advertisement with no relevance to the problem at hand

And the reason why i want to use an arduino is because then i can reprogram it to blink in another patern quickly witout having to buy and solder another circuit for just that patern

That is a fair and valid reason, but it does not change the drive requirements much, so things to ponder

I have to say it again, i was way of on my 100 LED's. I only need about half(50). I have an Arduino laying around. The only thing i need is help from you guy on what parts i need and how to wire it in the beste way.

So far iv'e got 2 different transistors (2222)(TO220 package FET), As far as i can see the TO220 package FET would be the best suited for the job, but im no expert.

sorry if marklar spent 5 bucks each at sparkfun for basic components, but its 27 cents each for shift registers and even less for LED's at any reasonable electronics dealer

Please distinguish the different concepts. I have something here in front of me called "intelligent strip". It consists of 50 "modules" encapsulated in a typical sealed flexible strip, each sporting 3 bright SMD RGBs, a specialized shift register with 3 OC PWM outputs, and a 12 to 5V regulator for that chip.

It was around $120, i.e. $2.50 per module (with 5 parts). Considering the "times 3" rule for integrated products this is a reasonable prize.

I can easily address each of the 50 modules separately...

When I find someone wanting to do something that seems a bit aggressive with LEDs and seem to be interested in results more than the fun of soldering - I pass it along.

I spend soooo much time and money before I found those and sure wish someone had told me about them a year ago. I would never have found them without a post.

Also 1/2 of my post was to explain you can run the 100 LEDs without a new battery and that this is a very easy project if you are not trying to re-invent the wheel every step of the way.

I guess the whole idea of the arduino is to just learn anyway - good luck with your project OP.