Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example: train with multiple trains / motors #96

Open
laurensvalk opened this issue Feb 2, 2024 · 0 comments
Open

Example: train with multiple trains / motors #96

laurensvalk opened this issue Feb 2, 2024 · 0 comments

Comments

@laurensvalk
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant