Skip to content

Control program for SBrick or PfxBrick powered trains on Raspberry Pi

License

Notifications You must be signed in to change notification settings

BrickOzp/TrainController

Repository files navigation

Train Controller

This is an application designed for controlling LEGO trains, equipped with SBrick or PfxBrick, from a Raspberry pi.

Requirements

  • Python 2.7
  • BlueZ
  • bluepy

BlueZ

BlueZ is the official Bluetooth stack on Linux.

bluepy

bluepy is a Python module which provides an interface to Bluetooth LE on Linux.
Ref: https://github.com/IanHarvey/bluepy

$ pip install bluepy

Usage

$ python traincontrol.py

How to find the bluetooth address

$ sudo hcitool lescan

About

Control program for SBrick or PfxBrick powered trains on Raspberry Pi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages