You have to be very careful here with this one. An Alternator produces an output that is proportional to speed. This output changes in two ways frequency and voltage. But the main one being frequency, this is why you have to spin it at 3000rpm to generate the 50hz output. the voltage output is generated by the excitation present within the alternator, this can be internal or external, better generators utilise a form of external excitation dependant upon the output voltage, when you draw current the voltage drops and the excitation compensates for this and pushes the voltage up. What sort of engine are you using to drive the thing diesel or petrol ? You need to work out how to control the speed, it will be by frequency if the frequency drops then the speed govenor will cause the throttle to open to speed up the engine, or rather ensure that the frequency doesnt drop and likewise when you remove a load the engine will speed up, the govenor has to throttle back to keep this in control. So now you have excitation to control the output voltage and then you have speed control to control the frequency........
There are modules that you can buy to do this, Id go for a pulse frequency on the flywheel and use that to control the throttle so that you try to rev up if the speed drops and vice versa. hen you would have to look at the voltage, need to see what you have on your alternator to control the voltage and maintain it at 240 v...........