Go Down

Topic: How IR sensors work (Read 718 times) previous topic - next topic

Riley_Hawkins

New to forum,

School Project -  I am looking to use an IR sensor and I am looking for information on how it works. I understand is has something to do with Infra Red being sent out from the sensor but I don't understand how the information is gathered back by the sensor.

larryd

No technical PMs.
If you are asked a question, please respond with an answer.
If you are asked for more information, please supply it.
If you need clarification, ask for help.

wvmarle

Lots of different types of IR sensors. Which exact one do you have?

PIR, ToF, brightness, modulated transmission, break beam... just to name a few things you can do with IR.
Quality of answers is related to the quality of questions. Good questions will get good answers. Useless answers are a sign of a poor question.

Paul_KD7HB

IR sensors work because they have a filter that stops ALL light, except the IR range they were designed for. Behind the filter is a standard light sensor.

Paul

Geek Emeritus

PIR - Passive InfraRed sensors - standard burglar alarm and motion sensing light sensors - have a lens that performs like a flies eye. smooth outside. rows of Fresnel ( Frah - nell ) lenses inside. when an IR heat source moves past, the lenses generate a series of pulses. enough pulses in a short interval causes the sensor to flip a switch momentarily. if they did not incorporate the lenses and pulse counter, the sensor would trip continuously when it saw your neighbors car radiator

PIRs are useless at this time of year in the American southwest. the outside air temperature is body heat temperature. moving past the lenses does not generate pulses

if the lens is yellowed and crumbling, it can't transfer enough IR. the sensor is electronically active but optically inert.
All PMs will be deleted unopened due to arrogant argumentative pot stirring Malfoys.
 If you have not read "How to use this forum - please read", in particular: "7. If you are posting code or error messages, use "code" tags":  expect rude responses

Riley_Hawkins

The sensor that I am using is a PIR sensor

Riley_Hawkins

what code do i use if im using a simple pir sesnor to turn on led lights?

wvmarle

I'd start with digitalWrite(LEDPIN, digitalRead(PIRPIN)); even though that'd pretty much make the whole Arduino redundant.
Quality of answers is related to the quality of questions. Good questions will get good answers. Useless answers are a sign of a poor question.

Go Up