Raspberry Pi 4 Host custom hardware/software to:

  • Control the aspect of the semaphore signals.
  • Control the four 3-LED signals in the Parking Lot.
  • Control the Unicorn HAT display for fan status & signal aspect.
  • Control cooling fan for the Raspberry Pi 4 based on:
    • CPU temperature
    • CPU clock frequency
    • Push-button - Manual On/Off or Automatic
  • Control 4 LEDs to reflect traffic density:
    • To and from the Arduino (2).
    • To and from the Raspberry Pi (3A) & Laptop (4).


Raspberry Pi 4 stacked & 2 Unicorn HATs


Fully configured Raspberry Pi with Unicorn Header and two Unicorn HAT HDs. The Raspberry Pi will be mounted under the layout with the cable throw the base to the two Unicorns top. 64 3-pin connectors for PWM/servos can be seen across the front in 4 rows of 16. 60 of these outputs will be used to control the aspect of the semaphores on the layout. The fan to cool the Raspberry Pi CPU is plugged into the first connector on the bottom row. Along the right edge of the blue board are headers to bring out 16 GPIO pins as outputs to control 16 LEDs and 1 GPIO pin as input for the fan control button. See Adafruit 16-Channel PWM for details.

2 Unicorn displays with signal locations


The Unicorn displays are covered by a schematic of the track. The Unicorns' tri-color LEDs represent the 64 signals around the layout. The red/green does not blind well to make a yellow signal aspect (looks white w/green on left edge). At this time (Dec 2020) 10 of the dual-headed semaphore signals have been on back order for about 18 months. The display is needed to show the aspect of the missing signals.


In the lower left corner are the LEDs representing the CPU temperature (5 step vertical ladder), fan on/off, automatic/manual mode and CPU frequency (high, medium, low).