Drone Payload Dropping System Using Arduino & LDR Sensor

This project demonstrates a drone-based payload dropping system using an Arduino Uno, LDR sensor, and servo motor.

(The system automatically releases the payload when sufficient light is detected.)


🔹 Components Used

  • Arduino Uno/Nano

  • LDR Sensor Module (LM-393)

  • Servo Motor (SG90 / MG90s)

  • Jumper Wires

  • Power Supply  ( Minimum - 7.4v DC )


🔹 Working Principle

The LDR sensor detects light intensity.
When light crosses a predefined threshold, Arduino activates the servo motor, which releases the payload from the drone.


🔌 CONNECTIONS (IMPORTANT)

LDR Module 

  • S → A0

  • + → 5V

  • → GND

Servo Motor

  • Red → 5V

  • Brown / Black → GND

  • Yellow / Orange → D9


✅ FULL ARDUINO CODE

(Arduino Uno + Keyes LDR Module + Servo)

/* Project Name : LDR Based Automatic Servo Control Sensor : Keyes LDR / KY-018 Photosensitive Module Board : Arduino Uno Output : Servo Motor Created By : Anubhav Projects Lab */ #include <Servo.h> Servo myServo; // Pin configuration int ldrPin = A0; // LDR Signal pin (S) int servoPin = 9; // Servo signal pin // Light threshold (adjust as per environment) int threshold = 700; void setup() { Serial.begin(9600); myServo.attach(servoPin); myServo.write(0); // Servo OFF position Serial.println("Anubhav Projects Lab"); Serial.println("LDR Servo Control Project Started"); } void loop() { int ldrValue = analogRead(ldrPin); // Read LDR value Serial.print("LDR Value: "); Serial.println(ldrValue); // Condition for high light if (ldrValue > threshold) { myServo.write(90); // Tez light → Servo ON } else { myServo.write(0); // Low light → Servo OFF } delay(200); }
..........................................................................................................................................................

Thank You for Visiting – Anubhav Projects Lab
Keep Learning, Keep Building! 🚀


Please Select Embedded Mode To Show The Comment System.*

Previous Post Next Post

Contact Form