Go Down

Topic: (Noob question) Analog outs? (Read 158 times) previous topic - next topic

XYZAidan

Hi,
This is probably a pretty dumb question, but why do microcontrollers never have analog outputs
Thanks

JimboZA

You mean genuine analog? I don't know, maybe some do?

The Arduinos do have PWM which is a sort of pseudo analog, being the average of a fast-changing digital 5-0-5-0V output. The percentage on-time gives the pseudo voltage, eg a 50% on, 50% off would average out at 2.5V

PWM pins are marked ~.
Gone for good

XYZAidan

Thanks for the answer! After some further researching found that some microcontrollers actually do have a DAC output.

Thanks again

olf2012

I think the main reason is that almost everything is done/can be done with PWM:

- LED brightness
- DC motor speed
- the dimmer for your living room lights
- the fuel injected into your car's engine (not talking about the carburator era)
- the temperature in your washing machine (PWM at very low speed, on and off for several minutes)

you will rarely need a "real" analog voltage output

MAS3

And if you do, you can filter a PWM signal to get a nice "analog" signal.
Have a look at "blink without delay".
Did you connect the grounds ?
Je kunt hier ook in het Nederlands terecht: http://arduino.cc/forum/index.php/board,77.0.html

Go Up