yougarage
Member level 1

hello I'm going to make an analog input buffer for a microcontroller.
I came out with this solution but I don't know if it's right.
the op amp (rail to rail)is powered from a 5v source
JP1 and JP2 are two jumpers.
JP1 allows me to choose the input range: JP1 installed, 0-12v, JP1 removed, 0-5v
JP2 allows me to change the op amp gain: JP2 installed, gain = 10, JP2 removed, gain = 1
do you think this design could lead me to problems because the resistors R1 and R3 are unuseful with the jumpers removed?
I thought the tlv2371 rail to rail is a good choice for this purpose, what do you think about it?
thanks for your help!