INTERFACING OBSTACLE SENSOR WITH BHARAT -PI

by madhankarthick in Circuits > Sensors

155 Views, 2 Favorites, 0 Comments

INTERFACING OBSTACLE SENSOR WITH BHARAT -PI

Road-Blocker.jpg
800_5e29929b177a8.jpg

An obstacle detection system is a device or system that is designed to detect the presence of obstacles in a specific area. These systems can be used in a variety of applications, such as in vehicles to assist with driving, in robotics to help with navigation, and in industrial settings to protect workers and equipment. Common types of obstacle detection systems include radar, lidar, ultrasonic sensors, and cameras. These systems use different techniques to detect obstacles, such as measuring distance, using infrared radiation, or analyzing images.

About IR Obstacle Avoidance Sensor

Road-Blocker.jpg

The infrared (IR) obstacle sensor is used to detect the presence of any obstacle in front of the sensor module by using the infrared signal. The detection range is from 2cm to 30cm. The detection range can be adjusted by a built-in potentiometer.


Pinout

hj.jpg

IR obstacle avoidance sensor includes three pins:

·       

GND pin: needs to be connected to GND (0V)

·       VCC pin: needs to be connected to VCC (5V or 3.3v)

·       OUT pin: is an output pin: LOW when there is an obstacle, HIGH when there is no obstacle. This pin needs to be connected to Arduino's input pin.


How It Works?

An infrared obstacle sensor module has a built-in IR transmitter and IR receiver. The IR transmitter emits the IR signal. The IR receiver looks for the reflected IR signal to determine if the object is present or not. The presence of obstacle is reflected in the OUT pin:

·       If the obstacle is present in front of the sensor, the sensor's OUT pin is LOW

·       If the obstacle is NOT present in front of the sensor, the sensor's OUT pin is HIGH


Requriments

Artboard-1-e1686767346235.jpg
wires.jpg
800_5e29929b177a8.jpg

·      Bharat-pi (board)

·      Audinuo-ide

·      Obstacle avoidance sensor

• Interfacing Obstacle Sensor With Bhart Pi

gh.jpg
hh.jpg
kl.jpg
WhatsApp Image 2023-09-22 at 08.17.39.jpg

Connections are given as follow:

Gnd pin :gnd

Vcc pin:5V

Out pin:2

Source Code and Programming

OIP (6).jpeg

const int SENSOR_PIN = 2;

void setup() {

 Serial.begin(9600);

 pinMode(SENSOR_PIN, INPUT);

}

void loop() {

 int state = digitalRead(SENSOR_PIN);

 if (state == LOW)

   Serial.println("The obstacle is present");

 else

   Serial.println("The obstacle is NOT present");

 delay(100);

}

code avilable at git hub : https://github.com/Madhankarthick/interfacing-obstacle-sensor-with-bharat-pii/blob/96f32390d50358ae4340e85fdccf67f15a61526a/obstacle%20sensor.txt

Conclusion:

In conclusion, obstacle detection sensors play a critical role in enhancing safety and efficiency across various industries. These sensors provide real-time information about the presence of obstacles, enabling automated systems to make informed decisions. Whether in autonomous vehicles, manufacturing processes, or smart infrastructure, obstacle detection sensors are indispensable tools for creating a safer and more efficient future. Their continued development and integration into various applications hold the promise of improved safety, reduced accidents, and increased productivity.

Application:

Continental_PP_WrongWayDriver.jpg
f833b1ac164f311921520ecf85befbdc.jpg
OIP (1).jpeg
OIP.jpeg

·       At intersections in conjunction with advanced signal traffic control systems

·       On freeways for traffic monitoring and incident detection purposes

·       To help drivers reversing vehicles into tight parking spaces and unfamiliar docks

·       To minimize repair costs, vehicle downtime, and injuries by avoiding collisions

Video

Interfacing Obstacle Sensor With Bhart-Pi