So, I built this welding controller board, with microcontroller and whatnot. Spent last night debugging it on the bench and pretty much debugged the BASIC source code for stick and TIG welding. (when to close which relays, how to handle error conditions, etc).
There is one thing though, with which I am not satisfied, and it is voltage feedback.
"On the bench", my source of voltage is a rectifier based DC power supply that supplies a rectified single phase sinewave.
I take an exponential average of readings.
Vaverage = k*Vaverage + (1-k)*Vinstant
My issue is this. To get stable reading, I have to have k close to 1, like 0.98. Otherwise Vaverage bounces all over. And yet, with k like this, Vaverage is very sluggish to react to actual changes in voltage. And I need it to react fast, since at some moments I need to turn on high frequency arc stabilizer to keep the arc going, if arc voltage goes too high. I need to do that quickly.
I basically want to have a response time of 0.1 second or so, and yet I want relatively stable voltage readings.
In the actual welder, DC will be rectified 3 phase voltage, that is,
360 Hz wave (note that one phase could be lower than others due to using a phase converter). That should hopefully improve things compared to rectified single phase DC.My own idea to try (very easy too) is to use a filter circuit. I figure that with a RC filter with 0.47 uF capacitor, and 200k resistor, I should get some decent average. Am I on the right track, or am I missing some good solutions?
i