An Electric Scooter Community on a Mission to Stamp out Transportation Mediocrity.

Changing mobility one trip at a time.
#19090
antonio wrote:
Wed Jan 15, 2020 1:54 pm
Hello and thx for help

Itried with that version and I have the same issue

Arduino:1.8.9 (Windows Store 1.8.21.0) (Windows 10), Tarjeta:"ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"

Scooter_Controller_RemoteXY_ESP32:65:16: error: 'LED_BUILTIN' was not declared in this scope

int powerPin = LED_BUILTIN;

^

exit status 1
'LED_BUILTIN' was not declared in this scope

Este informe podría contener más información con
"Mostrar salida detallada durante la compilación"
opción habilitada en Archivo -> Preferencias.
MrSpriggs1 wrote:
Wed Jan 15, 2020 9:37 am
Why don't you try the most current version of the ESP32 Unlocker. That one is out of date.
https://github.com/chappy1978/ES200-Scooter-Unlocker
Good Luck
antonio wrote:
Wed Jan 15, 2020 6:51 am
You are in reason, here you are again and BEST!!!

Is Hackaday.io and ESP libraries installed
Image
You literally quote mrSpiggs reply with the solution to your problem... :roll:
#19092
I had the same problem as you when I tested some commands where I was not knowing the effect. Get it back working only by unplugging the battery and plugin it in again
Iceman88 wrote:
Wed Jan 15, 2020 1:17 pm

Hi to all, I have tried this code on Arduino Nano on ES 200 G and unlock motor ok, start motor ok, light on blinking ok but after about one minute the scooter stops, the screen turns off and the flashing light remains. If I plug the charge cable the display light on and errror code 09E.
So is impossible to turn off the scooter.
I have tried to unplug the + cable on Arduino but nothing
#19101
Sorry guys, but just want to clear this once and for all.

I'm about to do the wiring now, connecting an Arduino (later on an ESP32 perhaps) but this is where I'm lost.

First out, I'm missing instructions on how to connect the speaker cables. Any idea?

There's another connector going into the tube with four cables; red, orange, green and brown. Are those the ones draculauto mentions? One of them is light grey (or green?), where do I plug this one in? draculauto only mentions one green, and I assume it's the one from the other set of cables? There are two reds in total, one in each set of cables but draculauto only shows one red. Well, you get my point.

I don't see any pink wires, whereas draculauto mentions a pair of them.

Last but not least, I want to connect an on/off button to power on/power off the scooter. What wires should go to the + and - on the switch? Red to + and black to - ?

Would really appreciate some help with this!

draculauto wrote:
Sun Jan 12, 2020 7:07 am
...
wiring it plugs it like that :
Green TX1 , yellow RX0 , brown GND , orange D9 , red VIN , black GND , blue 3V3 , pink A0 , pink A1
Pink and pink to button or touch plate , brown and orange to Speakers.

Image
#19106
Hi everyone,
For all those who wanted to play with all the information that i provided in my previous post but don't want (or feel too lazy :lol: ) to make all the work by hand, i just made a simple arduino code that will make all the work for you.
In order to make it run you will just need to use FastCRC libray available at https://github.com/FrankBoesing/FastCRC

So for those who want to test it, here it is :
Code: Select all
#include <FastCRC.h>

FastCRC8 CRC8;

bool firstdigit = 0; //Still unknown function
bool seconddigit = 0; //Still unknown function
bool fastAcceleration = 1; //1 for on, 0 for off
bool KPH = 1; //1 for KPH, 0 for MPH
bool fifthdigit = 0; //Still unknown function
bool Light = 1; //1 for on, 0 for off
bool LightBlink = 0; //1 for on, 0 for off
bool ESCOn = 1; //1 for on, 0 for off
int SpeedLimit = 255; //Beetwen 0 and 255


int forth = 0;
byte buf[6] = {0xA6, 0x12, 0x02};

void setup() {
  Serial.begin(9600);
  calculateforth();
  buf[3] = forth;
  buf[4] = SpeedLimit;
  buf[5] = CRC8.maxim(buf, 5);
}


void loop() {
  Serial.write(buf, sizeof(buf));
  delay(500);
}

void calculateforth() {
if (firstdigit == 1){
  forth = forth + 128;
    }
if (seconddigit == 1){
  forth = forth + 64;
    }
if (fastAcceleration == 1){
  forth = forth + 32;
  }   
if (KPH == 1){
  forth = forth + 16;
  }
if (fifthdigit == 1){
  forth = forth + 8;
    }
if (Light == 1){
  forth = forth + 4;
  }
if (LightBlink == 1){
  forth = forth + 2;
  }
if (ESCOn == 1){
  forth++;
  }
}
Still curious about the 3 bits that i don't know the use, hope someone could find out
#19109
Pata27 wrote:
Thu Jan 16, 2020 1:37 am
Hi everyone,
For all those who wanted to play with all the information that i provided in my previous post but don't want (or feel too lazy :lol: ) to make all the work by hand, i just made a simple arduino code that will make all the work for you.
In order to make it run you will just need to use FastCRC libray available at https://github.com/FrankBoesing/FastCRC

So for those who want to test it, here it is :
Code: Select all
#include <FastCRC.h>

FastCRC8 CRC8;

bool firstdigit = 0; //Still unknown function
bool seconddigit = 0; //Still unknown function
bool fastAcceleration = 1; //1 for on, 0 for off
bool KPH = 1; //1 for KPH, 0 for MPH
bool fifthdigit = 0; //Still unknown function
bool Light = 1; //1 for on, 0 for off
bool LightBlink = 0; //1 for on, 0 for off
bool ESCOn = 1; //1 for on, 0 for off
int SpeedLimit = 255; //Beetwen 0 and 255


int forth = 0;
byte buf[6] = {0xA6, 0x12, 0x02};

void setup() {
  Serial.begin(9600);
  calculateforth();
  buf[3] = forth;
  buf[4] = SpeedLimit;
  buf[5] = CRC8.maxim(buf, 5);
}


void loop() {
  Serial.write(buf, sizeof(buf));
  delay(500);
}

void calculateforth() {
if (firstdigit == 1){
  forth = forth + 128;
    }
if (seconddigit == 1){
  forth = forth + 64;
    }
if (fastAcceleration == 1){
  forth = forth + 32;
  }   
if (KPH == 1){
  forth = forth + 16;
  }
if (fifthdigit == 1){
  forth = forth + 8;
    }
if (Light == 1){
  forth = forth + 4;
  }
if (LightBlink == 1){
  forth = forth + 2;
  }
if (ESCOn == 1){
  forth++;
  }
}
Still curious about the 3 bits that i don't know the use, hope someone could find out
my scooter es200g wouldnt turn on with out changing the 5th on to a 1
wheel was unlocked tho
#19110
Thanks for the info, i will try driving with mine with differents combination to see if i can found some differences in the feeling whith the 3 unknown options, and see if i can found what changes the 5th bit ;)
Buddasticks wrote:
Thu Jan 16, 2020 2:19 am
my scooter es200g wouldnt turn on with out changing the 5th on to a 1
wheel was unlocked tho
#19113
funbag wrote:
Wed Jan 15, 2020 7:51 pm
Sorry guys, but just want to clear this once and for all.

I'm about to do the wiring now, connecting an Arduino (later on an ESP32 perhaps) but this is where I'm lost.

First out, I'm missing instructions on how to connect the speaker cables. Any idea?

There's another connector going into the tube with four cables; red, orange, green and brown. Are those the ones draculauto mentions? One of them is light grey (or green?), where do I plug this one in? draculauto only mentions one green, and I assume it's the one from the other set of cables? There are two reds in total, one in each set of cables but draculauto only shows one red. Well, you get my point.

I don't see any pink wires, whereas draculauto mentions a pair of them.

Last but not least, I want to connect an on/off button to power on/power off the scooter. What wires should go to the + and - on the switch? Red to + and black to - ?

Would really appreciate some help with this!

draculauto wrote:
Sun Jan 12, 2020 7:07 am
...
wiring it plugs it like that :
Green TX1 , yellow RX0 , brown GND , orange D9 , red VIN , black GND , blue 3V3 , pink A0 , pink A1
Pink and pink to button or touch plate , brown and orange to Speakers.

Image
Don't follow that picture - that shows how wires of the Seagull box is connected internally.
Unless you use the Seagull dump you shouldn't use that.

If you use the simpler unlock codes from last couple of days just connect black to GND, blue to 3.3V and green to TX.
Power your Nano from the USB port while testing.
#19116
The work of Pata27 is very interesting.
Some questions/remarks :

- Why do most of the previously tested sequences have byte 5 to 01 when this is theoretically the speed limit?

- This sequence allows the initialization of the scooter, or to change the options, but what about the "Keep alive" ?
Unless I am mistaken, all this does not prevent the scooter from shutting down after one or two minutes.
FYI : only UgloBuglo's "Stay Alive" sequence seems to use the first two digits of the 4th byte. Indeed the F5 code is converted to binary in 111101

- Have the 4th byte options been tested and validated on ES-100 and ES-200? It is likely that the option differs between the two systems. (I have tried to analyse the previously tested sequences, like those of Basti and they do not always match with the byte 4 options.)
  • 1
  • 47
  • 48
  • 49
  • 50
  • 51
  • 80

As this was a rental version whos overstock was […]

Any one got any info on beryl bikes I seen a few[…]

LH/ TF-100 Style Display.

Hi I recently converted a Bird Zero to a personal […]

How do you operate dash without button? I have[…]