Lokkontroller
|
Projektbeschreibung: Steuerung von Lokomotiven über einen Touchscreen, welcher als Shield auf einen Arduino 2560 aufgesteckt ist. Komponenten:
Als Touchscreen habe ich diesen hier verwendet: http://wiki.seeedstudio.com/TFT_Touch_Shield_V1.0/ In diesem Projekt beschränke ich mich auf das einfachere Motorola I
Protokoll, da das alte Interface 6050 nur dieses Protokoll versteht. Hier ein Auszug daraus: When controlling locomotives, the two bytes are: 1) the command for speed and function in the first byte, and 2) the loco's address in the second byte. Loco speed can be any one of the 15 possible speed steps available, and the loco's address can be any one of the addresses from 1 to 80. For example: you want loco #26 to travel at a speed of 5. The command would be:
Ein Kommando an eine Lok in Motorola I - Format besteht demnach aus 2 Bytes: Byte 1: Geschwindigkeit der Lok [0..14] + Funktion [ON = +16;
OFF = +0] um der Lok 26 die Geschwindigkeit 5 zu geben, müssen demnach
die beiden Bytes "5"; "26" nacheinander gesendet werden
|