SlideShare a Scribd company logo
Robots made easy
Peel Training Day
Robots Made Easy
Using the PICAXE Microcontroller
This presentation will show you:
 How to connect the PICAXE on breadboard
 How to hook up sensors
 How to wire up drive motors
 How to download a program
 We will be using the PICAXE 20-X2, however there
are many kinds of PICAXE microcontrollers. They
start as small as 8 pin and all the way to 40 pins.
PICAXE 20-X2
 Made by Revolution Education and uses Microchip PICs
 Has a program loaded on the chip that allows the program
to be written in a form of BASIC and can be downloaded
using a serial port and three wires.
 Each pin can be set up to perform several tasks.
 Can run over a voltage range 2.1V to 5.5V
The Breadboard
Hook up power and ground.
Hook up serial port circuit.
Hook up line following circuit. Hook up servo motor.
Hook up motor driving circuit.
Sensors
 The line following sensors
(OPB703WZ) works by
detecting infra-red light.
The diode emits IR light
which bounces off the
surface. The reflected
light then turns on the
photo transistor relative to
the amount of light
reflected. The circuit then
provides an analog value
which is then read by the
microcontroller and
converted into a digital
value.
Sensor on White Surface
 If the surface the
light is reflecting off
of is white, more IR
light is reflected thus
turning the transistor
on fully. This will
bring the output
close to 0V. (So the
theory goes…)
Sensor on Black Surface
 However, if the IR light is
being reflected of a dark
surface, the amount of IR
reaching the photo
transistor will be greatly
diminished resulting in the
transistor being almost
off and the output from
the circuit being close to
5V.
Motor Control with L293D Half-H Driver
 Make an H-Bridge with
the two drivers.
 External diodes not
required with L293D.
 Ground pins: 4, 5, 12 &
13.
 Pins 1, 8, 9 & 16 to +5V.
 Pins 1 & 7 control motor
connected to pins 3 & 6.
Pins 10 & 15 control
motor connected to pins
11 & 14.
 Motor should have a
0.1uF capacitor across the
terminals (not shown here).
Pin 2 or
15
Pin 7 or
10
Motor
Direction
L L Stop
L H CW
H L CCW
Servo
 Servos is a three wire DC motor that can be
directed to a specific position by sending a
specific pulse width. The standard servo
can travel a max of 180°, whereas a
modified servo can continuously move in a
direction of CW or CCW depending on the
pulse width sent.
 PICAXE has a special command that will let
you set the position of the servo.
 Servo has three wires: Black – negative,
Red – positive and White – signal.
 For sample commands see page 19 of
PICAXE Manual 3. Also page 30 for the
thermistor.
Writing the Program
 There are two
methods of writing
a program.
1) The flowchart
method
and
2) the program
language method.
Simple Line Following Program
Downloading the Program.
Make sure:
 Code is written without any syntax errors.
 Power is on.
 Cable is connected to the serial port and the
PICAXE.
 Correct PICAXE is selected.
 Correct com port (serial port) is selected.
Thanks for coming out!

More Related Content

PPTX
RF controlled robot or wireless robot
Naresh Biloniya
 
PDF
Radio installation
kpphelu
 
PPT
automatic rail gate control with collision avoidance
Raj Anand
 
PPTX
RF Controlled Robotic Vehicle With Laser Beam Arrangement
Edgefxkits & Solutions
 
PPTX
Gesture control robot using accelerometer ppt
Rajendra Prasad
 
PPTX
Robotic arm control through internet/Lan for patient operation
Suchit Moon
 
PDF
Radio installation
kpphelu
 
PPTX
Traffic signal
Riaz Gul Sheikh
 
RF controlled robot or wireless robot
Naresh Biloniya
 
Radio installation
kpphelu
 
automatic rail gate control with collision avoidance
Raj Anand
 
RF Controlled Robotic Vehicle With Laser Beam Arrangement
Edgefxkits & Solutions
 
Gesture control robot using accelerometer ppt
Rajendra Prasad
 
Robotic arm control through internet/Lan for patient operation
Suchit Moon
 
Radio installation
kpphelu
 
Traffic signal
Riaz Gul Sheikh
 

What's hot (20)

PPTX
Robot arm control through human hand motion
vignesh viki
 
PPSX
Hardware required to build a basic Robot
Varun A M
 
PPTX
Automatic railway level crossing gate & slurry management.
Evans Belly
 
PPTX
Vechicle accident prevention using eye bilnk sensor ppt
satish 486
 
DOCX
DLD-LAB-PROPOSAL
Asim Hafeez Khan
 
