กลับไปหน้ารวมไฟล์
ldr-servo-controller-8045d4-en.md

I made a simple circuit that lets you move a servo motor in a programmed direction with a single tap on a sensor. More specifically an LDR sensor means that the sensor should be exposed to light to work PROPERLY.

The circuit

In theory how the tap works is from the shadow of your finger.

LDR SERVO controll

LDR sensor

Servo motor

EXPANDED TECHNICAL DETAILS

Light-Seeking Motion Logic

This project uses differential light sensing to control the position of a servo motor, forming the basis for solar trackers.

  • Differential Sensing: Compares the analog values from two LDRs separated by a barrier. The Arduino calculates the difference; if one LDR is darker than the other, it rotates the servo in that direction to re-center.
  • Hysteresis Logic: Includes a software "Dead-zone" to prevent the servo from jittering or hunting in stable lighting conditions.

Visual Feedback

  • LCD Dashboard: (Advanced version) Displays the raw Lux values and the current servo angle on a 16x2 I2C LCD, providing a educational view of the light-seeking algorithm in action.

ข้อมูล Frontmatter ดั้งเดิม

title: "LDR servo controller"
description: "Move the servo's direction with a single tap on the LDR sensor."
author: "dithirah"
category: ""
tags:
  - "light"
  - "servo"
  - "tap sensor"
  - "uno"
views: 4426
likes: 1
price: 870
difficulty: "Easy"
components:
  - "1x Perma-Proto Breadboard Half Size"
  - "1x SG90 Micro-servo motor"
  - "1x Arduino UNO"
  - "1x Jumper wires (generic)"
  - "1x LDR module"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles:
  - "https://projects.arduinocontent.cc/1eabaa4d-1fa3-404a-880e-862ab138ed5a.ino"
  - "https://projects.arduinocontent.cc/1eabaa4d-1fa3-404a-880e-862ab138ed5a.ino"
documentationLinks: []
passwordHash: "14416120bbdb9c33eb1ea5f698f7d5dedbf25ba4f906b123dd2b0e35e0eeccfb"
encryptedPayload: "U2FsdGVkX1+J02cG3KAv5I0gp5BZAQRpzFuUAg8xvG+t/DV+wKxvKL/Ga0QsenY8t/zkXU3xq8Zf7YUFMh+FB4yMg6UU3drdUUA9PG/p1Jc="
seoDescription: "Easy Arduino project: Control Servo direction with a simple tap on an LDR Sensor using this LDR servo controller."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/ldr-servo-controller-8045d4_cover.jpg"
lang: "en"