The answer to 'why is my generator sparking' is that a sparking generator is usually a sign of an electrical issue that requires prompt attention. Common causes include worn brushes, loose connections, or a problem with the alternator or voltage regulator. Sparking can be a fire hazard, so it's important to address the issue right away.
If you notice your generator sparking, the first step is to inspect the unit closely for any visible damage or loose components. Check the brushes and replace them if they are worn down. Also, ensure that all electrical connections are tight and secure. If the sparking persists or you are unsure of the cause, it's best to call a licensed electrician to diagnose and repair the issue. Attempting to fix a sparking generator yourself can be dangerous, so it's generally recommended to have a professional handle the repair.