Crosswalk Pedestrian Signal and Homemade Controller

Not rated 21,953

Circuit Image

The signal consists of three wires: common, "walk," and "don't walk." This document outlines the operation of the unit's countdown feature. The information and examples provided here are applicable to other models and brands of signals. The signal was shipped with a two-page sheet detailing the use of the countdown timer. It is possible to download a scan of the document, but a summary of the details is provided here. The signal is designed to be a drop-in replacement for non-countdown signals. Instead of receiving timing information, such as the duration of the countdown or a separate signal to trigger it, the signal incorporates a microcontroller that automatically times the length of the "walk" phase and generates an appropriately-lengthed countdown. This requires careful control of the signal, as the length of each "walk" phase must remain constant; otherwise, the countdown will become misaligned. For instance, to display a 60-second countdown, the "walk" phase must consistently last one minute. Manual control using a hand switch is not compatible; a timer that provides consistent "walk" and "don't walk" phases is necessary. Upon powering up, the internal microcontroller measures the "walk" phase duration. It takes two walk/don't walk cycles for the unit to adapt and measure the time intervals; the countdown activates only after the second cycle. The microcontroller that operates the display digits and times the phases is powered whenever either the hand or man indicator is illuminated. However, if power is completely removed from the display, the microcontroller loses the timing details it had measured. Therefore, each time the pedestrian light is turned off and back on, the timing routine must be repeated. While this may be inconvenient, it is reasonable because using non-volatile memory for a signal that typically operates 24/7 at a street corner would be impractical. A timer circuit that meets these requirements can be constructed using a 555 timer IC, a relay, and the necessary supporting components. No microcontroller is required, although one may be implemented later in the article. The schematic includes a 555 timer in pulse generation (astable) mode, with a large capacitor to create 30-120 second pulses that drive a relay, which switches between "walk" and "don't walk." To achieve an interval of 15 seconds for "walk" and 30 seconds for "don't walk," use: C1 = 220 µF, R2 = 100kΩ, R3 = 100kΩ. Adjustments to the exact values are encouraged. Additionally, this circuit utilizes AC mains power and must be housed in a secure and safe enclosure. Standard safety precautions should be observed, and the project should not be attempted if there is discomfort with the associated risks. Liability is not assumed for any issues arising from this project. The supply voltage (Vcc) for this circuit is flexible, ranging from 5-12 V. The voltage should match the coil voltage (5, 6, 9, or 12V are common) of the selected relay. To enhance functionality and features, a microcontroller-based controller using an Atmel AVR ATtiny44 is proposed for future implementation.

The described signal system is a pedestrian traffic control device that integrates a countdown feature for improved user understanding of the timing for crossing. The three wires—common, "walk," and "don't walk"—serve distinct functions essential for the operation of the signal. The microcontroller embedded within the unit is critical for its autonomous operation, allowing it to measure and adapt to the timing of the "walk" phase without requiring external timing signals. This self-contained functionality ensures that the countdown display remains synchronized with pedestrian crossing intervals, which enhances safety and usability.

The timing mechanism relies on the stability of the "walk" phase duration, necessitating a consistent input from a timer circuit. The implementation of a 555 timer in astable mode offers a straightforward solution, allowing for adjustable pulse widths that can be tailored to meet specific timing requirements. The choice of components, particularly the capacitor and resistors, directly influences the timing intervals for the "walk" and "don't walk" signals. The use of a relay to switch between these states is a common practice in traffic signal design, ensuring reliable operation under varying conditions.

Safety considerations are paramount due to the involvement of AC mains power. Proper enclosures and adherence to electrical safety standards are essential to prevent hazards. The flexibility in supply voltage allows for compatibility with a wide range of relay types, facilitating the selection of components that best suit the application.

As the design evolves to incorporate a microcontroller like the Atmel AVR ATtiny44, additional features such as programmable timing intervals, remote monitoring, and integration with smart traffic management systems could be introduced. This advancement would pave the way for more intelligent traffic control solutions, enhancing pedestrian safety and optimizing traffic flow in urban environments.The signal has three wires: common, "walk", and "don`t walk". This page describes the operation of the unit`s countdown feature. The information and examples provided here should work for other models and brands of signals. Click here togo to the beginning of the article The signal was shipped along with a two-page sheet detailing the use of the countdown timer. You can download a scan of the document here, but I will summarize the details here. The signal was designed to be a drop-in replacement for non-countdown signals. Instead of receiving timing information (such as the length of the countdown or even a separate signal to trigger it), the signal is intelligent and contains a microcontroller that times the length of the "walk" phase and inserts an appropriately-lengthed countdown automatically. This means that the signal needs to be controlled carefully; the length of each "walk" phase cannot change, or else the signal`s countdown will become confused and misaligned.

So, if you want the signal to display a 60-second countdown, then the "walk" phase must be exactly one minute in duration every time. In other words, you cannot control the countdown if you are using a manual (hand) switch. You need to use a timer that can provide consistent walk and don`t walk phases. When the signal is powered up, its internal microcontroller will measure the duration of the length of the "walk" phase.

It takes the signal two walk/don`t walk cycles to adapt to and measure the time intervals; only after the second cycle does the countdown come on. The microcontroller that runs the display digits and times the phases is powered whenever either the hand or man is illuminated.

However, when power is completely removed from the display, the microcontroller forgets the timing details that it had measured. This means that each time the pedestrian light is turned off and turned back on, the signal must re-do the timing routine described above.

This is rather annoying, but understandable because it would be foolish to use non-volatile memory on a signal that would typically run 24/7 on a street corner. A timer circuit that meets the above requirements is so simple that can be built with just a 555 timer IC, a relay, and the appropriate supporting components.

No microcontroller is necessary, although I`ll implement one later in the article. Here is the schematic. It consists of a 555 in pulse generation (astable) mode, with a large capacitor to make 30-120 second pulses that drive a relay, which in turn switches between "walk" and "don`t walk". To provide an interval of 15 seconds "walk" and 30 seconds "don`t walk", use: C1 = 220 µF, R2 = 100k ©, R3 = 100k ©.

Feel free to experiment with the exact values. Also, this circuit involves the use of AC mains power. This project, if attempted, must be encased in a secure and safe enclousure. Take all standard safety precautions and do not attempt if you are uncomfortable with the risks. I accept no liability. The supply voltage (Vcc) of this circuit is flexible: anywhere from 5-12 V should be fine. Use whatever voltage matches the coil voltage (5, 6, 9, 12V are very common) of the relay you select. To increase functionality and features, I decided to build a microcontroller-based controller using an Atmel AVR ATtiny44.

Go to the next page to continue reading. 🔗 External reference