+86 18938689952
Inicio/Blog y noticias/Noticias de la Industria
This traffic light controller can also help children learn traffic signal patterns so they can learn to cross intersections.

08 May 2020

This Arduino-based led traffic light controller will teach you some things about timing sequences on Arduino and works as an actual stoplight! The lighting sequence performed by the Arduino mimics a four-way intersection. This traffic light controller can also help children learn traffic signal patterns so they can learn to cross intersections.

It’s really a simple concept and the table below helps to explain it. The code uses For loops and delay statements in order to implement the on-time for each of the LEDs.

The two streets in our example are Busy Bunny Lane and Lazy Tortoise Avenue. They each have different traffic volumes, so one has a longer green light (and a shorter red light).

Busy Bunny Lane is pretty . . . busy. The green light for Busy Bunny Lane stays on for 12 seconds. Lazy Tortoise Avenue has much less traffic, so our hypothetical city has declared that it needs a green light that stays on for only one-third of the time that Busy Bunny’s green light stays on. So Lazy Tortoise Avenue gets a 4-second green light. Fair is fair.

As Busy Bunny Lane switches from green to yellow to red, Lazy Tortoise Avenue briefly maintains its red light in case there are stragglers who try to make a last-minute dash through the intersection. Don’t forget about this red-light-overlap interval if you ever design the traffic light system for your town’s newest intersection. When the coast is clear, Lazy Tortoise Avenue gets the green light it has been patiently waiting for.

When Lazy Tortoise Avenue reaches its red light stage, there is another period of red-light-overlap, and then the loop restarts! This is a pretty basic and antiquated traffic light. Modern traffic lights today are “smart”—they can detect vehicles, adjust their timing, and even make interruptions for crosswalks. There is always room for improvement!

We’d love to see readers take this project and modify it to make it their own. Maybe turn this boring intersection into a “smart” one by adding a crosswalk interruption button! You can even change the light patterns based on the time of day! Take this knowledge and run with it, and remember to share your creations!

Fama Traffic(Chevy Light ), is a high-tech private enterprise devoted to R&D and production of a wide range of Traffic Signal , including LED Traffic Signal, Pedestrian Lights, Traffic Countdown and Intelligent Traffic Controller of different Specifications.Exported to 150+ Countries, Over 20000 LED Traffic Light Projects completed; Winning the title of the top thirty Chinese intelligent traffic equipment suppliers. www.ledtrafficlight.cn

Casos relacionados