SlideShare uma empresa Scribd logo
1 de 57
PRESENTATION ON
PIC18F4520
&
ROBOTICS
BySiddhant Chopra
MICRO CONTROLLER ??
•

Microcontroller is a small (micro) single-chip
computer designed to perform a specific function,
and the specific function is to control (controller)
objects, processes or events.

•

It is dedicated to one task, or a set of closely
related task. It is similar to a personal computer, it
has similar components built on to a single chip:
CPU, Memory (ROM and RAM), I/O ports, Serial
ports, Timer, ADC.
BASIC ARCHITECTURE OF MCU
• CPU: Processing Module.

RAM: for storing DATA.

ROM: for storing the app. program.

Ports: For interfacing with the
outside world.

Timer: Allows the MCU to perform
tasks for certain time periods.

ADC: Allows the MCU to accept
analogue input data for
processing.
BASIC DIFFERNCE BETWEEN
MP & MC

•

Clock rate of MPs are of the order of GHz.
Where as ........

MCU is a more self-contained (CPU, RAM, ROM, I/O ports,
and timers) and independent and functions as a tiny computer
dedicated to a specific task to control a single system...
• Clock rate of MCs are of the order of MHz
WHY PIC HAS BEEN PICKED ?
•
•
•
•
•
•
•
•
•
•

Wide range: More than 200 MCUs in the product portfolio.
Available in 8 ,16 and 32 bit in analogue as well as Digital Signal
Controller family.
RISC based architecture
Pin out compatibility
Software compatibility, Simple Instruction Set
Peripheral compatibility
Easy migration across product families.
Common and easy to use development tools.
Extensive support - Information is available in wide range and depth.
Available in all package types
FEATURES OF 18F4520
TYPES OF ARCHITECTURE

Von Neumann Architecture
Harvard Architecture
VON NEUMANN ARCHITECTURE
•
•

•

Single memory for storing both
program and data.
It has single bus which is multiplexed
to be used as both address bus and
data bus.
The content of RAM can be used for
both program storage as well as
variable storage.

Single bus
HARVARD ARCHITECTURE
•
•

•

Separate memory banks for
program and data storage.
It has a RAM for data storage
and separate ROM for program
storage.
Has two sets of buses.
One can simultaneously
access these buses.

Program
address bus

Data address
bus
BLOCK DIAGRAM
• operation of accumulator
is scratch pad operation operation.
PIN DIAGRAM
PORT PINS
•
•
•
•
•

•
•

•

Port A is a 8 pin bi directional port
5 analog / 6 digital pins
Port B is a 8 pin bi directional port
8 digital pins/5 analog pins
Port C is a 8 pin bi directional port
8 digital pins
Port D is a 8 pin bi directional port
8 digital pins
Port E is a 4 pin port
3 pin bi directional
3 analog / digital pins
Pin 1 Digital input pin
Pin 13 & 14 are digital I/O digital pins if not used for XT Osc
Total availability
13 analog pins
35digital pins
1 digital input pin
Pin 39 & 40 (PORTB) are used for programming/debugging.
PROGRAMMING
PATTERN ON LEDs
IN ASSEMBLY LANGUAGE

IN C LANGUAGE

List p=18F4520, f =inhx32
#include <p18F4520.inc>
COUNTERL
EQU
COUNTERH
EQU
ORG 0x0000
GOTO START
START
CLRF PORTB
CLRF TRISB
LOOP
BSF PORTB,0
CALL DELAY
BSF PORTB,0
BSF PORTB,1
CALL DELAY
MOVLW 0X07
MOVWF PORTB
CALL DELAY
MOVLW 0X0F
MOVWF PORTB
CALL DELAY
DELAY
MOVLW
0XC4
MOVWF
COUNTERH
S1
MOVLW
0XFF
MOVWF
COUNTERL
DECFSZ COUNTERL , 1
GOTO$ - 1
DECFSZ COUNTERH,1
GOTOS1
RETURN
END

#include<p18F4520.h>
void delay(void);
void main()
{
TRISB=0x00;
PORTB=0x00;
while(1)
{
PORTB=0x00;
delay();
}
}
void delay(void)
{
unsigned char I,j;
for(i=0;i<255;i++)
for(j=0;;j<255;j++)
}

