E02 on the S866 means “Brake.” Most likely cause: a brake lever that's pulled or sticking, or a brake sensor that has moved. Try this first: switch on without touching the brakes.
Most e-bikes have sensors on the brake levers that cut motor power when you brake. This code means the controller is seeing a brake signal. If it only shows while you hold a brake, that's expected. If it stays on after you let go, a lever isn't returning, a sensor has slipped, or a sensor cable is damaged.
Step-by-step checklist
Work from the top. Steps go from free and easy to shop jobs. Switch the bike off before touching any connector. Tick each step as you go. Your progress is saved on this device.
Parts you might need
As an Amazon Associate I earn from qualifying purchases. These links go straight to Amazon.
Only buy a part if the free steps didn't fix it. Always match the voltage and connector type to your bike.
Brake cutoff sensors
Replaces a faulty brake sensor that keeps cutting motor power.
Link coming soon
Electrical contact cleaner spray
Cleans dirt and corrosion from connector pins and battery contacts.
When it's time for a shop: if you've worked through every step and the problem is still there, take the bike to an e-bike shop. Bring your notes on when it happens, plus the code.