DOCX
Bluetooth controlled robot
UVSofts Technologies
 
DOC
Wireless data logger using rf communication
Pvrtechnologies Nellore
 
PPTX
Gesture controlled vehicle part-1
Hochschule Bonn-Rhein-Sieg
 
PPTX
k10681
K10681cpu
 
PDF
Metrofile111111111 150706071159-lva1-app6892
yogeshingle4
 
PDF
Cell phone operated car using bluetooth technology and android application
eSAT Journals
 
DOCX
Mini ee 4 motor speed counting rpm display by infrared Electrical engineerin...
1000kv technologies
 
PPT
presentation
Utsav Bhavsar
 
PPTX
Automatic railway gate control using microcontroller
pukeshwar harmukh
 
PDF
Understanding the Electronics
John Villwock
 
PPTX
Pwm technique for dc motor Using Arduino
KATHANSANJAYSHAH
 
PDF
Speed checker for highway
Sumit Sharma
 
PPT
Unmanned railway tracking and anti collision system using gsm
vmohankumar5
 
DOCX
Highway alert signal lamp
balaji1986
 
Robot arm control through human hand motion
vignesh viki
 
Hardware required to build a basic Robot
Varun A M
 
Automatic railway level crossing gate & slurry management.
Evans Belly
 
Vechicle accident prevention using eye bilnk sensor ppt
satish 486
 
DLD-LAB-PROPOSAL
Asim Hafeez Khan
 
Bluetooth controlled robot
UVSofts Technologies
 
Wireless data logger using rf communication
Pvrtechnologies Nellore
 
Gesture controlled vehicle part-1
Hochschule Bonn-Rhein-Sieg
 
k10681
K10681cpu
 
Metrofile111111111 150706071159-lva1-app6892
yogeshingle4
 
Cell phone operated car using bluetooth technology and android application
eSAT Journals
 
Mini ee 4 motor speed counting rpm display by infrared Electrical engineerin...
1000kv technologies
 
presentation
Utsav Bhavsar
 
Automatic railway gate control using microcontroller
pukeshwar harmukh
 
Understanding the Electronics
John Villwock
 
Pwm technique for dc motor Using Arduino
KATHANSANJAYSHAH
 
Speed checker for highway
Sumit Sharma
 
Unmanned railway tracking and anti collision system using gsm
vmohankumar5
 
Highway alert signal lamp
balaji1986
 
Ad

Viewers also liked (13)

PPT
презентация
Людмила Сланченко
 
PPTX
Herpetic esophagitis
Prof. Ahmed Mohamed Badheeb
 
PPT
история
yankaaa
 
DOCX
Hosobaiday
nhomhopestar
 
PPTX
Question of the week 2 feb 2017
Prof. Ahmed Mohamed Badheeb
 
PPT
انتحار الاطفال
Prof. Ahmed Mohamed Badheeb
 
PPTX
Giới thiệu dự án
nhomhopestar
 
PPTX
Question of the week 1
Prof. Ahmed Mohamed Badheeb
 
PPTX
Mau san pham hoc sinh
nhomhopestar
 
PDF
1st Buikwe District Teachers' Forum - 1st Briefing Session
lissalourenco
 
PPTX
[ENG] 21st International Symposium on Current Issues and Controversies in Psy...
Symposiums Controversias en Psiquiatría
 
PPTX
Daft Punk
POX_ES_SEXY
 
PPTX
презентация
Людмила Сланченко
 
презентация
Людмила Сланченко
 
Herpetic esophagitis
Prof. Ahmed Mohamed Badheeb
 
история
yankaaa
 
Hosobaiday
nhomhopestar
 
Question of the week 2 feb 2017
Prof. Ahmed Mohamed Badheeb
 
انتحار الاطفال
Prof. Ahmed Mohamed Badheeb
 
Giới thiệu dự án
nhomhopestar
 
Question of the week 1
Prof. Ahmed Mohamed Badheeb
 
Mau san pham hoc sinh
nhomhopestar
 
1st Buikwe District Teachers' Forum - 1st Briefing Session
lissalourenco
 
[ENG] 21st International Symposium on Current Issues and Controversies in Psy...
Symposiums Controversias en Psiquiatría
 
Daft Punk
POX_ES_SEXY
 
презентация
Людмила Сланченко
 
Ad

Similar to Robots made easy (20)

PDF
How to make_your_first_robot
Lanka Praneeth
 
PDF
Tu robot controltu_robot_control.pdf
Ahmed Raad
 
