SlideShare a Scribd company logo
1 of 28
1
Project Members:
• K.Harsha Vardhan (20351-EE-012)
• R.Hima Ruthvik (20351-EE-013)
• T.Krishna Sai (20351-EE-016)
• D.Lalitesh (20351-EE-017)
Under The Esteemed
Guidence of:
Mr.S.Ravikanth (Mtech)
Multifunctional Robot Using Arduino Uno
11/12/2022
2
Objective
The main objective of this project is to make a user friendly easily portable
multifunctional robot for carrying goods,helping for old-age people,spy etc..
3
CONTENTS
 Line Following Robot
• Circuit Diagram
• Procedure
• Code
• Output
• Trouble shooting
 Obstacle Avoiding Robot
• Circuit Diagram
• Procedure
• Code
• Output
• Trouble shooting
 Maze Solving Robot
• Circuit Diagram
• Procedure
• Code
• Output
• Trouble shooting
 Edge Avoiding Robot
• Circuit Diagram
• Procedure
• Code
• Output
• Trouble shooting
11/12/2022
4
Working Model Image
Working Model Image
5
6
Components Required:
1) LDR
An LDR is a component that has a (variable) resistance that changes with t
he light intensity that falls upon it. This allows them to be used in light sensi
ng circuits. They are made of high resistance semiconductor material. Whe
n light hits the device, the photons give electrons energy. This makes them
jump into the conductive band and thereby conduct electricity.LDRs are oft
en used in circuits where it is necessary to detect the presence or the level
of light. They can be described by a variety of names from light dependent r
esistor, LDR, photoresistor, or even photocell or photoconductor. A Light S
ensor is something that a robot can use to detect the current ambient light l
evel - i.e. how bright/dark it is.
7
2) Servo Motor
A servo motor is a type of motor that can rotate with great precision. If you want
to rotate an object at some specific angles or distance, then you use a servo
motor. It is just made up of a simple motor which runs through a servo mechani
sm. A servo motor usually comes with a gear arrangement that allows us to get
a very high torque servo motor in small and lightweight packages. Due to these
features, they are being used in many applications like toy cars, RC helicopters
and planes, Robotics etc.
8
3) Ultra Sonic Sensor
An ultrasonic sensor is an electronic device that is used to measure the distance of
an object by emitting ultrasonic sound waves. It converts the reflected sound wave
s into an electrical signal. This is exactly how bats navigate in the dark. A bat produ
ces ultrasonic sound waves that bounce off a wall, or an insect so the bat knows
where there is an obstruction and where there is food.
9
4) Arduino Uno
The Arduino UNO is a microcontroller board based on a removable, dual-inline-packa
ge (DIP) ATmega328 AVR microcontroller. It is a board based microcontroller (small
computer on a chip) with facilities for processing data and I/O (input and output) pins f
or receiving and sending signals to devices. It can be powered and programmed usin
g a computer or mobile phone.
10
Features of Arduino Uno:
Microcontroller: ATmega328
Operating voltage: 5 v
Input voltage (recommended): 7-12 V
Digital I/O pins: 14 (of which 6 provide PWM output)
Analog input pins: 6
DC current per I/O pin: 40 mA
DC current for 3.3V pin: 50 mA
Flash memory: 32 KB (ATmega328)
SRAM: 2 KB (ATmega328)
EEPROM: 1 KB (ATmega328)
11
5) Motor Driver
The Motor Driver is a module for motors that allows you control the working s
peed and direction of two motors simultaneously. This Motor Driver is design
ed and developed based on L293D IC. L293D is a 16 Pin Motor Driver IC.
Light Following Robot
12
Circuit Diagram
13
14
1. Build a Motion Robot Activity, then keep the chassis Model as it is because
we are going to use that model in this activity as it is. We are going to add s
ensors on that module.
2. First remove batteries from the cell holder holder/turn off the switch on the c
ell holder.
3. Connect an Arduino board to your laptop using an Arduino cable.
4. Open Arduino IDE.
5. Go to File->Examples->Sparklebox_code->Select build_a_Light_Following_
Robot
6. Go to Tools->Board->Select Arduino Uno.
7. Go to Tools->Port->Select com port(Arduino Uno).
8. Click on the upload option & wait till done Uploading.
9. Now disconnect the Arduino Board from your laptop/Desktop.
Procedure
CODE
15
#define MLa 8 //left motor 1st pin
#define MLb 9 //left motor 2nd pin
#define MRa 10 //right motor 1st pin
#define MRb 11 //right motor 2nd pin
#define left_LDR 3
#define right_LDR 4
void setup()
{
pinMode(left_LDR, INPUT);
pinMode(right_LDR, INPUT);
pinMode(Mla, OUTPUT);
pinMode(MLb, OUTPUT);
pinMode(MRa, OUTPUT);
Serial.begin(9600);
}
Void loop()
{
16
if (digitalRead(left LDR)== HIGH && digitalRead(right_LDR) == HIGH)
{
digitalWrite(MLa, LOW);
digitalWrite(MLb, LOW);
digitalWrite(MRa, LOW);
digitalWrite(MRb, LOW);
}
if (digitalRead(left_LDR)== LOW && digitalRead(right_LDR)== LOW)
{
digitalWrite(MLa, HIGH);
digitalWrite(MLb, LOW);
digitalWrite(MRa, HIGH);
digitalWrite(MRb, LOW);
}
if (digitalRead(left_LDR)== LOW && digitalRead(right_LDR) HIGH)
{
digitalWrite(MLa, LOW);
digitalWrite(MLb, LOW);
digitalWrite(MRa, HIGH);
digitalWrite(MRb, LOW);
}
}
17
Output
Turn OFF the lights in your room/surrounding area where the robot is present.
Turn ON the torchlight of your mobile phone & keep it in front of any one of the
sensors. The robot will move in that direction. Example: If the lights fall on bot
h the sensors then the robot will move in Forward direction only. Otherwise it
will stop.
Troubleshooting
Issue: Robot is not working.
Solution:
1.If not getting power check the wire connections once. Always connect
batteries with correct polarity in the cell holder, cell holder red wire should con
nect to + polarity & Black wire to the -polarity of the motor driver module.
18
Obstacle Avoder Robot
19
Circuit Diagram
20
Procedure
1. If you performed the previous buld a motion robot. Activity, then keep the
chassis model as it is because we are going to use that model in this acti
vity as it is. We are going to add only an ultrasonic sensor on that model.
2. First remove batteries from the battery holder.
3. Connect an Arduino board to your laptop using an Arduino cable
4. Open Arduino IDE.
5. Go to File->Examples->Sparklebox_code->Select build_Obstacle_Avoid
er_Robot.
6. Go to Tools->Board->Select Arduino Uno.
7. Go to Tools->Port->Select com port(Arduino).
8. Click on the verify option.
9. Click on the upload option.
10.Disconnect Arduino cable from the Arduino board.
21
Output
When the boards & sensor connections are properly done with batteries attac
hed, the robot will work immediately. Try to check the robot by putting an obje
ct in front of the sensor's eyes.
Troubleshooting
Issue: Robot is not working.
Solution:
1. Check whether you connected all batteries in the battery holder or not.
2. If batteries are connected then check whether the Arduino board is getting
power or notthrough the VIN & GND pin still power, then you need to repla
ce the batteries with new.
3. If ok then check with motor wire & sensor connections with Arduino Board.
12-Nov-22
22
Maze Solving Robot
Circuit Diagram
23
24
Procedure
1. If You performed the previous Build a Motion Robot Activity, then keep the
chassis Model as it is because we are going to use that model in this activi
ty as it is. We are going to add sensor & servo motoron that model.
2. First remove batteries from the cell holder holder.
3. Connect an Arduino board to your laptop using an Arduino cable.
4. Open Arduino IDE.
5. Go to File->Examples->Sparklebox_code->Select build_a_Maze_Solving_
Robot.
6. Go to Tools->Board->Select Arduino Uno.
7. Go to Tools->Port->Select com port(Arduino Uno).
8. Click on the upload option & wait till done Uploading.
9. Now disconnect the Arduino Board from your laptop/Desktop.
11/12/2022
25
11/12/2022
26
27
Output
You will see that the robot starts forward, when there is no obstacle in front
of the robot. If an obstacle detects then it will stop->turn backward->again
stop->sensor rotate left & right direction to check if any obstacle is present
in that side. If the obstacle on the left side is near to the robot then the robo
t will take a right turn.
Troubleshooting
1. Issue: Robot is not working
2. Solution: Make sure that cells are connected in a cell holder with correct p
olarities.
3. Issue: Batteries heating in the cell holder
4. Solution: Do not connect cell holder red wire to -ve polarity of motor driver
holder it will cause reversebattery connections..Cell holder red wire to +ve
polarity of motor driver module.Cell holder black wire to -ve polarity of mot
or driver module.
5. Issue: My robot is not working properly as coded.Solution: Make sure that
sensor is connected properly & getting power. According to sensor output,
the robot will work.
6. Solution: Try to interchange motor input pins which are connected to the
arduino board
CONCLUSION
28
Hence we completed the project of multifunctional robot
So it can be worked as :
Light Following Robot
Obstacle Avoiding Robot
Maze Solving Robot
Edge Avoiding Robot…….

More Related Content

What's hot

Obstacle Avoiding Robot Report Robot23
Obstacle Avoiding Robot Report Robot23Obstacle Avoiding Robot Report Robot23
Obstacle Avoiding Robot Report Robot23
Abhijeet kapse
 

What's hot (20)

Obstacle Avoiding Robot Report Robot23
Obstacle Avoiding Robot Report Robot23Obstacle Avoiding Robot Report Robot23
Obstacle Avoiding Robot Report Robot23
 
Android controlled robot
Android controlled robotAndroid controlled robot
Android controlled robot
 
Obstacle Avoidance Robotic Vehicle
Obstacle Avoidance Robotic VehicleObstacle Avoidance Robotic Vehicle
Obstacle Avoidance Robotic Vehicle
 
Bluetooth controlled robot using arduino uno and HC-05
Bluetooth controlled robot using arduino uno and HC-05Bluetooth controlled robot using arduino uno and HC-05
Bluetooth controlled robot using arduino uno and HC-05
 
Obstacle Avoidance Robot (Powered by Arduino)
Obstacle Avoidance Robot (Powered by Arduino)Obstacle Avoidance Robot (Powered by Arduino)
Obstacle Avoidance Robot (Powered by Arduino)
 
Obstacle avoiding robot(Lab report)
Obstacle  avoiding  robot(Lab report)Obstacle  avoiding  robot(Lab report)
Obstacle avoiding robot(Lab report)
 
Obstacle Avoidance Robot
Obstacle Avoidance RobotObstacle Avoidance Robot
Obstacle Avoidance Robot
 
Robotics project ppt
Robotics project pptRobotics project ppt
Robotics project ppt
 
Robot controlled car using Wireless Module
 Robot controlled car using Wireless Module Robot controlled car using Wireless Module
Robot controlled car using Wireless Module
 
obstacle avoiding robot
obstacle avoiding robotobstacle avoiding robot
obstacle avoiding robot
 
Pick & place robot ppt
Pick & place robot pptPick & place robot ppt
Pick & place robot ppt
 
Bluetooth Controlled Robot/Car
Bluetooth Controlled Robot/CarBluetooth Controlled Robot/Car
Bluetooth Controlled Robot/Car
 
Obstacle avoiding robot
Obstacle avoiding robotObstacle avoiding robot
Obstacle avoiding robot
 
Ultrasonic sensor
Ultrasonic sensorUltrasonic sensor
Ultrasonic sensor
 
Smart eye
Smart eyeSmart eye
Smart eye
 
Obstacle detection using ultra sonic sensor
Obstacle detection using ultra sonic sensorObstacle detection using ultra sonic sensor
Obstacle detection using ultra sonic sensor
 
Industrial robotics
Industrial roboticsIndustrial robotics
Industrial robotics
 
Obstacle Avoidance Robot Summer training Presentation
Obstacle Avoidance Robot Summer training Presentation Obstacle Avoidance Robot Summer training Presentation
Obstacle Avoidance Robot Summer training Presentation
 
Bluetooth controled robot
Bluetooth controled robotBluetooth controled robot
Bluetooth controled robot
 
Robotic car project presentation
Robotic car project presentationRobotic car project presentation
Robotic car project presentation
 

Similar to Multifunctional Robot (PPT).pptx

Final_Technical_Report_KevinHuang
Final_Technical_Report_KevinHuangFinal_Technical_Report_KevinHuang
Final_Technical_Report_KevinHuang
Kevin Huang
 
OBSTACLE_AVOIDING_ROBOT.pptx
OBSTACLE_AVOIDING_ROBOT.pptxOBSTACLE_AVOIDING_ROBOT.pptx
OBSTACLE_AVOIDING_ROBOT.pptx
LukeParker46
 
Aman Khan's PPT FILE.pptx
Aman Khan's PPT FILE.pptxAman Khan's PPT FILE.pptx
Aman Khan's PPT FILE.pptx
AnkitSharma892379
 
ECET 3640 Group 2 Project Report
ECET 3640 Group 2 Project ReportECET 3640 Group 2 Project Report
ECET 3640 Group 2 Project Report
Logan Isler
 

Similar to Multifunctional Robot (PPT).pptx (20)

Ball following Robot using ESP32-cam & Arduino UNO
Ball following Robot using ESP32-cam & Arduino UNOBall following Robot using ESP32-cam & Arduino UNO
Ball following Robot using ESP32-cam & Arduino UNO
 
371275588.pptx
371275588.pptx371275588.pptx
371275588.pptx
 
pdf-obstacle-avoiding-robot.docx
pdf-obstacle-avoiding-robot.docxpdf-obstacle-avoiding-robot.docx
pdf-obstacle-avoiding-robot.docx
 
Advanced View Arduino Projects List - Use Arduino for Projects.pdf
Advanced View Arduino Projects List - Use Arduino for Projects.pdfAdvanced View Arduino Projects List - Use Arduino for Projects.pdf
Advanced View Arduino Projects List - Use Arduino for Projects.pdf
 
Final_Technical_Report_KevinHuang
Final_Technical_Report_KevinHuangFinal_Technical_Report_KevinHuang
Final_Technical_Report_KevinHuang
 
Automatic railway gate control using arduino uno
Automatic railway gate control using arduino unoAutomatic railway gate control using arduino uno
Automatic railway gate control using arduino uno
 
Obstacle and edge detector report.
Obstacle and edge detector report.Obstacle and edge detector report.
Obstacle and edge detector report.
 
OBSTACLE_AVOIDING_ROBOT.pptx
OBSTACLE_AVOIDING_ROBOT.pptxOBSTACLE_AVOIDING_ROBOT.pptx
OBSTACLE_AVOIDING_ROBOT.pptx
 
Arduino_Project_Report
Arduino_Project_ReportArduino_Project_Report
Arduino_Project_Report
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Aman Khan's PPT FILE.pptx
Aman Khan's PPT FILE.pptxAman Khan's PPT FILE.pptx
Aman Khan's PPT FILE.pptx
 
Automatic railway gate control using arduino uno
Automatic railway gate control using arduino unoAutomatic railway gate control using arduino uno
Automatic railway gate control using arduino uno
 
Introduction to Arduino
Introduction to Arduino Introduction to Arduino
Introduction to Arduino
 
Understanding robotics: Introductory Event | GDSC RCCIIT
Understanding robotics: Introductory Event | GDSC RCCIITUnderstanding robotics: Introductory Event | GDSC RCCIIT
Understanding robotics: Introductory Event | GDSC RCCIIT
 
Ppt
PptPpt
Ppt
 
AUTOMATIC RAILWAY GATE AND SIGNALLING SYSTEM
AUTOMATIC RAILWAY GATE AND SIGNALLING SYSTEMAUTOMATIC RAILWAY GATE AND SIGNALLING SYSTEM
AUTOMATIC RAILWAY GATE AND SIGNALLING SYSTEM
 
What is Arduino ?
What is Arduino ?What is Arduino ?
What is Arduino ?
 
ECET 3640 Group 2 Project Report
ECET 3640 Group 2 Project ReportECET 3640 Group 2 Project Report
ECET 3640 Group 2 Project Report
 
BATCH 28 PHASE 3.pptx
BATCH 28 PHASE 3.pptxBATCH 28 PHASE 3.pptx
BATCH 28 PHASE 3.pptx
 
DIGITAL LOGIC DESIGN (1) PROJECT REPORT.docx
DIGITAL LOGIC DESIGN (1) PROJECT REPORT.docxDIGITAL LOGIC DESIGN (1) PROJECT REPORT.docx
DIGITAL LOGIC DESIGN (1) PROJECT REPORT.docx
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 

