UroBoros
Advanced Member level 2
- Joined
- May 5, 2004
- Messages
- 642
- Helped
- 19
- Reputation
- 38
- Reaction score
- 8
- Trophy points
- 1,298
- Location
- Cochin - India
- Activity points
- 6,463
I am trying to do a Phase control Battery charger. Plans to Do Phase control to maintain and apply voltage to battery with a monitor and limit for current.
PIC16 ADC monitors voltage and current. PID algorithm derives the required phase angle for voltage, if current exceeds in the lower voltages, needs to reduce voltage and keeps the charging current in limit.
As for now My ADC reads voltage and current being read in 5ms intervals unto 16 samples and taking average. So my Feed back response is ready every 80ms. which is adjustable off course!
What will be the ideal sampling rate and PID loop frequency in a application like this? My voltage feed back passes through a low pass filter which has around below 5 ms lag.
Thanks
PIC16 ADC monitors voltage and current. PID algorithm derives the required phase angle for voltage, if current exceeds in the lower voltages, needs to reduce voltage and keeps the charging current in limit.
As for now My ADC reads voltage and current being read in 5ms intervals unto 16 samples and taking average. So my Feed back response is ready every 80ms. which is adjustable off course!
What will be the ideal sampling rate and PID loop frequency in a application like this? My voltage feed back passes through a low pass filter which has around below 5 ms lag.
Thanks