DC to DC board, to supply propeller projects.
rwgast_logicdesign
Posts: 1,464
Ok so I have taken everyone's advice and and put my main PCB on the back burner for a little bit. Im working on one piece at a time. Last night a built a power regulator prototype on a breadboard. I am using the lm2940ct 5.0v and the lm2937-3.3v for my regulators, they are the two regulators sold in the parallax store. The data sheets for the 5v reg calls for a .47cap parallel with the input pin and a 22uf cap parallel with the output pin. The 3.3v regulator calls for a .1uf cap and a 10uf cap respectively. I had to improvise on the 5 volt regulators input and use two .22uf metal film caps in parallel to make a .44uf since I didnt have any .47 caps. I am using a ceramic .1uf on the 3.3v input and the 22uf and 10uf output caps are both aluminium. I wired the regulators in series with the 5v supplying the 3v. If anyone feels they need a schematic I can make one and post a pic of the breadboard.
Now Im having a problem, well im not sure if its a problem or normal. When my circuit is complete and I use a meter to test it the 3.3v reg output 3.27v and jumps to 3.28v every minute or so for a split second. The 5v regulator is 4.96 to 4.97 except this one fluctuates alot, the 3.3v also fluctuated like this when it was the only regulator on the board. So Im worried that my voltage are up to .04 off and that they fluctuate, I was under the assumption when the circuit was set up with the right caps I would get a totally steady supply when there was nothing on the regulators load. Is it regular for the outputs to be a little low?
Now Im having a problem, well im not sure if its a problem or normal. When my circuit is complete and I use a meter to test it the 3.3v reg output 3.27v and jumps to 3.28v every minute or so for a split second. The 5v regulator is 4.96 to 4.97 except this one fluctuates alot, the 3.3v also fluctuated like this when it was the only regulator on the board. So Im worried that my voltage are up to .04 off and that they fluctuate, I was under the assumption when the circuit was set up with the right caps I would get a totally steady supply when there was nothing on the regulators load. Is it regular for the outputs to be a little low?
Comments
I would definately be using all ceramics if I had them, but at this point I dont and i see lots of people use the aluminum cans for the higher value caps on regulator circuits.
http://www.parallax.com/Store/Components/Capacitors/tabid/150/CategoryID/28/List/0/SortField/0/Level/a/ProductID/161/Default.aspx those are the two caps im using the ones above them that look the same say poly, im not sure if these are acually metal film, just know there not ceramic.
The input and output capacitors you describe must be "at" the input and output pins on the regulators. Other capacitors are required at each IC.
However, the big issue is likely that your input power supply is not steady and you have no bulk capacitor to keep it steady. If you are supplying it with a rectified ac then it will need a large bulk capacitor like 1000uF electrolytic with a voltage at least 2x the input voltage. Not all power packs (wallwarts) are the same. Most are unregulated but rectified with 1000uF capacitors. Their voltage varies wildly above the rated voltage when the current is lower than the quoted value. This is why we often say a 6V supply is better than a 9V supply.
Again, you need to consult the internet to research power supplies. A good start is to read the App Notes on using regulator ICs from the IC manufacturers. Also look at power supply design. There is a big difference between designing electronics and just understanding the basics behind them. Google and the internet is your friend
All things digital will suffer from "quantization error" where an analog value does not quite fit into an exact digital value. As Leon mentioned it may be halfway in between a reading and the meter is simply put, doing the best it can.
I'm a bit surprised that you actually thought a 5V regulator would be "precisely" 5V and if you checked with an analog meter it would measure 5V. You can get devices with tighter tolerances but that's $$$ and the LM2937 datasheet which you have read of course says that the output at 5ma test load could be between 4.75V and 5.25V. Anyway by the time it's connected to a load there may be some voltage drop along the way etc. Use tantalums instead of electrolytics (in general) on the output as the former have lower ESR which most regulators require. Also, most cheap meters etc aren't too bad but aren't very precise , which requires precision which requires $$$
Where would I want to add the bigger cap at? I am using a power supply from wal mart that lets me select usb or 1.5 - 12 volts. Im using it mostly at 7.5 volts that seems to be about the sweet spot for the 5v regulator 6 volts is a little two low. I have tested at 12 volts everything works fine, the regulator gets a bit warm depending on what its hooked up too, probably add a heatsink to both, which will help the esr problems too if I understand right?
Things would be easier if we still had a radio shack its a headache to find components or wait for them to ship, or have to pay shipping for a 15 cent item
For future piece of mind, I recommend spending money on an oscilloscope. This gives you the visibility you currently don't have. Preferably a digital one with decent storage, these are becoming very reasonable prices now - http://www.jaycar.co.nz/productView.asp?ID=QC1932&keywords=oscilloscope&form=KEYWORD
PS: That scope pricing is in my local NZD and, although it's not listed, the capture memory depth is 2 Mpoints (Probably 1 M per channel).
PPS: I don't have one of those as I purchased when such cost effect tools were not available - and spent 15 times that price 10 years ago (Just to get deep memory capture).
The LM2937 datasheet says:
Required for stability. Cout must be at least 10 μF (over the full expected operating temperature range) and located as close as possible to the regulator. The
equivalent series resistance, ESR, of this capacitor may be as high as 3Ω.