Open HRAFRH opened 1 month ago
how is it possible to enable both of them?
I’ve enabled both remote_uart
and remote_uartbus
one at a time, but I still haven’t figured it out yet.
ok, what did you enabled on the esp
please use your brain.
defines_2-1-4.h
:#ifdef HAS_USART0 #define USART0_TX PB6 #define USART0_RX PB7 //#define USART0_MASTERSLAVE // uncomment if this usart is used for master-slave communication #define USART0_REMOTE // uncomment if this usart is used for optional remote control #endif // GD32F130 USART1 GD32F130 TX/RX: (PA14/PA15)AF1 , (PA2,PA3)AF1 , (PA8/PB0)AlternateFunction4 #ifdef HAS_USART1 #define USART1_TX PA2 #define USART1_RX PA3 //#define USART1_MASTERSLAVE // uncomment if this usart is used for master-slave communication #define USART1_REMOTE // uncomment if this usart is used for optional remote control #endif
ok, what did you enabled on the esp
in the ESP i can only find remote_uartbus, i'm using TestSpeed.ino
#define ESP32 // comment out if using Arduino
// #define HOVERBOARD_MM32 // uncomment if a MM32 Hoverboard firmware is connected (and no GD32 or STM32)
#define REMOTE_UARTBUS // one serial bus to control them all :-)
#define SEND_MILLIS 100 // send commands to hoverboard every SEND_MILLIS millisesonds
this is all i can get in the serial monitor so far :
00 00 00 00 80 00 00 04 00 00 00 00 00 00 00 00 00 F8 E0 E8 20 80 00 80 20 80 00 00 00 00 01 00 80 00 00 00 00 00 00 00 00 0 00 00 0
and the motor still not moving :(, please @RoboDurden @I-hate-2FA any guidance with the code
Sorry, i will not help you anymore.
please use your brain.
defines_2-1-4.h
:#ifdef HAS_USART0 #define USART0_TX PB6 #define USART0_RX PB7 //#define USART0_MASTERSLAVE // uncomment if this usart is used for master-slave communication #define USART0_REMOTE // uncomment if this usart is used for optional remote control #endif // GD32F130 USART1 GD32F130 TX/RX: (PA14/PA15)AF1 , (PA2,PA3)AF1 , (PA8/PB0)AlternateFunction4 #ifdef HAS_USART1 #define USART1_TX PA2 #define USART1_RX PA3 //#define USART1_MASTERSLAVE // uncomment if this usart is used for master-slave communication #define USART1_REMOTE // uncomment if this usart is used for optional remote control #endif
please i really don't know what to do!
there is 5 pin that must be set for the board to work it is the 3 hall pin and these 2
please use your brain.
defines_2-1-4.h
:#ifdef HAS_USART0 #define USART0_TX PB6 #define USART0_RX PB7 //#define USART0_MASTERSLAVE // uncomment if this usart is used for master-slave communication #define USART0_REMOTE // uncomment if this usart is used for optional remote control #endif // GD32F130 USART1 GD32F130 TX/RX: (PA14/PA15)AF1 , (PA2,PA3)AF1 , (PA8/PB0)AlternateFunction4 #ifdef HAS_USART1 #define USART1_TX PA2 #define USART1_RX PA3 //#define USART1_MASTERSLAVE // uncomment if this usart is used for master-slave communication #define USART1_REMOTE // uncomment if this usart is used for optional remote control #endif
did you set it correctly already
and need to use uartbus mode on both, with correct slave id set
![2024-06-02 21 41](https://github.com/RoboDurden/Hoverboard-Firmware-Hack-Gen2.x/assets/125764830/d41efa82-adf7-4225-94d8-e5968e69acfb![2024-06-02 21 41](https://github.com/RoboDurden/Hoverboard-Firmware-Hack-Gen2.x/assets/125764830/a68274f3-af21-4212-92d6-c591735bce27)
I tried a lot but i need help on detecting the correct pin for only board i got (i think it's a master) that i want to control it using ESP32, but board is not listed in the Wiki could you please help me !!