• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomeArduinoLinkSprite Sensor Pack 101Use Path Tracking Sensoron on Arduino
Previous Next

Use Path Tracking Sensoron on Arduino

Posted by: Alvin Jin , March 4, 2014

[vc_row][vc_column width=”1/1″][vc_tour][vc_tab title=”Introduction” tab_id=”1393916444-1-39″][vc_column_text]LinkSprite path tracking sensor uses a reflective infrared sensor (tcrt500). The infrared light is emitted and reflected back to the receiver, it’s then inverted by 74LS14 and output to the output pin and the LED. The output signal is a digital signal.

There is 3 output pins: output signal, power supply and ground.

On a white surface, the output signal will be HIGH. On a black/non-reflective surface, the output signal will be low and the LED is off. The working distance from the sensor to the surface is around 1.5cm.

[/vc_column_text][/vc_tab][vc_tab title=”Hardware list and Wiring Diagram ” tab_id=”1393916444-2-91″][vc_column_text]Hardware List:

1 x LinkSprite path tracking sensor

1 x Arduino UNO

3 x Male to female DuPont line

Wiring Diagram

wifi0s0-182223649520140304_134642

Path Tracking Sensor                 Arduino

‘-‘                                                   GND

‘+’                                                    5V

‘S’                                                     A0[/vc_column_text][/vc_tab][vc_tab title=”Test Code” tab_id=”1393925971373-2-0″][vc_column_text]

int sensorPin = A0;
int ledPin = 13;
int sensorValue = 0;

void setup() {
  pinMode(ledPin, OUTPUT);  
  Serial.begin(115200);
}

void loop() {
  sensorValue = analogRead(sensorPin); 
  Serial.println(sensorValue);  
  digitalWrite(ledPin, HIGH);  
  delay(100);          
  digitalWrite(ledPin, LOW);   
  delay(100);                  
}

[/vc_column_text][/vc_tab][vc_tab title=”Test Result” tab_id=”1393926268333-3-9″][vc_column_text]There is a LED on the module, it can be very intuitive to see the recognition state of the path tracking  sensor .

wifi0s08760432911393913893867

wifi0s0-3088070641393913917014

wifi0s0-7124224591393913939513

At the above images we were moving the sensor to discern the black subject, that can used on line patrol car

The test result as below,

CWKDQ@{PDGTD]P1S3UT(EDO

‘0’ means Detects the black line, ‘1000 +’ represents a non-black[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]

Tags: LinkSprite Sensor Pack 101

Share!
Tweet

Alvin Jin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors