IR Breakbeam

sensors_2167_iso_demo_SIZE.jpeg

Features:

detect motion

emitter: sends out a beam of human-invisible IR light

receiver: sensitive to that same light

compare to PIR: faster and better control of range

Observation:

  1. object needs to be opaque

  2. receiver and emitter have angle to read (approx. 10 degrees)

  3. Sensor distance is approx. 50cm (sensitive in changes of alignment)

    Recorded videos

    IMG_8931.MOV

    IMG_8930.MOV

    IMG_8932.HEIC

    IMG_8933.HEIC

Connect to Arduino:

sensors_Irbreak.jpeg

transmitter: connect to power and ground.

Receiver: connect to power, ground, and digital pin.

Code:

/*
IR Breakbeam sensor demo!
*/
#define LEDPIN 13
// Pin 13: Arduino has an LED connected on pin 13
// Pin 11: Teensy 2.0 has the LED on pin 11
// Pin  6: Teensy++ 2.0 has the LED on pin 6
// Pin 13: Teensy 3.0 has the LED on pin 13