A-Emile / Lime_Gen3_IoT_Replacement

Custom IoT for Lime Gen 3 E-Scooter and info about serial communication
Apache License 2.0
40 stars 10 forks source link

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 🙏 #11

Closed RSF99 closed 1 year ago

RSF99 commented 1 year ago

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

Screenshot_20230619_034745.jpg

The one I have right now :

ESP32-Pinout.jpg

reuzurq commented 1 year ago

I am using the same esp as you, in mine - 5V from the buck converter goes into VIN pin on esp32.

VIN (Voltage in) is connected to the onboard voltage regulator that steps down the voltage to 3.3v. If you are worried about frying your esp32, you can use external voltage regulators.

next time use shorter titles for issues ;)

RSF99 commented 1 year ago

Hello everyone so i flashed the esp32 devkit v1 with the arduino code from the LimeIot folder and I'm ready to connect it to the scooter.

@A-Emile said to connect the corresponding wires to the corresponding pins on the esp32 ( as shown on this picture):

Snapchat-1482637429.jpg

-Controller 36v (Red wire) to Vin pin -Controller Gnd (Black wire) to Gnd pin -Controller Lock (blue wire) to GPIO 12 -Controller RX (Green wire) to GPIO 1 -Controller TX (Yellow wire) to GPIO 3

(there's a white wire we don't need)

Ps : for the controller 36v (buck converter + ams1117) to have 5v

-Display 5V (Red wire) to 5v Vin pin -Display Gnd (black wire) to Gnd pin -Display RX (green wire) to GPIO 17 -Display TX (blue wire) to GPIO 16


-GPIO 1 corresponds to TX0 -GPIO 3 corresponds to RX0 -GPIO 17 corresponds to TX2 -GPIO 16 corresponds to RX2

Screenshot_20230619_033636_com.huawei.browser.jpg

So is everything ok if i wire it as @A-Emile said or should i switch the Wires?

Snapchat-1283272872.jpg

Screenshot_20230624_160940.jpg

Is this wiring correct please??

@reuzurq could you help me please and tell if the wiring is correct please

A-Emile commented 1 year ago

Yess, good job! Wiring looks good.

RSF99 commented 1 year ago

@A-Emile Thank you very much brother i really appreciate all the work you did, god bless you bro you helped me a lot 🙏

This going to be my last question and after the I'll post all of my My project

How do i connect the controller 36v (Red wire) to the buck converter to the Ams1117 to the 5v Vin pin?? Please

And the display 5v goes to the same Vin pin yeah so i connect both to the same pin

A-Emile commented 1 year ago

Yeah, sorry for not responding so long. 39v and gnd of controller goes into buck converter input. Buck converter output to ams input.

A-Emile commented 1 year ago

And i think i messed some things up in the arduino code in the repo. So dont wonder if some things doesnt work. Or maybe nothing haha. Will update repo later..

RSF99 commented 1 year ago

Screenshot_20230624_170952.jpg

@A-Emile Is this wiring correct?

And if it's correct, there's no gnd out from the Ams1117, how can wire the controller gnd to the esp32 gnd?

RSF99 commented 1 year ago

Haha well i need to connect it to the scooter first and then I'll test if everything works or nothing. I'm waiting by the minute for your updates brother keep the good work. keeping hopes up 🙏

A-Emile commented 1 year ago

Connect the esp gnd to the gnd of ams and buck converter

RSF99 commented 1 year ago

Connect the esp gnd to the gnd of ams and buck converter

@A-Emile please should i put the output voltage of the buck converter to 3.3v since the Ams1117 is 3.3v or should i put 5v?

RSF99 commented 1 year ago

Update :

Result :

My conclusion is either the wiring is off or the code has some errors i guess.

What do you think guys? @A-Emile @reuzurq @Pikokosan

Here's some pics :

IMG_20230630_180428.jpg

IMG_20230630_180354.jpg

IMG_20230630_180052.jpg

IMG_20230630_180616.jpg

IMG_20230630_180532.jpg

IMG_20230630_180819.jpg

Screenshot_20230624_160940.jpg

Snapchat-1283272872.jpg

A-Emile commented 1 year ago

The code has errors

A-Emile commented 1 year ago

Here is the latest working code: https://github.com/A-Emile/Lime_Gen3_IoT_Replacement/releases/tag/latest

RSF99 commented 1 year ago

You're the man, thank you brother 🙏

SevkiDeJetskie commented 1 year ago

For me, the display only lights up the lime logo and the scooter is not displayed in the Bluetooth app. As soon as I connect the esp32 to the pc, the scooter turns on and shows 0% battery. It connects to the app but nothing is displayed.I tried it with both esp32 exactly the same.

reuzurq commented 1 year ago

For me, the display only lights up the lime logo and the scooter is not displayed in the Bluetooth app. As soon as I connect the esp32 to the pc, the scooter turns on and shows 0% battery.

Check that esp32 is getting enough voltage from your buck converter.