Author Topic: What to read to make a simple SMPS (12v to 5v)  (Read 6267 times)

0 Members and 1 Guest are viewing this topic.

Offline TheBorgTopic starter

  • Frequent Contributor
  • **
  • Posts: 345
  • Country: us
  • Hoping to start an EE degree soon...
What to read to make a simple SMPS (12v to 5v)
« on: August 28, 2014, 09:31:09 pm »
I'm designing a circuit to run an arduino at 5v from a source at 12v that will also be used to run a few steppers. I'm looking to make it as efficient as possible because I would like to run it off of a battery at some point.

The problem is, I've realized I know basically naught about electronics. What I know could probably have been learned in a 3 day course.
I could build a 7805 circuit really easily, but that gets really hot and the efficiency sucks. Not a good thing!

I'm not wanting you guys to design an SMPS for me... just maybe point me to somewhere where I can learn to build my own. That would be great!

Thomas
Youtube Channel - Assimilated Circuits
We are Borg. You will be assimilated. Resistance is futile.
 

Offline Paul Price

  • Super Contributor
  • ***
  • Posts: 1419
Re: What to read to make a simple SMPS (12v to 5v)
« Reply #1 on: August 28, 2014, 09:37:39 pm »
Murata make a direct plug-in highly efficient replacement switcher, just three leads, same size, no heat sink. 78xxSR series, cheap.

Ok, so I've designed the circuit for you: Unplug the 7805, plug in the 7805SR.
« Last Edit: August 28, 2014, 10:23:49 pm by Paul Price »
 

Offline Whales

  • Super Contributor
  • ***
  • Posts: 1899
  • Country: au
    • Halestrom
Re: What to read to make a simple SMPS (12v to 5v)
« Reply #2 on: August 28, 2014, 09:55:18 pm »
Easier than you think :)

.  You friend is the 34063 IC, which is easy to obtain online.  All of the maths is laid out for you in step-order in the datasheet and the external parts are not that complicated.

Offline Technicial

  • Newbie
  • Posts: 7
  • Country: ca
Re: What to read to make a simple SMPS (12v to 5v)
« Reply #3 on: August 28, 2014, 11:05:51 pm »
I agree with Whales, i designed my own buck converter using the MC34063 and with the help of Dave's video. Pretty fun and not too difficult
 

Online tautech

  • Super Contributor
  • ***
  • Posts: 28380
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: What to read to make a simple SMPS (12v to 5v)
« Reply #4 on: August 28, 2014, 11:27:15 pm »
Quote
The problem is, I've realized I know basically naught about electronics. What I know could probably have been learned in a 3 day course.
Thomas, give us some more info, particularly current requirement?
Will you want to over-build it for any future project?

There is lots of stuff like Paul Price mentions, but you should give more info of your requirements.
Avid Rabid Hobbyist
Siglent Youtube channel: https://www.youtube.com/@SiglentVideo/videos
 

Offline TheBorgTopic starter

  • Frequent Contributor
  • **
  • Posts: 345
  • Country: us
  • Hoping to start an EE degree soon...
Re: What to read to make a simple SMPS (12v to 5v)
« Reply #5 on: August 28, 2014, 11:43:29 pm »
Quote
The problem is, I've realized I know basically naught about electronics. What I know could probably have been learned in a 3 day course.
Thomas, give us some more info, particularly current requirement?
Will you want to over-build it for any future project?

There is lots of stuff like Paul Price mentions, but you should give more info of your requirements.

Typical current for everything running from the 5v rail should be less than 500ma total. Anything thats able to source 750ma continuously would be overkill for my application.

It's a pan/tilt/slide camera rig so I am running at least 3 stepper motors off the 12v rail and then all the control circuitry is run off an ATMega328. I've got several shift registers and will have 3-4 items running on the I2C bus. Potentially bluetooth connected in the future. That's pretty much it!
Youtube Channel - Assimilated Circuits
We are Borg. You will be assimilated. Resistance is futile.
 

Offline TheBorgTopic starter

  • Frequent Contributor
  • **
  • Posts: 345
  • Country: us
  • Hoping to start an EE degree soon...
Re: What to read to make a simple SMPS (12v to 5v)
« Reply #6 on: August 29, 2014, 05:35:28 am »
Easier than you think :)

.  You friend is the 34063 IC, which is easy to obtain online.  All of the maths is laid out for you in step-order in the datasheet and the external parts are not that complicated.

Thanks, that's perfect! I watched the video and it looks pretty simple, the math is super easy. The hard part will be figuring out a good diode and determining my Vin minimum. I was planning on running it off of a generic wall-wart, I'm not entirely sure what the tolerance would be on that. I'll just assume +- 10% for now, I've measured a similar wan-hung-lo power brick that measured 12.68V (no load), so I think a +-1.2v range will be fine. I need to get a dummy load soon if I want to keep expanding my hobby  ;D

I'll see about getting everything laid out tomorrow morning!
Youtube Channel - Assimilated Circuits
We are Borg. You will be assimilated. Resistance is futile.
 

