Giter Site home page Giter Site logo

bert-tec / xbot_display Goto Github PK

View Code? Open in Web Editor NEW
9.0 6.0 2.0 1.47 MB

Additional OLED Display for scooter using xbot (nerch) components like ESA 5000 1919 1950 iWat Road R9 Extreme ...

License: MIT License

C++ 100.00%
scooter xbot-components esp arduino xbot nerch esa5000 esa iwat escooter

xbot_display's Introduction

xbot_display

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.

V1 V1

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!): V2 V2

Dependencies (Arduino libraries):

  • Adafruit_GFX
  • Adafruit_SSD1306
  • Wire

Hardware needed:

  • 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

How to connect:

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.

How to Use:

The display and Arduino/ESP only gets power when the scooter is turned on.
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)

Future Features:

  • Trip meter
  • unlock speed - done
  • view aditional informations

Disclaimer

Use on your own risk. Not street legal in Germany!!!

Protocol informations:

Serial

xbot_display's People

Contributors

bert-tec avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

zion2k janders111

xbot_display's Issues

Wire.begin() compile issue

I think Wire.begin(0,2) in xbot_display has to be changed. The documentation for Wire.begin says that the argument must be emtpy, or an address.

Keine Anzeige im Oled Display

Hallo,
erstmal finde ich es ein super Projekt .
Ich habe jetzt versucht ein ESP01 zu Flashen und ein Oled Display zu verbinden. Leider zeigt es nichts an. Bin wie in der Beschreibung vorgegangen. Auch den Widerstand habe ich eingelötet. Kann ich auch ohne Anschluss an den Scooter testen ob es funktioniert?

Gruß
Ulf

Compile issue with Adafruit_CircuitPlayground.h:3:0

Tried with a few different boards (generic esp8266, pro-mini) , but it always came up with a similar issue. Everything is freshly installed.

In file included from C:\Program Files (x86)\Arduino\libraries\Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.h:3:0, from sketch\xbot_display_show.h:2, from C:\Users\jorda\Downloads\xbot_display-master\xbot_display\xbot_display.ino:1: C:\Program Files (x86)\Arduino\libraries\Adafruit_Circuit_Playground/Adafruit_Circuit_Playground.h:114:3: error: 'Adafruit_CPlay_FreeTouch' does not name a type Adafruit_CPlay_FreeTouch cap[7]; ///< the array of capacitive touch sensors ^ In file included from C:\Program Files (x86)\Arduino\libraries\Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.h:3:0, from sketch\xbot_display_show.h:2, from sketch\xbot_display_show.cpp:1: C:\Program Files (x86)\Arduino\libraries\Adafruit_Circuit_Playground/Adafruit_Circuit_Playground.h:114:3: error: 'Adafruit_CPlay_FreeTouch' does not name a type Adafruit_CPlay_FreeTouch cap[7]; ///< the array of capacitive touch sensors ^ exit status 1 Error compiling for board Generic ESP8266 Module.

Hardware wiring - TX/RX not clear

Hi,

You wrote: "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."

So I connect the RX directly to the TR bus, but it's not clear to me how is the wiring to the TX of the Arduino.

Tnx.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.