Here is what you almost always need to do when buying from ebay.
Roughly 98% of the time, they don't provide adequate documentation, but the products
are almost always clones of someone else's IP, and who do provide documentation.
so, what you need to do is use "google images" search, and try to locate the original
device, where someone does provide the correct documentation. Then, you'll know
what you actually have.
in regards PIRs, a lot of these devices already have an LDR inside that's used to adjust
the ambient light sensitivity - but of course, first you have to know what the heck it is
that you actually have. So, go to #2.
If the LDR is there so that the Arduino can know when to switch lamps on and off then presumably it already knows when the lamp is on and could apply the appropriate criteria to the LDR reading. In that case you just need to find out how much difference the lamp makes to the LDR reading and adjust the code to accommodate that.
there is no LDR there yet but I will be implementing one - I guess as you say maybe it will have to be a software thing to allow it to function properly once the lamp is on?
I guess with the logic I mentioned earlier there is a risk if the room is occupied prior to dawn that the lights won't go off when daylight comes if the room remains occupied.
If I was concerned about that I think I would locate my LDR so that it was looking out the window to detect outdoor light.
Another problem with this sort of project is reliably detecting the human, a PIR will only detect movement, if they sit still for 5 minutes it will think they have left the room.
Graynomad:
Another problem with this sort of project is reliably detecting the human, a PIR will only detect movement, if they sit still for 5 minutes it will think they have left the room.
Rob
I have thought quite a bit about this case, but can't think of a way around it using a standard PIR. You can get microwave occupancy sensors but I guess they also work on the principles of changing values.
I think if I go ahead I will have the lights fade out when the time has elapsed, then if the room is occupied it gives the occupier a chance to keep it on!
well, I was looking at the PCB and noticed through holes labelled cds. I have done some reverse engineering on the PCB, then I found a datasheet which confirms that the controller has a output disable function if the voltage on a pin is <2v http://www.ladyada.net/media/sensors/BISS0001.pdf
I had a 10k LDR lying around and tried it out, voltage was too low because the divider was only being pulled up to 3V via 1 1M resistor. I took it off and connected a 100K pot which seems to give a nice range of light to dark. Very chuffed with these little PIR's and they are so cheap!
Hopefully the only issue I have now is finding a bigger dome fresnel lense