The Nano and other AVR Mega based MCUs do not have DAC outputs. ?The AnalogWrite function sets a PWM. ?So that pin is switching between 0 and 5V with an average value proportional to the programmed value. ?It can be filtered to produce a DC signal. ?But it might require a lot of filtering, and the size of the caps might get big depending on what frequency is being used.
I¡¯ve been thinking about using a Micro Chip MCP4725. ?It¡¯s a 12 bit DAC interfaced with I2C. ?This would give you a nice DC signal with very low parts count.
toggle quoted message
Show quoted text
Take a look at this,?
I am trying to figure out a way to use this inline with the PA power supply to be able to control the output power from software. Just brainstorming, but if you had a spare pwm pin and buffered its output with some capacitors into a transistor controlling the power rail, it might be doable. But I am really new to all this and am just looking at projects to try when my kit comes in.
Someone feel free to poke a hole in this and save me from wasting an afternoon if this isn't on the right track for a software controlled solution...