PPTX
Interfacing with Atmega 16
Ramadan Ramadan
 
PDF
Arduino Workshop Day 2 - Advance Arduino & DIY
Vishnu
 
PDF
Picaxe manual3 interfaces
alto34
 
DOCX
How to make your first robot report
Ramki M
 
PDF
PIC Axe049(print34)
Muhammad Khan
 
PPTX
Newppt major
Shivangi Jain
 
PPTX
Metal Detector Robotic Vehicle
Edgefxkits & Solutions
 
PDF
Rf controlled pick up and drop robot
AdityaBulbule1
 
PDF
Picaxe manual5
Richard Wilcamango Salas
 
PPTX
BATCH 4 ppt presentation.pptx industrial
KalaiselvanPerumal2
 
PPTX
Multitasking automated frame
raman sahay
 
PDF
Automated ppt
Arundhati Hazra
 
PPTX
Obstacle observing
Lokendra Singh
 
PPTX
Line Following Robot
Vikram Jha
 
DOCX
bidirectional report
Hasan baig
 
PPTX
Robotic Hand
Mansoor Ghani
 
PDF
Tutorial documento, wheef robotic arm car
BillBolaosVelascoBvb
 
PDF
Atmega tutorial
Rajan Gautam
 
How to make_your_first_robot
Lanka Praneeth
 
Tu robot controltu_robot_control.pdf
Ahmed Raad
 
Interfacing with Atmega 16
Ramadan Ramadan
 
Arduino Workshop Day 2 - Advance Arduino & DIY
Vishnu
 
Picaxe manual3 interfaces
alto34
 
How to make your first robot report
Ramki M
 
PIC Axe049(print34)
Muhammad Khan
 
Newppt major
Shivangi Jain
 
Metal Detector Robotic Vehicle
Edgefxkits & Solutions
 
Rf controlled pick up and drop robot
AdityaBulbule1
 
Picaxe manual5
Richard Wilcamango Salas
 
BATCH 4 ppt presentation.pptx industrial
KalaiselvanPerumal2
 
Multitasking automated frame
raman sahay
 
Automated ppt
Arundhati Hazra
 
Obstacle observing
Lokendra Singh
 
Line Following Robot
Vikram Jha
 
bidirectional report
Hasan baig
 
Robotic Hand
Mansoor Ghani
 
Tutorial documento, wheef robotic arm car
BillBolaosVelascoBvb
 
Atmega tutorial
Rajan Gautam
 

Recently uploaded (20)

PDF
New Royals Distribution Plan Presentation
ksherwin
 
PPTX
Financial Management for business management .pptx
Hasibullah Ahmadi
 
PDF
Gregory Felber - An Accomplished Underwater Marine Biologist
Gregory Felber
 
PDF
GenAI for Risk Management: Refresher for the Boards and Executives
Alexei Sidorenko, CRMP
 
PDF
What are the steps to buy GitHub accounts safely?
d14405913
 
PPTX
Final PPT on DAJGUA, EV Charging, Meter Devoloution, CGRF, Annual Accounts & ...
directord
 
PPTX
Decoding BPMN: A Clear Guide to Business Process Modeling
RUPAL AGARWAL
 
PDF
Withum Webinar - OBBBA: Tax Insights for Food and Consumer Brands
Withum
 
PPTX
Chapter 3 Distributive Negotiation: Claiming Value
badranomar1990
 
PDF
NewBase 26 July 2025 Energy News issue - 1806 by Khaled Al Awadi_compressed.pdf
Khaled Al Awadi
 
PDF
A Complete Guide to Data Migration Services for Modern Businesses
Aurnex
 
PDF
Data Sheet Cloud Integration Platform - dataZap
Chainsys SEO
 
PDF
askOdin - An Introduction to AI-Powered Investment Judgment
YekSoon LOK
 
PPTX
Appreciations - July 25.pptxdddddddddddss
anushavnayak
 
PPTX
Pakistan’s Leading Manpower Export Agencies for Qatar
Glassrooms Dubai
 
PDF
High Capacity Core IC Pneumatic Spec-Sheet
Forklift Trucks in Minnesota
 
DOCX
India's Emerging Global Leadership in Sustainable Energy Production The Rise ...
Insolation Energy
 
PPTX
Appreciations - July 25.pptxffsdjjjjjjjjjjjj
anushavnayak
 
PDF
Bihar Idea festival - Pitch deck-your story.pdf
roharamuk
 
PPTX
Social Media Marketing for Business Growth
vidhi622006
 
New Royals Distribution Plan Presentation
ksherwin
 
