hoverboard-firmware-hack-FOC icon indicating copy to clipboard operation
hoverboard-firmware-hack-FOC copied to clipboard

How to connect 2 boards (4 wheels) to use with RC?

Open lensdigital opened this issue 2 years ago • 6 comments

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?

lensdigital avatar Jun 08 '22 13:06 lensdigital

Also interested in this!

ratdoux avatar Jun 08 '22 22:06 ratdoux

hi,

It should work the same as this for PWM. So splitting the signals and common ground.

Candas1 avatar Jun 09 '22 11:06 Candas1

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

RoboDurden avatar Jun 23 '22 09:06 RoboDurden

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,

BaneBeograd avatar Jul 24 '22 04:07 BaneBeograd

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

RoboDurden avatar Jul 24 '22 09:07 RoboDurden

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.

CarlDavey avatar Aug 10 '22 21:08 CarlDavey