hoverboard-firmware-hack-FOC
hoverboard-firmware-hack-FOC copied to clipboard
How to connect 2 boards (4 wheels) to use with RC?
Variant
PWM
Control type
FOC
Control mode
Voltage
Description
I want to build a 4 WD RC controlled cart, but not sure how to connect 2 motherboards. Is there a way to establish communication between two or use both as separate boards and just split RC receiver cables? In latter PWM1 and PWM2 pins of two board will be interconnected. Would it cause an issue? Is there an alternative method?
Also interested in this!
For more complex setups, it is usually better to add an ESP32 with its 3 hardware UARTs and controll the two motherboards via VARIANT_USART. I just noticed (and ordered) the new and cheap board S2 Mini: https://de.aliexpress.com/item/32831353752.html Will give you lots of new possibilities like the ESP32-Cam: https://de.aliexpress.com/item/1005001322358029.html
Spoji direktno komande od obe maticne ploce plavu sa plavom zelenu sa zelenom i crnu sa crnom. posalji PWM signal od RC na plavui zelenu i ako su ti tockovi istog precnika i rotacija ce biti ujednacena. Ja sam tako uradio i evo radi bez problema,
Google translate: "Connect directly the commands from both motherboards blue to blue green to green and black to black. send a PWM signal from RC to blue and green and if those points are of the same diameter, the rotation will be uniform. That's what I did and it works without problems"
So simply connect both hoverboards in parallel to the one pwm input :-)
I have this set up with a Teensy 4.0, a Teensy 3.x works too. Everything is connected via UART and it feels locked in to operate. On my setup PWM was too susceptible to interference, motors would spin up on their own.
The Teensy can also relay the UART feedback values to the radio via telemetry with FrSky S.bus and S.port libraries.