I am trying to make a Battery Charger Using PIC16f877A. I will be PWM controlling the Charge Current.
I want to use Hall Sensor to sense the charge current. And I am using a Toroid Core with a break. Like this.
**broken link removed**
Some Problem I am facing are:
There are two things changing continuously,
I have an active PWM going on, so, It seems that I need to synchronize the ADC reading with the ON time of PWM.
But even with that, I have full-wave rectified current Flowing into the battery. It seems I need to know, at which point of the Sine-Wave Current am I taking the ADC reading?
I feel like I am off the track, and there may exist a simple trick to make things easier. What may it be?
I want to use Hall Sensor to sense the charge current. And I am using a Toroid Core with a break. Like this.
**broken link removed**
Some Problem I am facing are:
There are two things changing continuously,
I have an active PWM going on, so, It seems that I need to synchronize the ADC reading with the ON time of PWM.
But even with that, I have full-wave rectified current Flowing into the battery. It seems I need to know, at which point of the Sine-Wave Current am I taking the ADC reading?
I feel like I am off the track, and there may exist a simple trick to make things easier. What may it be?