IF your bike is not wired for lights already, the stator is pure A/C.
You'll need a voltage regulator, and the lights use no ground.
I ran two wires from front to back, tied it to the headlight switch for hi/lo and the tail with a splice off it to the brakelight switches. The voltage regulator attaches to each wire as does the stator.
If you try to ground it you'll kill the stator unless you run it through a rectifier to get DC and add a battery.
The regulator doesn't have to be grounded either. Just just shunts the excess voltage across its self.
Do it wrong you'll be buying more bulbs. Ask me how I know.