Financial Management for business management .pptx
Hasibullah Ahmadi
 
Gregory Felber - An Accomplished Underwater Marine Biologist
Gregory Felber
 
GenAI for Risk Management: Refresher for the Boards and Executives
Alexei Sidorenko, CRMP
 
What are the steps to buy GitHub accounts safely?
d14405913
 
Final PPT on DAJGUA, EV Charging, Meter Devoloution, CGRF, Annual Accounts & ...
directord
 
Decoding BPMN: A Clear Guide to Business Process Modeling
RUPAL AGARWAL
 
Withum Webinar - OBBBA: Tax Insights for Food and Consumer Brands
Withum
 
Chapter 3 Distributive Negotiation: Claiming Value
badranomar1990
 
NewBase 26 July 2025 Energy News issue - 1806 by Khaled Al Awadi_compressed.pdf
Khaled Al Awadi
 
A Complete Guide to Data Migration Services for Modern Businesses
Aurnex
 
Data Sheet Cloud Integration Platform - dataZap
Chainsys SEO
 
askOdin - An Introduction to AI-Powered Investment Judgment
YekSoon LOK
 
Appreciations - July 25.pptxdddddddddddss
anushavnayak
 
Pakistan’s Leading Manpower Export Agencies for Qatar
Glassrooms Dubai
 
High Capacity Core IC Pneumatic Spec-Sheet
Forklift Trucks in Minnesota
 
India's Emerging Global Leadership in Sustainable Energy Production The Rise ...
Insolation Energy
 
Appreciations - July 25.pptxffsdjjjjjjjjjjjj
anushavnayak
 
Bihar Idea festival - Pitch deck-your story.pdf
roharamuk
 
Social Media Marketing for Business Growth
vidhi622006
 

Robots made easy

  • 3. Using the PICAXE Microcontroller This presentation will show you:  How to connect the PICAXE on breadboard  How to hook up sensors  How to wire up drive motors  How to download a program
  • 4.  We will be using the PICAXE 20-X2, however there are many kinds of PICAXE microcontrollers. They start as small as 8 pin and all the way to 40 pins.
  • 5. PICAXE 20-X2  Made by Revolution Education and uses Microchip PICs  Has a program loaded on the chip that allows the program to be written in a form of BASIC and can be downloaded using a serial port and three wires.  Each pin can be set up to perform several tasks.  Can run over a voltage range 2.1V to 5.5V
  • 6. The Breadboard Hook up power and ground. Hook up serial port circuit. Hook up line following circuit. Hook up servo motor. Hook up motor driving circuit.
  • 7. Sensors  The line following sensors (OPB703WZ) works by detecting infra-red light. The diode emits IR light which bounces off the surface. The reflected light then turns on the photo transistor relative to the amount of light reflected. The circuit then provides an analog value which is then read by the microcontroller and converted into a digital value.
  • 8. Sensor on White Surface  If the surface the light is reflecting off of is white, more IR light is reflected thus turning the transistor on fully. This will bring the output close to 0V. (So the theory goes…)
  • 9. Sensor on Black Surface  However, if the IR light is being reflected of a dark surface, the amount of IR reaching the photo transistor will be greatly diminished resulting in the transistor being almost off and the output from the circuit being close to 5V.
  • 10. Motor Control with L293D Half-H Driver  Make an H-Bridge with the two drivers.  External diodes not required with L293D.  Ground pins: 4, 5, 12 & 13.  Pins 1, 8, 9 & 16 to +5V.  Pins 1 & 7 control motor connected to pins 3 & 6. Pins 10 & 15 control motor connected to pins 11 & 14.  Motor should have a 0.1uF capacitor across the terminals (not shown here). Pin 2 or 15 Pin 7 or 10 Motor Direction L L Stop L H CW H L CCW
  • 11. Servo  Servos is a three wire DC motor that can be directed to a specific position by sending a specific pulse width. The standard servo can travel a max of 180°, whereas a modified servo can continuously move in a direction of CW or CCW depending on the pulse width sent.  PICAXE has a special command that will let you set the position of the servo.  Servo has three wires: Black – negative, Red – positive and White – signal.  For sample commands see page 19 of PICAXE Manual 3. Also page 30 for the thermistor.
  • 12. Writing the Program  There are two methods of writing a program. 1) The flowchart method and 2) the program language method.
  • 14. Downloading the Program. Make sure:  Code is written without any syntax errors.  Power is on.  Cable is connected to the serial port and the PICAXE.  Correct PICAXE is selected.  Correct com port (serial port) is selected.