Just do the circuit like this and all should be working fine.
Remember, the LDR resistance depends on the light you have on the room or where you are constructing that. If you have light, the LDR resistance is low so, the LED should be turned off. When you obstruct the light that focus on the LDR, the LED should light up.
If for any reason your LED is always lighted up, try to chance the transistor. Switch the Emissor and the Collector. If the problem persist, increase the resistor you have in the base.
ทำวงจรแบบนี้ และทุกคนควรทำงานดี
จำ , ความต้านทาน , ขึ้นอยู่กับแสงที่คุณมีใน ห้อง หรือที่คุณกำลังสร้างมัน ถ้าคุณมีแสง , ความต้านทาน , น้อย , LED ควรจะปิด เมื่อคุณกั้นแสงที่มุ่งเน้นงาน , LED จะสว่างขึ้น
ถ้าด้วยเหตุผลใด ๆของคุณนำเสมอส่องสว่างขึ้นลองให้โอกาสทรานซิสเตอร์ . สลับ emissor และสะสม ถ้าปัญหายังคงมีอยู่ เพิ่มตัวต้านทานที่คุณมีในฐาน
การแปล กรุณารอสักครู่..