;This is a header file for PIC18F452
0X00
0X01
;Reset Vector
;Clear PORTB output latches
;Load value to make PORTB output port
;Turn on LED on RB0
;Call delay routine
;Turn on LED on RB0
;Turn on LED on RB1
7 SEGMENT DISPLAY
LISTP=18F4520
#INCLUDE<P18F4520.INC>
D1 EQU 0X20
D2 EQU 0X21
ORG 0X00
GOTO START
START
MOVLW 0X00
MOVWF PORTC
MOVWF TRISC
;selecting PORTC as output port
LOOP
MOVLW B'00111111‘
;code for displaying 0 on display
MOVWF PORTC
CALL DELAY
MOVLW B'00000110‘
;code for displaying 1 on display
MOVWF PORTC
CALL DELAY
MOVLW B'01011011‘
;code for displaying 2 on display
MOVWF PORTC
CALL DELAY
MOVLW B'01001111‘
;code for displaying 3 on display
MOVWF PORTC
CALL DELAY
GOTO LOOP
Contd.
DELAY SECTION
Contd.
DELAY
MOVLW 0X01
MOVWF D1
POL
MOVLW .1
MOVWF D2
POOL
DECFSZ D2,F
GOTO POOL
DECFSZ D1,F
GOTO POL
RETURN
END
Counter using 2 seven segment
displays segment displays
LIST P=18F4520
#INCLUDE<P18F4520.INC>
D1 EQU 0X20
D2 EQU 0X21
ORG 0X0000
GOTO START
START
MOVLW 0X00
MOVWF TRISD
MOVWF TRISC
MOVWF PORTD
MOVWF PORTC
LOOP
MOVLW B'00111111'
MOVWF PORTC
CALL SUB
CALL DELAY
MOVLW B'00000110'
MOVWF PORTC
CALL SUB
CALL DELAY
MOVLW B'01011011'
MOVWF PORTC
CALL SUB
CALL DELAY
MOVLW B'01001111'
MOVWF PORTC
CALL SUB
CALL DELAY
GOTO LOOP
Delay section
DELAY
MOVLW 0X01
MOVWF D1
POL
MOVLW .1
MOVWF D2
POOL
DECFSZ D2,F
GOTO POOL
DECFSZ D1,F
GOTO POL
RETURN
SUB section
SUB
MOVLW B'00111111'
MOVWF PORTD
CALL DELAY
MOVLW B'00000110'
MOVWF PORTD
CALL DELAY
MOVLW B'01011011'
MOVWF PORTD
CALL DELAY
MOVLW B'01001111'
MOVWF PORTD
CALL DELAY
MOVLW B'01100110'
MOVWF PORTD
CALL DELAY
MOVLW B'01101101'
MOVWF PORTD
CALL DELAY
MOVLW B'01111101'
MOVWF PORTD
CALL DELAY
MOVLW B'00000111'
MOVWF PORTD
CALL DELAY
MOVLW B'01111111'
MOVWF PORTD
CALL DELAY
MOVLW B'01101111'
MOVWF PORTD
CALL DELAY
GOTO SUB
RETURN
END
Program of PWM
List p=18F4431, f =inhx32
#include <p18F4431.inc>
;This is a header file for PIC18F452
org
00000h
goto
START
START
CLRF PORTC
MOVLW 0X63
MOVWF OSCCON
CLRF TRISC
; PORTC AS OUTPUT
MOVLW .25
;FREQUENCY IS 38 KHZ
MOVWF PR2
;TIME PEROID OF 26 US
MOVLW .13
; FOR DUTY CYCLE OF 50%
MOVWF CCPR1L
; SET THE CCP FOR PWM
MOVLW 0X0C
MOVWF CCP1CON
;SETTING FOR THE PRESCALER OF TIMER 2
MOVLW 0X00
MOVWF T2CON
;THE TIMER IS ON
BSF T2CON,2
GOTO $
;KEEP THE controller BUSY
END
PROGRAM OF TIMER 0
5 SECOND DELAY ,TIMER0,16BIT
LIST P=18F4520 , f = inhx32
#include <p18F4520.inc>
ORG 0X00
GOTO MAIN
MAIN
CLRFINTCON
;PRIORITY overflow ,int flag
MOVLW
B'00000110'
;Disable Timer0:16 bit,int clock.
MOVWF
T0CON
;Prescaler 1:128
CLRFTRISB
LOOP
BSF
PORTB,0
;LED ON
CALLDELAY
BCF
PORTB,0
;LED OFF
CALL DELAY
GOTO
LOOP
DELAY
MOVLW
0X67
MOVWF
TMR0H
MOVLW
0X69
MOVWF
TMR0L
BSF
T0CON,7
BTFSS
INTCON , TMR0IF
GOTO
$-1
BCF
INTCON , TMR0IF
BCF
T0CON,7
RETURN
END
ToCON Register
Other programs done are
•
•
•
•

LCD
Stepper motor
Washing machine for fixed number of time
Washing machine for fixed number of
rotations
• Traffic lights
ROBOTICS
EVOLUTION OF ROBOT
•

Robotics brings together several very different engineering areas and
skills.

•

The word robot comes from the Czech word "robota", meaning
"forced labor.“

•

A robot is an electro-mechanical device that can perform
autonomous or preprogrammed tasks.

Modern defination of Robot is

A robot is a machine designed to execute one or more task
repeatedly, with speed and precision.
Mechanism of Robotics
•
•
•
•

Locomotion system
Power supply system
Actuators
Control system
– Open loop
– Closed loop
Locomotion system
• Locomotion is nothing but the movement or the ability to
move from one place to another. So,
• Robot locomotion is the collective name for the various
methods that robots use to transport themselves from
place to place.
Mechanism to achieve Locomotion
• Wheeled robots – These robots are quite energy
efficient and simple to control.
• other forms of locomotion (legged locomotion) may be
more appropriate for a number of reasons e.g. traversing
rough terrain, moving and interacting in human
environments.
• A major goal in this field is in developing capabilities for
robots to autonomously decide how, when, and where to
move.
Wheeled robot
Legged robot
Main issue in legged locomotion
Stability is the main issue in legged locomotion.
Stability can be divided into the
1) Static stability criterion
2) Dynamic stability criterion.
Static stability criterion
•

Static stability means that the robot is stable, with no need of motion
at every moment of time.

•

Static stability is given, when the centre
of mass is completely within the support
polygon and the polygon’s area is greater
than zero.

•

To achieve statically stable walking a robot
must have a minimum number of four legs, because during walking
at least one leg is in the air.

•

Statically stable walking means that all robots’ motion can be
stopped at every moment in the gait cycle without overturning.
Dynamic stability criterion
•

Most two legged walking machines are dynamically stable for
several reasons Human like robots have relatively small footprints, because of this
the support polygon is almost a line which is even reduced to a
single point during walking. Therefore the robot must actively
balance itself to prevent overturning
In face of that the robots’ centre of mass has to be shifted actively
between the footprints. But the robots exact centre of mass is hard
to predict due to the high dynamic of walking (for example because
of the force which is imparted to whole robot when one leg swings
forward) .
Legged configuration
•

If a robot has k legs the number of possible events N is, accordant to [1],
N=(2k-1)!
In case of a bipedal walking machine (k=2) the number of possible events is
N=(2k-1)! = (2*2-1)! = 3! = 6
So there are six possible different events, these are
1. Lift left leg
2. Release left leg
3. Lift right leg
4. Release right leg
5. Lift both legs together
6. Release both legs together

•

In case of k=6 legs there are already 39916800 possible events
Power supply system
• Suitable power source is needed to run the robots.
• Mobile robots are most suitably powered by batteries.
• The weight and energy capacity of the batteries may
become the determinative factor of its performance.
Actuator
• An actuator is a type of motor for moving or controlling a
mechanism or system. It is operated by a source of
energy, typically electric current, hydraulic fluid pressure,
or pneumatic pressure, and converts that energy into
motion.
• An actuator is the mechanism by which a control system
acts upon an environment.
Desired
Action





Controller
Contro
ller

Actuator
Actuat
or

There is no error correction. No way to
check if the actuator was able to take the
desired action
Simple system to design, not very reliable
Requires regular calibration of the system

O/P
Desired
Action

Controller

Actuator

Feedback

O/P
Escape
Obstacle

Controller

DC
Motors

Infrared
Receiving
Module

Turned
away
from
obstacl
e
INTERFACE WITH OTHERS
•

Robotics is a versatile,
multi-disciplinary field,
spanning a number of
scientific and engineering
areas where the latest
knowledge and techno-logical advances
contribute to the
growth of Robotics.
APPS. OF ROBOTICS
•
•
•
•
•
•
•

Edutainment
Educational Robots, Robot Toys, Entertainment, Robotic Art
Outdoor Robotics
Land, Sea, Air, Space Wheeled Mobile Robot
Advanced production systems
Industrial robotics
Adaptive robot servants and intelligent homes
Indoor Service Robots, Ubiquitous Robotics
Network Robotics
Internet Robotics, Robot ecology
Health Care and Life Quality
Surgical Robotics, Bio-Robotics, Assistive Technology
Military Robotics
Transportation
Intelligent Weapons, Robot Soldiers, Super-humans
robots in a hospital
Guide robot
in a hosp.

Machine-gun equipped
robot developed by
Samsung
Robot waiter
in Hong-Kong
restaurant
Pipeline
Inspection robot
Painting
Robots
MECHANICAL ASSEMBLING
PROJECT
Robocar using Arduino Board
•

It is a robot that can be
steered in any direction just like you
drive your car. Wireless steering
senses the motion and
transmits corresponding
instruction to control the robot
through RF communication.
Transmitter of Robocar
Program of sensing directions from
accelerometer
const int groundpin = 18;
const int powerpin = 19;
const int xpin = A3;
const int ypin = A2;
const int zpin = A1;

// analog input pin 4 -- ground
// analog input pin 5 -- voltage
// x-axis of the accelerometer
// y-axis
// z-axis (only on 3-axis models)

void setup()
{
// initialize the serial communications:
Serial.begin(9600);
pinMode(groundpin, OUTPUT);
pinMode(powerpin, OUTPUT);
digitalWrite(groundpin, LOW);
digitalWrite(powerpin, HIGH);
}
void loop()
{
// print the sensor values:
Serial.print(analogRead(xpin));
// print a tab between values:
Serial.print("t");
Serial.print(analogRead(ypin));
// print a tab between values:
Serial.print("t");
Serial.print(analogRead(zpin));
Serial.println();
// delay before next reading:
delay(100);
}
Receiver of Robocar
COMPONENTS USED
•
•
•
•
•
•
•

Arduino Board
Accelerometer
Micro Controller (PIC 16F877A & Atmega328)
Encoder IC (HT12E)
Transmitter & Receiver Module
Decoder IC (HT12D)
Motor Driver IC (L293D)
Accelero
meter

Arduino
Board
WORKING
APPLICATIONS
• Industries
• Home automation
ANY QUESTIONS ???
PIC18F4520 Microcontroller and Robotics Presentation

Mais conteúdo relacionado

Mais procurados

8051 micro controllers Instruction set
8051 micro controllers Instruction set 8051 micro controllers Instruction set
8051 micro controllers Instruction set Nitin Ahire
 
Pe 5421 plc aftermid week 10 onwards
Pe 5421 plc aftermid week 10 onwardsPe 5421 plc aftermid week 10 onwards
Pe 5421 plc aftermid week 10 onwardsCharlton Inao
 
32 bit ALU Chip Design using IBM 130nm process technology
32 bit ALU Chip Design using IBM 130nm process technology32 bit ALU Chip Design using IBM 130nm process technology
32 bit ALU Chip Design using IBM 130nm process technologyBharat Biyani
 
PIC 16F877A by PARTHIBAN. S.
PIC 16F877A   by PARTHIBAN. S.PIC 16F877A   by PARTHIBAN. S.
PIC 16F877A by PARTHIBAN. S.parthi_arjun
 
Microprocessor based system design
Microprocessor based system designMicroprocessor based system design
Microprocessor based system designTHANDAIAH PRABU
 
Pic microcontrollers for_beginners
Pic microcontrollers for_beginnersPic microcontrollers for_beginners
Pic microcontrollers for_beginnersPraveen Chary
 
8085 Architecture
8085 Architecture8085 Architecture
8085 Architecturetsajuraj
 
