Skip to content

Commit 011ecc9

Browse files
authored
Add TODO for synchronized flashing lights.
1 parent c3752ed commit 011ecc9

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

TODO.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,17 @@ of the signal (but not what to display them).
3838
The signal then know how to display these infos.
3939

4040
We need a SignalTranslator class that translates e.g. DistanceInput into
41-
infos that the signals consume.
41+
infos that the signals consume.
42+
43+
## Synchronized Flashing
44+
Synchronized flashing of several signals that are in view of the train driver is
45+
important to reduce the risk of mistaking flashing lights for steady lights.
46+
Signals connected to the same Arduino will have synchronized flashing lights in current version.
47+
48+
Flashing lights between multiple Arduinos can be synchronized by running a wire between them.
49+
One Arduino is designated the controller and it emits the flash syncronization pulses.
50+
The other Arduinos will listen to these flash syncronization pulses and use them instead
51+
of the internal clock to decide when to turn a flashing light on or off.
52+
53+
For implementations using a layout control bus (such as CBUS) it would be possible to
54+
replace this wire with a message that controls the flashing lights.

0 commit comments

Comments
 (0)