Sunday, 10 December 2017

transistors - 12v LED Strip Lights controlled by PIR *Want to add LDR to project*


I want to add an LDR (Light Dependent Resistor) to my Motion activated stair lights, then On/Off switch can be removed as well as the single Led (On Indicator Only) from my project (I want the LDR to control the On/Off). This is basically the first project I've done, so if someone could explain/show me what I need and how to set it up that would be great. Also, does anyone know of a great place for a beginner to learn about electronics? I would love to be able to build my own projects with out asking for help, thanks.


This is what my PIR LED stair lights look likePIR LED Diagram


This is the link to video of the system working My Video



Answer



Update based on the use of the CDC (photocell) input already on the board (as discovered by the OP)


The schematic of the PIR board you refer to is similar to the following



enter image description here


It shows that the CDS pads (Cds2 in the schematic) connects to pin 9 of BISS0001


According to the datsheet that pin is:



Trigger disable input (VC)
VC >0.2Vdd=enable
VC<0.2Vdd =disabled)



Vdd supplied to the chip is 3.3v (from the 3.3v onboard regulator) so if you apply voltage >0.66v to that pin the controller turns on, if you apply <0.66v then it turns off.


One of the CDS pins is already connected to ground,the other one is connected in series with an onboard resistor of 1M Ohm to the 3.3v supply.

The CDC and the resistor form a voltage divider, if the CDS sensor has a resistance of 250K or higher the controller will turn on, if it has <250K then the controller will turn off.


You just need to find an appropriate CDS or add an external resistor to adjust the switching point.




The LDR (Light Dependent Resistor) has a resistance which increases in darkens and decreases with light.


Using that property you can connect it in a voltage divider to drive the base of a NPN transistor and turn on/off a load based on the room brightness.


Such a circuit that turns on at darkness looks like


enter image description here


If you are looking for the opposite effect you can use


enter image description here


Note that Vin is the positive supply line



You can replace the 500 Ohm resistor and led of the above circuits with a relay that replaces your switch.


enter image description here


Images from http://www.reuk.co.uk/Light-Dependent-Resistor.htm


No comments:

Post a Comment

arduino - Can I use TI&#39;s cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...