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,242 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

  • 9,623 views
  • 25 comments
  • 40 respects

RFID Desk Lamp

Project tutorial by Kutluhan Aktar

  • 1,230 views
  • 0 comments
  • 3 respects

Arduino - PV MPPT Solar Charger

Project tutorial by Abhi Verma

  • 14,850 views
  • 4 comments
  • 29 respects

"Living Art" Arduino-Controlled Desk Lamp

Project tutorial by Modustrial Maker

  • 9,151 views
  • 2 comments
  • 25 respects

Multi-Source Controlled USB Lamp

Project tutorial by Amal Mathew

  • 3,550 views
  • 2 comments
  • 20 respects

Solar UPS controller/automatic transfer switch 

Project in progress by Markus Loeffler

  • 30,204 views
  • 8 comments
  • 68 respects
Add projectSign up / Login