Go Down

Topic: 12v 5v power supply, and transistor question (Read 2578 times) previous topic - next topic

tigerbomb8

ok so i am making a light for a fish tank and i need a to make a power supply that can deliver 12v and 5v at the same time.

this is what i was thinking

the 12v will end up powering the LEDs and the 5v will power the arduino and the RTC.
will this design work or do i need to rethink it.

now my other question is which transistor type do i use to control the LEDs. the LEDs draws about 1 amp.

i am not sure if i should use a P-channel or a N-channel mosfet and i will be using PWM to control the brightness

i hope i explained that well enough  :)

CrossRoads

That layout is fine, the 12V will run warm as it sourcing the 5v current also. Make sure to heatsink it.
I'd go with Logic Level  N-channel Mosfet with Low Rds for the transistor, connecting LED Cathode's to ground.
WIll run cooler than NPN transistor at that current.
Maybe this one
http://search.digikey.com/us/en/products/PSMN022-30PL,127/568-7512-5-ND/2606361
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.


CrossRoads

Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

tigerbomb8

#4
Nov 28, 2011, 08:24 am Last Edit: Nov 28, 2011, 08:49 am by tigerbomb8 Reason: 1

Yes.
You're in Australia?


ok so with this mosfet http://littlebirdelectronics.com/products/nchannel-mosfet-60v-30a
12V goes into the SOURCE
signal from arduino into the GATE
and the DRAIN goes to the LEDs anode
is that right?


and yes i am in AUS

tigerbomb8

#5
Nov 28, 2011, 10:47 am Last Edit: Nov 28, 2011, 02:48 pm by tigerbomb8 Reason: 1
ok so i made the schematic messer and added the mosfet and a pull-down resistor for the gate

EDIT: removed pic

Grumpy_Mike

#6
Nov 28, 2011, 01:08 pm Last Edit: Nov 28, 2011, 01:12 pm by Grumpy_Mike Reason: 1
You need capacitors on those regulators, see the data sheet for exact minimum values but I would put a 0.1uF across the input and output of both regulators plus put an additional 47uF capacitor on the input of the first regulator.

The FET needs to have the load connected to the 12V, so source to ground, drain to load, other end of load to +12V.

tigerbomb8

#7
Nov 28, 2011, 01:49 pm Last Edit: Nov 28, 2011, 03:08 pm by tigerbomb8 Reason: 1

You need capacitors on those regulators, see the data sheet for exact minimum values but I would put a 0.1uF across the input and output of both regulators plus put an additional 47uF capacitor on the input of the first regulator.

The FET needs to have the load connected to the 12V, so source to ground, drain to load, other end of load to +12V.

do i really need caps on the regulator. the 5v one i use to power my servo is doing fine with out them

Grumpy_Mike

Quote
do i really need caps on the regulator.

Yes I don't say these things for fun.

Quote
the 5v one i use to power my servo is doing fine with out them

No it is not, it is just that you haven't noticed the instability it causes, it is not doing fine.

tigerbomb8


Quote
do i really need caps on the regulator.

Yes I don't say these things for fun.

Quote
the 5v one i use to power my servo is doing fine with out them

No it is not, it is just that you haven't noticed the instability it causes, it is not doing fine.
ok i will add them in the final plan
and i fixed the mosfet

Grumpy_Mike


tigerbomb8


Yes that look fine on the FET.

ok that is good to know. you and CrossRoads have been a great help
now i just need to find a easy to use library for the DS1307 RTC

tigerbomb8

ok one last thing, the data sheet for the voltage regulators call for a 0.1uF and a .22uF cap
i would like to know if i can use these 0.1uF, 0.22uF 35V Tag Tantalum Capacitor

P.S. i don't know what type of cap to use

Grumpy_Mike

Quote
i would like to know if i can use these 0.1uF, 0.22uF 35V Tag Tantalum Capacitor

Yes you can.

I wouldn't actually recommend it for a safety critical circuit because when tantalum capacitors fail they fail short circuit and could cause a fire but many people do use tantalums in this sort of circuit. I suspect a short would be protected by the power plug in your case.

dc42

Why not buy a 12v regulated wall wart, and power the Arduino from it as well as the lights, through either barrel jack or the Vin pin? That way, you don't need to mess around with regulators.

Your schematic isn't right. You need to connect the -ve side of the 15v input to Arduino ground and the source terminal of the mosfet (and the ground terminal of any regulators you may be using). The resistor goes between the mosfet gate terminal and the Arduino output pin.
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.

Go Up