Giter Site home page Giter Site logo

a-emile / lime_gen3_iot_replacement Goto Github PK

View Code? Open in Web Editor NEW
28.0 28.0 8.0 37.06 MB

Custom IoT for Lime Gen 3 E-Scooter and info about serial communication

License: Apache License 2.0

C++ 39.09% Kotlin 0.11% Swift 1.17% Objective-C 0.04% Dart 39.25% CMake 17.33% C 1.32% HTML 1.70%

lime_gen3_iot_replacement's People

Contributors

a-emile avatar pikokosan avatar reuzurq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

lime_gen3_iot_replacement's Issues

I got a small problem i see here that you're using esp32 that has a 5v pin but i got the esp32 devkit v1 with 30 pin and it has only a 3.3v pin. The question here is : i need to connect the 5v controller and 5v display to the esp32 5v pin how can i resolve that in my case using a esp32 devkit v1 that has only a 3.3v pin PS : searched online about the VIN pin and found some vague information (some people say it works for 5v out and some people say it fried there esp32 and smoke came out). ***Some help please, i read almost everything on scootertalk and found that this project is the best one to convert a lime-s gen 3 and has a complete guide on how to do it but i just need some guidance on some small things that I don't understand fully, I'm trying to learn and I have learned alot since the beginning of this journey thanks to you and your knowledge guys ๐Ÿ™

The one you're using ''i guess'' :

Screenshot_20230619_034745.jpg

The one I have right now :

ESP32-Pinout.jpg

Info: commands and packet format

Here is some more info i learned when modding the lime 2.5. looks like the packets haven't changed much.

keep alive: 0x4643110100084C494D4542494B45BE8A
light on: 0x464316120001F12B26
Show firmware version: 0x464311140000EAFB
Show UART version: 0x464311150000DDCB
Show hardware version: 0x4643111800009F9A
Show some weird id: 0x464311200000F39E
Blink front light: 0x464316130001F15D92
Blink front light stop: 0x46431613000100A2AC
Lock motor wheel: 0x464316630001F11FE7
Unlock motor wheel: 0x464316630001F00FC6
turn off and lock: 0x464316610000F0D19F
turn on and unlock: 0x464316610000F1C1BE

example response from controller
46 58 0C FF 00 27 11 00 00 40 00 00 41 53 6A 42 00 7B 44 4F 52 4F 61 F0 80 01 40 72 07 07 01 77 82 00 00 00 00 E0 00 0A 93 F1 45 00 00 1E BD

byte 1 is the start byte
byte 2-6 are part of the header
in the example byte 7 = 0x27 which in dec is 39 which is the length of the frame meaning 6(SOF and header)+39+2(the crc) is the full packet.

Throttle not working, battery shows 0%.

Hello i succesfully flaashed original controler with hacked firmware. I wired up ESP with the scotter and uploaded your code. Scooter is powering up then i can connect to it using your app normally. When i am clicking unlock button the scooter unlocks, shows 0km/hs. And now there is issue. Scooter's display shows 0% on battery. I measured battery with multimeter and it's fully charged. Second problem is scooter doesn't react for the throttle and because of this it's not driving. Strange thing is when i unlock scooter the breaking light blinks a few times then stops and start blinking again. When i lock the scooter or disconnect it lock's itself normally and breaking light stops blinking.

Any advice about this issue? This scooter version is 1.04 (IoT PCB). I tried it with hacked firmware and original IoT with soldered jumper cable to make it boot but it behaviors simillar. Diffrence is it showing battery percentage correctly, is all time unlocked, breaking light reacts to break handle. But still doesn't react for the throttle.

Maybe i did something wrong in the wiring because i disconnected controller and take it to the home i had no IoT plug and just plugged ESP directly to controller but there are two sets of cables coming from controller with same collors. One is with 5 wires, second one is with 6. Maybe i taked wrong cable to connect RX and TX to the ESP? Does it matter?

Some pictures for addition.

Error in Commands.ino when trying to verify the code

Hi, I'm very much a noob to this so please forgive me if this is obvious.

Not sure what info you need to help me, but I'm running IDE 2.3.2 on a Win 10 64bit V 22H2

My ESP32 Dev Mod is installed and I can upload working test sketchs to it.

The compiling error I get is the following:

C:\Users\ZRam\OneDrive\Documents\Arduino\LimeIoT\commands.ino: In member function 'virtual void MainBLECallback::onWrite(BLECharacteristic*)':
C:\Users\ZRam\OneDrive\Documents\Arduino\LimeIoT\commands.ino:3:50: error: conversion from 'String' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string'} requested
3 | std::string value = pCharacteristic->getValue();
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~
C:\Users\ZRam\OneDrive\Documents\Arduino\LimeIoT\settings.ino: In member function 'virtual void SettingsBLECallback::onWrite(BLECharacteristic*)':
C:\Users\ZRam\OneDrive\Documents\Arduino\LimeIoT\settings.ino:4:50: error: conversion from 'String' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string'} requested
4 | std::string value = pCharacteristic->getValue();
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~

exit status 1

Compilation error: conversion from 'String' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string'} requested

I've tried to work this out myself, but I'm at a loss, please help!

Thanks in advance, Aidan.

Max speed

DE market have 20kmh limit. Unlocked firmware have 27kmh. Maybe there is chance to change max speed of the scooter above this 27kmh?

Wiring for BUCK Converter?

Hello! First of all, thank you for all your efforts making this repository for make personal LIME gen 3.
Can you write how to wiring the BUCK converter? Is this "wiring diagram" correct?

PIN 4 (Controller 36V)---------------- ( In+ BUCK CONV. Out+ ) ------- (Input AMS1117 - OUT 5V AMS1117 ) -- ESP32 ? Or ESP32 and display?
PIN 6 (Controller GND)--------------- ( In- BUCK CONV. Out-) --------(GND AMS1117 - GND AMS1117) --- ESP32 ? Or ESP32 an Display?

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.