Use of LDR and Transistor to swtich current between branches

Discussion in 'The Projects Forum' started by thomo16, Oct 21, 2011.

  1. thomo16

    Thread Starter New Member

    Oct 21, 2011
    3
    0
    Hi,

    I've tried to design a circuit using a Light Dependent Resistor in parallel with another branch that is connected to a transistor. When it is dark, the LDR resistance is high, and the current should pass through the branch parallel to the LDR and hence through the transistor. When it is light, the LDR resistance is low, and the current should pass through the branch with the LDR and not the branch with the transistor.

    The problem is, I can't make it so that current only flows through one branch. At the moment, it either flows through both branches regardless of the light level or only the branch with the LDR.

    The schematic is below.

    [​IMG]

    Any suggestions would be appreciated.
    Thanks for helping me out.
     
  2. thomo16

    Thread Starter New Member

    Oct 21, 2011
    3
    0
  3. wayneh

    Expert

    Sep 9, 2010
    12,155
    3,061
    Try putting the LED and its resistor above the transistor instead of below it. In other words, let the transistor control the path to ground instead of the path from Vcc.
     
  4. Adjuster

    Well-Known Member

    Dec 26, 2010
    2,147
    300
    Here are a couple of versions of your circuit. The simpler one will work only if the LDR goes to quite a low resistance in bright light.
    The second one should be better if the LDR has more resistance. Changing RADJUST alters the level at which the LEDs change over.
     
  5. thomo16

    Thread Starter New Member

    Oct 21, 2011
    3
    0
    thank you very much to the both of you for your help! Especially Adjuster, thanks for the drawings! I tried the second one as my LDR has a high resistance, and it works perfectly!

    Thanks once again for helping me out.
     
Loading...