Skip to content

Example: train with multiple trains / motors #96

Open
@laurensvalk

Description

@laurensvalk

Some trains are long and need multiple "engines". One way of doing that is to have multiple hubs, each driving one or two motors.

This can be done by one "leading" train and any number of "followers". They are mechanically coupled using magnets. This terminology just signifies which train is doing most of the logic.

The lead train connects to the remote, or could do things based on a color sensor, and so on. When it powers its own motor, it also broadcasts the power value so the "follower" hubs can apply the same power level to their own motors.

With recent firmware updates, this is very quick so there are pretty much no delays at all. Here is a screenshot of the current state of the program. The left +/- keys instantly apply 50% or -50% power. The right +/- keys can be used to gradually change the power level.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions