SAMPLE PROJECT
SAMPLE PROJECT
Single sensor line follower
Abstract:-
This paper report describes the techniques for analysing, controlling and improving the material supply delivery within hospitals. Due to increasing demands for patient’s supervision, the jobs like supply of food, medicines, etc….has become a time consuming process. So, a microcontroller based line following robot carrying medicine can be designed for providing the medicine to the patient wherever they need it. A line follower robot is an electronic system that can detect and follow a line drawn on the floor. The robot uses IR sensors to sense the line, in our case we have used single IR LEDs and sensors, facing the ground have been used in this setup.
A proximity sensor can be attached to the robot so that it detects an obstacle present in their way and an alarm. This helps and simplifies the job of material supply and also reduces the manual routine work done by the hospital staff, employees, staff workers in a company or an organisation This technology focuses on the delivery of safe, timely, efficient, effective, patient-centered health care, even it exhibits a great help the industrial workers who had to spend a hard time while delivery.
INTRODUCTION:-
The line follower is a self-operating robot that detects and follows a line that is drawn on the floor. The path consists of a black line on a white surface. The control system used senses a line and manoeuvre the robots to stay on course. The robot is designed to follow sinusoidal curves.
Components used:-
Ø Motor driver*
Ø IR Sensor*
Ø Arduino*
Schematic Representation of LINE FOLLOWER
#Technical Details
· Connect the Digital Pin no. ‘2, 3, 4, 5’ of Arduino to the Motor Driver, which will operate both the wheel.
· Connect ‘D2’ & ‘D1’ to the Left Wheel and ‘D4’ & ‘D5’ to the Right Wheel.
· Connect Data pin of IR Sensor to Digital Pin ‘D8’ of Arduino.
Program Logic:
· If input from IR Sensor is 1 then Left Wheel must rotate.
· If input from IR Sensor is 0 then Right Wheel must rotate.
PROGRAMMING:-
Flowchart:
Program:-
/* declaring constant variable */
const int LEFT_1=2; //for left_1
const int LEFT_2=3; //for left_2
const int RIGHT_1=4; //for Right_1
const int RIGHT_2=5; //for Right_2
const int SENSOR=8; //for Sensor
short int SensorData; //for storing Sensor data
void setup()
{
/* declaring the channels */
pinMode(LEFT_1,1); //o/p for left motor pin1
pinMode(LEFT_2,1); //o/p for left motor pin2
pinMode(RIGHT_1,1); // o/p for right motor pin1
pinMode(RIGHT_2,1); // o/p for right motor pin2
pinMode(SENSOR,0); //i/p sensor
Serial.begin(9600); //for serial monitor
/* Using Serial Monitor we are debugging our code */
}
void loop()
{
/* Here loop will continue infinite times */
SensorData=digitalRead(SENSOR);
If(SensorData)
{
digitalWrite(LEFT_1,0); //left1 low
digitalWrite(LEFT_2,1); //left 2 high
digitalWrite(RIGHT_1,0); //right1 low
digitalWrite(RIGHT_2,0); //right2 low
}
else
{
digitalWrite(LEFT_1,0); //left low
digitalWrite(LEFT_1,0); //left low
digitalWrite(RIGHT_1,0); //right1 low
digitalWrite(RIGHT_2,1); //right2 high
}
Seial.print(SensorData); //for debugging results on serial monitor
}
TESTING:-
Let’s assume these are the only four possible conditions for the sake of understanding. The red dots are the sensors that are just above the black line and the green ones are on the white background.
Case 1 is when the robot has to move forward as only the centre sensor is low. Similarly Case 2 is towards right, Case 3 is towards left and case 4 is stop as all the sensors read high. This is how your code should look like (the terms, LEFT_SENSOR, RIGHT_SENSOR, CENTER_SENSOR, GO_FRONT, TURN_RIGHT, TURN_LEFT, STOP (are all code macros for the corresponding pin in the microcontroller).
VIDEO DEMONSTRATION:-
note:- wherever there is a star (*) mark present that contains a link to that particular content.
CONTACT DETAILS:-
Gautam Gupta (Founder)
Mob.no- 7979986934
Editors:-
Puja Kumari (jiaarohi2512@gmail.com)
Sourabh Sah (sourabhsah93@gmail.com)
Sourabh Sah (sourabhsah93@gmail.com)
Bishwarup Dutta (bishwarupdutta.bd@gmail.com)
Shuvam Banerjee (shuvam.banerjee1998@gmail.com)
Shuvam Banerjee (shuvam.banerjee1998@gmail.com)



Comments
Post a Comment