Prince Vegeta
Member level 5
- Joined
- May 29, 2012
- Messages
- 84
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 2,011
hi, now I am trying to read the voltage (dc) from a rectifier + filtering cap + voltage divider circuit like the following:
**broken link removed**
the means voltage (or any 220v rms ac/50hz sinewave signal) is fed into the rectifier bridge (4 diodes here) then i connected a 100uF filtering cap in parallel to filter the signal... then put a voltage divider as shown... after all that i took that wire to the RA0_pin in PIC16F877A.
voltage divider is: 115k and 1.47k -----> Vout = Vin (1.47/116.47) and hence at 220 approximately 3.9v (the max of 5v happens @ 280v rms nearly so there's enough gap).
the problem is that the voltage divider isn't connected to ground because of the rectifier so when I took the reading between at the 1.47k resistor, it was correct.
BUT, when connected to PIC, it doesn't! it gives about 2.6v or so... also tried connecting that node (1.47k) to ground and it didn't change nor work.
PIC's voltage source comes from a 7805 regulator which is fed by a charger that gives about 9v dc, this charger's ground is the circuit ground.
I made a voltage follower like this:
**broken link removed**
Vin = 8-9v
ground = ground of the 9v charger.
this follower made a problem which is the output voltage of the charger (and the regulator) gets halved, thus PIC stopped working cuz low voltage is now connected at Vcc. AND, it didn't work as a follower which gave the same result as the node connected to ground.
the reason i chosen this voltage follower is to make an isolation between PIC and divider, and to enhance input impedance is it shouldn't be high.
can you tell me what to do to be able to deliver the correct voltage from the 1.47k resistor to PIC's ADC pin (or that voltage follower OP-AMP)?
thanks.
**broken link removed**
the means voltage (or any 220v rms ac/50hz sinewave signal) is fed into the rectifier bridge (4 diodes here) then i connected a 100uF filtering cap in parallel to filter the signal... then put a voltage divider as shown... after all that i took that wire to the RA0_pin in PIC16F877A.
voltage divider is: 115k and 1.47k -----> Vout = Vin (1.47/116.47) and hence at 220 approximately 3.9v (the max of 5v happens @ 280v rms nearly so there's enough gap).
the problem is that the voltage divider isn't connected to ground because of the rectifier so when I took the reading between at the 1.47k resistor, it was correct.
BUT, when connected to PIC, it doesn't! it gives about 2.6v or so... also tried connecting that node (1.47k) to ground and it didn't change nor work.
PIC's voltage source comes from a 7805 regulator which is fed by a charger that gives about 9v dc, this charger's ground is the circuit ground.
I made a voltage follower like this:
**broken link removed**
Vin = 8-9v
ground = ground of the 9v charger.
this follower made a problem which is the output voltage of the charger (and the regulator) gets halved, thus PIC stopped working cuz low voltage is now connected at Vcc. AND, it didn't work as a follower which gave the same result as the node connected to ground.
the reason i chosen this voltage follower is to make an isolation between PIC and divider, and to enhance input impedance is it shouldn't be high.
can you tell me what to do to be able to deliver the correct voltage from the 1.47k resistor to PIC's ADC pin (or that voltage follower OP-AMP)?
thanks.