This is my first project so I'd appreciate any guidance/comments/hints. I have gone through the arduino starter kit so I know just enough to be really dangerous!
I'd like to do an under cabinet lighting project with some led strip lights. I'd like this to be motion controlled with a light sensor to check darkness levels and a button to override (just in case). I'd like use pwm to fade the lights in and out as motion is detected/not detected in say a 5 minute time frame. That pretty much covers it.
As I'm sure you can see I'm a newbie! The motion sensor I'd like to use is from here with these specs:
Type: Digital
Supply Voltage:3?5V
Current:50?A
Working temperature:0???70?
Output level(HIGH):4V
Output level(LOW):0.4V
Detect angle:110 Degree
Detect distance:7 meters
Size:28mm×36mm
Weight:25g
I calculated that I'd need an 100k resistor with 5v and the current specified above, this is correct right?
I've also made some assumptions in my drawing above that the middle pin will be the alarm pin as I don't really know.
I used 10k resistors for the photoresistor and button as that's what I used in the started kit projects. I again assumed they were correct.
Then when it comes to the 12v part of the circuit do I need a special voltage regulator? Would these be fine? Or something else here. More importantly what should I be looking for? (I find the specs rather difficult to understand on these)
I don't actually have the led strip lights yet but from what I've seen I'll probably be using a 30W 12v 3amp or 48W 12v 5 amp power supply depending on how many strips I need.
I'm pretty sure the coding part will be fine, but on the hardware side I'm very much a newbie with a lot to learn in the world of electronics so any input you may have would be greatly appreciated.
you don't need the 100k in series with the sensor
it will draw 50 uA as it wants
I would put 100nF across the supply right next to the sensor though
what transistor/FET are you using to drive the LEDs?
After a bit of reading I've realised I have made quite the mistake above and inserted a voltage regulator where I meant to have a transistor. (I guess all three legged components aren't the same )
Logic level gate drive
TO220 Package
Switch up to 10A
N-channel MOSFET Technology
Vdds = 100 Volt
Would that work out okay?
Then lastly not needing the 100k resistor in series with sensor, why is this? I removed the resistor completely then did some reading and thinking about it and I just don't think I know why. I'll do some more research to see if I can figure it out.
why did you put the 100k resistor in?
if it was to make the current 50 uA then you don't understand the spec
the spec says it will draw 50 uA at 5 volts
NOT
you must provide 50 uA at 5 volts