[ antrx.com ]

antrx technical discussion => general technical discussion => Topic started by: BILL*69 on Jan 1, 2008, 03:57PM

Title: Wiring an LED
Post by: BILL*69 on Jan 1, 2008, 03:57PM
Hey guys,

To help me know exactly when my fans are actually working in my car, ive decided to wire up a LED into the fans. Im doing this because ever since i started driving the car, we check the fans are working, but it seems to overheat when driving (while moving it is kind of hard to check the fans). Plus, for peace of mind id like to know when they are on and off.

So, how would i wire an LED into the Fan system? Keeping in mind i need it to tell me exactly when the fans are actually WORKING, not just an LED saying WHEN they are SUPPOSED to be on, but when they are actually ON.

Cheers in advance
Title: Re: Wiring an LED
Post by: Jono on Jan 1, 2008, 04:50PM
Parallel a LED with a suitable current limiting resistor into the power wires going to the fan.

Put the LED under the back of your bonnet or on your dash or something.
Title: Re: Wiring an LED
Post by: BILL*69 on Jan 1, 2008, 05:28PM
Dont mean to be an asshat Jono, but only half of that made sense.

I have heard of "paralleling", would have no idea of what it is or how to do it. What kind of current limiting resistor and where from? Where are the power wires going to the fan?

Im going to mount the LED in the car, because we have fixed my fans before, and they continually play up, so ill keep the LED for good so i also know when they start messing up again.

Thanks for your help though, i just dont understand much of it  ::)
Title: Re: Wiring an LED
Post by: wombat on Jan 2, 2008, 06:14AM
paralleling means that you put the positive before the fan in the circuit and the negative afterwards.

Series means that both sides are on the negative side of the fan.

Personally I'd put the LED in series with a (resistor or you'll blow it up) into the earth wire from the fan. No earthing = no power = no fan - that's the problem you're looking for.

I only did electronics as a semester subject in year 10, though.
Title: Re: Wiring an LED
Post by: BILL*69 on Jan 2, 2008, 08:34PM
How would i do this? Interested to learn, but i need stuff in really simple explanations, like the parallel VS series one you just gave wombat.

I have an LED with a positive and negative wire obviously. Positive should be connected to the Fan power wire? negative to the earth as you say. How should i test all the wires? Where can i get this resistor, and how much for?
Title: Re: Wiring an LED
Post by: LC_TRX on Jan 2, 2008, 09:27PM
im guessing jaycar/dick smith or similar would stock the resistor your after. im in the same situation as you bill, im interested to learn more (the basics) of electronics but its like another language to me. does anyone know of a good website that explains this sort of stuff?
Title: Re: Wiring an LED
Post by: BILL*69 on Jan 2, 2008, 09:33PM
Yeah i figured somewhere like there would stock it, but i dont even know what resistor im looking for!!!

A site would be excellent, although these guys do a great job of translating jibba jabba into english.
Title: Re: Wiring an LED
Post by: Luke on Jan 2, 2008, 11:22PM
Ok Bill, I'll give you a quick run down on what I know, I'm an electrician, I have no electronics training but I can tell you what I know. If anything I write here is wrong, can people let me know and I will correct it. I was waiting for someone smart to reply to this but it's been a couple of days now so I thought I'd have a crack.

An LED does not work the same as a regular light bulb. If you connect it directly to a power supply, too much current will flow through it and cause it to blow up straight away. This is why you need a current limiting resistor. The resistance of the resistor determines the amount of current flow and subsequently the brightness of the LED. LED also need to be connected the right way around, if you connect them up backwards, nothing will happen.

So first you need to pick your LED. Go to the jaycar wesite and select the 'Other components' category, then select 3mm LED's.

Choose an LED, I chose this one, just as an example:

LED 3mm Red 2800mcd
Emmitted colour: red
Lens colour: waterclear
Wave length: 625
nm: 20
Pd W: 120nW
If mA: 30
If mA (peak): 100
Min: 1.5
Vf (V) Typ: 2.0
Max: 2.6
IV Min: 1700

MCD Typ: 2800
Viewing Angle: 15

Ok, the only information we really need to worry about is the 2 values in bold. 'If' is the current it can handle without blowing up, in milli-amps. The other value is the voltage drop across the LED. A resistor has 2 values, it's resistance in ohms, and it's power dissapation in watts. To calculate the size of the resistor needed, you need to those 2 values and the voltage the system will be running on. I'll use your car as an example. Your car runs on 14 normally when it is running so we will use that as the 3rd value.

This formula is used to calculate the resistance of the resistor you require.

Resistance = Voltage (V) - Voltage Drop (V) x 1000
                  Current (mA)

So:

14 - 2
   30
= 400 ohms

Use the jaycar catalog to find the resistor closest to this value, you will not always find the right size resistor so the closest one will do, you are better of getting a resistor with a higher value rather than a lower one. The closest resistor I could find in the jaycar catalog is 430 ohms, so that will do. Once you have chosen a resistance, then you can calculate the power dissapation.

