I am conducting a small experiment on my sine wave as my desired voltage is approximately 5V but the output voltage is roughly about 6 Volts so I would like to learn how to control the output voltage back to 5 Voltage via microcontroller. Unfortunately I have no knowledge of implementing control system
Im using my microcontroller chip to generate sine wave via capture compare unit but I use variable resistor to control the amplitude and the output voltage is connected back to my microcontroller chip so I need to know how to control amplitude automatically to meet the desired voltage.
use op-amp.. use 741..its cheap..
if ur required wave should vary from -5V to +Volt..then simply give biasing:
Vcc=+5 volt
Vee=-5 Volt
and set the unity gain...it will clip the uper edges..if it don't hurt ur requirement, then use this...
there must be much more easy choices..but in my mind clicked this one..