Skip to content

An MQTT based solution for train control using a Raspberry Pi as the broker and access point. ESP devices then used as clients for the train, on track control and train controller itself.

Notifications You must be signed in to change notification settings

geohwk/TrainControl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TrainControl

A Train control system using the mosquitto MQTT broker running on a raspberry pi and MQTT clients running on ESP-8266 devices. This can be controlled by a seperate MQTT client running on a mobile device or a dedicated controller client.

This repo includes the files for the custom PCBs for the controller and train client: IMG_20250722_220610963~2

Each train on a layout will take an ESP-12F device running the train client with the accompanying PCB and electronics with a power source: IMG_20250722_220949580~2 IMG_20250722_221028727~2

The controller client acts as a manager for new clients. They register their designations to the controller client which will then be able to switch through all registered clients to control their speed, direction and lights. IMG_20250722_220438927 IMG_20250722_221146620 IMG_20250722_221153048

About

An MQTT based solution for train control using a Raspberry Pi as the broker and access point. ESP devices then used as clients for the train, on track control and train controller itself.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages