This repository is about a additional OLED Display for electric scooters using xbot components like ESA 5000 1919 1950 ....
You can use an Arduino Uno for testing. For productive you should use someting smaller like an Arduino pro-mini or ESP-01(s).
For use of ESP-01 please enable it in the xbot_display.ino file, because of custom I2C pins.
3D printed spacer which also puts the dashboard up, so that it looks good. And so you can secure the spacer with the screws of the dashboard(you'll need new M2x12 screws!):
- Adafruit_GFX
- Adafruit_SSD1306
- Wire
- 1.3"(0.96"works also) OLED display (Yellow/Blue or White)
- Arduino pro mini 5V OR ESP-01(s) AND 5V to 3.3V converter
- Cables, isolation tape and a small resistor (like 220R)
- 3D printed spacer(see 3D folder, you'll need 3 new M2x12 screws to secure it well) or mod a housing on your own
- optional some hot glue to hold stuff in place
You need to solder three wires to the dashboards lower pins. Power(5V) to the + pin, Ground to the - pin and the serial line to the tr pin.
Then connect Arduino/ESP(you need a power converter from 5V to 3.3V for ESP) and Display to power and ground.
Then connect serial line to RX pin of Arduino/ESP and using a resistor (for best work a diode) to TX.
Then connect I2C cables to OLED and I2C pins(SDA,SCL) of Arduino or to pin 0 and 2 of ESP.
Now turn on and test it.
You can switch to max. speed of 30 kmh by holding break and throttle for 7 seconds and at speed of 0. For reset hold break and throttle for 2 seconds and at speed of 0. There are three different display mods at the moment. You can switch between them by pressing full throttle for 0.75 second at speed of 0:
- Home (Displays throttle and break values in % on top left, Battery % in top right, speed in km/h in the center, left point is eco mode on/off right point is light on/off and the middle is 30km/h mode on/off)
- Throttle overview (Here you can test and visualize throttle and break)
- OFF (Displays blank screen)
- Trip meter
- unlock speed - done
- view aditional informations