the left of center, the train’s speed slowly increases in one
direction. When the pot is rotated to the right of center, the
train slowly increases speed in the other direction. The green
LED’s brightness is proportional to the speed of the train. The
memory IC records the time and potentiometer setting and can
be read later to recreate the recorded movement pattern.
7. Mounting the PICAXE recording circuit in box with
a lid made out of Plexiglass.
When the switch is set to PLAY the previously recorded train
movements are played back, and the train runs with the same
behavior (speed, pauses and direction changes) as during the
recording run.
Dealing with sync errors
Because the recording and playback are based solely on time,
the movements during playback are not 100% consistent. A
number of factors can affect the precision of the playback:
a varying input voltage to the controller
dirt on the track
dirt on the wheels of the locomotive
the train’s motor and its lubricants warming up while in use
7
PICAXE circuit part 2 - 5
“When the switch is set to PLAY the
previously recorded train move-
ments are played back ...”
MRH-Jul 2014