Offline ludzinc

  • Supporter
  • ****
  • Posts: 506
  • Country: au
    • My Misadventures In Engineering
Re: What to read to make a simple SMPS (12v to 5v)
« Reply #7 on: August 29, 2014, 06:46:40 am »
IMHO I'd grab an LM2596 module off of eBay and reverse engineer that.

You start with a known working design

You can follow the design guide in the data sheet and grind the maths to see if you come up with the same answers

You get insight to availability of cheap and plentiful parts.

It's a massive drag to get something like an inductor choice wrong and need to wait for new parts before you can try your next iteration of a design.  This way you can still learn, but as your starting point already works, you gain some early satisfaction!
 

Offline TheBorgTopic starter

  • Frequent Contributor
  • **
  • Posts: 345
  • Country: us
  • Hoping to start an EE degree soon...
Re: What to read to make a simple SMPS (12v to 5v)
« Reply #8 on: September 01, 2014, 08:44:41 pm »
IMHO I'd grab an LM2596 module off of eBay and reverse engineer that.

You start with a known working design

You can follow the design guide in the data sheet and grind the maths to see if you come up with the same answers

You get insight to availability of cheap and plentiful parts.

It's a massive drag to get something like an inductor choice wrong and need to wait for new parts before you can try your next iteration of a design.  This way you can still learn, but as your starting point already works, you gain some early satisfaction!

Well my mind was changed yet again, as I ran out of time this weekend to do the math as I went on a family camping trip and needed some other parts in my order asap. I threw some 34063's into my cart and ordered an LM2596 module from eBay. It should be within a couple dollars to implement either option, and for a hobby one-off it will be fine.

Youtube Channel - Assimilated Circuits
We are Borg. You will be assimilated. Resistance is futile.
 

Offline mariush

  • Super Contributor
  • ***
  • Posts: 5029
  • Country: ro
  • .
Re: What to read to make a simple SMPS (12v to 5v)
« Reply #9 on: September 01, 2014, 09:33:57 pm »
There is a calculator software on Sourceforge for MC34063 and similar chips : http://sourceforge.net/projects/mc34063uc/  ... but even without software, you can use formulas in datasheet to figure out the parts.

You need to use Schottky diodes and a suitable inductor (pay attention to peak currents and other parameters)

LM2596 boards on eBay are cheap and pretty reliable but you don't learn much about it that way... they don't "optimize" those circuits so the components often won't match with what the datasheet formulas say. Some also use some fake chips or some clones of LM2596 or LM25**.

You can get the parts from Digikey or Mouser, they have good filtering mechanisms on their sites.
 

Offline TheBorgTopic starter

  • Frequent Contributor
  • **
  • Posts: 345
  • Country: us
  • Hoping to start an EE degree soon...
Re: What to read to make a simple SMPS (12v to 5v)
« Reply #10 on: September 02, 2014, 04:49:44 am »
There is a calculator software on Sourceforge for MC34063 and similar chips : http://sourceforge.net/projects/mc34063uc/  ... but even without software, you can use formulas in datasheet to figure out the parts.

You need to use Schottky diodes and a suitable inductor (pay attention to peak currents and other parameters)

LM2596 boards on eBay are cheap and pretty reliable but you don't learn much about it that way... they don't "optimize" those circuits so the components often won't match with what the datasheet formulas say. Some also use some fake chips or some clones of LM2596 or LM25**.

You can get the parts from Digikey or Mouser, they have good filtering mechanisms on their sites.

Or an online calculator that even references Dave Jones' video :D

It's pretty handy, here's what I put in (for the sake of anyone else with the same problem later on).

Code: [Select]
12v input
10% tolerance

5v output
1A max output current
50mv ripple

0.4v diode voltage drop (based on 1N5822 diode @2a peak current)
1.1v step down saturation voltage
75kHz operating frequency
10k ohm R1



Which gets me the results below (some odd 16uH inductor and 0.15 ohm resistor).

Which after some quick searching puts me with these 2 parts.

0.15 ohm resistor
15uH inductor, 3A rated

The rest of the parts I have offhand.

Edit: the circuit should run better theoretically if I use a 250pf cap instead of a 270pf one, the circuit will run a bit faster (~79kHz), but the inductor value will be more in-spec.
« Last Edit: September 02, 2014, 04:54:04 am by TheBorg »
Youtube Channel - Assimilated Circuits
We are Borg. You will be assimilated. Resistance is futile.
 

Offline Syntax_Error

  • Regular Contributor
  • *
  • Posts: 204
  • Country: us
Re: What to read to make a simple SMPS (12v to 5v)
« Reply #11 on: September 06, 2014, 03:54:16 pm »
You should check out http://www.onsemi.com/pub_link/Collateral/HB206-D.PDF and http://www.linear.com/designtools/app_notes.php (click on Power). These are chock full of useful information.

Good luck on your power supply design.
It's perfectly acceptable to not know something in the short term. To continue to not know over the long term is just laziness.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf