I am designing a scr based digital battery charger for the first time and have successfully driven scr to provide 110V-DC from a 140V singe-phase transformer. 2 SCR-diode combination forms full bridge rectifier and each scr driven via gate driver controlled from software. Now my design needs to constantly maintain a 110VDC up-to 10Amps of current. To do this I have used a voltage divider feedback from output (470k+10K) and a PID controller combination which varies trigger angle of SCR (from 90degree to 180degree, every half cycle) to maintain the voltage (i.e. between 0A to 10A)
Software samples adc at every 10us and my PID controller runs every 1ms. When I tested with 40ohm rheostat as load, it is working but not to my expectation. The problem is if I draw more current voltage first dips down and then after few seconds(2-3sec) pulls back-up OR if I suddenly increase the resistance, voltage shoots up (which is very scary) then eventually comes down to desired 110V.
I have seen analog SCR based PCB that maintain the voltage as if voltmeter is stuck at 110V display no matter the load. I want to show similar output from a digital controlled design. So if any one has tried this and achieved immediate control using PID please provide hints.
Please note that I have ensured common things like,
- SCR target trigger pulse decided by PID is generated from software exactly at the right time from zero crossing (0.1us resolution).
- Have tried to maintain minimum delay in voltage feedback using lesser capacitance values (although the feedback is isolted using opto, but its propagation delay is lesser than PID loop)
- Tried for 10-15 day and nights for fine tuning PID Kp, Ki, Kd terms and read all theory related to it.
- I just feel the problem with software is that even though PID loop runs every 1 ms, SCR can be triggerred only at every 10ms (due to 50Hz AC). So eventually PID input will have a delay of 10ms before it realize the result of last set value. So when I try running PID every 5,10,15,20 ms. But still 2-3 seconds dip or shoot is inevitable. But if this was the case, how analog SCR charger PCB achieving it?