the gms injector program i created is very useful as i described it as a loop that can stabilize one parameter like injector time based on other factors like the defined rpm and sensors information
what i want to point is that this is the basis for many applications...
one could use it for achieving a water heater with constant temperature water output by control of ac power
but the basis is to adjust the parameters fast enough to have an fast response, and exploit the advantage of saving the values so the thing can learn as it goes ..
so next time its on it knows how long much it takes and get a more certain shot
a pid is a proportional integral derivative controler
the idea is to combine different ways to get the stability, one using an integral and other using a derivative
a derivative tells us the rate of change of a signal (realtime)
the integral can analyse how much of change happen for a specific time
for example this can be used to regulate the temperature of a water for cooking beer
when the water is cold and you set the temperature say 60C the heater will know that there is a big difference in temperature so it will send maximum power
however the system will calculate at the same time how much is increasing the temperature over time and with this it can determine how much time is missing to achieve the desired temperature..
for example if the system is approaching the desired temperature it will start to reduce the power applied to slowly arrive at the specific temperature and not pass above it.
real life has capacitances and inductances and time and other behaviors that will help stabilize the output..
t=491s