Prince Yona
Prince is a student of the Bolt IoT and ML...

TOP STORIES

  1. Traffic Light Control using BOLT IoT Module

Prince Yona
Prince is a student of the Bolt IoT and ML...

TOP STORIES

  1. Traffic Light Control using BOLT IoT Module

Prince is a student of the Bolt IoT and ML training, and as...

Traffic Light Control using BOLT IoT Module

Traffix Light Control (1)

I hope you got the "green light" signal from your brain, to start building this project. This Project was done based on my observations of the Traffic Management Systems in Roadways and Railways. I thought I would make a miniature replica of the same using the Bolt WiFi module.

Things used in this Project

Hardware Components

  • Bolt WiFi Module
  • Breadboard
  • Micro-USB to USB Cable
  • 330ohm Resistors - 3
  • Jumper Wires - 7
  • 5mm LED Red - 1
  • 5mm LED Yellow - 1
  • 5mm LED Green - 1

Software, Apps and Online Services

  • Bolt Cloud
  • Bolt IoT Setup app
  • Integromat Software (www.integromat.com)

Hardware Setup

Using the Components mentioned above in the list, we can create a Traffic Light Control Circuit. But what are the steps to be done in order to perform it?

First Connect your Bolt IOT Module to your PC/Laptop using the Micro USB - USB Cable

Note: The Steps given below are done on the Breadboard

Step 1] The Positive End ( Longer Leg ) of each Colour LED is connected with one end of the Resistor.
Step 2] The Connection is Assembled in the Breadboard as Shown,
This image has an empty alt attribute; its file name is img_20191211_190532_1_tuMxGOf6il.jpg
 

Step 3] The Other end of the Resistor from RED/YELLOW/GREEN LED is connected to the Digital Pins 0, 1 and 2 of the Bolt IOT Module through Male-Male Jumper Wires.

Step 4] The Ground pin from the BOLT IOT Module is made Accessible on the One End of the Breadboard.

Step 5] The Negative End ( Shorter Leg ) of Each LED is Connected is connected to the Ground of the Bolt IOT Module.

The Complete Connection is Given Below.

This image has an empty alt attribute; its file name is img_20191213_101803_Jws2aI56gM.jpg
 

Software Programming

Step 1] Setup an Account on Integromat Software.

This image has an empty alt attribute; its file name is integromat_YL1Zo3FLEy.JPG
 

Step2] After creating an account in Integromat, You will be in the Page called My Lab. Select "Create New Scenario" Button which is located on the Top Right Corner of your page.

This image has an empty alt attribute; its file name is my_lab_RgHF7JBtEB.JPG
 
This image has an empty alt attribute; its file name is create_new_scenario_MrzLAuZ4wf.JPG
 

The create scenario page will be Like this.

This image has an empty alt attribute; its file name is entry_8g19FRiVm7.JPG
 

Step 3]Type Bolt IOT in the Search Box or You can Scroll Down and find the Bolt IOT Icon.

This image has an empty alt attribute; its file name is bolt_qbbE8m4AJG.JPG
 

Step 4] Select the Bolt IOT Icon and Click Continue. Your Window Will be Displayed Like This.

This image has an empty alt attribute; its file name is main_4tK52SDGB8.JPG
 

Step 5] Select the ? Icon and Click on Bolt IOT. The Module will ask for Connection and Command. Click on Add Connection, it will ask for API key and Connection Name. Give a Suitable Connection Name and Simultaneously Open Bolt Cloud in your Browser. Select the API Keys Tab.

This image has an empty alt attribute; its file name is api_E3Gh93vavC.JPG
 

Step 6] The API Key will be Displayed. Copy the API Key and Paste it in the API Key Box. Now the Bolt Cloud is Interlinked with Integromat.

Step 7] Now Select the Command Box. It Drops down into a List. In the GPIO List, Select Write Digital Output.

The Box would be something like this

This image has an empty alt attribute; its file name is c1_uv6vq7DfjP.JPG
 

Step 8]To Find Your Device Name, Make sure that you have Downloaded the Bolt IOT App from PlayStore or App Store and Linked the Bolt Cloud with Bolt App.The Device Name will be Displayed in the App. Note Down the Device Name

This image has an empty alt attribute; its file name is screenshot_2019-12-13-10-48-57-978_com_bolt_com_bolt_RAvXFgEH8n.jpg
 

The Name of the Device must ne Entered in the Device name Box. In the Pin Box Type 0 and in the State Box Type "High". Then Select Continue.

Step 9] Then Select Tools Icon ( The Purple Icon which is given in the Bottom ).

This image has an empty alt attribute; its file name is tooos_ZFvy7aNeKX.JPG
 

Select Sleep Option and Link it with the Bolt Module. Set Delay as per your requirement for Red Signal.

This image has an empty alt attribute; its file name is tols_2JJA0bSote.JPG
 

Then Add Another Bolt Module next to the Tools Icon, Select the Same Connection and Same Command as mentioned above.

This image has an empty alt attribute; its file name is c1_ACKVEwYNtt.JPG
 

Once Again type the Device Name, Pin No. (0) and in the state Box, Type Low.

Repeat the Steps 4, 5 and 6 for Yellow Signal (Digital Pin 1) and Green Signal (Digital Pin 2).

Step 10] The Overall Connection in the Integromat Software will look like this.

This image has an empty alt attribute; its file name is frhfhfhfhf_VxfhYT2udc.JPG
 

The Above method switches on each Colour Signal only one Time. If we need to make the Traffic Signal Switch On for a Certain Number of Times, we need to use a New Function in the Flow Control Box.

.

Flow Control Box can be opened at the Bottom Toolbar. It is Close to the Tools Icon which we used earlier.

This image has an empty alt attribute; its file name is fc_menu_l2hR64bAd9.JPG
 

Step 11] Select Repeater from the Flow Control Tool and Link the Repeater to the Starting Bolt Icon. Set the Initial Value as 1 and in the Repeats Box, select any value between 0-10000. For my use and ease, I choose 3.

This image has an empty alt attribute; its file name is fc_qzsr1MSJ7s.JPG
 

Step 12] The Total Circuit would look like this.

This image has an empty alt attribute; its file name is final_xdVRY6ktkp.JPG
 

Step 13] Click Run Once and you will find your Traffic Light Working.

 

Circuit Diagram

This is just an Reference Diagram

This image has an empty alt attribute; its file name is img_20191213_122545_MhOgW7Lmo7.jpg

Conclusion

This Project provides the reader/user the beneficial things IoT can do to the Traffic Management System. This Project also covers the usage of Integromat Software which has various uses in the field of IoT and AI.

Want to build more such IoT and ML projects? Want to learn IoT and ML from basics?

Check out the Bolt IoT and ML training. This online video training is excellent for those who want to start with IoT and ML because it teaches you to build projects from the basics. Click on the button below to know more about the training.

Learn more about Bolt IoT & ML Training

Home Automation Traffic lights

Prince Yona
Prince is a student of the Bolt IoT and ML training, and as...