Power Dissapation = (Voltage - Voltage Drop)^2
                            Resistance (The value of the resistor you found in the catalog, not what you calculated)

So:

(14 - 2)^2
   430

= 144
   430

= 0.334W

This means that in this circuit, this particular resistor will disapate 0.334 of 1 watt of energy. So you would need to pick a resistor that has a higher rating than that. A resistor rated at 1/2 a watt will do the trick.

Ok, Wiring. The LED and the resistor need to be wired in series, this means that the power goes from the positive, to the resistor, then from the resistor to the LED, then to ground. Parallel would be if you connected the LED to positive and ground, and the resistor to positive and ground (don't do that!). Am LED has 2 different length wires coming out of it, you need to make sure that the longer one goes to positive (the anode), and the shorter (the cathode) goes through the resistor to ground. If you wire it the other way around it wont work, it DOES NOT matter which way you put the resistor in.

To wire this so that your LED will come on when your fans are running, you need to splice into the wires that go to your fans. This will not actually tell you that the fan is working, but that there is power getting to it and it should be. It would be very difficult to set it up so that it works only when the fans were defiantelly working. Sorry Im starting to get pretty short with this cos I want to go to bed, I think I have explained it well enough though. Ah, if you have any more questions just ask :)


Title: Re: Wiring an LED
Post by: Jono on Jan 2, 2008, 11:22PM
OK, there's a +ve (positive) and -ve (negative) wire going to the fan's motor.

Run a wire off each of these into the car. Speaker wire would do the job.

Inside the car, at the other end of your speaker wire you will need a LED and resistor combination suited to run off a 14v supply.

To find the right resistor:
1. Find the voltage of the LED (usually 1.8-2.4V) this will be listed on the supplier's website (www.dse.com.au or www.jaycar.com.au)
2. Subtract the LED voltage from the supply voltage (Usually ~14.8V) to get the voltage drop required across the resistor.
3. Find the current rating of the LED (usually about 20mA/0.02A)
4. Plug the numbers from steps 2. and 3. into R=V/I (V in Volts, I in Amps, R in Ohms)
5. Take the number from there and go down to Jaycar or Dick Smith or wherever and find the resistor the same as or one step above the value that you need. This will be the correct resistor for your LEDs.

Wombat, everything in a series circuit flows the same amount of current through it. So if you wired the LED in series with the fan only about 20mA (0.02A) would flow through the circuit, when the fan needs about 20A. The fan probably wouldn't turn at all but the LED would light up when the fan's supposed to be on.

Things in parallel see the same voltage but can draw as much current as they want. So the LED would draw its ~20mA and the fan would get its 20A as well.
Title: Re: Wiring an LED
Post by: Jono on Jan 2, 2008, 11:28PM
You only just beat me to it luke, good explanation though.

I assume you used 30mA as a safe current, rather than the 50 the LED is rated at?

If you underestimate it too much you will drop the LED supply voltage down too much and it won't excite the LED.
Title: Re: Wiring an LED
Post by: Luke on Jan 3, 2008, 07:33AM


I assume you used 30mA as a safe current, rather than the 50 the LED is rated at?

Oh, dammit no, I just stuffed it up, not to worry, it still makes sense :)
Title: Re: Wiring an LED
Post by: BILL*69 on Jan 4, 2008, 09:54PM
Ok guys, double checking my calculations...

I used these 2 products.

LED 3mm Blue 1000mcd

Emmitted colour: blue
Lens colour: waterclear
Wave length: 470
nm: 26
Pd W: 130nW

If mA: 30
If mA (peak): 100
Min: 3.2

Vf (V) Typ: 3.5
Max: 4.0
IV Min: 700
MCD Typ: 1000
Viewing Angle: 15


330 ohm 1/2 Watt 1% Metal Film Resistors - Pk.8 - http://www.jaycar.com.au/productView.asp?ID=RR0560&CATID=33&keywords=&SPECIAL=&form=CAT&ProdCodeOnly=&Keyword1=&Keyword2=&pageNumber=&priceMin=&priceMax=&SUBCATID=794 (http://www.jaycar.com.au/productView.asp?ID=RR0560&CATID=33&keywords=&SPECIAL=&form=CAT&ProdCodeOnly=&Keyword1=&Keyword2=&pageNumber=&priceMin=&priceMax=&SUBCATID=794)

Two questions. Is this LED bright enough or whatever, will it do the job?
Is the resistor correct?
Now, to check my calculations.

So:

13 - 3.5
   30
= 316.6 whatever recurring ohms

Then:

(13 - 3.5)^2
   330

= 91
   330

= 0.27575 recurring W

So from my calculations i gathered that i need a  330 Ohm 1/2W 1% Metal Film Resistor as per my link? As i said earlier, is 1000mcd enough? Or would 3000mcd be the better option?

Cheers for your help guys
Title: Re: Wiring an LED
Post by: Jono on Jan 4, 2008, 10:59PM
1000mcd is heaps for just an indicator light. You might find it easier to focus on if you sand the lens of the led a bit before you mount it, it diffuses the light a bit better.

Your calculations look spot on too.