Unit iv microcontrollers final
Unit iv microcontrollers finalUnit iv microcontrollers final
Unit iv microcontrollers finalSARITHA REDDY
 
Microcontroller 8051 training
Microcontroller 8051 trainingMicrocontroller 8051 training
Microcontroller 8051 trainingPradip Bhandari
 
Plc (analog and special io)
Plc (analog and special io)Plc (analog and special io)
Plc (analog and special io)Mohamed A Hakim
 
Programming And Controlling Puma Arms
Programming And Controlling Puma ArmsProgramming And Controlling Puma Arms
Programming And Controlling Puma Arms블로그코디
 
Synthesis & FPGA Implementation of UART IP Soft Core
Synthesis & FPGA Implementation of UART IP Soft CoreSynthesis & FPGA Implementation of UART IP Soft Core
Synthesis & FPGA Implementation of UART IP Soft Coreijsrd.com
 
PPT 8085 microprocessor
PPT 8085 microprocessor PPT 8085 microprocessor
PPT 8085 microprocessor Ardhendupanja
 
PLC Internal Relays
PLC Internal RelaysPLC Internal Relays
PLC Internal RelaysAmeen San
 

Mais procurados (20)

8051 micro controllers Instruction set
8051 micro controllers Instruction set 8051 micro controllers Instruction set
8051 micro controllers Instruction set
 
Vt plc
Vt plcVt plc
Vt plc
 
Pe 5421 plc aftermid week 10 onwards
Pe 5421 plc aftermid week 10 onwardsPe 5421 plc aftermid week 10 onwards
Pe 5421 plc aftermid week 10 onwards
 
32 bit ALU Chip Design using IBM 130nm process technology
32 bit ALU Chip Design using IBM 130nm process technology32 bit ALU Chip Design using IBM 130nm process technology
32 bit ALU Chip Design using IBM 130nm process technology
 
Chapter 2 ladder
Chapter 2 ladderChapter 2 ladder
Chapter 2 ladder
 
PIC 16F877A by PARTHIBAN. S.
PIC 16F877A   by PARTHIBAN. S.PIC 16F877A   by PARTHIBAN. S.
PIC 16F877A by PARTHIBAN. S.
 
Microprocessor based system design
Microprocessor based system designMicroprocessor based system design
Microprocessor based system design
 
Pic microcontrollers for_beginners
Pic microcontrollers for_beginnersPic microcontrollers for_beginners
Pic microcontrollers for_beginners
 
8085 Architecture
8085 Architecture8085 Architecture
8085 Architecture
 
8051 io interface
8051 io interface8051 io interface
8051 io interface
 
Unit iv microcontrollers final
Unit iv microcontrollers finalUnit iv microcontrollers final
Unit iv microcontrollers final
 
Microcontroller 8051 training
Microcontroller 8051 trainingMicrocontroller 8051 training
Microcontroller 8051 training
 
Plc
PlcPlc
Plc
 
Plc (analog and special io)
Plc (analog and special io)Plc (analog and special io)
Plc (analog and special io)
 
8085 MICROPROCESSOR
8085 MICROPROCESSOR 8085 MICROPROCESSOR
8085 MICROPROCESSOR
 
Programming And Controlling Puma Arms
Programming And Controlling Puma ArmsProgramming And Controlling Puma Arms
Programming And Controlling Puma Arms
 
Basics of plc_programming1
Basics of plc_programming1Basics of plc_programming1
Basics of plc_programming1
 
Synthesis & FPGA Implementation of UART IP Soft Core
Synthesis & FPGA Implementation of UART IP Soft CoreSynthesis & FPGA Implementation of UART IP Soft Core
Synthesis & FPGA Implementation of UART IP Soft Core
 
PPT 8085 microprocessor
PPT 8085 microprocessor PPT 8085 microprocessor
PPT 8085 microprocessor
 
PLC Internal Relays
PLC Internal RelaysPLC Internal Relays
PLC Internal Relays
 

Destaque

Wireless RF Module Using PIC MCU (Slides).
Wireless RF Module Using PIC MCU (Slides).Wireless RF Module Using PIC MCU (Slides).
Wireless RF Module Using PIC MCU (Slides).Abee Sharma
 
Computer literacy in the workplace
Computer literacy in the workplaceComputer literacy in the workplace
Computer literacy in the workplaceChristian Macatangay
 
Gambar aktiviti assignment koku belinda
Gambar aktiviti assignment koku belindaGambar aktiviti assignment koku belinda
Gambar aktiviti assignment koku belindaBelinda Panjang
 
U-healthcare monitoring and reporting using smartphone
U-healthcare monitoring and reporting using smartphoneU-healthcare monitoring and reporting using smartphone
U-healthcare monitoring and reporting using smartphoneRajeev Piyare
 
Ecg signal processing for detection and classification of cardiac diseases
Ecg signal processing for detection and classification of cardiac diseasesEcg signal processing for detection and classification of cardiac diseases
Ecg signal processing for detection and classification of cardiac diseasesIAEME Publication
 
Line following bot without using micro controller
Line following bot without using micro controllerLine following bot without using micro controller
Line following bot without using micro controllerRajat Verma
 
Computer in accounting
Computer in accountingComputer in accounting
Computer in accountingVivek Casillas
 
A 64-by-8 Scrolling Led Matrix Display System
A 64-by-8 Scrolling Led Matrix Display SystemA 64-by-8 Scrolling Led Matrix Display System
A 64-by-8 Scrolling Led Matrix Display SystemSamson Kayode
 
Artificial Neural Networks
Artificial Neural NetworksArtificial Neural Networks
Artificial Neural NetworksSaif Al-Kalbani
 
Design of Microwave oven using 8051 micro controller
Design of Microwave oven using 8051 micro controllerDesign of Microwave oven using 8051 micro controller
Design of Microwave oven using 8051 micro controllerGautham Reddy
 
RTD or Thermocouple; What's the Right Choice?
RTD or Thermocouple; What's the Right Choice?RTD or Thermocouple; What's the Right Choice?
RTD or Thermocouple; What's the Right Choice?Chuck Bragg
 
PIC introduction + mapping
PIC introduction + mappingPIC introduction + mapping
PIC introduction + mappingOsaMa Hasan
 

Destaque (20)

Wireless RF Module Using PIC MCU (Slides).
Wireless RF Module Using PIC MCU (Slides).Wireless RF Module Using PIC MCU (Slides).
Wireless RF Module Using PIC MCU (Slides).
 
Computer literacy in the workplace
Computer literacy in the workplaceComputer literacy in the workplace
Computer literacy in the workplace
 
Gambar aktiviti assignment koku belinda
Gambar aktiviti assignment koku belindaGambar aktiviti assignment koku belinda
Gambar aktiviti assignment koku belinda
 
Chapter 9
Chapter 9Chapter 9
Chapter 9
 
U-healthcare monitoring and reporting using smartphone
U-healthcare monitoring and reporting using smartphoneU-healthcare monitoring and reporting using smartphone
U-healthcare monitoring and reporting using smartphone
 
Ecg signal processing for detection and classification of cardiac diseases
Ecg signal processing for detection and classification of cardiac diseasesEcg signal processing for detection and classification of cardiac diseases
Ecg signal processing for detection and classification of cardiac diseases
 
Line following bot without using micro controller
Line following bot without using micro controllerLine following bot without using micro controller
Line following bot without using micro controller
 
8051 micro controller
8051 micro controller8051 micro controller
8051 micro controller
 
Computer in accounting
Computer in accountingComputer in accounting
Computer in accounting
 
A 64-by-8 Scrolling Led Matrix Display System
A 64-by-8 Scrolling Led Matrix Display SystemA 64-by-8 Scrolling Led Matrix Display System
A 64-by-8 Scrolling Led Matrix Display System
 
Artificial Neural Networks
Artificial Neural NetworksArtificial Neural Networks
Artificial Neural Networks
 
K-Map Solver Circuit
K-Map Solver CircuitK-Map Solver Circuit
K-Map Solver Circuit
 
micro controller
micro controllermicro controller
micro controller
 
K-map method
K-map methodK-map method
K-map method
 
ECG MONITORING SYSTEM
ECG MONITORING SYSTEMECG MONITORING SYSTEM
ECG MONITORING SYSTEM
 
Micro controller
Micro controllerMicro controller
Micro controller
 
Design of Microwave oven using 8051 micro controller
Design of Microwave oven using 8051 micro controllerDesign of Microwave oven using 8051 micro controller
Design of Microwave oven using 8051 micro controller
 
RTD or Thermocouple; What's the Right Choice?
RTD or Thermocouple; What's the Right Choice?RTD or Thermocouple; What's the Right Choice?
RTD or Thermocouple; What's the Right Choice?
 
analog communication
analog communicationanalog communication
analog communication
 
PIC introduction + mapping
PIC introduction + mappingPIC introduction + mapping
PIC introduction + mapping
 

Semelhante a PIC18F4520 Microcontroller and Robotics Presentation

INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxINDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxMeghdeepSingh
 
robotics and its components
robotics and its componentsrobotics and its components
robotics and its componentsAmandeep Kaur
 
PROGRAMMABLE LOGIC CONTROLLERS
PROGRAMMABLELOGIC CONTROLLERSPROGRAMMABLELOGIC CONTROLLERS
PROGRAMMABLE LOGIC CONTROLLERSDnr Creatives
 
System design using HDL - Module 3
System design using HDL - Module 3System design using HDL - Module 3
System design using HDL - Module 3Aravinda Koithyar
 
8051 microcontroller and embedded training (sahil gupta 9068557926)
8051 microcontroller and embedded training  (sahil gupta   9068557926)8051 microcontroller and embedded training  (sahil gupta   9068557926)
8051 microcontroller and embedded training (sahil gupta 9068557926)Sahil Gupta
 
VIRA_Basics_of_Robot_Level_1.pptx
VIRA_Basics_of_Robot_Level_1.pptxVIRA_Basics_of_Robot_Level_1.pptx
VIRA_Basics_of_Robot_Level_1.pptxSarafrajBeg1
 
embedded systems and robotics on avr platform
embedded systems and robotics on avr platformembedded systems and robotics on avr platform
embedded systems and robotics on avr platformNeha Sharma
 
Basic Tutorial for Robotic Arm
Basic Tutorial for Robotic ArmBasic Tutorial for Robotic Arm
Basic Tutorial for Robotic ArmYu Wei Chen
 
5th unit Microprocessor 8085
5th unit Microprocessor 80855th unit Microprocessor 8085
5th unit Microprocessor 8085Mani Afranzio
 
Plc scada by bhushan kumbhalkar
Plc scada by bhushan kumbhalkarPlc scada by bhushan kumbhalkar
Plc scada by bhushan kumbhalkarBhushan Kumbhalkar
 
WIRELESS SURVILLANCE ROBOT
WIRELESS SURVILLANCE ROBOT WIRELESS SURVILLANCE ROBOT
WIRELESS SURVILLANCE ROBOT KrishGupta94
 

