Hi,
does any of you know how I can change the gain of an Op-amp connected to Arduino, just by using the code?.
Thanks
Marc
Hi,
does any of you know how I can change the gain of an Op-amp connected to Arduino, just by using the code?.
Thanks
Marc
The Arduino only has PWM and digital outputs. The Due (discontinued) also has several analog outputs (DAC). Note there are programmable gain amplifiers available (PGA). Could also use a digital pot.
marco_p92:
Hi,
does any of you know how I can change the gain of an Op-amp connected to Arduino, just by using the code?.Thanks
Marc
You probably need to use arduino output pins to make switches (relays) open and close..... which could switch extra resistors in parallel to existing resistors that controls the gain of your amplifier.
well I see there are a lot of possibilities. I should also give the amplified signal an offset, so to have it centered around zero (I have a square wave from arduino, between 0V and 5V). Any chance to do that?
The analog input bias voltage is usually set by voltage dividers.
You can also use a digital Pot to control the feedback in a standard Op amp.
The MCP4161 would work.
Is this for the project started here?
http://forum.arduino.cc/index.php?topic=414300.0
A few herz could be made with smoothed PWM.
The coil could be driven by a volume controlled audio/power amplifier.
You could start with the software to generate "a few Hz" sine wave from PWM.
Leo..