Kommandos für den seriellen Monitor

Voraussetzung für die Nutzung des seriellen Monitors ist das #define USE_SERIAL_INPUT = 1. Der serielle Monitor in der Arduino-IDE muss auf 9600 Baud eingestellt sein.

Im echten Betrieb auf der Anlage sollten alle Ein- und Ausgaben über den seriellen Monitor abgeschaltet werden; es ist schließlich i.d.R. kein PC am Nano über USB angeschlossen. Für Testzwecke und beim Einrichten der Drehscheibe ist der serielle Monitor jedoch sehr hilfreich, insbesondere für Debugging.

Folgende Kommandos im seriellen Monitor können benutzt werden (wo Zahlenwerte stehen, können auch andere Werte verwendet werden):

Befehl Funktion
m-1000 Move 1000 micro steps counter clock wise CCW
m+1000 Move 1000 micro steps clock wise CW
p+123 Move to step position +123
s5000 Set the speed to 5000
? Print position
w+2 Write port position 2 for the positive turning direction (w-2 write the neg. direction)
ce Clear EEPROM and restart
+ Next Port
- Prior Port
+3 3 Ports vor
-2 2 Ports zurück
7 Move to Port 7
r Reverse turntable CW
o Sound On/Off
e Print EEPROM
h Anzeige Befehle
dnnnx Absetzen eines internen DCC-Befehls DCC Adresse nnn, Direction x
f Rotate continuously CW (DCC-Simulation)
g Rotate continuously CCW (DCC-Simulation)
t Stopp (DCC-Simulation)
u U-Turn in DCC-Richtung (DCC-Simulation)
y Step Port + (DCC-Simulation)
x Step Port - (DCC-Simulation)
v DCC-Richtung CW
b DCC-Richtung CCW (DCC-Simulation)

Einige Befehle sind nur möglich bei Aktivierung von USE_VERBOSE = 1. Die letzten Befehle sind nur verfügbar, wenn USE_DCC = 1 aktiviert ist.