UnicycleSanta,
Sent you a $10 donation from finan...@gmail.com, thanks for posting this!
Also, could you update your post, it's missing some critical info:
For
ERROR 27 after wiring everything back together, when flashing custom firmware, must turn on "
Bypass Ninebot BMS requirement" in the custom firmware website. You did not cover this, and it took me almost an hour to figure out.
My scooter was a
SPIN, however this should apply to all scooters where it has the stock dashboard, and no custom hardware. Instead, it has a oval black box in the front of the scooter with the segway logo. For these scooter (including SPIN),
NO RE-WIRING IS NEEDED. Do note: the front box contains a cellular connection + GPS.
SPIN scooters use a weird pentagon security screw. I couldn't find a matching set of screwdrivers online. Instead, just use a dremel to cut a slot, and then use a flathead screwdriver to remove. Except for the front black box, that was a lot of cutting through plastic with a dremel.
SPIN ninebot max scooter seems to have a different BMS. specifically, it doesn't have that rainbow group of wires. I didn't flash the firmware for BMS, because I wasn't sure if it was compatible or if it'd break stuff.
BMS flash didn't seem necessary, because everything works fine, no errors.
UPDATE: the BMS for Spin scooters since mid 2020 now will shut down if you only flash the ESC/BLE. Symptom is that you ride the scooter for a few seconds and it loses power and the dashboard shuts down. Fix might be to flash the BMS, but I'm not 100% sure.
the ESC download is not listed in the "required materials" section. but you do have a direct link. but it made me confused for a while trying to figure out if I had missed a step.
ESC, when programming, it says " Memory programmed in ___seconds", but then it says:
01:00:04 : Disconnected from device.
01:00:04 : Connection to device is lost: check power supply and debug connection.
01:00:04 : If the target is in low power mode, please enable "Debug in Low Power mode" option from Target->settings menu.
^ those 3 lines were concerning to me, so I re-programmed with verification. anyways, I think it was fine, as long as it said "Memory programmed..." then it worked. I think it was reset after programming, which is why it disconnected.
For the ESC, it PROBABLY DOES NOT need any power supply. You only need 3 lines, and that's it.
But if you get "can not connect to target", then you'll probably need a 5V connection to the bottom 3rd pin, or your soldering job sucks. Try connecting 5v (from the st-link to the 3rd pin from bottom, on this connector), to the 3rd pin in the red circle in image:
https://i.imgur.com/olWuWHV.jpg
If that still doesn't work, and you still get 'can not connect to target', then check out:
https://bit.ly/2D8B2M0, which references this picture incase the other one got deleted:
https://i.imgur.com/9HknAS5.jpg
For the custom firmware website, I'm not sure how I'm supposed to use it, it asks to enter some firmware. It took me a few minutes to figure out that I was supposed to click "HERE" to go to the old classic firmware generator. Instead, you could update your post to directly link to:
https://max.scooterhacking.org/classic