r/pybricks • u/AdministrativeBit385 • 3d ago
Connecting one remote to two separate hubs for two train control
Hi all,
I'm new around here and need some advice.
For starters is there a discord out there where I can post the following questions?
So scenario 1
I would like to control two separate trains with one remote.
Each train would have its own hub and train motor. Is that possible? Like side a of the remote controls one train hub (motor and light just on) and side b would control a separate train hub ( and motor).
Any guides on this would be appreciated.
I'm seeing a GitHub repo for some pretty fancy stuff https://github.com/and-ampersand-and/PyBricks-Train-Motor-Control-Script
Scenario 2
To make things more complex for another set of trains - I'm interested in the broadcasting functionality described in the repo as one of my trains has two hubs with a motor each.
What I would like to do is have that train controlled on side a of the remote and have the first hub broadcast to the second. And have side b of the remote control a third separate hub with an L motor.
2
u/jormono 3d ago
I've not tried anything with more than one hub personally, but I think the solution here would be to pair the controller to one hub, then pair the hub to the second hub and just relay the commands.