Table of Contents

DIY Smart LED Street Light

Smart-LED-Street-Light
Project Description

Introduction

The DIY LED street light project is yet another easy yet fun to make the project for kids to gain knowledge with DIY.  They can learn a thing or two about LDR working and application and coding while making this project. All that is required to make the smart street light is a few components from the evive Starter Kit, other DIY material, and the excitement to learning something interesting!

We’ll be writing the code for the project in PictoBlox – our Scratch based graphical programming software with advanced hardware interaction capabilities. You can download PictoBlox from HERE.

Ready for some learning by doing? Let’s get started!

Making the Base

  1. Let’s start by making the base for our LED street light. The base will be used to fix the pole in one place. 
  2. The base for our automated street light will be of 10cm * 8cm * 5cm size box. 
  3. Take a corrugated sheet of the size 20cm*20cm.Automated Street Light Base
    evive Notes Icon
    You can use normal cardboard to make the base instead of the corrugated sheet.
  4. It would be easier to first do the markings for box on the sheet.  Make a rectangle of 10cm*8cm in the center of our sheet.Automated Street Light Marking
  5. Remove the corners so that your sheet looks like a plus sign, similar to the one shown in the below image.Smart LED Street Light
  6. You will notice that the two side edges out the four edges are 1cm bigger, trim those 1 cm out making it equal from all sides.
    evive Notes Icon
    Keep one of the corners for making the head portion of the street lamp.
  7. Fold along the markings done using a ruler. 
  8. And finally, glue them together using hot glue. 
  9. With this, your base is completed.  Smart LED Street Light

Testing the LDR

  1. Before we use the LDR, let’s first test whether it’s working fine or not.
  2. To test the LDR, we are going to use the Pin State Monitor feature of evive as we can see the status of both analog and digital pins directly, which gives it an edge over Arduino.
  3. Connect LDR with evive as given below:
    1. Firstly insert a 10k Ohm resistor in one of the pins of breadboard on evive. 
    2. Then insert LDR into the breadboard such that the last leg of the resistor and the first leg of the photoresistor are in the same column.
    3. Then, connect the free leg of the resistor to the GND of evive.
    4. And the free leg of the photoresistor to +5V of evive.
    5. Finally, connect the common column to Analog Pin 0 of evive using a male-to-male jumper cable.Testing LDR Connection Diagram
  4. Once the connections are done, switch evive ON.
  5. Select Pin State Monitor from the firmware. As we have connected our LDR to Analog Pin, select analog pin states from the options.
  6. Now observe the value in front of 0. You may see that the value increases when the light is ON and it decreases as soon as the lights are OFF (intensity of the light decreases).Testing LDR

Making the Head of the Street Light

  1. We are going to use straws for the same purpose. 
  2. Cut a small portion of the straw to make the arm. Make a slit of approximately 1cm at one end of it. This will help fix our head to the pole.Smart LED Street Light
  3. To make the housing for our LDR and LEDs, we will need a small piece of the corrugated sheet.
  4. Thus, cut out a small U-shaped piece. Now, it’s time to bring our main elements into the picture.
  5. Create two holes into the U-shaped corrugated sheet or the lampshade of our Smart Street light using the header of the male jumper cable. Smart LED Street Light
  6. Insert the LDR legs into the given hole so that it sits tightly on the top of our lamp.
  7. Connect the legs of LDR with a jumper cable and pass the wires through the arm.Smart LED Street Light
  8. Now, it’s time to add the LEDs of our LED Street Light. Attach the LEDs to the other jumper cable.
    evive Notes Icon
    Make sure to connect them parallelly.
     
  9. Once done, glue the LEDs to the base of the head using Hot Glue and pass the wires to the arm.Automated Street Light, connect LEDs

Creating the Pole

  1. For making the pole of our smart street light we would use another straw. Try and use a straw with a large diameter for accommodating our jumper cables.
  2. Take the straw and mark its dimension on to the base by a pencil.
  3. By using a cutter create the small hole for our straw to fit in lightly.
  4. Use hot-glue from the other side to fix the pole.Smart LED Street Light

Completing the Assembly

Now, let’s complete the assembly of street light by connecting all the parts.

  1. For connections, we would need to extend the jumper cables.’
  2. Now after extending the wires lets pass it through the pole.
  3. Grab them from below the base and connect as per the connections have given with evive.
  4. Finally, glue the arm or the head of the smart street light to the pole using hot glue.Smart Street Light Assembly
    Smart LED Street Light

Connections

For final connections –

  1. Place a 220Ω and 10kΩ resistor on the breadboard.
  2. Connect +ve of led to the one end of 220Ω resistor.
  3. Connect -ve of led to the GND on evive.
  4. Connect  one end of LDR to +5v on evive
  5. Connect one end of LDR to 10kΩ resistor
  6. Connect another end of the 10kΩ resistor to GND
  7. Connect A0 on evive with the common of LDR and resistor this would create signal by using a voltage divider circuit.Smart streetlight Connection

Writing the Code

Write the following script in PictoBlox and upload it to your board:

Smart ELD Street Light Code

The program will start executing as soon as evive starts up. The TFT display of evive will show the status of the surrounding light.

The LED connected to Digital Pin 13 should turn ON as soon the reading from the LDR i.e on the Analog Pin 0 is less than 500 and should turn OFF as soon as the value exceeds 500.

Conclusion

With this, your smart street light is ready! Hope you enjoyed making it.

Project Downloads - Code and Files

Circuit Diagram

Circuit Diagram DescriptionCircuit Diagram Fritzing Diagram

Connect the photoresistor/LDR and LEDs as given in the circuit diagram:

Explore Related Projects by STEMpedia

Level up your robot control skills by learning how to control a 2-Wheel Drive Robot with hand gestures using PictoBlox AI's Machine Learning extension. Get ready to channel your inner Jean Grey!
Learn how to make a two-wheel-drive robot and code on the go with PictoBlox's mobile app. Control your robot in real-time with your smartphone!
Learn how to make an automatic chocolate dispenser to delight Santa this Christmas. All components can be found in the evive Starter Kit. Let's begin!

Explore Community Projects