Semelhante a PIC18F4520 Microcontroller and Robotics Presentation (20)

n5acb0f1c011fb.pdf
n5acb0f1c011fb.pdfn5acb0f1c011fb.pdf
n5acb0f1c011fb.pdf
 
8051.pdf
8051.pdf8051.pdf
8051.pdf
 
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxINDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
 
Prestentation
PrestentationPrestentation
Prestentation
 
robotics and its components
robotics and its componentsrobotics and its components
robotics and its components
 
PROGRAMMABLE LOGIC CONTROLLERS
PROGRAMMABLELOGIC CONTROLLERSPROGRAMMABLELOGIC CONTROLLERS
PROGRAMMABLE LOGIC CONTROLLERS
 
System design using HDL - Module 3
System design using HDL - Module 3System design using HDL - Module 3
System design using HDL - Module 3
 
Robowar
RobowarRobowar
Robowar
 
8051 microcontroller and embedded training (sahil gupta 9068557926)
8051 microcontroller and embedded training  (sahil gupta   9068557926)8051 microcontroller and embedded training  (sahil gupta   9068557926)
8051 microcontroller and embedded training (sahil gupta 9068557926)
 
VIRA_Basics_of_Robot_Level_1.pptx
VIRA_Basics_of_Robot_Level_1.pptxVIRA_Basics_of_Robot_Level_1.pptx
VIRA_Basics_of_Robot_Level_1.pptx
 
Instruction types
Instruction typesInstruction types
Instruction types
 
Project Report
Project ReportProject Report
Project Report
 
embedded systems and robotics on avr platform
embedded systems and robotics on avr platformembedded systems and robotics on avr platform
embedded systems and robotics on avr platform
 
Basic Tutorial for Robotic Arm
Basic Tutorial for Robotic ArmBasic Tutorial for Robotic Arm
Basic Tutorial for Robotic Arm
 
New Microsoft Office Word Document
New Microsoft Office Word DocumentNew Microsoft Office Word Document
New Microsoft Office Word Document
 
5th unit Microprocessor 8085
5th unit Microprocessor 80855th unit Microprocessor 8085
5th unit Microprocessor 8085
 
car wash system
car wash systemcar wash system
car wash system
 
Plc scada by bhushan kumbhalkar
Plc scada by bhushan kumbhalkarPlc scada by bhushan kumbhalkar
Plc scada by bhushan kumbhalkar
 
embedded system
embedded systemembedded system
embedded system
 
WIRELESS SURVILLANCE ROBOT
WIRELESS SURVILLANCE ROBOT WIRELESS SURVILLANCE ROBOT
WIRELESS SURVILLANCE ROBOT
 

Último

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 

Último (20)

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 

