Arduino Forum

Using Arduino => Sensors => Topic started by: Riley_Hawkins on Jul 22, 2019, 03:36 am

Title: How IR sensors work
Post by: Riley_Hawkins on Jul 22, 2019, 03:36 am
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.
Title: Re: How IR sensors work
Post by: larryd on Jul 22, 2019, 04:02 am
Which IR sensor are you talking about?

IR remote stuff:

http://www.circuitbasics.com/arduino-ir-remote-receiver-tutorial/      (http://www.circuitbasics.com/arduino-ir-remote-receiver-tutorial/)

http://arduinoinfo.mywikis.net/wiki/IR-RemoteControl    (http://arduinoinfo.mywikis.net/wiki/IR-RemoteControl)






Title: Re: How IR sensors work
Post by: wvmarle on Jul 22, 2019, 04:22 am
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.
Title: Re: How IR sensors work
Post by: Paul_KD7HB on Jul 22, 2019, 04:34 am
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
Title: Re: How IR sensors work
Post by: Geek Emeritus on Jul 22, 2019, 07:37 pm
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.
Title: Re: How IR sensors work
Post by: Riley_Hawkins on Oct 18, 2019, 04:06 am
The sensor that I am using is a PIR sensor
Title: Re: How IR sensors work
Post by: Riley_Hawkins on Oct 22, 2019, 06:43 am
what code do i use if im using a simple pir sesnor to turn on led lights?
Title: Re: How IR sensors work
Post by: wvmarle on Oct 22, 2019, 10:09 am
I'd start with digitalWrite(LEDPIN, digitalRead(PIRPIN)); even though that'd pretty much make the whole Arduino redundant.
Title: Re: How IR sensors work
Post by: Geek Emeritus on Oct 22, 2019, 06:45 pm
the answer is, as happens so often, in the Project Hub.

PIR sensor search in the Project Hub (https://create.arduino.cc/projecthub/search?q=pir+sensor)
Title: Re: How IR sensors work
Post by: Geek Emeritus on Nov 04, 2019, 07:23 pm
Quote
can someone please give me a code to use with a pir sensor
the code to use with a pir sensor is in every project in the link above your post. which is why it was linked. you are asking a question which has already been answered