For quite some time now i have an arduino standalone (on a breadboard), wich i made following this tutorial: http://arduino.cc/en/Main/Standalone
Although, i didnt 'copy' every step as litterly as they show. I have not wired those two capasitor's in de power suply. i just left them out.
It seems my standalone is working just fine. i use my arduino UNO board to program the chip, and just place it back in the breadboard.
now my question: why are those capasistors hooked up at the power suply. (one between ground and 5v, and one between Vin and ground of the Voltage regulator)
am i harming my chip? i had some lessons about capasitors at school, but still, i cant figure out why these capasitor's could be usefull
They are required for the voltage regulator. Yes, most regulators will function without, but not properly. You may find the regulator getting overly hot, or the voltage coming out of it being incredibly noisy.
The fact that you have it on breadboard helps, as the tracks on a breadboard have a relatively large amount of capacitance of their own which is helping to alleviate some of the problems you should be seeing if you look close enough.
I would advise adding the capacitors, since they cost next to nothing, and they can help avoid problems with future circuits. Get into the habit of adding them now, and further on down the line you won't get bitten in the arse.
I'm pretty new to this myself, but here's my understanding of what they're for... Basically, one keeps the power nice and steady as it goes into the regulator so little dips and peaks don't mess with it's ability to provide a stable 5v output. The other one does the same with the output, making sure the arduino gets a nice stable 5v even when it's constantly turning things on and off. Without them, you run the risk of it rebooting due to the voltage dropping when the arduino switches things on and starts draining power.
JoshD:
I'm pretty new to this myself, but here's my understanding of what they're for... Basically, one keeps the power nice and steady as it goes into the regulator so little dips and peaks don't mess with it's ability to provide a stable 5v output.
Actually not, a regulator's job is to allow for dips and peaks on it's input to not effect it's output voltage. As long as the input voltage does not go lower then lower drop out specification or higher then the regulators maximum input voltage limit, it's function is to hold it's output voltage stable. Also another regulator function is to keep it's output steady even if the load is changing it's current demand up to the limits the regulator can supply.
Lefty
The other one does the same with the output, making sure the arduino gets a nice stable 5v even when it's constantly turning things on and off. Without them, you run the risk of it rebooting due to the voltage dropping when the arduino switches things on and starts draining power.
retrolefty:
Actually not, a regulator's job is to allow for dips and peaks on it's input to not effect it's output voltage. As long as the input voltage does not go lower then lower drop out specification or higher then the regulators maximum input voltage limit, it's function is to hold it's output voltage stable. Also another regulator function is to keep it's output steady even if the load is changing it's current demand up to the limits the regulator can supply.
Lefty
Yes, i found myself burning my finger after touching the regulator for just less than a second.
i'll add those regulators as soon as possible. but still i'm left with some other questions:
How does the capacitor help the regulator. i learned that once the a capacitor is charged/loaded (cant translate correctly) it will stop the flowing current. so after a very fast moment the capasitors isnt doing anything anymore, it is just waiting till the power gets cut off to unload right? than what actually did the capacitor do in that very fast moment when power went on?
also i do not understand this quote from majenko:
The fact that you have it on breadboard helps, as the tracks on a breadboard have a relatively large amount of capacitance of their own..
do these tracks function as a capacitor? am i getting this correctly?
i hope my question is understandable since i am not able to formulate the correct question.. (if not ill give it another try ^^)
nick
Ok, I got curious and went looking for more info. You've got to love TI. They have an article about everything! Here's "Capacitors are key to voltage regulator design":
This part was particularly interesting:
[quote author=Texas Instruments] A dangerous precedent was established by the first linear regulator semiconductors sold commercially
like the LM7805 type devices: they require no input or output capacitor and are completely stable under virtually
any operating conditions. Some of the newer LDO regulators require careful attention to external capacitors to
operate in a stable mode. [/quote]
It sounds like the LM7805 was just built like a tank.
EDIT:
Back on topic, the regulator shouldn't be getting hot just from powering the AVR, unless you've connected other things as well or are using a relatively high supply voltage. Nickn4, what are you using to supply power to the regulator?
I am using a power supply of 9V, the battery cant supply much current.
i think i had this memory of mine come up because the intense heat had been mentioned. but it might be that that very moment i had a wrong connection witch caused this heat in the regulator.
at this moment it doesn't get that hot (i would be crazy if i let it run while it is overheating itself hehe).
anyway, i conclude that these capacitors shown in the Standalone example are actually wrong/unusefull, and that arduino placed them because they had these habit?
if this conclusion is wrong please inform me. i'll take a look in the document you posted Josh.
nickn4:
How does the capacitor help the regulator. i learned that once the a capacitor is charged/loaded (cant translate correctly) it will stop the flowing current. so after a very fast moment the capasitors isnt doing anything anymore, it is just waiting till the power gets cut off to unload right? than what actually did the capacitor do in that very fast moment when power went on?
Whether the regulator "needs" them or not, your circuit needs them. Even if the regulator is fine without them, the regulator won't be able to handle transient voltages as rapidly as a capacitor. That is why you have decoupling capacitors near your chips - a 100nF for every chip, and a 10uF for every three chips (sometimes more if the data sheet requests it).
also i do not understand this quote from majenko:
The fact that you have it on breadboard helps, as the tracks on a breadboard have a relatively large amount of capacitance of their own..
do these tracks function as a capacitor? am i getting this correctly?
Yes, that is correct.
So in conclusion, whether the regulator needs the capacitors or not, you should add the capacitors. If the regulator's data sheet specifies them, then use them as per the data sheet. Regardless, you need capacitors for the rest of your circuit anyway to absorb the random (as observed by the average human) current (and hence voltage) variations that go on all the time in a circuit.
. Although no output capacitor is needed for stability, it does improve transient response.
so it is just like u say majenko. it is needed for these transient voltages / respones.
but what are these " transient voltages", i tried tranlate this to dutch, and if i had to explain it, are these voltage 'peaks' (very short higher voltage than it should be)?
but i still dont fully understand this:
Regardless, you need capacitors for the rest of your circuit anyway to absorb the random (as observed by the average human) current (and hence voltage) variations that go on all the time in a circuit.
can it be explained in another way? i'll make up a correct question if i have more grip on what u are trying to tell me.
The current drawn by a chip is never constant. As it does different things the current changes. This change in current is reflected as a change in voltage. If you get an oscilloscope and set it to AC coupling with a low voltage range and monitor the power line of any circuit you will see that it is very noisy.
The capacitors supply the extra current when demanded by the chips for them to do the work they need to do. Without it parts of the circuit may be starved of power. They act like a little tank of power close to the chip that the chip can dip into when it needs more power.
so.. if we had to descripe the process step by step would it look like this:
the capacitor gets loaded -> it remains loaded until the voltage drops because of changing current -> the capacitor discharged itself until the desirable voltage level is achieved -> capacitor goes back idle
The switching regulator is inherently vulnerable to poor capacitor design methodology for the simple reason that all switching regulators draw high peak currents when they switch on. The fundamental question is: Where will that current come from? The answer is a capacitor, and that capacitor had better be a very good one with a minimum amount of inductance between itself and the switch or all kinds of problems will result.
If you connect a 7805 or clone without capacitors you may find it works OK - but it may not (typically the output
voltage will oscillate at 100kHz rates or thereabouts due to the open-loop gain and phase response
(linear regulators are high gain feedback loops, like opamps).
Even if it works for your load, a smaller or larger load may push it into instability. The chip is meant to
unconditionally generate quality DC from zero load upto the maximum however the load fluctuates,
and the output capacitor is a vital part in the design (both by handling the high-frequency end directly
and by shifting the poles and zeroes of the feedback network into a stable configuration for all loads).
The input capacitor is less important as I understand it.
Neglect the output capacitor and you risk the output voltage significantly exceeding the nominal
value if oscillations build up.
Both capacitors are most important.. Read the 7805 data sheet about wires to/from the regulator and when and what value is required to offset the resistance and inductance of the wires... If the people who designed the IC's were not concerned with any possible issues then why are there warnings about that and the other one that no one reads about adding 100 - 220uF + .1uF caps on the input to the regulator when using batteries?. This is done because the internal impedance of a battery rises as it becomes discharged and as it rises current drawn by the load will lower the battery voltage and cause degraded operation or plain outright oscillation. You can see the rise on any discharge curve for any battery. It's the point where the terminal voltage starts to fall at the low end of the curve and the reason for the capacitors. The added capacitor can help to use 15 to 25% more of the battery by storing energy from the battery and effectively lowering battery impedance.
This was another app note I read once, from National Semiconductor.. Back in the 70's.
There are any number of Noob's here every day that say "What good does it do?" and I have a answer.. of sorts for that.. If you know enough to argue about a $.20 part with someone who has been here doing this stuff here for more than a few years or the few professionals and retired professionals who have for years (50 in my case) doing engineering for a living then What are you doing here wasting others time with stupid questions, You all ready know the answers to...
Most of us Ault Pharts... have taken the time to read the advice of the people who designed the parts and probably once or more than once had to deal with the consequences of forgetting that advice (which was probable gathered in a similar manner).. It is far easier to put them in and forget them. It's like buying cheap insurance for what can be very hard to track down issues.
@Docedison:
hey, i am asking because i am interested in what process these capasitors make an influance.
these are not capasitors i am complaining about. i am currently follow an engerirings education (first year) and was asking you guys with this example. i just wanted the capasitors bieng explained so i can use this explanation to further develop my knowlege about capacitors.
thank you all for your replies, ill take a dive into the accasable information on the web, and use your explaition as a guidence.
i am not fully understanding the capasitors processes, but i have some more grip on why they are there.
Rule #1: Always ALWAYS read and honor the datasheet
Rule #2: Trust but verify someone else's design unless it comes from a manufacturers datasheet
Rule #3: Always question: "Why did some person do this in this design?"
Regarding #1: The best way to start understanding datasheets is to read them yourself. The more you read them... the more they stop seeming like gibberish.
Regarding #2: Just because you can find an example "on the internet" doesn't not make it right or "best practice". Having a circuit work "most of the time" should never be an end goal. A good design is one that was created to work under all reasonably possible conditions.
Regarding #3: If you are not questioning why a designer did something, you are not learning... BUT sometimes hearing the "because we said so" is the easiest answer from the more experienced.
Final note: It's always a good idea to learn HOW components work. Here is an example of why you want capacitors across your regulated supply voltage... (including the one at your regulator) De-coupling
I agree with all of that. I had been falling into the habit of finding a design on the web, and assuming that the person knew what they were doing. But what if they didn't? What if they left out something vital, like a capacitor because it "seemed to work"?
So your best bet is to use the datasheet as a primary reference, and use other people's designs as an aid in understanding.
So your best bet is to use the datasheet as a primary reference, and use other people's designs as an aid in understanding.
Yes, but even then some things are just a "given." Looking at datasheet schematics, it's assumed the user knows some basic things. i.e. common sense
For example, an opamp schematic in a datasheet may not even show the power supply pins.... much less show that bypass caps are connected on the same V+ and V- pins. -- it's assumed the user knows and will do so.
It's also assumed the user will connect such bypass caps as close as possible to the IC pins, and not a few inches away. Again, it's a "given/common sense" that datasheets dont need to mention.