Hello, This time I will show an application of the infrared sensor module with Arduino.
This module (composed of a pair of LEDs, a infrared transmitter and a receiver and an IC that generates a frequency modulated) is generally used to detect obstacles in robots.
This module has some advantages over a simple LED emitting LEDs with a photodetector. The principal, in this case is that the emission frequency is modulated, preventing ambient light makes the receiver detect the wrong signal. Also, the construction module that facilitates interconnection and didactic use with the Arduino.
Step 2: Mounting
Cut the Styrofoam ball to hold the arm of the servomotor, paint the Styrofoam ball in the shape of an eye, fit the servo arm in the eye and fit them into the servo.
Step 3: Mounting the Shield and connecting sensors
Mounting the Shield in Arduino, install the sensors with the aid of wires.
Note: The receiver module has 4 pins.
– A 5V
– 1 GND
– 1 OUT
– Enable (works to enable the module when it is without the jumper)
* Be careful not to inveter wires.
How to connect the wires:
Shield -> Sensors
pin 12 -> left sensor
pin 11 -> center sensor
pin 10 -> right sensor
For more detail: Robotic Eye using Arduino