37 Siren

37 : Siren

Design renderSelect Project123456789ONSW2
  • Author: Alan Green
  • Description: Pretty patterns and a siren straight from the 1970s
  • GitHub repository
  • Clock: 12500 Hz

How it works

A long chain of D flip flops divides down the clock to produce a range of frequencies that are used for various purposes. Some of the higher frequencies are used to produce the tones. Lower frequencies are used to control the patterns of lights and to change the tones being sent to the speaker. An interesting part of the project is a counter that counts to 5 and resets to zero. This is used for one of the two patterns of lights, where the period of pattern is six.

How to test

Connect a speaker to the last digital output pin, the one which is also connected to the decimal point on the seven segment display. Switch 8 is used to select between two groups of patterns.

External hardware

For the audio output on pin 7, either use an audio amplifier or, if bravely connecting a speaker directly, place a resistor in series to limit the current.

IO

#InputOutput
0clocksegment a
1segment b
2segment c
3segment d
4segment e
5segment f
6segment g
7pattern_select