In one of my friends village mehul was daily seeing a man has to switch on the street light for his area and has to daily switch it off but in villages sunlight falls too early so there was alot of wastage of power as concerned to his village. so we thought to innovate a bit so by using this device made from BOLT IOT the lights can be automatically controlled as per the requirement in night time it will be on and as soon as there is a required amount of light it turns off.
so the hardware setup can be such as follows-
connect a ldr long pin to bolt iot A0 and the short pin to resistor and the other end of resistor to ground. Then connect the digital pins to relay pins at each street light but to show it over here we are taking a led. so connect led long point to digital pin and short point to ground.
software concept
we are coding our bolt module with python in linux server so in linux open terminal box
type command-
sudo nano conf.py
set bolt id and api key
save it, thn
sudo nano project.py
thn add the following code shown in the photo,
thn run the code sudo python3 ptoject.py
demonstration
when there is light the led did not turns on as u can see below which resembles the day time.
whenever the light intensity over ldr reduces we used a pencil to cover the ldr thn the led turns on which resembles night condition.
in this way my friend mehul was able to serve his village with help of boltiot and was able to conserve power.
Comments