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.

  • 3,785 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

  • 20,900 views
  • 28 comments
  • 57 respects

RFID Desk Lamp

Project tutorial by Kutluhan Aktar

  • 5,017 views
  • 0 comments
  • 10 respects

Arduino - PV MPPT Solar Charger

Project tutorial by Abhi Verma

  • 51,058 views
  • 18 comments
  • 58 respects

LED Mood Lamp

Project tutorial by Neeraj Rane

  • 10,713 views
  • 2 comments
  • 36 respects

Multi-Source Controlled USB Lamp

Project tutorial by Amal Mathew

  • 6,930 views
  • 2 comments
  • 21 respects

DIY Chameleon Lamp

Project tutorial by Random Stuff We Make!

  • 4,174 views
  • 2 comments
  • 14 respects
Add projectSign up / Login