I attach a drawing I made in Powerpoint Hope I got everthing right. All resistors are 10K.Edit: IN- on the first op-amp is 5V.
This is what I build (or wanted to).
Am i thinking wrong?I want a way to transform a signal with a variably voltage and offset to a 0-5V signal.E.g 3-8V signal and 5V -> "differential amplifier" -> output and 3-8V signal -> differential amplifier -> 0-5V signal output
The Arduino is only measuring the frequency of the square wave output which I convert to 0-5V with a transistor.