PG1995
Active Member
Hi
I'm trying to make a voltage sensor which can be used to sense voltage of 12V solar panel. The output of the sensor will be connected to the analog-to-digital input of a PIC microcontroller whose maximum input voltage cannot exceed 5V.
This is the setup I intend to use. The voltage of 12V panel could typically touch 18V so I think we should use this figure to calculate the values for resistors R9 and R10. Note that op-amps are being in inverting configuration and gain is given by -Rf/Ri. I believe the values should be such that (R9/R10)=0.28 because 18*0.28=5. Do I have it correct?
The second op-amp, i.e. U2, can be used to make the output of first op-amp positive and values for R8 and R11 could be chosen to get unity gain. Do I have it right?
Is the value, 1 nF, for input capacitor C2 okay if PWM frequency is going to be around 30 kHz and sampling frequency is around 6.5 kHz?
Thank you for the help.
Regards
PG
I'm trying to make a voltage sensor which can be used to sense voltage of 12V solar panel. The output of the sensor will be connected to the analog-to-digital input of a PIC microcontroller whose maximum input voltage cannot exceed 5V.
This is the setup I intend to use. The voltage of 12V panel could typically touch 18V so I think we should use this figure to calculate the values for resistors R9 and R10. Note that op-amps are being in inverting configuration and gain is given by -Rf/Ri. I believe the values should be such that (R9/R10)=0.28 because 18*0.28=5. Do I have it correct?
The second op-amp, i.e. U2, can be used to make the output of first op-amp positive and values for R8 and R11 could be chosen to get unity gain. Do I have it right?
Is the value, 1 nF, for input capacitor C2 okay if PWM frequency is going to be around 30 kHz and sampling frequency is around 6.5 kHz?
Thank you for the help.
Regards
PG