Вы находитесь на странице: 1из 3

4/2/2016 Arduino Obstacle Collision Prevention Module: Manual and Tutorial | Henry's Bench


Contents [show]

 Arduino Infrared Collision Avoidance

This is yet another one of those modules with cool possibilities.   You could for
example, sound an alarm when something got too close or you could change the
direction of  a robot or vehicle. Sometimes needle-nose pliers
just don't cut it.
The device consists of an Infrared Transmitter, an Infrared Detector, and support
circuitry.  It only requires three connections. When it detects an obstacle within
range it will send an output low.
More Popular Pages
The ACS712 Current Sensor with an
  Keyes KY-040 Arduino Rotary
Encoder User Manual

How to Purchase U8glib Arduino OLED Tutorial 1:

Hello World on Steroids

There are several different styles of these modules available.   If this particular one suits your needs,  you can MAX6675 Temp Module Arduino
purchase one from the sellers below: Manual and Tutorial
ACS712 Current Sensor User Manual
IC Station
Arduino IR Obstacle Sensor: Tutorial
eBay and Manual

Amazon Arduino ADS1115 Module Getting

Started Tutorial
ACS712 Arduino AC Current Tutorial
IR Obstacle Detection Module Pin Outs Arduino Rain Sensor Module Guide
and Tutorial
The drawing and table below identify the function of module pin outs, controls and indicators.
Arduino Sound Detection Sensor:
Tutorial and User Manual

When PanaVise is not in your


Pin, Control Indicator Description

Vcc 3.3 to 5 Vdc Supply Input

Gnd Ground Input

Out Output that goes low when obstacle is in range

Power LED Illuminates when power is applied

Obstacle LED Illuminates when obstacle is detected

Let her see you wearing these!
Distance Adjust Adjust detection distance. CCW decreases distance.
CW increases distance.

IR Emitter Infrared emitter LED

http://henrysbench.capnfatz.com/henrys-bench/arduino-sensors-and-input/arduino-ir-obstacle-sensor-tutorial-and-manual/ 1/3
4/2/2016 Arduino Obstacle Collision Prevention Module: Manual and Tutorial | Henry's Bench

IR Receiver Infrared receiver that receives signal transmitted by Infrared emitter.

Arduino IR Obstacle Collision Module Tutorial

Connect the Arduino to the Detection Module
Use the picture below.  It only requires three wires.

I use these. They are plenty

flexible for my needs.

Menu 

The folks who tweak on their

vape pipes use these. I have a
set. They work great for my
Arduino projects.

Copy, Paste and Upload the Sample Sketch

// IR Obstacle Collision Detection Module

// Henry's Bench

int LED = 13; // Use the onboard Uno LED

int isObstaclePin = 7; // This is our input pin
int isObstacle = HIGH; // HIGH MEANS NO OBSTACLE

void setup() {
pinMode(LED, OUTPUT);
pinMode(isObstaclePin, INPUT);

void loop() {
isObstacle = digitalRead(isObstaclePin);
if (isObstacle == LOW)
Serial.println("OBSTACLE!!, OBSTACLE!!");
digitalWrite(LED, HIGH);
digitalWrite(LED, LOW);

Test the Tutorial Sketch

Move your hand towards the IR LEDs.  As you near them, the Output LED on the module and the LED for pin
13 on your Arduino will illuminate.  Open your serial monitor and vary the distance of your hand while
viewing the serial monitor.   The output should look like the picture below:

http://henrysbench.capnfatz.com/henrys-bench/arduino-sensors-and-input/arduino-ir-obstacle-sensor-tutorial-and-manual/ 2/3
4/2/2016 Arduino Obstacle Collision Prevention Module: Manual and Tutorial | Henry's Bench

Share this:

1 Share 0 subm it Tw eet  More

RedWaves theme by Themient

http://henrysbench.capnfatz.com/henrys-bench/arduino-sensors-and-input/arduino-ir-obstacle-sensor-tutorial-and-manual/ 3/3