Go Down

Topic: Trying to blink a led using a 2n2222? (Read 1 time) previous topic - next topic

cabecinhas

HI.  I am trying to make a standalone project with my arduino but something is wrong.

When I just connect the. Gnd of the led to the ground and the positive to the port 7 of arduino and it blink ok..

But when I connect the the positive of led on battery  and the ground of led on the collector of 2n2222 the led keeps turned on.

Info : the port 7 of arduino is connected to the base of 2n2222 transistor and the emitter to the ground.



runaway_pancake

Like the circuit on the right?



How is yours similar?
What have you left out?
"Who is like unto the beast? who is able to make war with him?"
When all else fails, check your wiring!

cabecinhas


Like the circuit on the right?



How is yours similar?
What have you left out?



hi... My circuit is the 3rd one (you shown) and after seeing your example I realized I was using a CBE transistor on EAGLE and mine actually is a EBC.. thats why didn't work!!

Now its working fine!

thank you very much for your help:)

BR

xzarth


hi... My circuit is the 3rd one (you shown) and after seeing your example I realized I was using a CBE transistor on EAGLE and mine actually is a EBC.. thats why didn't work!!

Now its working fine!

thank you very much for your help:)

BR



Also, you never mention resistors, if you have none, get some.

Go Up