Difference between revisions of "Infrared Proximity Sensor"
From Waveshare Wiki
Line 3: | Line 3: | ||
|img=[[File:infrared-proximity-sensor-1.jpg|300px|link=http://www.waveshare.com/infrared-proximity-sensor.htm]] | |img=[[File:infrared-proximity-sensor-1.jpg|300px|link=http://www.waveshare.com/infrared-proximity-sensor.htm]] | ||
|caption=Infrared Proximity Sensor, robot obstacle-avoiding module | |caption=Infrared Proximity Sensor, robot obstacle-avoiding module | ||
− | |category=[[Category:AlphaBot|AlphaBot]], [[:Category:Modules|Modules]], [[:Category:Sensors|Sensors]], [[:Category:Light|Light]] | + | |category=[[:Category:AlphaBot|AlphaBot]], [[:Category:Modules|Modules]], [[:Category:Sensors|Sensors]], [[:Category:Light|Light]] |
|brand=Waveshare | |brand=Waveshare | ||
|{{#urlget:amazon|default}}=display | |{{#urlget:amazon|default}}=display | ||
Line 91: | Line 91: | ||
== Support == | == Support == | ||
{{Service00}} | {{Service00}} | ||
+ | |||
+ | [[Category:AlphaBot|AlphaBot]] [[Category:Modules|Modules]] [[Category:Sensors|Sensors]] [[Category:Light|Light]] |
Revision as of 07:32, 1 December 2016
| ||
Introduction
Infrared Proximity Sensor, robot obstacle-avoiding module
More |
Getting Started
Interface
Pin No. | Symbol | Descriptions |
---|---|---|
1 | DOUT | Digital output |
2 | AOUT | Analog output |
3 | GND | Ground |
4 | VCC | Positive power supply (3.3V-5.0V) |
How to use
We will illustrate the usage of the module with a NUCLEO-F103RB (STM32F103) or Arduino UNO development board. 1. Download the Demo code and extract it, then program the examples to your NUCLEO or Arduino development board. 2. Connect the development board to a PC via a serial wire and the module to the development board. Then, power up the development board and start the serial debugging software (e.g. PuTTY or Serial Monitor). Here is the configuration of the connection between the module and the development board.
Port | NUCLEO-F103RB Pin |
---|---|
DOUT | A1 |
AOUT | A0 |
GND | GND |
VCC | 3.3V |
Port | Arduino Pin |
---|---|
DOUT | D2 |
AOUT | A0 |
GND | GND |
VCC | 5V |
Here is the configuration of the serial port.
Baud rate | 9600 |
---|---|
Data bits | 8 |
Stop bit | 1 |
Parity bit | None |
Expected result
- When a barrier is placed near the sensor, the signal indicator will turn on or else turn off.
- The serial output will change according to the distance between the module and the barrier.
Resources
FAQ
Answer:
The effective detection distance of the module can be adjusted by the potentiometer on board. Turn the knob and the effective detection distance will be changed.
{{{5}}}
Answer:
About 5cm.
{{{5}}}
Support
Support
If you require technical support, please go to the Support page and open a ticket.