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

Комментарии • 121

  • @ahmadhussainwebshare1001
    @ahmadhussainwebshare1001 2 года назад +1

    Thank you so much Aaron Christophel , it's working now . I changed the main board. It's working. You are super mam .Great video.

  • @ToniLopezMM
    @ToniLopezMM 4 года назад +2

    man you are the one did right thing. use esp and the original controller from e scooter

  • @BCreativeDIY
    @BCreativeDIY 3 года назад

    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.

  • @EricRohlfs
    @EricRohlfs 4 года назад +1

    This video is the missing link! Thank you. Very well done. I'm excited to play with PlatformIO.

  • @jonmat1632
    @jonmat1632 5 лет назад +3

    Thank you for taking the time to do the tutorial

    • @jonmat1632
      @jonmat1632 5 лет назад

      Hi im getting a error on visual studio code when i build it. i get control_usart2 FAILED. how can i fix the problem?

    • @jonmat1632
      @jonmat1632 5 лет назад

      i got it work by add the folder into C folder like you said in a old comment. thank you

    • @jonmat1632
      @jonmat1632 5 лет назад

      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

  • @truthseeker5829
    @truthseeker5829 2 года назад +3

    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.

  • @adrianrevolotaipe3855
    @adrianrevolotaipe3855 3 года назад

    You are amazing, thanks to share this information vales oro¡¡¡¡¡

  • @ram-projects6545
    @ram-projects6545 Год назад

    Cool project, very well explained! I'll have to take a look at ESP Now, it sounds interesting.
    Viele Grüße,
    Martin

  • @brooklyn_uav4589
    @brooklyn_uav4589 3 года назад

    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.

  •  6 месяцев назад

    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

  • @KomBinator_Yt
    @KomBinator_Yt Год назад +1

    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

  • @McKey_YT
    @McKey_YT 2 года назад

    error "cannot convert 'esp_interface_t' to 'wifi_interface_t'
    " occurs during compilation, how can this be solved?

  • @bratan007
    @bratan007 2 года назад

    I'm curious how did you connected two hoverboard controllers together for 4WD ?

  • @WagonLoads
    @WagonLoads 3 месяца назад

    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

  • @mathiaschristensen5708
    @mathiaschristensen5708 Год назад

    Can anyone explain to me how the wiring for the different components are done? Especially the "Receiver" ESP connected to the main board.

  • @ivanurban2383
    @ivanurban2383 9 месяцев назад

    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?

  • @Fender90
    @Fender90 5 лет назад

    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?

    • @atc1441
      @atc1441  5 лет назад +2

      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.

    • @Fender90
      @Fender90 5 лет назад

      @@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!

    • @atc1441
      @atc1441  5 лет назад

      It is working fine on GD and on STM boards for me
      See in this discussion github.com/bipropellant/bipropellant-hoverboard-firmware/issues/57

  • @KomBinator_Yt
    @KomBinator_Yt Год назад

    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.

  • @mohammadmirzaie2209
    @mohammadmirzaie2209 Год назад

    hello and thanks about that- Why do bldc motor stop frequently?

  • @MKRCLabs
    @MKRCLabs 3 года назад

    I lean a lot from your channel

    • @atc1441
      @atc1441  3 года назад

      Thank you for the feedback

  • @CasperRound
    @CasperRound 3 года назад

    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

  • @reinierpechler454
    @reinierpechler454 Год назад

    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 ?

    • @atc1441
      @atc1441  Год назад

      Hey.
      You can use this one github.com/EFeru/hoverboard-firmware-hack-FOC

  • @ronnieverwijmeren7829
    @ronnieverwijmeren7829 Год назад

    which wires use from hoverboard to esp32 and which pins use

  • @David-iq4vy
    @David-iq4vy 2 года назад

    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

  • @ahmadhussainwebshare1001
    @ahmadhussainwebshare1001 2 года назад

    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.

    • @atc1441
      @atc1441  2 года назад +1

      Hey. Sorry its hard to help on that. It could be that the stm needs to be unlocked first.

    • @ahmadhussainwebshare1001
      @ahmadhussainwebshare1001 2 года назад +1

      @@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 .

  • @ashwinar4753
    @ashwinar4753 4 года назад

    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.

  • @GatoRockYou
    @GatoRockYou Год назад

    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 >.

  • @Biblogie
    @Biblogie 5 лет назад

    Thanks so much !!

  • @aleksag
    @aleksag 5 лет назад

    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 ?

    • @atc1441
      @atc1441  5 лет назад +1

      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.

    • @aleksag
      @aleksag 5 лет назад +1

      @@atc1441 Awesome, tanks so much for all the info and the effort to make it understandable!

    • @aleksag
      @aleksag 5 лет назад

      @@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?

    • @atc1441
      @atc1441  5 лет назад

      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

  • @itsallrhett8061
    @itsallrhett8061 3 года назад

    hey great video! any chance you can update this dead link to the firmware?
    edit: link worked in Edge only had issues with Chrome

  • @AndresLagunadotCom
    @AndresLagunadotCom 2 года назад

    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!

    • @atc1441
      @atc1441  2 года назад +2

      Hey, sounds about right yes

    • @AndresLagunadotCom
      @AndresLagunadotCom 2 года назад

      @@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?

  • @Biblogie
    @Biblogie 5 лет назад

    how do you actually connect the arduino to the hoverboard ? with the tx rx of the right sensor ?

    • @atc1441
      @atc1441  5 лет назад +1

      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.

    • @Biblogie
      @Biblogie 5 лет назад

      @@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

    • @atc1441
      @atc1441  5 лет назад

      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

    • @Biblogie
      @Biblogie 5 лет назад +1

      @@atc1441 It's work to put it in C !! thanks

    • @Biblogie
      @Biblogie 5 лет назад

      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 ?

  • @ahmadhussainwebshare1001
    @ahmadhussainwebshare1001 2 года назад

    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.

  • @ProjektHeld
    @ProjektHeld 4 года назад

    Great video! You got a new subscriber! Don´t miss my project.

  • @Biblogie
    @Biblogie 5 лет назад

    so there is no modification to do in the bepropellant firmware what so ever ?

    • @atc1441
      @atc1441  5 лет назад +2

      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.

    • @Biblogie
      @Biblogie 5 лет назад +1

      @@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

    • @atc1441
      @atc1441  5 лет назад

      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. :)

  • @harishr8327
    @harishr8327 2 года назад

    hi, kindly share the the Firmware Paket pls. the like u shared is not working so. pls upload the link again

    • @atc1441
      @atc1441  2 года назад

      Hey. The link still works fine. Just checked it

  • @MarcoAsTeixeira
    @MarcoAsTeixeira 4 года назад

    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

    • @atc1441
      @atc1441  4 года назад

      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

  • @brois2956
    @brois2956 2 года назад

    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

  • @ahmadhussainwebshare1001
    @ahmadhussainwebshare1001 2 года назад

    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.

  • @don-jp2rs
    @don-jp2rs 4 года назад

    Hi, thanks for sharing all this content. is there a video on how you connect all the components in the aluminium chasiss ?

    • @atc1441
      @atc1441  4 года назад

      Hey.i already answered in some of the comments

    • @don-jp2rs
      @don-jp2rs 4 года назад

      @@atc1441 thanks for the rely. would u be interested to build a delivery robot ?

    • @atc1441
      @atc1441  4 года назад

      I am pretty much done with this project

    • @einargoksyrasen7636
      @einargoksyrasen7636 3 года назад +1

      @@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?

  • @raddicon
    @raddicon 5 лет назад

    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!

    • @atc1441
      @atc1441  5 лет назад +1

      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 ?

    • @raddicon
      @raddicon 5 лет назад

      @@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.

    • @atc1441
      @atc1441  5 лет назад +1

      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?

    • @raddicon
      @raddicon 5 лет назад

      @@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!

    • @raddicon
      @raddicon 5 лет назад

      @@atc1441 Ich seh gerade dass du das ganze per Platform.io flashed, das probiere ich jetzt nochmal :)

  • @brooklyn_uav4589
    @brooklyn_uav4589 5 лет назад

    Nice job but is it possible to run this on the esp8266?

    • @atc1441
      @atc1441  5 лет назад

      Hi. Yes that is possible. Espnow is also available on the esp8266. But you need to change the code a bit

    • @atc1441
      @atc1441  5 лет назад

      And the esp8266 does only have one serial port! So only one hoverboard can be connected

    • @brooklyn_uav4589
      @brooklyn_uav4589 5 лет назад +1

      Thank for your response guess I'll be getting some esp32's

    • @Verial1966
      @Verial1966 5 лет назад

      @@atc1441 one esp can connect 2 controllers connect the RX TX of two controllers together.

    • @atc1441
      @atc1441  5 лет назад

      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

  • @ahmadhussainwebshare1001
    @ahmadhussainwebshare1001 2 года назад

    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 🙏

    • @atc1441
      @atc1441  2 года назад +1

      Hey you need vsc not vs2019 greetings

  • @juanmakabayan6577
    @juanmakabayan6577 5 лет назад

    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.

    • @atc1441
      @atc1441  5 лет назад

      Hi and thank you. Unfortunately that is no error i know. What sketch do you want to compile there ?

    • @juanmakabayan6577
      @juanmakabayan6577 5 лет назад

      @@atc1441 i'm just trying to compile the platformio.ini fille. Thanks.

    • @juanmakabayan6577
      @juanmakabayan6577 5 лет назад

      *** [.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

    • @juanmakabayan6577
      @juanmakabayan6577 5 лет назад

      Warning! Cannot find a linker script for the required board! Firmware will be linked with a default linker script!

    • @atc1441
      @atc1441  5 лет назад +1

      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.

  • @Verial1966
    @Verial1966 5 лет назад

    can I see the wiring diagram?

    • @atc1441
      @atc1441  5 лет назад

      Hi please look at the other comments. I dont have it but its written in the comments

    • @Verial1966
      @Verial1966 5 лет назад +2

      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 ?

    • @atc1441
      @atc1441  5 лет назад

      Yes that is correct :)

    • @Verial1966
      @Verial1966 5 лет назад

      @@atc1441 where do you use COM0 ?

    • @atc1441
      @atc1441  5 лет назад

      Com 0 is for debug messages, it is connected to the usb port on the esp32