PIC18F4520 Microcontroller and Robotics Presentation

  • 2.
  • 3. MICRO CONTROLLER ?? • Microcontroller is a small (micro) single-chip computer designed to perform a specific function, and the specific function is to control (controller) objects, processes or events. • It is dedicated to one task, or a set of closely related task. It is similar to a personal computer, it has similar components built on to a single chip: CPU, Memory (ROM and RAM), I/O ports, Serial ports, Timer, ADC.
  • 4. BASIC ARCHITECTURE OF MCU • CPU: Processing Module.  RAM: for storing DATA.  ROM: for storing the app. program.  Ports: For interfacing with the outside world.  Timer: Allows the MCU to perform tasks for certain time periods.  ADC: Allows the MCU to accept analogue input data for processing.
  • 5. BASIC DIFFERNCE BETWEEN MP & MC • Clock rate of MPs are of the order of GHz. Where as ........ MCU is a more self-contained (CPU, RAM, ROM, I/O ports, and timers) and independent and functions as a tiny computer dedicated to a specific task to control a single system... • Clock rate of MCs are of the order of MHz
  • 6. WHY PIC HAS BEEN PICKED ? • • • • • • • • • • Wide range: More than 200 MCUs in the product portfolio. Available in 8 ,16 and 32 bit in analogue as well as Digital Signal Controller family. RISC based architecture Pin out compatibility Software compatibility, Simple Instruction Set Peripheral compatibility Easy migration across product families. Common and easy to use development tools. Extensive support - Information is available in wide range and depth. Available in all package types
  • 7.
  • 9. TYPES OF ARCHITECTURE Von Neumann Architecture Harvard Architecture
  • 10. VON NEUMANN ARCHITECTURE • • • Single memory for storing both program and data. It has single bus which is multiplexed to be used as both address bus and data bus. The content of RAM can be used for both program storage as well as variable storage. Single bus
  • 11. HARVARD ARCHITECTURE • • • Separate memory banks for program and data storage. It has a RAM for data storage and separate ROM for program storage. Has two sets of buses. One can simultaneously access these buses. Program address bus Data address bus
  • 12. BLOCK DIAGRAM • operation of accumulator is scratch pad operation operation.
  • 13.
  • 14.
  • 16. PORT PINS • • • • • • • • Port A is a 8 pin bi directional port 5 analog / 6 digital pins Port B is a 8 pin bi directional port 8 digital pins/5 analog pins Port C is a 8 pin bi directional port 8 digital pins Port D is a 8 pin bi directional port 8 digital pins Port E is a 4 pin port 3 pin bi directional 3 analog / digital pins Pin 1 Digital input pin Pin 13 & 14 are digital I/O digital pins if not used for XT Osc Total availability 13 analog pins 35digital pins 1 digital input pin Pin 39 & 40 (PORTB) are used for programming/debugging.
  • 18. PATTERN ON LEDs IN ASSEMBLY LANGUAGE IN C LANGUAGE List p=18F4520, f =inhx32 #include <p18F4520.inc> COUNTERL EQU COUNTERH EQU ORG 0x0000 GOTO START START CLRF PORTB CLRF TRISB LOOP BSF PORTB,0 CALL DELAY BSF PORTB,0 BSF PORTB,1 CALL DELAY MOVLW 0X07 MOVWF PORTB CALL DELAY MOVLW 0X0F MOVWF PORTB CALL DELAY DELAY MOVLW 0XC4 MOVWF COUNTERH S1 MOVLW 0XFF MOVWF COUNTERL DECFSZ COUNTERL , 1 GOTO$ - 1 DECFSZ COUNTERH,1 GOTOS1 RETURN END #include<p18F4520.h> void delay(void); void main() { TRISB=0x00; PORTB=0x00; while(1) { PORTB=0x00; delay(); } } void delay(void) { unsigned char I,j; for(i=0;i<255;i++) for(j=0;;j<255;j++) } ;This is a header file for PIC18F452 0X00 0X01 ;Reset Vector ;Clear PORTB output latches ;Load value to make PORTB output port ;Turn on LED on RB0 ;Call delay routine ;Turn on LED on RB0 ;Turn on LED on RB1
  • 19. 7 SEGMENT DISPLAY LISTP=18F4520 #INCLUDE<P18F4520.INC> D1 EQU 0X20 D2 EQU 0X21 ORG 0X00 GOTO START START MOVLW 0X00 MOVWF PORTC MOVWF TRISC ;selecting PORTC as output port LOOP MOVLW B'00111111‘ ;code for displaying 0 on display MOVWF PORTC CALL DELAY MOVLW B'00000110‘ ;code for displaying 1 on display MOVWF PORTC CALL DELAY MOVLW B'01011011‘ ;code for displaying 2 on display MOVWF PORTC CALL DELAY MOVLW B'01001111‘ ;code for displaying 3 on display MOVWF PORTC CALL DELAY GOTO LOOP Contd.
  • 20. DELAY SECTION Contd. DELAY MOVLW 0X01 MOVWF D1 POL MOVLW .1 MOVWF D2 POOL DECFSZ D2,F GOTO POOL DECFSZ D1,F GOTO POL RETURN END
  • 21. Counter using 2 seven segment displays segment displays LIST P=18F4520 #INCLUDE<P18F4520.INC> D1 EQU 0X20 D2 EQU 0X21 ORG 0X0000 GOTO START START MOVLW 0X00 MOVWF TRISD MOVWF TRISC MOVWF PORTD MOVWF PORTC LOOP MOVLW B'00111111' MOVWF PORTC CALL SUB CALL DELAY MOVLW B'00000110' MOVWF PORTC CALL SUB CALL DELAY MOVLW B'01011011' MOVWF PORTC CALL SUB CALL DELAY MOVLW B'01001111' MOVWF PORTC CALL SUB CALL DELAY GOTO LOOP
  • 22. Delay section DELAY MOVLW 0X01 MOVWF D1 POL MOVLW .1 MOVWF D2 POOL DECFSZ D2,F GOTO POOL DECFSZ D1,F GOTO POL RETURN
  • 23. SUB section SUB MOVLW B'00111111' MOVWF PORTD CALL DELAY MOVLW B'00000110' MOVWF PORTD CALL DELAY MOVLW B'01011011' MOVWF PORTD CALL DELAY MOVLW B'01001111' MOVWF PORTD CALL DELAY MOVLW B'01100110' MOVWF PORTD CALL DELAY MOVLW B'01101101' MOVWF PORTD CALL DELAY MOVLW B'01111101' MOVWF PORTD CALL DELAY MOVLW B'00000111' MOVWF PORTD CALL DELAY MOVLW B'01111111' MOVWF PORTD CALL DELAY MOVLW B'01101111' MOVWF PORTD CALL DELAY GOTO SUB RETURN END
  • 24. Program of PWM List p=18F4431, f =inhx32 #include <p18F4431.inc> ;This is a header file for PIC18F452 org 00000h goto START START CLRF PORTC MOVLW 0X63 MOVWF OSCCON CLRF TRISC ; PORTC AS OUTPUT MOVLW .25 ;FREQUENCY IS 38 KHZ MOVWF PR2 ;TIME PEROID OF 26 US MOVLW .13 ; FOR DUTY CYCLE OF 50% MOVWF CCPR1L ; SET THE CCP FOR PWM MOVLW 0X0C MOVWF CCP1CON ;SETTING FOR THE PRESCALER OF TIMER 2 MOVLW 0X00 MOVWF T2CON ;THE TIMER IS ON BSF T2CON,2 GOTO $ ;KEEP THE controller BUSY END
  • 25. PROGRAM OF TIMER 0 5 SECOND DELAY ,TIMER0,16BIT LIST P=18F4520 , f = inhx32 #include <p18F4520.inc> ORG 0X00 GOTO MAIN MAIN CLRFINTCON ;PRIORITY overflow ,int flag MOVLW B'00000110' ;Disable Timer0:16 bit,int clock. MOVWF T0CON ;Prescaler 1:128 CLRFTRISB LOOP BSF PORTB,0 ;LED ON CALLDELAY BCF PORTB,0 ;LED OFF CALL DELAY GOTO LOOP DELAY MOVLW 0X67 MOVWF TMR0H MOVLW 0X69 MOVWF TMR0L BSF T0CON,7 BTFSS INTCON , TMR0IF GOTO $-1 BCF INTCON , TMR0IF BCF T0CON,7 RETURN END
  • 27. Other programs done are • • • • LCD Stepper motor Washing machine for fixed number of time Washing machine for fixed number of rotations • Traffic lights
  • 29. EVOLUTION OF ROBOT • Robotics brings together several very different engineering areas and skills. • The word robot comes from the Czech word "robota", meaning "forced labor.“ • A robot is an electro-mechanical device that can perform autonomous or preprogrammed tasks. Modern defination of Robot is A robot is a machine designed to execute one or more task repeatedly, with speed and precision.
  • 30. Mechanism of Robotics • • • • Locomotion system Power supply system Actuators Control system – Open loop – Closed loop
  • 31. Locomotion system • Locomotion is nothing but the movement or the ability to move from one place to another. So, • Robot locomotion is the collective name for the various methods that robots use to transport themselves from place to place.
  • 32. Mechanism to achieve Locomotion • Wheeled robots – These robots are quite energy efficient and simple to control. • other forms of locomotion (legged locomotion) may be more appropriate for a number of reasons e.g. traversing rough terrain, moving and interacting in human environments. • A major goal in this field is in developing capabilities for robots to autonomously decide how, when, and where to move.
  • 34. Main issue in legged locomotion Stability is the main issue in legged locomotion. Stability can be divided into the 1) Static stability criterion 2) Dynamic stability criterion.
  • 35. Static stability criterion • Static stability means that the robot is stable, with no need of motion at every moment of time. • Static stability is given, when the centre of mass is completely within the support polygon and the polygon’s area is greater than zero. • To achieve statically stable walking a robot must have a minimum number of four legs, because during walking at least one leg is in the air. • Statically stable walking means that all robots’ motion can be stopped at every moment in the gait cycle without overturning.
  • 36. Dynamic stability criterion • Most two legged walking machines are dynamically stable for several reasons Human like robots have relatively small footprints, because of this the support polygon is almost a line which is even reduced to a single point during walking. Therefore the robot must actively balance itself to prevent overturning In face of that the robots’ centre of mass has to be shifted actively between the footprints. But the robots exact centre of mass is hard to predict due to the high dynamic of walking (for example because of the force which is imparted to whole robot when one leg swings forward) .
  • 37. Legged configuration • If a robot has k legs the number of possible events N is, accordant to [1], N=(2k-1)! In case of a bipedal walking machine (k=2) the number of possible events is N=(2k-1)! = (2*2-1)! = 3! = 6 So there are six possible different events, these are 1. Lift left leg 2. Release left leg 3. Lift right leg 4. Release right leg 5. Lift both legs together 6. Release both legs together • In case of k=6 legs there are already 39916800 possible events
  • 38. Power supply system • Suitable power source is needed to run the robots. • Mobile robots are most suitably powered by batteries. • The weight and energy capacity of the batteries may become the determinative factor of its performance.
  • 39. Actuator • An actuator is a type of motor for moving or controlling a mechanism or system. It is operated by a source of energy, typically electric current, hydraulic fluid pressure, or pneumatic pressure, and converts that energy into motion. • An actuator is the mechanism by which a control system acts upon an environment.
  • 40. Desired Action    Controller Contro ller Actuator Actuat or There is no error correction. No way to check if the actuator was able to take the desired action Simple system to design, not very reliable Requires regular calibration of the system O/P
  • 43. INTERFACE WITH OTHERS • Robotics is a versatile, multi-disciplinary field, spanning a number of scientific and engineering areas where the latest knowledge and techno-logical advances contribute to the growth of Robotics.
  • 44. APPS. OF ROBOTICS • • • • • • • Edutainment Educational Robots, Robot Toys, Entertainment, Robotic Art Outdoor Robotics Land, Sea, Air, Space Wheeled Mobile Robot Advanced production systems Industrial robotics Adaptive robot servants and intelligent homes Indoor Service Robots, Ubiquitous Robotics Network Robotics Internet Robotics, Robot ecology Health Care and Life Quality Surgical Robotics, Bio-Robotics, Assistive Technology Military Robotics Transportation Intelligent Weapons, Robot Soldiers, Super-humans robots in a hospital
  • 45. Guide robot in a hosp. Machine-gun equipped robot developed by Samsung Robot waiter in Hong-Kong restaurant Pipeline Inspection robot Painting Robots
  • 47.
  • 49. Robocar using Arduino Board • It is a robot that can be steered in any direction just like you drive your car. Wireless steering senses the motion and transmits corresponding instruction to control the robot through RF communication.
  • 51. Program of sensing directions from accelerometer const int groundpin = 18; const int powerpin = 19; const int xpin = A3; const int ypin = A2; const int zpin = A1; // analog input pin 4 -- ground // analog input pin 5 -- voltage // x-axis of the accelerometer // y-axis // z-axis (only on 3-axis models) void setup() { // initialize the serial communications: Serial.begin(9600); pinMode(groundpin, OUTPUT); pinMode(powerpin, OUTPUT); digitalWrite(groundpin, LOW); digitalWrite(powerpin, HIGH); } void loop() { // print the sensor values: Serial.print(analogRead(xpin)); // print a tab between values: Serial.print("t"); Serial.print(analogRead(ypin)); // print a tab between values: Serial.print("t"); Serial.print(analogRead(zpin)); Serial.println(); // delay before next reading: delay(100); }
  • 53. COMPONENTS USED • • • • • • • Arduino Board Accelerometer Micro Controller (PIC 16F877A & Atmega328) Encoder IC (HT12E) Transmitter & Receiver Module Decoder IC (HT12D) Motor Driver IC (L293D) Accelero meter Arduino Board