Hi again folks,
it took me a while to make all the modifications but I have improved the response of the governor assistance by using current (load) detection. I've embedded a link to the video. You'll notice the response at 10 amps / 2400w is pretty good, however the 20 amp / 4800 w test is pretty much at the limits for this engine (650 RPM) speed and the logs show I need to adjust the offset calculation slightly. Anyway with a slight adjustment at higher amps I'll be close, maybe about as close as I can get without moving to a hall effect sensor on the fly wheel....
The logs show the frequency response for 10 amps is pretty clean:
Amps: 0 Hertz: 5006 Servo: 940 Step: 0 Idle: 940 -- Mains at 50Hz
Amps: 0 Hertz: 5017 Servo: 940 Step: 0 Idle: 940 -- Mains at 50Hz
Amps: 0 Hertz: 5013 Servo: 940 Step: 0 Idle: 940 -- Mains at 50Hz
Amps: 0 Hertz: 5015 Servo: 940 Step: 0 Idle: 940 -- Mains at 50Hz
Amps: 10 Hertz: 4916 Servo: 940 Step: 0 Idle: 940 -- Load Change... Servo to pos: 840
Amps: 10 Hertz: 4758 Servo: 840 Step: -100 Idle: 940 -- Waiting for speed to stabilise
Amps: 10 Hertz: 4751 Servo: 840 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 10 Hertz: 4850 Servo: 840 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 10 Hertz: 4945 Servo: 840 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 10 Hertz: 4986 Servo: 840 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 10 Hertz: 5003 Servo: 840 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 10 Hertz: 5004 Servo: 840 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 10 Hertz: 5013 Servo: 840 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 10 Hertz: 5007 Servo: 840 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 10 Hertz: 5006 Servo: 840 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 10 Hertz: 4997 Servo: 840 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 10 Hertz: 5007 Servo: 840 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 10 Hertz: 5002 Servo: 840 Step: 0 Idle: 940 -- Mains at 50Hz
Amps: 10 Hertz: 5006 Servo: 840 Step: 0 Idle: 940 -- Mains at 50Hz
Amps: 10 Hertz: 4996 Servo: 840 Step: 0 Idle: 940 -- Mains at 50Hz
Amps: 10 Hertz: 5008 Servo: 840 Step: 0 Idle: 940 -- Mains at 50Hz
Amps: 10 Hertz: 5007 Servo: 840 Step: 0 Idle: 940 -- Mains at 50Hz
Not so accurate servo positioning for 20 amps:
Amps: 10 Hertz: 4997 Servo: 839 Step: -1 Idle: 940 -- Mains at 50Hz
Amps: 10 Hertz: 4992 Servo: 839 Step: 0 Idle: 940 -- Mains at 50Hz
Amps: 20 Hertz: 4894 Servo: 839 Step: 0 Idle: 940 -- Load Change... Servo to pos: 740
Amps: 20 Hertz: 4755 Servo: 740 Step: -99 Idle: 940 -- Waiting for speed to stabilise
Amps: 20 Hertz: 4736 Servo: 740 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 20 Hertz: 4751 Servo: 740 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 20 Hertz: 4775 Servo: 740 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 20 Hertz: 4801 Servo: 740 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 20 Hertz: 4820 Servo: 740 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 21 Hertz: 4833 Servo: 740 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 20 Hertz: 4869 Servo: 740 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 20 Hertz: 4900 Servo: 740 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 20 Hertz: 4921 Servo: 740 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 20 Hertz: 4959 Servo: 740 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 20 Hertz: 5002 Servo: 740 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 21 Hertz: 5031 Servo: 740 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 20 Hertz: 5059 Servo: 740 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 20 Hertz: 5097 Servo: 740 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 20 Hertz: 5112 Servo: 740 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 20 Hertz: 5122 Servo: 740 Step: 0 Idle: 940 -- Waiting for speed to stabilise
Amps: 20 Hertz: 5130 Servo: 740 Step: 0 Idle: 940 New Offset: 5 -- Adjusting Generator Speed
Amps: 20 Hertz: 5123 Servo: 745 Step: 5 Idle: 940 New Offset: 4 -- Adjusting Generator Speed
Amps: 20 Hertz: 5125 Servo: 749 Step: 4 Idle: 940 New Offset: 4 -- Adjusting Generator Speed
Amps: 20 Hertz: 5119 Servo: 753 Step: 4 Idle: 940 New Offset: 4 -- Adjusting Generator Speed
Amps: 20 Hertz: 5126 Servo: 757 Step: 4 Idle: 940 New Offset: 4 -- Adjusting Generator Speed
Amps: 20 Hertz: 5108 Servo: 761 Step: 4 Idle: 940 New Offset: 4 -- Adjusting Generator Speed
Amps: 20 Hertz: 5087 Servo: 765 Step: 4 Idle: 940 New Offset: 3 -- Adjusting Generator Speed
Amps: 20 Hertz: 5052 Servo: 768 Step: 3 Idle: 940 New Offset: 2 -- Adjusting Generator Speed
Amps: 20 Hertz: 5043 Servo: 770 Step: 2 Idle: 940 New Offset: 2 -- Adjusting Generator Speed
Amps: 20 Hertz: 5032 Servo: 772 Step: 2 Idle: 940 New Offset: 1 -- Adjusting Generator Speed
Amps: 20 Hertz: 5020 Servo: 773 Step: 1 Idle: 940 -- Mains at 50Hz
Amps: 20 Hertz: 5016 Servo: 773 Step: 0 Idle: 940 -- Mains at 50Hz
Amps: 20 Hertz: 5017 Servo: 773 Step: 0 Idle: 940 -- Mains at 50Hz
Amps: 21 Hertz: 5008 Servo: 773 Step: 0 Idle: 940 -- Mains at 50Hz
Amps: 20 Hertz: 5001 Servo: 773 Step: 0 Idle: 940 -- Mains at 50Hz
Here's the video...
https://www.youtube.com/watch?v=ljwmsc6MLuQ