Varun_Sontakke
Published © MIT

From Shadow to Sunshine A DIY Plant Lighting Solution

This system captures sunlight and redirects it to plants beside the garden wall.

BeginnerFull instructions provided5 hours148
From Shadow to Sunshine A DIY Plant Lighting Solution

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Jumper wires (generic)
Jumper wires (generic)
×1
LDR, 5 Mohm
LDR, 5 Mohm
×1
SG90 Micro-servo motor
SG90 Micro-servo motor
×1
5V 2.5A Switching Power Supply
Digilent 5V 2.5A Switching Power Supply
×1
Resistor 100k ohm
Resistor 100k ohm
×1
Card board 20x20
×1
Aluminium Sheet strip
×1
Mirror
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Hot glue gun (generic)
Hot glue gun (generic)
Multitool, Screwdriver
Multitool, Screwdriver
Tape, Double Sided
Tape, Double Sided
Tape, Masking
Tape, Masking
Wire Stripper & Cutter, 18-10 AWG / 0.75-4mm² Capacity Wires
Wire Stripper & Cutter, 18-10 AWG / 0.75-4mm² Capacity Wires

Story

Read more

Schematics

Circuit diagram

It will be used to connect the components used in the project it shows how and which pin of circuit components is connected.

Code

plantolighter.ino

Arduino
its the code that i going to be placed in arduino uno and this will run the system
int ldr_pin = A0;
int ldr_val = 0;
int temp=0;
#include <Servo.h>
Servo myservo;
int pos = 0;
void setup() {
  Serial.begin(9600);
  pinMode(ldr_pin,INPUT);
  myservo.attach(9);
  myservo.write(pos);
}
void loop() {
  ldr_val = analogRead(ldr_pin);
  temp=map(ldr_val,0,1023,0,100);
  Serial.println(temp);
  if (temp >= 95){
    for (pos = 0; pos <= 45; pos += 1) { // goes from 0 degrees to 180 degrees
    // in steps of 1 degree
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    delay(100);                       // waits 15ms for the servo to reach the position
  }
  for (pos = 45; pos >= 0; pos -= 1) { // goes from 180 degrees to 0 degrees
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    delay(100);                       // waits 15ms for the servo to reach the position
  }
  }
 }

Credits

Varun_Sontakke
2 projects • 4 followers
MBSE SysML v2 & GenAI at TCS | M.Tech (IoT) | EdgeAI & Robotics Maker | Applying Design Thinking to Hardware & Space Tech | Systems Engineer

Comments