Hoverboard Reflashing via Arduino / PlatformIO
HTML-код
- Опубликовано: 10 сен 2024
- In this video i will show you how to reflash the Mainboard of the Hoverboard and also how to flash an ESP32 Transmitter and Receiver to controll the Hoverboard via ESPnow
Here is the Firmware Paket: atcnetz.de/dow...
Part 1 Hardware: • Arduino Speed Hoverboa...
Many thanks to:
github.com/bip...
and
github.com/Nik...
Musik:
• Neovaii - Your Eyes
Thank you so much Aaron Christophel , it's working now . I changed the main board. It's working. You are super mam .Great video.
man you are the one did right thing. use esp and the original controller from e scooter
Thank you very much for sharing this information. I used a baud rate of 9600 because with a baud rate of 11520 the engines stopped from time to time for a very short time.
This video is the missing link! Thank you. Very well done. I'm excited to play with PlatformIO.
Thank you for taking the time to do the tutorial
Hi im getting a error on visual studio code when i build it. i get control_usart2 FAILED. how can i fix the problem?
i got it work by add the folder into C folder like you said in a old comment. thank you
I need help. i was able to upload the firmware to the motherboard and upload the Arduino software to esp32. im receiving data from the nunchuck and from the motherboard but the wheels are not moving. i tried 6 motherboards and the wheels dont move
Thank you for the tutorial. Can you share how you connect the receiver to the two main boards of the hoverboard? And how you build the remote control.
You are amazing, thanks to share this information vales oro¡¡¡¡¡
Cool project, very well explained! I'll have to take a look at ESP Now, it sounds interesting.
Viele Grüße,
Martin
Hi I have a question, I have the softwear uploaded to the hoverboard motherboard and to the esp32 my problem is when I have the wheels running it would then violently jerk..help plz.
Hello and sorry, good luck with your work...
I have a problem. The communication between the transmitter and the receiver is working and everything seems fine, My problem is that there are no changes when I look at the serial monitor of the transmitter, it looks like this:
Raw speed: 255 angle: 255 Computed speed: 1351 angle: 1326
Sending 21 bytes:{"speed":0,"angle":0} 303994
Raw speed: 255 angle: 255 Computed speed: 1351 angle: 1326
Sending 21 bytes:{"speed":0,"angle":0} 304096
Raw speed: 255 angle: 255 Computed speed: 1351 angle: 1326
any idea what it could be?
It's a Chinese wii nunchak and it is the same with the other
Hello. I have a problem compiling this project. I get this message in visual studio:
arm-none-eabi-gcc: error: Flashing/bipropellant-hoverboard-firmware/STM32F103RCTx_FLASH.ld: No such file or directory
*** [.pio/build/control_usart2/firmware.elf] Error 1
Please help
error "cannot convert 'esp_interface_t' to 'wifi_interface_t'
" occurs during compilation, how can this be solved?
I'm curious how did you connected two hoverboard controllers together for 4WD ?
I need to know how to do this using Arduino C on a esp32-S3..
Can you make a video and github for esp32-S3 Arduino C ?
If possible do not use tabs in the code. I hate tabs...
Are there hoverboard.h libraries?
and explain how the esp sends control to the hoverboard PCB...
Serial, i2c, PWM, etc....
My plan is to control 6 wheels and get telemetry feedback from onboard sensors like:
battery level, compass, GPS, temperature, video, etc...
I hope you can help.. Thanks
Can anyone explain to me how the wiring for the different components are done? Especially the "Receiver" ESP connected to the main board.
I did it! Although why is mine so jerky do you have any idea? And it also breaks instantly and accelerates instantly. Do you have any idea how to change that?
Wow, wow and once more WOW! I thought your last video was the most detailed but this one just smashed everything else that relates to this topic :-) You did an amazing job. I cannot thank you enough! By the way, have you tested the max range when using ESPNow? Does it reach 400-500 meters?
Thank you for your super kind words :)
The ESPnow connection is around the same range as wifi maybe a little bit more, but that is tested with the onboard pcb antennas. Maybe external antennas get bedder range. The reconnection speed is super fast and because it is an onboard fetaure is the reason that i used ESPnow.
@@atc1441 You're always welcome! Another question if you don't mind. Have you tried this on GD based boards? I've achieved pretty awkward behavior on some GD boards while everything worked normally on an STM board. Cheers!
It is working fine on GD and on STM boards for me
See in this discussion github.com/bipropellant/bipropellant-hoverboard-firmware/issues/57
I solved the build problem by uploading the batch directory to the root directory of the drive. A new problem has arisen. When compiling it shows:
"Implicit declaration of function 'sprintf'.
This problem occurs in many places.
hello and thanks about that- Why do bldc motor stop frequently?
I lean a lot from your channel
Thank you for the feedback
Could you please share or write a simple test script? Ive flashed the same firmware, but I would like to run it with just a hardwired joystick without two ESP's. Its driving me mad Ive been doing this for 3 days searching everywhere and cant find any code at all to get anything to move
Hi, Where can I find the Hoverboard Reflashing via Arduino / PlatformIO. I would like to use the hoverboard as an segway with steering. Can you tell me how a can connect the hoverboard ?
Hey.
You can use this one github.com/EFeru/hoverboard-firmware-hack-FOC
which wires use from hoverboard to esp32 and which pins use
Hi, very nice project. On my board I would like to change only the tilt value of the gyro sensor. I want start hoverboard with smaller tilt. Don't know how to do it? Thank you
Hey Aaron now every thing is fine , I have connected the hoverboard 3.3V to stmlink pin8 3.3v, swclk pa14 to Pin2 SWCLK, GND to Pin6 GND, PA13 SDIO to pin4 SWDIO, when I do this connection the blue LED on stm32 link goes off. and short the white jumper for flash and press download button at vsc it give message OpenOCD init failed. Kindly help me.
Hey. Sorry its hard to help on that. It could be that the stm needs to be unlocked first.
@@atc1441 HI thx for prompt response. You are a star. I'm using stm32 link can you give me any idea how to unlock stm32 link .Thx .
What do you mean by com [0] sir? actually, we are using a 2 wheel drive sir.and we are trying to send a value from the transmitter side which is not actually processed here and it shuts down immediately.
Hey! thanks for the videos! i have a problem with my STlink V2. When i try to instal drivers with zadig it doesn't works, the first time it couldn't complete the process, the second time and following, it shows "Reinstall drivers" (same as you) and apparently it's with the last version, but if i go to visual to upload it to the board it fails >.
Thanks so much !!
How do you power your receiver-esp32? Do you use a dc-dc converter, or do you power it directly from the available 5v rails ?
Hi i use one of these moduls. rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&pub=5575152713&toolid=10001&campid=5337805879&customid=&icep_item=263733403095&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg and connect it to the switched 42v rail. The mainboard power rails have not enough amps to power the esp32.
@@atc1441 Awesome, tanks so much for all the info and the effort to make it understandable!
@@atc1441 Another question, do you run it of a single battery? or do you use two in paralell ? Or have you just left them as is and have a common ground?
I use only one battery. But you could connect them in paralell only common ground could end bad. I also just have one switch in paralell
hey great video! any chance you can update this dead link to the firmware?
edit: link worked in Edge only had issues with Chrome
Good Video! didn't work for me but I think is due I didn't understand the pinout connection between the ESP32 receiver and the mother board. any help is welcome.
And sorry for my ignorance but just make sure:
Receiver to hoverboard
Transmitter to nunchuck .
Rigth?
thank you!
Hey, sounds about right yes
@@atc1441 Thanks!
and the connection to the hoverboard with the ESP32 receiver is the same like the Nunchucks but to the right short cable of the mother board. Correct?
how do you actually connect the arduino to the hoverboard ? with the tx rx of the right sensor ?
I am using uart 2 wich is the left sensor board. And on the esp i set the pinout via the serial.begin you can read it there: serial1 = pin 26 and 27 and serial2 = pin 16 and 17.
@@atc1441 ok thanks , when i try to build he firmware i get this :
" error: Flashing\bipropellant-hoverboard-firmware/STM32F103RCTx_FLASH.ld: No such file or directory"
I just unzip your file and put it there i touched nothing , but I keep having this error
try putting the folder directly in C HDD and then compile again, also got this sometimes and i think that is because of a long folder name, after shortening the folder name by putting in C id did compiled
@@atc1441 It's work to put it in C !! thanks
Now im trying to change the receiver code to use only one Channel since im using à arduino nano. do you have a code just for 1 serial connections and not 3 ?
Hey Aaron thanks for the wonderful vedio. I'm new here that's why asking crazy questions sorry for that. I've downloaded vsc, platformio extension and your firmware. But I saw main.c shows errors messages of missing some header files. pls help. Thx.
Great video! You got a new subscriber! Don´t miss my project.
so there is no modification to do in the bepropellant firmware what so ever ?
With the firmware package i have in my folder linked in the description everything is ready and should work out of the box. When using the firmware from github you need to change a bit and take the correct protocoll branch.
@@atc1441 ok I will try to do it out the box first, the. modify the code to control the arduino with my phone/ps3 controller via Bluetooth
That is a nice idea. You can also leave the hoverboard Code as it is because you would only need to change the receiver code. :)
hi, kindly share the the Firmware Paket pls. the like u shared is not working so. pls upload the link again
Hey. The link still works fine. Just checked it
Hello, does it work with any card? I have a LENZOD card, which looks a lot like yours, but when I plug in the st-link, the card keeps beeping, and is not recognized by the st-link program, link of problem github.com/NiklasFauth/hoverboard-firmware-hack/issues/152
Hi, should work with it yes, i think you need to unlock the STM first
you can do it in the menu of the StFlasher software
hi Aaron Ich habe viele Geräte gekauft und viele Male versucht, das Hoverboard und den ISP zu programmieren, und es ist mir nicht gelungen, also schlage ich vor, dass ich Ihnen 2 Hoverboards mit 2 ISPs schicke, um sie für mich zu programmieren und sie mir und dem Geld, das Sie verlangen, zurückzugeben , wir werden uns darauf einigen, während Sie in Deutschland und ich in Schweden bin
Hey Aaron thanks for the amazing video. I followed all steps of tutorials, everything went very well. Built with no error. But in upload it was busy download some files and after few minutes it gave error to failed to open upd. Pls Aaron help.
Hi, thanks for sharing all this content. is there a video on how you connect all the components in the aluminium chasiss ?
Hey.i already answered in some of the comments
@@atc1441 thanks for the rely. would u be interested to build a delivery robot ?
I am pretty much done with this project
@@atc1441 Hi and thanks for the videos! I have read all the comments and cant find this info. Could you please describe how you have connected the two main boards? Are they identically flashed and share the same signal input from your remote?
Geile Sache! Ich würde gerne das ganze mit nur einem Hoverboard realisieren (also 2WD) - wie muss ich den Code für den Receiver ändern damit es für nur ein Hover-Mainboard funktioniert anstatt für 2? Ich hab es erst alles original aus deinem Firmware Paket gelassen, einen ESP32 als Transmitter und den anderen als Receiver. Per Serial Monitor sehe ich auch dass am Receiver etwas ankommt, aber das Hoverboard reagiert nicht drauf, liegt es daran dass der Receiver noch ein zweites Board erwartet? Per PWM hab ich das Hoverboard schon mit einer normale RC Fernsteuerung steuern können, würde aber gerne 2WD mit ESP über WLAN steuern :) danke!
Moin. Ich nutze genau den selben code für das zweite (2WD) teil und es funktioniert. Also das sollte kein problem sein. Er zeigt nur von einem der seriellen ports die akkuspannung und geschwindigkeit an aber drehen sollte es bei beiden ports. Es muss also etwas anderes sein.
Nutzt du die anderen serial ports?
Also pin 27, 26 oder 16, 17 ?
Hast du auch das hoverboard mainboard mit dem neuen code geflasht ?
@@atc1441 Du bist ein geiler Typ, danke für deine Antwort! Ich hab jetzt Hoverboard und beide ESP32 mit deinem Firmware-Paket geflashed und alles original gelassen, nichts am Code verändert. Der Nunchuk wird am Transmitter ESP erkannt, das sehe ich über den serial Monitor. Den Receiver habe ich über GPIO 16 und 17 an PA2 und PA3 vom Hoverboard Mainboard (linkes Sensorboard) angeschlossen. Die Signale vom Transmitter kommen auch am Receiver an (serial Monitor) aber das Hoverboard reagiert nicht drauf und meldet auch keine Daten an den Receiver zurück, habe ich falsch verkabelt? 5V und GND für den Receiver nehm ich momentan noch über Micro USB von einer externen Stromquelle.
Moin das hört sich eigentlich alles so an wie es soll.
Ganz blöde Frage drückst du auch den Z Button beim Nunchuk? Damit wird der Motor erst aktiviert weiß gerade nicht genau ob Z oder C
Und piept das Hoverboard auch fröhlich wenn du den Empfänger ansteckst oder abziehst?
@@atc1441 Ja C und/oder Z Taste habe ich dazu gedrückt beim Stick bewegen. Das Hoverboard piept nicht beim an oder abstecken des ESP32. Hoverboard hatte ich vorher mit der Firmware von Niklas Fauth erfolgreich geflashed und jetzt deine drüber geflashed, vorher natürlich mit "make" compiliert. Könntest du mir die HEX vielleicht zur Verfügung stellen? Gerne per mail: vantanj (at) hotmail.de - Ich danke dir!
@@atc1441 Ich seh gerade dass du das ganze per Platform.io flashed, das probiere ich jetzt nochmal :)
Nice job but is it possible to run this on the esp8266?
Hi. Yes that is possible. Espnow is also available on the esp8266. But you need to change the code a bit
And the esp8266 does only have one serial port! So only one hoverboard can be connected
Thank for your response guess I'll be getting some esp32's
@@atc1441 one esp can connect 2 controllers connect the RX TX of two controllers together.
Hi unfortunately not. I tested it. On 3.3v system that doesnt work. On 5v it does work. You need to somehow split the signal.
And also the protocoll is sending data back to the esp so it would be irritated
Hi Aaron thanks lot for great vedio. I'm new in Robotics programming, I have installed vs2019 in my computer, need help to install platformio IDE and also need stm32 can work , I bought one doesn't work at all with stm32 cube programmer. Pls help me , I can pay you for your services 🙏
Hey you need vsc not vs2019 greetings
Aaron thank you so much for great tutorial.
I have some error during compiling.
arm-none-eabi-gcc: fatal error: no input files
compilation terminated.
arm-none-eabi-gcc: fatal error: no input files
compilation terminated.
arm-none-eabi-gcc: fatal error: no input files
compilation terminated.
Hi and thank you. Unfortunately that is no error i know. What sketch do you want to compile there ?
@@atc1441 i'm just trying to compile the platformio.ini fille. Thanks.
*** [.pio\build\control_usart2\src\comms.o] Error 1
*** [.pio\build\control_usart2\src\deadreckoner.o] Error 1
arm-none-eabi-gcc: fatal error: no input files
Warning! Cannot find a linker script for the required board! Firmware will be linked with a default linker script!
Ok. Please try then to copy the project folder to the C: HDD directly at the beginning. I had this problem also sometimes. If i understand it correctly. And some other persons here in the comments also.
can I see the wiring diagram?
Hi please look at the other comments. I dont have it but its written in the comments
COM[0]->begin(115200, SERIAL_8N1, 03, 01);
COM[1]->begin(115200, SERIAL_8N1, 27, 26); 27-rx 26-tx
COM[2]->begin(115200, SERIAL_8N1, 16, 17); 16 - rx 17-tx
correctly ?
Yes that is correct :)
@@atc1441 where do you use COM0 ?
Com 0 is for debug messages, it is connected to the usb port on the esp32