Results 1 to 7 of 7

Thread: LED and switch wiring

  1. #1

    Default LED and switch wiring

    hey, i am making a light/fan controller at the moment but i have hit a problem. i have a normal switch with on and off and 2 connectors on the back. i am connecting one of these to 12 volts and the other to some cold cathodes with them connected to ground so that they will turn on if i put the switch on, but i want a 5v led to come on aswell when the cathodes are on. how could i incorporate this into the circuit. i have a drawn a little diagram in paint.

    [IMG]
    [/IMG]

    thanks
    - Joe

  2. #2
    SOB Fettler xmastree's Avatar
    Join Date
    Mar 2006
    Location
    Burnley, Lancs. UK
    Posts
    1,704

    Default Re: LED and switch wiring

    Easy. Put a resistor in series with the LED. As for the value, assuming the LED needs about 10mA, and that the current resistor will give that from 12V, you need a resistor which will pass 10mA with 7V across it.
    R=V/I so 7/.01 = 700 ohms. I'd use 680 ohms.
    Last edited by xmastree; 01-11-2008 at 03:58 PM. Reason: screwed up the numbers, dunno what happened there.

    Quote Originally Posted by aintnothang View Post
    Think of a way to simulate a real bullet hole, like shooting it.

  3. #3

    Default Re: LED and switch wiring

    do you mean like this,
    [IMG]
    [/IMG]

    Thanks

    - Joe

  4. #4
    SOB Fettler xmastree's Avatar
    Join Date
    Mar 2006
    Location
    Burnley, Lancs. UK
    Posts
    1,704

    Default Re: LED and switch wiring

    No, the LED and its resistor should go between the output of the switch and ground. Same as the inverter.

    Quote Originally Posted by aintnothang View Post
    Think of a way to simulate a real bullet hole, like shooting it.

  5. #5

    Default Re: LED and switch wiring

    Ok, like this.
    [IMG]
    [/IMG]

    thanks

    -Joe

  6. #6
    SOB Fettler xmastree's Avatar
    Join Date
    Mar 2006
    Location
    Burnley, Lancs. UK
    Posts
    1,704

    Default Re: LED and switch wiring



    The same thing (but mine's neater... :p )

    Quote Originally Posted by aintnothang View Post
    Think of a way to simulate a real bullet hole, like shooting it.

  7. #7

    Default Re: LED and switch wiring

    Alright got it.

    Thanks for the help +rep

    -Joe

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •