Photo Sensor Project Question

Discussion in 'The Projects Forum' started by calpolyarc, Nov 15, 2010.

  1. calpolyarc

    Thread Starter New Member

    Nov 15, 2010
    2
    0
    Hello, new to the forums here and somewhat of a newbie to electronics. I have a project I'm working on and was hoping to get some help with the electronic components. So here goes....
    I bought 5' of this LED Strip: http://www.usledsupply.com/shop/12v-rgb-flex-strip.html, a 12v 12w 1A Power Supply, and this RGB Controller: http://www.usledsupply.com/shop/rgb-remote-control-1.html. Everything works great, I've even been able to cut the LED Strip into sections and solder wires between the sections. The part I'm having trouble with is that I want to add a photo sensor, photoresistor, or phototransistor to have the LED's turn on automatically when the room gets dark. Through investigation I've found that there are many ways to do this, but it appears one of the simplest methods seems to utilize an NPN transistor as seen here: [​IMG]
    I've tried this circuit with success using this kit: http://www.science-city.com/elsnkiel202.html
    Juvenile I know but like I said I'm a beginner and it was on sale at Radio Shack :p
    So how do I integrate this NPN transistor schematic into my project with:
    A) The electricity being supplied by the 12v 12w 1A Power Supply and/or RGB controller instead of 2 AA batteries.
    B) The LED being a 5' strip or RGB LED's instead of a single LED.
    C) The resistor, NPN transistor and photo sensor being bought from Fry's or Radio Shack.
    :confused:
    Thanks in advance!
     
  2. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    6,357
    718
    That little transistor won't be able to handle the power of the RGB strip.

    You will need the same basic concept, but that transistor will be used to drive a power transistor (or power MOSFET) in order to switch cleanly.

    See member Bill Mardsen's blog for details.
     
  3. iONic

    AAC Fanatic!

    Nov 16, 2007
    1,420
    68
  4. calpolyarc

    Thread Starter New Member

    Nov 15, 2010
    2
    0
    How do you decide between using a mosfet or a relay?
     
  5. Kermit2

    AAC Fanatic!

    Feb 5, 2010
    3,795
    949
    eeny meeny minee moe?
     
  6. mik3

    Senior Member

    Feb 4, 2008
    4,846
    63
    Since you are a newbie, use a relay. It is more robust than a MOSFET in terms of handling and 'playing' with it.

    Here is a link to help you:

    http://www.jaycar.com.au/images_uploaded/relaydrv.pdf
     
  7. wayneh

    Expert

    Sep 9, 2010
    12,145
    3,055
    Relays suffer from having moving parts, needing a bit more power to hold "on", and being more expensive. But they're great for simplicity, and they can switch AC.

    In practical, hobbyist use, the biggest factor for choosing between MOSFET and relay is usually frequency. A relay makes no sense for long term use at frequencies above, say, 1 Hz. They just can't switch really fast and they will wear out after some number of toggles.
     
  8. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    6,357
    718
    Current requirements and frequency of switching mostly.

    For a basic twice a day switch, a relay would be easier for you to implement.

    You may have a few problems with relay chatter at dusk, when the transistor is one just barely enough to drive the relay the relay will keep switching until the photosensor is out of the voltage range entirely.
     
Loading...