Multifunctional Robot (PPT).pptx

  • 1. 1 Project Members: • K.Harsha Vardhan (20351-EE-012) • R.Hima Ruthvik (20351-EE-013) • T.Krishna Sai (20351-EE-016) • D.Lalitesh (20351-EE-017) Under The Esteemed Guidence of: Mr.S.Ravikanth (Mtech) Multifunctional Robot Using Arduino Uno
  • 2. 11/12/2022 2 Objective The main objective of this project is to make a user friendly easily portable multifunctional robot for carrying goods,helping for old-age people,spy etc..
  • 3. 3 CONTENTS  Line Following Robot • Circuit Diagram • Procedure • Code • Output • Trouble shooting  Obstacle Avoiding Robot • Circuit Diagram • Procedure • Code • Output • Trouble shooting  Maze Solving Robot • Circuit Diagram • Procedure • Code • Output • Trouble shooting  Edge Avoiding Robot • Circuit Diagram • Procedure • Code • Output • Trouble shooting
  • 6. 6 Components Required: 1) LDR An LDR is a component that has a (variable) resistance that changes with t he light intensity that falls upon it. This allows them to be used in light sensi ng circuits. They are made of high resistance semiconductor material. Whe n light hits the device, the photons give electrons energy. This makes them jump into the conductive band and thereby conduct electricity.LDRs are oft en used in circuits where it is necessary to detect the presence or the level of light. They can be described by a variety of names from light dependent r esistor, LDR, photoresistor, or even photocell or photoconductor. A Light S ensor is something that a robot can use to detect the current ambient light l evel - i.e. how bright/dark it is.
  • 7. 7 2) Servo Motor A servo motor is a type of motor that can rotate with great precision. If you want to rotate an object at some specific angles or distance, then you use a servo motor. It is just made up of a simple motor which runs through a servo mechani sm. A servo motor usually comes with a gear arrangement that allows us to get a very high torque servo motor in small and lightweight packages. Due to these features, they are being used in many applications like toy cars, RC helicopters and planes, Robotics etc.
  • 8. 8 3) Ultra Sonic Sensor An ultrasonic sensor is an electronic device that is used to measure the distance of an object by emitting ultrasonic sound waves. It converts the reflected sound wave s into an electrical signal. This is exactly how bats navigate in the dark. A bat produ ces ultrasonic sound waves that bounce off a wall, or an insect so the bat knows where there is an obstruction and where there is food.
  • 9. 9 4) Arduino Uno The Arduino UNO is a microcontroller board based on a removable, dual-inline-packa ge (DIP) ATmega328 AVR microcontroller. It is a board based microcontroller (small computer on a chip) with facilities for processing data and I/O (input and output) pins f or receiving and sending signals to devices. It can be powered and programmed usin g a computer or mobile phone.
  • 10. 10 Features of Arduino Uno: Microcontroller: ATmega328 Operating voltage: 5 v Input voltage (recommended): 7-12 V Digital I/O pins: 14 (of which 6 provide PWM output) Analog input pins: 6 DC current per I/O pin: 40 mA DC current for 3.3V pin: 50 mA Flash memory: 32 KB (ATmega328) SRAM: 2 KB (ATmega328) EEPROM: 1 KB (ATmega328)
  • 11. 11 5) Motor Driver The Motor Driver is a module for motors that allows you control the working s peed and direction of two motors simultaneously. This Motor Driver is design ed and developed based on L293D IC. L293D is a 16 Pin Motor Driver IC.
  • 14. 14 1. Build a Motion Robot Activity, then keep the chassis Model as it is because we are going to use that model in this activity as it is. We are going to add s ensors on that module. 2. First remove batteries from the cell holder holder/turn off the switch on the c ell holder. 3. Connect an Arduino board to your laptop using an Arduino cable. 4. Open Arduino IDE. 5. Go to File->Examples->Sparklebox_code->Select build_a_Light_Following_ Robot 6. Go to Tools->Board->Select Arduino Uno. 7. Go to Tools->Port->Select com port(Arduino Uno). 8. Click on the upload option & wait till done Uploading. 9. Now disconnect the Arduino Board from your laptop/Desktop. Procedure
  • 15. CODE 15 #define MLa 8 //left motor 1st pin #define MLb 9 //left motor 2nd pin #define MRa 10 //right motor 1st pin #define MRb 11 //right motor 2nd pin #define left_LDR 3 #define right_LDR 4 void setup() { pinMode(left_LDR, INPUT); pinMode(right_LDR, INPUT); pinMode(Mla, OUTPUT); pinMode(MLb, OUTPUT); pinMode(MRa, OUTPUT); Serial.begin(9600); } Void loop() {
  • 16. 16 if (digitalRead(left LDR)== HIGH && digitalRead(right_LDR) == HIGH) { digitalWrite(MLa, LOW); digitalWrite(MLb, LOW); digitalWrite(MRa, LOW); digitalWrite(MRb, LOW); } if (digitalRead(left_LDR)== LOW && digitalRead(right_LDR)== LOW) { digitalWrite(MLa, HIGH); digitalWrite(MLb, LOW); digitalWrite(MRa, HIGH); digitalWrite(MRb, LOW); } if (digitalRead(left_LDR)== LOW && digitalRead(right_LDR) HIGH) { digitalWrite(MLa, LOW); digitalWrite(MLb, LOW); digitalWrite(MRa, HIGH); digitalWrite(MRb, LOW); } }
  • 17. 17 Output Turn OFF the lights in your room/surrounding area where the robot is present. Turn ON the torchlight of your mobile phone & keep it in front of any one of the sensors. The robot will move in that direction. Example: If the lights fall on bot h the sensors then the robot will move in Forward direction only. Otherwise it will stop. Troubleshooting Issue: Robot is not working. Solution: 1.If not getting power check the wire connections once. Always connect batteries with correct polarity in the cell holder, cell holder red wire should con nect to + polarity & Black wire to the -polarity of the motor driver module.
  • 20. 20 Procedure 1. If you performed the previous buld a motion robot. Activity, then keep the chassis model as it is because we are going to use that model in this acti vity as it is. We are going to add only an ultrasonic sensor on that model. 2. First remove batteries from the battery holder. 3. Connect an Arduino board to your laptop using an Arduino cable 4. Open Arduino IDE. 5. Go to File->Examples->Sparklebox_code->Select build_Obstacle_Avoid er_Robot. 6. Go to Tools->Board->Select Arduino Uno. 7. Go to Tools->Port->Select com port(Arduino). 8. Click on the verify option. 9. Click on the upload option. 10.Disconnect Arduino cable from the Arduino board.
  • 21. 21 Output When the boards & sensor connections are properly done with batteries attac hed, the robot will work immediately. Try to check the robot by putting an obje ct in front of the sensor's eyes. Troubleshooting Issue: Robot is not working. Solution: 1. Check whether you connected all batteries in the battery holder or not. 2. If batteries are connected then check whether the Arduino board is getting power or notthrough the VIN & GND pin still power, then you need to repla ce the batteries with new. 3. If ok then check with motor wire & sensor connections with Arduino Board.
  • 24. 24 Procedure 1. If You performed the previous Build a Motion Robot Activity, then keep the chassis Model as it is because we are going to use that model in this activi ty as it is. We are going to add sensor & servo motoron that model. 2. First remove batteries from the cell holder holder. 3. Connect an Arduino board to your laptop using an Arduino cable. 4. Open Arduino IDE. 5. Go to File->Examples->Sparklebox_code->Select build_a_Maze_Solving_ Robot. 6. Go to Tools->Board->Select Arduino Uno. 7. Go to Tools->Port->Select com port(Arduino Uno). 8. Click on the upload option & wait till done Uploading. 9. Now disconnect the Arduino Board from your laptop/Desktop.
  • 27. 27 Output You will see that the robot starts forward, when there is no obstacle in front of the robot. If an obstacle detects then it will stop->turn backward->again stop->sensor rotate left & right direction to check if any obstacle is present in that side. If the obstacle on the left side is near to the robot then the robo t will take a right turn. Troubleshooting 1. Issue: Robot is not working 2. Solution: Make sure that cells are connected in a cell holder with correct p olarities. 3. Issue: Batteries heating in the cell holder 4. Solution: Do not connect cell holder red wire to -ve polarity of motor driver holder it will cause reversebattery connections..Cell holder red wire to +ve polarity of motor driver module.Cell holder black wire to -ve polarity of mot or driver module. 5. Issue: My robot is not working properly as coded.Solution: Make sure that sensor is connected properly & getting power. According to sensor output, the robot will work. 6. Solution: Try to interchange motor input pins which are connected to the arduino board
  • 28. CONCLUSION 28 Hence we completed the project of multifunctional robot So it can be worked as : Light Following Robot Obstacle Avoiding Robot Maze Solving Robot Edge Avoiding Robot…….