buzcarter / arduino-train-terminal-controller-2.0

A two-terminus track with a station midway, controlled with Arduino: auto-reverse employing IR proximity sensors.
0 stars 0 forks source link

Feature/sample speed and use average #4

Closed buzcarter closed 10 months ago

buzcarter commented 10 months ago

More stdOut, some "debouncing" (using sampled average for speed, within +/- 2V

Traveling    
Speed: 0% (0) forward
Speed: 18% (47) forward
Speed: 37% (95) forward
Speed: 56% (144) forward
Speed: 75% (192) forward
Speed: 94% (240) forward
Arrived at station Middle Station 1 (pin 16)
Stopped
Traveling
Arrived at station Terminus 1 (pin 14)
Stopped
Reversing direction
Speed: 94% (240) reverse
Traveling
Arrived at station Middle Station 1 (pin 16)
Stopped
Traveling
Arrived at station Terminus 2 (pin 15)
Stopped
Reversing direction
Speed: 94% (240) forward
Traveling
Arrived at station Middle Station 1 (pin 16)
Stopped
Traveling
Arrived at station Terminus 1 (pin 14)
Stopped
Reversing direction
Speed: 94% (240) reverse
Traveling