Difference between revisions of "Traffic light simulator"

From Hackerspace ACKspace
Jump to: navigation, search
(added some notes)
(cleaned page)
Line 28: Line 28:
 
         |            |34
 
         |            |34
 
         |    25  52 |
 
         |    25  52 |
Bottom-right example:
+
</pre>
Main traffic lights use a Z-shape connection so that with 90 degrees turn, all combinations are used
+
Main traffic lights use a Z-shape connection so that with 90 degrees turn, all combinations are used (bottom right: 1&#8596;2&#8596;3&#8596;4)
1 2
+
{| class="wikitable"
o-o
+
!light
/
+
!top
o-o
+
!right
3 4
+
!left
21: Green-A
+
!bottom
12: Orange-A
+
|-
23: Red-A
+
|Green.A
32: Orange-B
+
|6&#8594;7
34: Red-B
+
|1&#8594;3
43: Green-B
+
|7&#8594;5
 +
|2&#8594;1
 +
|-
 +
|Orange.A
 +
|7&#8594;6
 +
|3&#8594;1
 +
|5&#8594;7
 +
|1&#8594;2
 +
|-
 +
|Red.A
 +
|6&#8594;5
 +
|1&#8594;4
 +
|7&#8594;4
 +
|2&#8594;3
 +
|-
 +
|Orange.B
 +
|5&#8594;6
 +
|4&#8594;1
 +
|4&#8594;7
 +
|3&#8594;2
 +
|-
 +
|Red.B
 +
|5&#8594;4
 +
|4&#8594;2
 +
|4&#8594;6
 +
|3&#8594;4
 +
|-
 +
|Green.B
 +
|4&#8594;5
 +
|2&#8594;4
 +
|6&#8594;4
 +
|4&#8594;3
 +
|}
  
Pedestrian light uses L-shaped pinout so that opposing lights carry the same signal
+
Pedestrian light uses L-shaped pinout so that opposing lights carry the same signal. All 4 will draw a square so to speak, if placed on the intersection (bottom right: 6&#8596;2&#8596;7).
1 6
+
One color will follow the L shape, i.e. red is clockwise, green is counter-clockwise around the intersection 'square'.
o o
 
  |
 
o-o
 
7 2
 
16: Red-A
 
62: Red-B
 
27: Red-C
 
71: Red-D
 
61: Green-A
 
26: Green-B
 
72: Green-C
 
17: Green-D
 
  
rest:
+
Arrow indicates red light, polarity reversed will make it green.
35,53</pre>
+
{| class="wikitable"
 +
!light
 +
!top
 +
!left
 +
!right
 +
!bottom
 +
|-
 +
|Red
 +
|1&#8594;6
 +
|7&#8594;1
 +
|6&#8594;2
 +
|2&#8594;7
 +
|-
 +
|Green
 +
|6&#8594;1
 +
|7&#8594;1
 +
|2&#8594;6
 +
|7&#8594;2
 +
|}
 +
 
 +
Remaining connections: 3&#8594;5 and 5&#8594;3, can be used for different layouts
  
 
:Normal traffic lamp diameter is 210mm, small (bicycle) light is 80mm, big light is 300mm.
 
:Normal traffic lamp diameter is 210mm, small (bicycle) light is 80mm, big light is 300mm.

Revision as of 17:19, 13 March 2018

Project: Traffic light simulator
Featured: No
State Planned
Members Xopr
GitHub No GitHub project defined. Add your project here.
Description School example of implementing traffic lights
Picture
Traffic light simulator Picture.jpg

Some brain dump on charlieplexing 8(x3) traffic lights, 4(x2) pedestrian lights, 8 sensors. each number is a pin

        | 36  63     |
      45|            |
      67|            |
        |            |
      16|            |16  12
      72|            |72  34
--------'            '--------

                            37

51                          73

15

--------.            .--------
  45  16|            |16
  67  72|            |72
        |            |
        |            |12
        |            |34
        |     25  52 |

Main traffic lights use a Z-shape connection so that with 90 degrees turn, all combinations are used (bottom right: 1↔2↔3↔4)

light top right left bottom
Green.A 6→7 1→3 7→5 2→1
Orange.A 7→6 3→1 5→7 1→2
Red.A 6→5 1→4 7→4 2→3
Orange.B 5→6 4→1 4→7 3→2
Red.B 5→4 4→2 4→6 3→4
Green.B 4→5 2→4 6→4 4→3

Pedestrian light uses L-shaped pinout so that opposing lights carry the same signal. All 4 will draw a square so to speak, if placed on the intersection (bottom right: 6↔2↔7). One color will follow the L shape, i.e. red is clockwise, green is counter-clockwise around the intersection 'square'.

Arrow indicates red light, polarity reversed will make it green.

light top left right bottom
Red 1→6 7→1 6→2 2→7
Green 6→1 7→1 2→6 7→2

Remaining connections: 3→5 and 5→3, can be used for different layouts

Normal traffic lamp diameter is 210mm, small (bicycle) light is 80mm, big light is 300mm.
Die-cast metal cars are between 1:68 and 1:58 scale; assuming 1:64 scale
  • LED 3mm (3.8mm) h=5.3+0.8mm) would be 192mm(243mm) × 422mm
  • LED 5mm (5.8mm) h=8.7+1mm) would be 320mm(371mm) × 621mm

According to an article on 3 March 2016, yellow light times are increased to:

  • @80km/h → 5s
  • @70km/h → 4.5s
  • @50km/h → 3.5s

Some Traffic light brands:

  • Futura
  • Imtech BV (formerly (Groenpol) Peek) (Dutch standaard(?))
  • Alustar
  • Econolite (American vintage signals)
  • VIALIS Nederland Haarlem 'Classic'
  • Stoye

Some traffic automation brands:

  • Ko Hartog Verkeerstechniek B.V.
  • Siemens Nederland NV
  • Swarco Nederland BV
  • VIALIS

Straight intersection: arrange left, straight + right Uneven intersection: arrange left + straight, right