Go Down

Topic: 12 volts controlled by 5v (arduino) (Read 2126 times) previous topic - next topic

Mobius_One_Fox3

I am very very new to transistors and im having trouble with them. I have a 12v led module. I want to make a flash pattern from the arduino which ive done with no problem. I have all of the wiring setup. But I cant seem to find a transistor that will get the 12 volts to pass through it. I have it setup so that the 12 volt negative is on the collector, the arduino is on the base, and the negative side of the led is on the emitter. The positive side of the led is hooked up to the positive side of my 12 volt source. Now the led lights up and does the pattern but it is 1/100th of the brightness that it is when its just straight 12 volt. Now ive been running back and forth to radioshack trying to find a resistor that will allow me to get all of the 12 volts though yet be control by a 5 volt source. I bought a 3055t and I wasn't able to get 5 volts to drive it (it wouldnt even light up). I'm using a 2n2222 now but not even close to 12 volts are making its way though it. Any ideas? What should I be looking for in buying a transistor or is my wiring screwed up or something? I'm pretty certain I am just not using the right transistor.

JimboZA

It's not 100% clear to me from the description how you have that hooked up... pictures are worth 1000s of words, hint hint  8)

But have a look at this which is for a similar NPN transistor to the 2222... Maybe you don't have it all hooked up this way?
Arduino ethernet server here.... http://jimboza.gotdns.com:8085/

No PMs for help please

antony1876

Hi.
Welcome to the arduino forum.
A simple circuit of the arduino to the transistor and battery connections would help us to help you.
The 3055 is A good choice.
Regards Antony.

dc42

#3
Jul 09, 2012, 07:46 pm Last Edit: Jul 09, 2012, 07:47 pm by dc42 Reason: 1
How much current does the 12v LED module take? If it takes 500mA or less, then I would switch it using an NPN transistor, e.g. BC337 or 2N2222. See reply #1 for how to connect it, but reduce the resistor from 1K to 220 ohms. If the module takes more than 500mA, then a logic level mosfet is a better solution (the mosfet will work fine at lower currents too, but costs more than an NPN transistor).
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Mobius_One_Fox3

More pics, it wont let me put them all in one post.  =(

Mobius_One_Fox3

Heres the power supply

Mobius_One_Fox3

heres another shot of the breadboard

Mobius_One_Fox3

heres how bright the led is just hooked up straight to the 12v source. as you can see the other configurations dont get anywhere close to powering the led up

Mobius_One_Fox3

last post (promise).

here is the info about the resistors

Mobius_One_Fox3

Im dumb. I didnt ground the arduino board to the power source ground. Problem solved  (FACEPALM)

Go Up