The Solar Lamp Works as Needed

The Solar Lamp Works as Needed © LGPL

The solar lamp is charged during the day, and they started to pass. Suitable for yards and corridors.

  • 2,989 views
  • 6 comments
  • 11 respects

Components and supplies

About this project

The solar lamp is charged during the day, and they started to pass.

Suitable for yards and corridors.

Code

solar_lamp_works_as_needed.inoC/C++
//Zeljko Cvijanovic
// HC-SR501 Motion Detector
// Relay

int relPin = 4;  // Relay
int pirPin = 7; // Input for HC-S501

int pirValue; 


void setup() {
  
  pinMode(relPin, OUTPUT);
  pinMode(pirPin, INPUT);
 
  digitalWrite(relPin, LOW);
  
}

void loop() {
  pirValue = digitalRead(pirPin);
  digitalWrite(relPin, pirValue);


}

Schematics

The solar lamp works as needed
lampa_tr2LpElPNP.fzz
project03_aHFZmVRM8Y.png
Project03 ahfzmvrm8y

Comments

Similar projects you might like

Integrated Solar ChargeController, Inverter, PowerBank, Lamp

Project tutorial by Shahariar

  • 13,227 views
  • 26 comments
  • 45 respects

RFID Desk Lamp

Project tutorial by Kutluhan Aktar

  • 3,679 views
  • 0 comments
  • 9 respects

Arduino - PV MPPT Solar Charger

Project tutorial by Abhi Verma

  • 25,713 views
  • 12 comments
  • 38 respects

Multi-Source Controlled USB Lamp

Project tutorial by Amal Mathew

  • 4,761 views
  • 2 comments
  • 20 respects

LED Mood Lamp

Project tutorial by Neeraj Rane

  • 3,993 views
  • 1 comment
  • 22 respects

World Mood Lamp

Project showcase by Kaustubh Agarwal

  • 17,642 views
  • 11 comments
  • 58 respects
Add projectSign up / Login