Automatic Toy-Traffic-lightsAt some point younger boys become very interested in everything concerning traffic and means of transportation. Their attention is by far restricted to the vehicles, but includes anything related to these, such as rails, flashlights and the common traffic light seen at urban crossroads. Making an automatic toy-version of the latter is not as simple as first thought, but a digital solution to the problem is rather obvious and here a simple dual input EXOR-gate is put together from 4 dual input NAND-gates to provide for the 3 interdependent outputs. In order to acquire some suitable input-signals I resorted to an old article on CMOS-triggers. One of these was designed to generate a kind of triangular waveform at a very low frequency and the other detected this shape at some appropriate points on its slope. The resulting two digital signals posses the wanted phase-shift and, fed to the EXOR-gate, provide the able outputs. ![]() As is obvious from the scheme, the actual construction became a hybrid between CMOS and TTL-logics. The reason for this is the high impedance of the CMOS-gates, whereas the TTL-gates provide the current large enough to drive the LEDs. Since the theoretical considerations for the CMOS-triggers were originally based on a 5 V. powersupply, the introduction of a TTL-device did not, in that respect, change anything. Concerning the "calculations", I simply imported the resistance values from my article on CMOS-triggers and made sure, that the oscillator had a hysteresis bigger than the one found in the curveshaper. Also I had to take precautions to outrun the "leaky" electrolytic capacitors -- in fact using a rather smaller charge/discharge-resistance. The resulting running-speed became somewhat faster than considered realistic. This was expected, so the circuit has got a couple of points for the attachment of an additional, much bigger capacitor. Proposals for improvements of the design:
|