power supply

I have never designed a board before, but i noticed that most boards use a voltage regulator.

I build robots and efficiency is a big deal for me, i would like to make a board that uses something like a buck converter for stepping down power from the main battery, as this would be alot more efficient than dumping the extra voltage into the ground.

my question is wether the fluctuating voltage would be a problem for the microcontroller? can it deal with the fluctuations with no problem, or is there a way to compensate for this? or is this the reason everyone uses a voltage devider?

i use a lm7805

it needs to be pretty stable, you could use a ldo such as a lm2940ct in addition

The arduino is a pretty small consumer of power. Say 100mA max, for typical usage. If you have a 12V source voltage, you're putting in 1.2W (12V@100mA) and taking out 0.5W (5V@100mA), for an awful 42% efficiency. But say you had a 90% efficient switcher there instead; it would be consuming .56W, so you would be saving a whopping .65W or so...

A GOOD buck switching regulator ought not have much in the way of "fluctuations" at the output, after all the filtering is done (including that done on the arduino.) An intermediate idea, if you have (say) 24V batteries, is to make tgw SW regulator for the arduino produce 9V at high efficiency, and the arduino linear regulator take that and smooth it further (less efficient, but less loss now that source and target voltage are closer.)