Maker Pro
Maker Pro

Flickering flame simulation with PIR motion sensor - mostly need help with transistor, I think

It is right yes

You need to place the leds between the 6v rail to the collector of the transistor exactly like the way i did it in my circuit i posted

Well slap my head and call me Sally! I didn't realise that was how it worked!

This also doesn't make sense though! Now when I increase the voltage to the base of the transistor, the LEDs get dimmer. That's the opposite of what it should be?

uzi15HE.png
 
Last edited:
You only have 1 transistor, there's simply not enough current flowing, add 2 transistors like in the schematic i posted, copy the darlington pair
 
That's because lower the voltage the less saturated and less current flows from base to emitter allowing more current to flow from collector to emitter...

EveryCircuit is a good learning aid

(Limit the current via a 1k resistor to base)

Oh I see. I was not aware of this either.

I made a modification to your circuit which you can see here: http://everycircuit.com/circuit/6111272301494272 - I added a resistor to make the capacitor charge more slowly but it does not affect the speed that the LED turns on. Can you tell why?

Edit: Actually it works but needs a really big resistor, like 2 Mohm.
 
Better to take a screenshot, make your circuit public, so others can help you, from my mobile i can't view your circuit as it loads the browser version
 
Better to take a screenshot, make your circuit public, so others can help you, from my mobile i can't view your circuit as it loads the browser version
Sorry about that. I thought the circuits would be shareable across platforms.

The second switch on this circuit is just to reset it without having to wait for the slow fade. The first switch simulates the PIR sensor circuit.

w06gw0J.png




When I add more sets of LEDs in parallel, the current gets shared across them and they don't get very bright.

OO0rzXh.png
 
Last edited:
Make the circuit public, i'll load it up and take a look, your usernane is the same as here?

(@cjdelphi into the search box to find my circuits)

I'll modify it to make it do what you need
 
Thanks a lot, cjdelphi! The voltage increase is fine - I can just get a different power supply or, the one I'm thinking of getting lets you set it at various voltages including 6, 7.5 and 9.

Can you tell me whether 2N2222 or BC337 is suitable for the NPN transistors? And what about the PNP transistor?

Does the transistor arrangement you used have a name (like the Darlington pair) so I can maybe read a bit more about it?

Thanks again!
 
2n2222/bc337 is fine

Any pnp that is capable of total current is ok as well

Only the 2 npns out of emitter into base are in a darlington configuration...

I don't think it has a name for what i did in the circuit
 
I added an extra transistor to increase the current I could get through more strings of LEDs. I will probably use 15-18 LEDs. I just need to order the PNP transistor and I'll be set. Thanks again. I'll post some videos in a few weeks if I get it working.

Edit: Damn, I just noticed that adding that extra transistor causes it to switch on almost instantly and take way longer to turn off. Adding a resistor has at least slowed down the fading on, albeit increasing the time to fade off.
 
Last edited:
Top