Smart Streetlight using Simuli Virtual Lab
For this project, we will use the Arduino Uno available on the Simuli Virtual Lab platform along with the W5500 Ethernet module and the APDS
3
Project description
Prerequisites for Smart Streetlight
Arduino Uno. Click on the Launch button under the Arduino to get started.APDS 9301 Ambient Light Sensor and the W5500 Ethernet Module by selecting it from the list of available components. Finally, review that the name for the project and the selected sensors are correct and click on the Launch button.

Get Started for Free button at the top. This will take you to a signup page, fill all the details and click on the CREATE ACCOUNT button.
Feeds, and then click on view all . This will open up a list of all the feeds currently set up for our account. Let's create our feeds for luminosity and bulb status.
New Feed button, this opens up a pop-up, let's name the first feed light. Finally, click on Create to create this new feed. Repeat the same process to create another feed called bulb.
Dashboards and then click on view all . This opens up a list of all the dashboards linked to our account. Let's create our new dashboard. Click on the New Dashboard button, a pop-up opens, give the dashboard a name, let's call this dashboard Smart Light. Click on the Create button and a new dashboard will be created and we can see it in the list. Click on the Smart Light in the list of dashboards to access it.
Gear icon in the top left corner, this will open a new menu, select Create New Block.
Line Chart block. Select the Line Chart block, now we need to connect this block with a feed. Let's use the light feed that we had created earlier to plot the lux value on a graph. Click on the tick mark next to light and click on Next step.
Block Title of Light. We don't need to change anything else in this menu. Scroll down and click on Create Block. Now our Line Chart is ready to receive the luminosity data from the feed and plot it on the graph. The dashboard should currently look like this.
Gear icon in the top left corner and select Create New Block. This time select the type as Toggle.
bulb feed and click on Next Step . Now give it a Block Title of Smart Light and Create Block . Now we have both our blocks ready and connected to their respective feeds.Edit Layout option under the gear icon to change the layout or the block size.Tools and then to Manage Libraries.... This will open up the library manager, here we can search for Adafruit MQTT, select the library and install it. Then, search for SparkFun APDS-9301 Lux Sensor library select and install it. Now we are ready to communicate with Adafruit IO via MQTT.

