Need help with dark activated switch

Discussion in 'General Electronics Chat' started by sumit231996, Oct 23, 2014.

  1. sumit231996

    Thread Starter New Member

    Oct 14, 2014
    14
    0
  2. MrChips

    Moderator

    Oct 2, 2009
    12,442
    3,361
    Try the second circuit first.
    Put 6 LEDs in series to replace the single LED.
    9V is not high enough to turn on 6 LEDs. So remove one LED at a time until you get sufficient brightness.
     
    sumit231996 likes this.
  3. sumit231996

    Thread Starter New Member

    Oct 14, 2014
    14
    0
    no need to change resistors?
    one uses 1k and other one uses 100k and position of led is too different. Does that matter?
     
  4. MrChips

    Moderator

    Oct 2, 2009
    12,442
    3,361
    Like I said, use circuit 2)

    [​IMG]

    It will work with 4 LEDs in series but not with 6 when powered from a 9V battery.
     
  5. MrChips

    Moderator

    Oct 2, 2009
    12,442
    3,361
  6. sumit231996

    Thread Starter New Member

    Oct 14, 2014
    14
    0
    I did that for one led and
     
  7. sumit231996

    Thread Starter New Member

    Oct 14, 2014
    14
    0
    I did that for one led and 16k instead of 100k(I don't have 100k right now) with 9v battery. The result was that led lit up even in bright light. Can anybody explain me what is wrong in circuit
     
  8. MrChips

    Moderator

    Oct 2, 2009
    12,442
    3,361
    16kΩ on the base of the transistor is way too low. Do you have any resistor 100kΩ or greater, even 1MΩ? Put resistors in series if necessary.
    Use 3 or 4 LEDs in series, not just one LED.
     
    sumit231996 likes this.
  9. sumit231996

    Thread Starter New Member

    Oct 14, 2014
    14
    0
    will 100k with 4 led surely work? What are the chances?
     
  10. sumit231996

    Thread Starter New Member

    Oct 14, 2014
    14
    0
  11. MikeML

    AAC Fanatic!

    Oct 2, 2009
    5,450
    1,066
    The optimum value of the 100K depends on the LDR dark resistance; they must be matched....

    The 100K also supplies the base current for the transistor when it is time to switch on the LED, so depends on LED currrent and Gain of the transistor.

    It is simple circuit; too simple...
     
  12. sumit231996

    Thread Starter New Member

    Oct 14, 2014
    14
    0
    it may be way too simple for you but not for me though. You may consider me a complete newbie. I don't know what to do. :(
     
  13. MikeML

    AAC Fanatic!

    Oct 2, 2009
    5,450
    1,066
    Do you own a Multimeter (DMM)?

    And you are using MrChips circuit #2, except that the LED is lit all the time?

    How are making the LDR dark?

    Do you have a part number for the LDR?
     
  14. tracecom

    AAC Fanatic!

    Apr 16, 2010
    3,869
    1,393
    The first thing that would help is to study how to use a solderless breadboard. I note from your photo that you are inserting more than one wire/lead into a single hole in the breadboard. That is incorrect and unnecesary. There are quite a few guides on the web showing how to use a solderless breadboard. Here is one. https://learn.sparkfun.com/tutorials/how-to-use-a-breadboard
     
    sumit231996 and MrChips like this.
  15. MrChips

    Moderator

    Oct 2, 2009
    12,442
    3,361
    OMG! I didn't notice that. You are going to damage your solderless breadboard by trying to poke multiple wires into a single hole.
     
  16. sumit231996

    Thread Starter New Member

    Oct 14, 2014
    14
    0
    Mike the ldr is a common one I found at local store. No part number unfortunately. And no DMM too for now.
    tracecom, thanks for that. It was the first time I used it(else direct soldering)
     
  17. Alec_t

    AAC Fanatic!

    Sep 17, 2013
    5,800
    1,103
    Slim, since you're using white LEDs. A white LED will need around 3V to work well, so allowing for some overhead (voltage loss in the current-limiting resistor) you are unlikely to be able to connect more than two in series with a 9V supply.
     
  18. sumit231996

    Thread Starter New Member

    Oct 14, 2014
    14
    0
    is
    that so? I can manage with three or less. The point is that what should be the resistance in the base of transistor if I use 9v battery. And does connecting the led with collector or emitter make any difference?
     
  19. Alec_t

    AAC Fanatic!

    Sep 17, 2013
    5,800
    1,103
    The resistor value will depend on how much current the LEDs require. Higher LED current = lower resistance of base resistor.
     
  20. MrChips

    Moderator

    Oct 2, 2009
    12,442
    3,361
    Remove the base resistor (i.e. no resistor connected). Does the LED go off?
     
Loading...