← مختبر الحساساتSensors Lab · lightوحدة حساس ضوء LDR
LDR Light Sensor Module
وحدة بسيطة لقياس شدة الإضاءة نسبيًا واستخدامها في تطبيقات الإضاءة التلقائية.
A simple light-sensing module used to estimate relative light level in automatic-lighting and beginner sensing projects.
Analog + Digitalنوع الإشارة
3.3V–5Vجهد التشغيل
Analog · DigitalInterface
1GPIO
01 · HOW IT WORKSكيف يعمل؟
تتغير مقاومة LDR مع شدة الإضاءة، وتحوّل الوحدة هذا التغير إلى خرج تناظري، وقد توفر أيضًا خرجًا رقميًا عبر مقارن.
An LDR changes resistance with light level; the module converts that change into an analog output and may also provide a comparator-based digital output.
02 · WIRINGالتوصيل
صِل VCC وGND، والخرج التناظري إلى ADC عند الحاجة للقياس النسبي، أو الخرج الرقمي إلى GPIO عند استخدام عتبة المقارن. تحقق من جهد الخرج مع ESP32.
Connect VCC and GND, use the analog output with an ADC for relative measurement, or the digital output with a GPIO for threshold detection. Verify output voltage when using ESP32.
03 · TESTطريقة الاختبار
اختبر الوحدة في إضاءة قوية ثم في الظل وراقب تغير الخرج التناظري أو الرقمي. اضبط عتبة المقارن إن كانت الوحدة توفر خرجًا رقميًا.
Test the module in bright light and shade and observe the analog or digital output change. Adjust the comparator threshold if the module provides a digital output.
04 · TROUBLESHOOTالأخطاء الشائعة
تشبع القراءة أو عدم تغيرها بسبب اختيار خرج غير صحيح أو عتبة رقمية غير مضبوطة أو نطاق جهد غير مناسب.
Saturated or unchanged readings caused by using the wrong output, an unadjusted digital threshold, or an unsuitable voltage range.
MINI PROJECTتجربة عملية مصغرة
مشروع مصغر: مراقب إضاءة يقرأ المستوى النسبي ويغيّر حالة LED منخفض الجهد عند تجاوز عتبة معايرة.
Mini project: build a light monitor that reads relative level and changes a low-voltage LED state when a calibrated threshold is crossed.
المشاريع التطبيقيةBUILD
مشاريع تستخدم هذا الحساس