![]() |
![]() |
![]() |
|
|
|||||||
| Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
Hi
Tis me again. I've got two schematics of two seperate circuits, one that turns an LED on using a photoresistor and LM339, the other is to flash two LEDs alternately. Both work individually although not knowing too much I have no idea how or why. The thing is I want to turn on the flashing LEDs using the photoresistor when 'darkness falls'. I've had a go at a schematic using a transistor to switch the second circuit on, guessing how the two circuits would fit together. Can someone take a peek at the schematic and give me the ppropriate nudge in the right direction please. |
|
|
|
|
|
|
(permalink) |
|
Look at the datasheet of an LM339 quad comparator IC. Its outputs are the collector of an NPN transistor. An NPN collector can sink current to ground but cannot source a positive current that is needed by the base of Q2 for it to turn on. Add a 10k resistor from the base of Q2 to the positive supply to turn on Q2 when the output of the comparator goes high.
You have the inputs of the comparator connected so that light on the phototransistor will cause the alternating LEDs to light up. Reverse the connections for the alternating LEDs to light up when it is dark.
__________________
Uncle $crooge |
|
|
|
|
|
|
(permalink) |
|
Hi Angie1199,
You could keep the circuit as it is and replace the NPN transistor with a PNP transistor and a resistor, and remove D1. Otherwise you gonna have a voltage drop of at least 2 volt over the NPN transistor and the diode. |
|
|
|
|
|
|
(permalink) |
|
on1aag
Thanks for that. Is there any website you can point me to that explains in plain simple english the difference between PNP and NPN transistors? I've looked and the quote I remember fully is 'The direction of the current flow differs between the PNP and NPN type. When the power supply is the side of the positive (plus), the NPN type is easy to use.' which is why I used the NPN. Also this is based on 12VDC. Would this work on 5VDC if I used the PNP transistor instead and removed D1? |
|
|
|
|
|
|
(permalink) | ||
|
Quote:
Quote:
Ah, That's because the program I used to do the schematic had the comparator that way up and I didn't engage the brain when I inserted it and joined it up. However, that little gem has helped me gain more knowledge in this, the mere fact that it can work in reverse Last edited by angie1199; 15th August 2006 at 09:23 AM. |
|||
|
|
|
|
|
(permalink) |
|
And now it's the right way?
Last edited by angie1199; 15th August 2006 at 09:42 AM. |
|
|
|
|
|
|
(permalink) |
|
What values do I look at when deciding the transistors for this circuit? I've looked at a datasheet for an NPN power transistor (2N3055 15A Ic 4Vce) but there's so many values.
I assume 15A is the maximum current it can pass but what is the 4Vce? Is this the voltage required to switch it on? [Edit] Ok, Vce - voltage across collector-emitter. And I've found out what the others mean. So: Vceo > 5VDC Vcbo > 5VDC Vebo > 5VDC Ic > 1A Ib > 1A PD - 25W Vbe(on) 1.3VDC Would this be good? Last edited by angie1199; 15th August 2006 at 12:18 PM. |
|
|
|
|
|
|
(permalink) | |
|
Quote:
You need to learn about Ohm's Law and about transistors for you to select parts for circuits. The currents in this circuit are only a few milliamps. You wouldn't use 15A power transistors in it, you would use small, general purpose transistors.
__________________
Uncle $crooge |
||
|
|
|
|
|
(permalink) | ||
|
Quote:
Quote:
I know what a base, collector and emitter are and do, but that's about as far as it goes. Also there's the added problem that there are other components in the circuit. For example the LM339. Where the transistor is connected to the 339 is of confusion to me. After all I don't want to blow the thing up. And the two transistors at the right for flashing the LEDs. I know LEDs are small current but the circuit I used said to use a 2N3055 which is 15A. Is the author of the circuit simply being 'over cautious'? BTW, you're a star helping like this. Glad I'm not doing my homework |
|||
|
|
|
|
|
(permalink) | ||
|
Quote:
Quote:
BTW, that part of the circuit is an 'astable multivibrator', a very basic circuit |
|||
|
|
|
|
|
(permalink) | |
|
Quote:
The Astable Multivibrator is Circuit001_002.jpg And this is 3rd year college??? |
||
|
|
|
|
|
(permalink) |
|
The huge 2N3055 transistors are used to flash powerful car lights, not LEDs, or ring a powerful bell.
This very simple circuit isn't for 3rd year colege, it is designed by sombody who never went to school.
__________________
Uncle $crooge |
|
|
|
|
|
|
(permalink) | |
|
Quote:
It's certainly NOT anywhere near a good design (if it can be called a 'design' at all?). |
||
|
|
|
|
|
(permalink) |
|
If you are using the light detector to switch the flasher circuit, surely a MOSFET would be the best choice? Use a general purpose 2N7000 device, with an RDS-ON of 5 ohms, the voltage drop would be negligable. I think that's best, or does it need to be a P-channel? Similar P-channel devices are avialabe anyhow at a slightly higher cost. If you still want to use a BJT, which should perform fine providing the supply is high enough, use the 3906 for PNP, or 3904 for NPN, cheap and reliable
__________________
Angry!? I'm absolutely electrolytic! Will have to make do with myspace now I guess... |
|
|
|
|
|
|
(permalink) | |
|
Quote:
I think I'll experiment. If I blow up a few pennies of components, as a teacher once told me (about 28 years ago), one learns from ones mistakes. |
||
|
|
|