Traffic light controlled through NodeMCU from mobile device over WiFi

Circuit is done as shown in the diagram. Download trafficLight library from the following link. Unzip and paste the downloaded library to Arduino libraries folder. Restart Arduino IDE and open the example program from File -> Examples -> trafficLight -> trafficLight. Upload the program to your NodeMCU. Program compiled and tested on Arduino-1.8.12. After successful uploading, connect your mobile device to NodeMCU over WiFi.

Open a web browser in your mobile device and redirect to Color indicators can be seen on the screen. Press on your desired color. Respective LED will light up on the traffic light. White color button will clear all the LEDs.

Download programs from the following link.

4.7 3 votes
Article Rating

Published by

1 Comment
Newest Most Voted
Inline Feedbacks
View all comments
1 year ago

please share the traffic light library