LOGIN
Smart Streetlight
Automated Streetlight which senses the vehicles and intelligently dims to save energy
Jayant Singh
0
Electrical and Electronics Engineering student
· New Delhi, Delhi, India
MILESTONE

Hello guys :)
Voila! Our Arduino prototype is ready.
Sorry for such a late update. I was busy with my exams, though I managed to build our prototype with AAsheesh Jha and @Arya within a day. Thanks a lot team for your contributions.

int led= 9;
int ir1= A1;
int ir2= A2;
int brit= 0; 
void setup() 
{
Serial.begin(9600); 
pinMode(led,OUTPUT);

}
void loop()
{
Serial.println(analogRead(ldr));
brit = analogRead(ldr);
if( brit<300 )
{
  if (digitalRead(A1)==HIGH){
    do{
  analogWrite(led,255);
  
}
    while(digitalRead(A2)==LOW);}
  else if(digitalRead(A1)==LOW);
{analogWrite(led,50);
}
}}``` 
Arduino
Electrical Engineering
Engineering & Tech
Skills
5 likes
Like
Award Contribution
Load previous comments
Khushal Badhan
0
·

I think multiple load sensors on road will be a better choice. These will light up a particular length of the road as the vehicle gets detected.

Like
1 like
Award Contribution
John Rodrigues
103
Product and Experience Designer |Entrepreneur |Founder of D&D SmartLabs| Designwithjohn.com
· Philadelphia, PA, USA

awesome

Like
Award Contribution
Robert Lancer
57
Chief Technology Officer at Collaborizm
· New York, NY, United States

Great work!

Like
Award Contribution
Leave a reply...
DISCOVER
CHAT
HIRE
ACTIVITY
FEED
Chat with us!
Help
Write something before you submit it!
Photo updated
Request Sent!
Updated
Copied to Clipboard