Home

Grove - Infrared Reflective Sensor User Manual

image

Contents

1. d Grow the Difference 3 Usage 3 1 With Arduino Let s test the functions of Infrared Reflective Sensor with the following examples 3 1 1 Demo 1 Line Following This sensor can be used to help a robot car follow a black line on white background or vice versa Calibration Hold the sensor 12mm or other height you need above the background Adjust the resistor to make the LED on N N After that keep the distance and move the sensor horizontally above the black line if the indicator 4 y seeed Grow the Difference LED goes off job done The red LED is on The LED is shut If the LED remains on adjust the potentiometer again until it s off 3 1 2 Demo 2 Rotary Speed Detection Let s detect the speed of a motor via this example 1 Connect the Infrared Reflective Sensor onto the D2 port of Grove Base Shield like this y seeed Grow the Difference 2 Run up a motor Note Add a white plate with a black line marked onto the motor so that the sensor can get one signal when the plate rotates a round Sign a black line on the round white paper as this and make it affixed to the motor make sure it can follow the rotation of the motor 3 Download the library Arduino timer library and unzip it into the libraries file of Arduino IDE by the path arduino 1 0 1 libraries 4 Upload the demo code to your Arduino Seeeduino amp include lt Ti
2. itrix to exit import time import grovepi Connect the Grove Infrared Reflective Sensor to digital port D4 SIG NC VCC GND sensor 4 grovepi pinMode sensor INPUT while True tey Sensor returns HIGH on a black surface and LOW on a white surface it geroxepi digitalkead cen on print black surface detected else V y seeed Grow the Difference print white surface detected time sleep 5 except IOError print Error 5 Run the demo sudo python grove infrared reflective sensor py y seeed Grow the Difference 4 Resources Grove Infrared Reflective Sensor Eagle Files Arduino Timer Library e RPR220 Datasheet Infrared Reflective Sensor Source Files 10
3. merOne h gt unsigned int counter 0 void blink Q coumterinr j void timerIsr y seeed j Grow the Difference Timerl detachInterrupt disable the timer Serial pain C mcr spe ub wc mon or 2 Serial print counter DEC Serial println round s counter Timeri attachlnterrupt bimerlee enable the mei void setup j Serial begin 9600 Timerl initialize 1000000 set a timer of length lsec attachInterrupt 0 blink RISING INTO Timerl attachInterrupt timerIsr attach the service routine here void loop do nothing 5 Open the Serial Monitor to read the data y seeed Grow the Difference e comas NE TT The speed of the motor Oround s The speed of the motor T6round s The speed of the motor S4round s The speed of the motor S3round s The speed of the motor B85round s The speed of the motor 85round s The speed of the motor 85round s The speed of the motor B85round s The speed of the motor 85round s The speed of the motor S5round s 3 1 3 With Raspberry Pi 1 You should have got a raspberry pi and a grovepi or grovepi 2 You should have completed configuring the development enviroment otherwise follow here 3 Connection Plug the sensor to grovepi socket D4 by using a grove cable 4 Navigate to the demos directory cd yourpath GrovePi Software Python Toseethe code nano grove inirared reflective sensor py C
4. seeed Grow the Difference Grove Infrared Reflective Sensor User Manual Release date 2015 9 22 Version 1 0 Wiki http www seeedstudio com wiki Grove Infrared Reflective Sensor Bazaar http www seeedstudio com depot Grove Infrared Reflective sensor p 1230 html cPath 25 31 V y seeed Grow the Difference Document Revision History V y seeed Grow the Difference Contents Document Revision History Henne 2 LL Intro ttObD er Co ee qud paa E re URN o d UR aH UR QE E Esa DET QR PS US 2 2 Specification 3 3 Usage eee mmm e emememememememememe n e ennemis 4 3 1 I EEE NE FO ME IBN UNI QUEEN Sa NEU EN 4 3 1 1 Demo 1 Line Following HH 4 3 1 2 Demo 2 Rotary Speed Detection e 5 3 1 3 With Raspberry Pi HH eene 3 d EEE o LUE 10 V y seeed Grow the Difference Disclaimer For physical injuries and possessions loss caused by those reasons which are not related to product quality such as operating without following manual guide natural disasters or force majeure we take no responsibility for that Under the supervision of Seeed Technology Inc this manual has been compiled and published which covered the latest product description and specification The content of this manual is subject to change without notice Copyright The design of this product including software and its accessories is under tutelage of laws Any action to violate relevant right of our product will be penalized thro
5. ugh law Please consciously observe relevant local laws in the use of this product y seeed Grow the Difference 1 Introduction The reflectivity of infrared light varies with the color and distance of the reflecting surface According to this principle Grove Infrared Reflective Sensor utilizes a RPR220 reflective photosensor module to detect color and distance When a light colored object approaches the signal intensity received by infrared reflective sensor increases and the indicator LED on board turns red When a dark colored object approaches the intensity decreases and the LED turns off This sensor is a basic and widely used part in applications such as line following cars rotary speed detection auto data logging on utility meters or other situations where color or distance contrast is sharp V y seeed Grow the Difference 2 Specification Voltage 4 5 5 5V Current 14 69 15 35 mA Effective Distance 4 15 mm Detectable Length black line I mm Sensitivity adjusting potentiometer LMV358 O O rd AN ne Ld j RPR220 Reflective photosensor Indicator LED RPR220 Reflective photosensor High resolution Infrared Reflective sensor LMV358 Rail to Rail Operational Amplifier Indicator LED The LED will turn on when the received infrared light intensity exceeds a preset level Sensitivity adjusting potentiometer adjust the light threshold of the sensor y seee

Download Pdf Manuals

image

Related Search

Related Contents

TOSfileData  Porter-Cable DBSI325 Portable Generator User Manual  Miele G 5605 SCi Futura Dimension Series Specification Sheet    Samsung VC-8828E Priručnik za korisnike  HP MINI3111000NR User's Manual  Samsung SGH-Z140 Manual de Usuario  User`s Manual - B&H Photo Video Digital Cameras, Photography  - agenziazimbardi  注意 警告 - ロジテック  

Copyright © All rights reserved.
Failed to retrieve file