Specification

Infrared obstacle avoidance sensor is designed for the design of a wheeled robot obstacle avoidance sensor distance adjustable. This ambient light sensor adaptable, high precision, having a pair of infrared transmitter and receiver, transmitter tubes emit a certain frequency of infrared. When detecting the direction of an obstacle (reflector), the infrared receiver tube receiver is reflected back, when the indicator is lit. Through the circuit, the signal output interface output digital signal that can be detected by means of potentiometer knob to adjust the distance. The effective distance from 2 ~ 40cm, working voltage of 3.3V-5V, operating voltage range as broad, relatively large fluctuations in the power supply voltage of the situation stable condition and still work for a variety of microcontrollers, Arduino controller, BS2 controller, attached to the robot that can sense changes in their surroundings.& lt;/p>

Tracking Sensor Module

Tracking sensor module and number 13 comes with LED build a simple circuit to produce tracking sensor warning lamp. Use digital 13 interface comes with the LED. The tracking sensor connected digital 3 interfaces. When the tracking sensor senses detected the key signal. LED lights on, otherwise off.

Routines source code

int Led = 13 ;// define LED Interface
int buttonpin = 3; // define the tracking sensor interface
int val ;// define numeric variables val
void setup()
{
pinMode(Led, OUTPUT) ;// define LED as output interface
pinMode(buttonpin, INPUT) ;// define the tracking sensor as output interface
}
void loop ()
{
val = digitalRead(buttonpin) ;// digital interface will be assigned a value of 3 to read val
if(val == HIGH) // When the tracking sensor detects the signal, LED flashes
{
digitalWrite(Led, HIGH);
}
else
{
digitalWrite (Led, LOW);
}
}