-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Esp32 DevKit v1 - Autodetect.ino and hoverboard 2.1.1 master Uart.bin #74
Comments
If you have a 2.1.1 board you do not need autodetect. If you have an EspressLRS compatible rc receiver check this #26 Otherwise you will need an Arduino/Esp to receive pwm or ppm input. |
your baud rate is probably wrong it WOULD be possible to support pwm input directly, if the mcu have a pin with timer input, but we will NOT do it, you can add it your self all the code is open source |
He indeed go a 2.1.1 board. |
oh he using master uart with autodetect on esp |
@Dim4ik1992 this .ino should be what you want: https://github.com/RoboDurden/Hoverboard-Firmware-Hack-Gen2.x-GD32/tree/main/Arduino%20Examples/Esp32_PPM |
you can ask @reed-dan to add pwm/ppm support to his newer and better esp control software |
this is what I got but the engine is standing still |
Hall sensors are okay, I see iOdom change value when you rotate motor. Please test the remoteDummy binary. Maybe the 2.1.1 binaries are too old. |
video_2024-03-12_19-58-40.mp4 |
Sorry I will answer tomorrow. |
I installed Keil but I don't know how to compile 2.1.1 myself. the default is // LAYOUT_2_X is used in defines.h |
there are a bunch of boards on the service, different on different chips, both new and old, but no one knows how to flash them, this is a real breakthrough thanks to you) |
I currently support serial commands and adc potentiometer, it is designed so you can add any input method you would like though. I am working on wifi ap/tac with a webbased controller at this time hopefully it will be complete in the next few days. PWM is definately on my list just haven't gotten there yet. Please proceed with caution as I haven't tested everything out. https://github.com/reed-dan/hoverboard_hack_esp32_manualspeed/blob/beta/ManualSpeed_Improved.ino |
Select gd32f130 as target in the top left drop down list of Keil ide. And change #define LAYOUT 13 Then f7 |
@Dim4ik1992 if you support the Russian war against Ukraine, please do NOT ask me to support you. |
I don't support war!!! let's not talk about politics |
https://youtu.be/CCCWToCRJsM |
Now the three led flash according to motor rotation. Activate remoteDummy here https://github.com/RoboDurden/Hoverboard-Firmware-Hack-Gen2.x-GD32/blob/0cfd2716866bae62987bb81a4427e7b3fb6dde70/HoverBoardGigaDevice/Inc/config.h#L43 You will not have serial output anymore but motor should spin without esp32. |
video_2024-03-13_15-34-28.mp4 |
Please post screenshots and code and a detailed description of what you have done or changed. |
Now in this mode the wheel is spinning```
|
when it was like this it displayed debugging in the UART but the wheel stood still //#define REMOTE_DUMMY |
Okay, so the esp32 communication is the problem. If you then still get log data from hoverboard this is proof that hoverboard has successfully received commands from esp32. |
I don't understand why when I'm in .\Inc\config.h and now he shows a cross on every library maybe there was an error in this, due to incorrect characters in the file path, moved the project to C:\Hoverboard-Firmware-Hack-Gen2.x-GD32-\HoverBoardGigaDevice |
please check wiki pages first |
if you do not want to remove the bluetooth module then use the comms masterslave connector like i sugested |
This firmware here is a fork of a fork! If you have a 2.1.1 board which is the original 2.0 in the original fork, you might be able to flash the original firmware and get the Bluetooth module working . But not many of the new layouts have a Bluetooth module and they might connect and work differently. If the Bluetooth module indeed also connects to PB6 pb7, and interferes with esp32 communication, |
@hiliving , try autoflash.bat And read the wiki pages. |
on new board the bluetooth module is another microcontroller designed for bluetooth speaker and communicate through 1wire or softwsre serial, but you need the special app on android to generate the serial command because it identify as a speaker so it is not very easy to use, better use esp32 as a bluetooth module which would soon be supported by reed |
Sorry @AILIFE4798 , I should empty the read.me to force people go to wiki. Will do that when i am back from my current outdoor trip. |
thx very |
Solved it, so Excellent project ,thx very much. |
You need to use uartbus.bin |
No you can use Master_RemoteUart But you have to comment I have updated the |
just use the uartbus firmware on hoverboard and leave esp code untouched |
Yes, old RemoteUart protocol was broken because of MM32 additions.
|
Thank you, it works well ! |
I'm using Esp32 DevKit v1 -
Autodetect.ino
and hoverboard 2.1.1 master Uart.bin
but when connected to UART I learn a bunch
z pͫz pͫz Jͫz (z pͫz pͫz Jͫz (z pͫz pͫz Jͫz (
Is it possible to connect PWM with these boards? I'm interested in the possibility of controlling forward backward directly from the RC remote control
The text was updated successfully, but these errors were encountered: