Down Under (Australia), SA
Offline
Jr. Member
Karma: 0
Posts: 55
Newbie is an understatement
|
 |
« on: November 28, 2011, 01:02:09 am » |
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 
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16571
Available for Design & Build services
|
 |
« Reply #1 on: November 28, 2011, 01:49:37 am » |
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
|
|
|
|
|
Logged
|
|
|
|
|
Down Under (Australia), SA
Offline
Jr. Member
Karma: 0
Posts: 55
Newbie is an understatement
|
 |
« Reply #2 on: November 28, 2011, 01:58:27 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16571
Available for Design & Build services
|
 |
« Reply #3 on: November 28, 2011, 02:14:12 am » |
Yes. You're in Australia?
|
|
|
|
|
Logged
|
|
|
|
|
Down Under (Australia), SA
Offline
Jr. Member
Karma: 0
Posts: 55
Newbie is an understatement
|
 |
« Reply #4 on: November 28, 2011, 02:24:16 am » |
Yes. You're in Australia?
ok so with this mosfet http://littlebirdelectronics.com/products/nchannel-mosfet-60v-30a12V 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
|
|
|
|
« Last Edit: November 28, 2011, 02:49:23 am by tigerbomb8 »
|
Logged
|
|
|
|
|
Down Under (Australia), SA
Offline
Jr. Member
Karma: 0
Posts: 55
Newbie is an understatement
|
 |
« Reply #5 on: November 28, 2011, 04:47:42 am » |
ok so i made the schematic messer and added the mosfet and a pull-down resistor for the gate
EDIT: removed pic
|
|
|
|
« Last Edit: November 28, 2011, 08:48:35 am by tigerbomb8 »
|
Logged
|
|
|
|
|
Manchester (England England)
Online
Brattain Member
Karma: 277
Posts: 25565
Solder is electric glue
|
 |
« Reply #6 on: November 28, 2011, 07:08:28 am » |
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.
|
|
|
|
« Last Edit: November 28, 2011, 07:12:48 am by Grumpy_Mike »
|
Logged
|
|
|
|
|
Down Under (Australia), SA
Offline
Jr. Member
Karma: 0
Posts: 55
Newbie is an understatement
|
 |
« Reply #7 on: November 28, 2011, 07:49:21 am » |
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
|
|
|
|
« Last Edit: November 28, 2011, 09:08:30 am by tigerbomb8 »
|
Logged
|
|
|
|
|
Manchester (England England)
Online
Brattain Member
Karma: 277
Posts: 25565
Solder is electric glue
|
 |
« Reply #8 on: November 28, 2011, 09:07:54 am » |
do i really need caps on the regulator. Yes I don't say these things for fun. 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.
|
|
|
|
|
Logged
|
|
|
|
|
Down Under (Australia), SA
Offline
Jr. Member
Karma: 0
Posts: 55
Newbie is an understatement
|
 |
« Reply #9 on: November 28, 2011, 09:09:18 am » |
do i really need caps on the regulator. Yes I don't say these things for fun. 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 
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Online
Brattain Member
Karma: 277
Posts: 25565
Solder is electric glue
|
 |
« Reply #10 on: November 28, 2011, 09:11:57 am » |
Yes that look fine on the FET.
|
|
|
|
|
Logged
|
|
|
|
|
Down Under (Australia), SA
Offline
Jr. Member
Karma: 0
Posts: 55
Newbie is an understatement
|
 |
« Reply #11 on: November 28, 2011, 09:15:14 am » |
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
|
|
|
|
|
Logged
|
|
|
|
|
Down Under (Australia), SA
Offline
Jr. Member
Karma: 0
Posts: 55
Newbie is an understatement
|
 |
« Reply #12 on: November 28, 2011, 01:28:40 pm » |
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
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Online
Brattain Member
Karma: 277
Posts: 25565
Solder is electric glue
|
 |
« Reply #13 on: November 28, 2011, 02:40:31 pm » |
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.
|
|
|
|
|
Logged
|
|
|
|
|
United Kingdom
Offline
Faraday Member
Karma: 131
Posts: 4689
|
 |
« Reply #14 on: November 28, 2011, 06:17:33 pm » |
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.
|
|
|
|
|
Logged
|
Formal verification of safety-critical software, software development, and electronic design and prototyping. http://www.eschertech.com
|
|
|
|
|