{"id":10000,"date":"2015-03-24T16:28:26","date_gmt":"2015-03-24T05:28:26","guid":{"rendered":"http:\/\/legoeng.local?p=10000&preview_id=10000"},"modified":"2022-08-01T10:24:05","modified_gmt":"2022-08-01T00:24:05","slug":"boom-gate-intersection","status":"publish","type":"post","link":"http:\/\/legoeng.local\/boom-gate-intersection\/","title":{"rendered":"Boom-gate intersection (EV3 Hackathon 2015)"},"content":{"rendered":"
<\/a>On 27 February 2015, a small group of EDGErs<\/a> went to LEGOLAND for an EV3 Hackathon. This post documents one of the projects that came out of the event.<\/em><\/p>\n For the EV3 Hackathon, Magee and I built a low-tech intersection–one that controls traffic flow using boom gates rather than bluetooth signals. Since the cars were equipped with ultrasonic sensors, they were able to detect the lowered boom gates and stop.<\/p>\n Here is an overview of the program (click for a larger version):<\/p>\n <\/a><\/p>\n The traffic light used the\u00a0EV3\u00a0brick status lights to generate red, amber, and green lights. The boom gates were synchronized with the lights–when the light turned red, the boom gate for that road came down and the boom gate for the intersecting street went up. Here is the loop that controlled the traffic light and boom gates:<\/p>\n <\/a><\/p>\n The intersection also featured a pedestrian crossing. When the WALK button (a touch sensor) was pressed, both boom gates were lowered and the traffic light turned red. The EV3 display switched from saying DON’T WALK to showing a cartoon walker. A recorded voice said, “Walk.” After five seconds, the display switched back to DON’T WALK and the normal traffic sequence started again. Here is the pedestrian-crossing section of the program:<\/p>\n