Download - robotics and its components
![Page 1: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/1.jpg)
Robotics
![Page 2: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/2.jpg)
Introduction Of Robotics
Robotics is the branch of technology that deals with the design, construction, operation, structural disposition, manufacture and application of robots.
Robotics is the sciences of electronics, engineering
mechanics, and software.
Robot and Robotics technologies represented a practical applications of physics, computer science, engineering and mathematics.
![Page 3: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/3.jpg)
What is a Robot ?• In practice it is usually an electro-mechanical
machine which is guided by computer and electronic programming.
• We can not exactly define that what robot is, but we can say that-– A robot can be electrical, mechanical or
electro-mechanical setup. – It can be programmable or non-
programmable.– It can be Manual or automated controlled.– It can be use to move parts and help human
beings.
![Page 4: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/4.jpg)
three laws of robotics
1) A robot may not harm a human through action or inaction, allow a human to come to harm
2) A robot must obey the orders given by human beings, except when such orders conflict with the First Law
3) A robot must protect its own existence as long as it does not conflict with the First or Second Laws
Isaac Asimov popularized the term robotics. Asimov is a visionary who envisioned in the 1930’s the positronic brain for controlling robots. He invented the three laws of robotics:
![Page 5: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/5.jpg)
A robot must have the following essential characteristics
Mobility: It possesses some form of mobility. Programmability: It can be programmed to
accomplish a large variety of tasks. After being programmed, it operates automatically.
Sensors: On or around the device that are able to sense the environment and give useful feedback to the device.
Mechanical capability: Enabling it to act on its environment rather than merely function as a data processing or computational device (a robot is a machine); and
Flexibility: It can operate using a range of programs and manipulates in a variety of ways.
![Page 6: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/6.jpg)
Introduction of Embedded C and demo
programs Development process of AVR
projectsControl structures in CAlgorithms to be studiedAVR studio
![Page 7: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/7.jpg)
Embedded system
• An Embedded system is combination of computer hardware and software, and perhaps additional mechanical or others parts, designed to perform a specific task.
• Example: microwave oven, AC etc
![Page 8: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/8.jpg)
What is Embedded C?
Embedded C is nothing but a subset of C language which is compatible with certain microcontrollers.
Some features are added using header files like <avr/io.h>, <util/delay.h>.
scanf() and printf() are removed as the inputs are scanned from the sensors and outputs are given to the ports.
Control structures remain the same like if-statement, for loop, do-while etc.
![Page 9: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/9.jpg)
Development process of Embedded C projects
• Write C programs in AVR Studio.• Compile them into a .hex file using the AVR-GCC compiler
(which integrates into AVR Studio).• Simulate the target AVR program and debug the code within
AVR Studio.• Program the actual chip using the AVRISP mkII USB device,
which is attached to our target board with a special 6-pin cable.
• Once programmed, the chip runs the program in your circuit.
![Page 10: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/10.jpg)
If-statement
• Syntax: if( condition)
{ statement……. }else { statement…….. }
![Page 11: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/11.jpg)
Program for if-statementInt a=4;Int b=5;If(a>b) printf(“ a is largest”);else printf(“ b is largest”);
![Page 12: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/12.jpg)
Do- while statement• Syntax:Initial counterDo{ statement……. update statement}While(condition);
![Page 13: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/13.jpg)
Program for do-whileInt a=4;Do { a++; } while(a>5);
![Page 14: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/14.jpg)
For- statement • Syntax:For( initial counter; test condition; update stmt) { statement…….. statement……... }
• Program:for(int i=0;i<5;i++) sprintf(str, “Hello Robosapiens”);
![Page 15: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/15.jpg)
What is a Microcontroller?
A microcontroller (sometimes abbreviated µC or MCU) is a small computer on a single IC containing a processor core, memory, and programmable input/output peripherals.
It is a decision making device used widely in embedded systems and all intelligent devices.
![Page 16: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/16.jpg)
Basic Block Diagram of Microcontroller
![Page 17: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/17.jpg)
Block Diagram to show the difference
![Page 18: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/18.jpg)
Difference between Microcontroller and Microprocessor
Microcontroller has I/O ports, Memory, timers etc all integrated on chip itself
In Microprocessors, I/O ports, memory, timer etc are to be connected externally
![Page 19: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/19.jpg)
What is a 8-bit microcontroller?
8-bit means it can process 8-bit data per clock cycle
It has 8-bit data bus
It can process 1byte of data at a time
![Page 20: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/20.jpg)
What is AVR?
AVR is a modified Harvard architecture , 8-bit RISC single chip microcontroller.
It was developed in the year 1996 by Atmel Corporation.
![Page 21: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/21.jpg)
What’s special about AVR?
They are fast.
AVR Microcontroller executes most of the instructions in single execution cycle.
AVRs are about 4 times faster than PIC.
They consume less power and can be operated in different power saving modes.
![Page 22: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/22.jpg)
Creation of AVR Projects with AVR studio
![Page 23: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/23.jpg)
Home screen of AVR STUDIO
![Page 24: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/24.jpg)
Naming project as Line follower
![Page 25: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/25.jpg)
Selecting Platform and Device
![Page 26: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/26.jpg)
Coding window
![Page 27: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/27.jpg)
Building the code
![Page 28: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/28.jpg)
Build and Run the code
![Page 29: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/29.jpg)
Select the HID boot flash icon
![Page 30: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/30.jpg)
Click on to the find device.
![Page 31: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/31.jpg)
Click on the browse button to browse the hex file.
![Page 32: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/32.jpg)
Browse the file from your project folder , select the hex file and click open.
![Page 33: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/33.jpg)
Finally click on to the write button to burn the hex file in the MCU.
![Page 34: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/34.jpg)
Some common projects
are:-
![Page 35: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/35.jpg)
WALL FOLLOWING
ROBOT USING I-BOT mini V3
![Page 36: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/36.jpg)
Wall Follower using I-BOT is built using infrared based proximity sensor module.
The left module is used to detect the wall on the left side of the I-BOT.
The Left module is connected at approximately 45 degree to the board so as to detect the wall as shown next.
WALL FOLLOWING ROBOT USING I-BOT
mini V3
![Page 37: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/37.jpg)
CASE 1 LS = ON CASE 2LS = OFF
WALL FOLLOWING
ROBOT USING I-BOT mini V3
![Page 38: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/38.jpg)
LEFT SENSOR MOVEMENT ON TURN RIGHTOFF TURN LEFT
WALL FOLLOWING ROBOT LOGIC TABLE
![Page 39: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/39.jpg)
LINE FOLLOWER
ROBOT USING I-BOT mini V3
![Page 40: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/40.jpg)
A Line follower is an autonomous robot which follows either black line in white are or white line in black area. Robot must be able to detect particular line and keep following it.
BLOCK DIAGRAM
An array of sensor is used to detect the line. Based on the status of sensors, special circuit or controller decides the position of line and also the required direction of motion required to follow the line. Motor driver circuit is used to ON/OFF the LEFT/RIGHT motors of the robot to provide desired motion.
![Page 41: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/41.jpg)
LINE FOLLOWER ROBOT
BLACK-LINE FOLLOWER ROBOT WHITE-LINE FOLLOWER ROBOT
types
![Page 42: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/42.jpg)
Programme for line follower#include<avr/io.h>#include<delay/util.h>Void main(){DDRA=0X00;DDRB=0XFF;While(1){IF(PINA==0b00001001)
![Page 43: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/43.jpg)
{PORTB=0b00001001;}IF(PINA==0b00000001){PORTB=0b00000001;}IF(PINA==0b00001000){PORTB=0b00001000;}IF(PINA==0b00000000){PORTB=0b0000000;}}}}}
![Page 44: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/44.jpg)
BLACK-LINE FOLLOWER ROBOT
CASE 1Ls = ON
Rs = OFF
CASE 2Ls = OFF
Rs = ON
Ls = ON Rs = ON
CASE 3Ls = ON Rs = ON
CASE 4Ls = OFF
Rs = OFF
![Page 45: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/45.jpg)
LEFT SENSOR RIGHT SENSOR MOVEMENT
ON ON FORWARD
OFF ON LEFT TURN
ON OFF RIGHT TURN
OFF OFF STOP
BLACK LINE FOLLOWER ROBOT LOGIC TABLE
![Page 46: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/46.jpg)
WHITE-LINE FOLLOWER ROBOT
CASE 2Ls = ON
Rs = OFF
Ls = OFF Rs = OFF
CASE 3Ls = OFF Rs = ON
CASE 4Ls = OFF
Rs = OFF
CASE 1Ls = OFF
Rs = OFF
![Page 47: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/47.jpg)
LEFT SENSOR RIGHT SENSOR MOVEMENT
ON ON STOP
OFF ON RIGHT TURN
ON OFF LEFT TURN
OFF OFF FORWARD
WHITE LINE FOLLOWER ROBOT LOGIC TABLE
![Page 48: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/48.jpg)
• Large organisations and companies reap many benefits from robotic technologies because:
• Robots are less expensive than paying human workers over the long run and robots are not prone to injure themselves.
Current Robotic Technologies
![Page 49: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/49.jpg)
• Robots are used internationally by Police, Army, Navy and Air force organisations
• Robotic technology is used to deal with hazardous situations such as dealing with suspicious packages, riots and for the collection of foreign intelligence
• NASA scientists use robotic technologies (Mars Explorer) to explore other planets
Robots are currently used for situations where human safety is an issue
![Page 50: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/50.jpg)
Industrial Application
• Repetitive tasks
• High speed
• High precision movements
• Pre-planned trajectories and task policies
• Automated and no human interference required
![Page 51: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/51.jpg)
SENSORS
![Page 52: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/52.jpg)
WHAT IS A SENSOR….?• A sensor is a device that measures a physical
quantity and converts it into a signal which can be read by an observer or by an instrument.
• Sensors are used in everyday objects such as touch-sensitive elevator buttons (tactile sensor) and lamps which dim or brighten by touching the base.
• Applications include cars, machines, aerospace, medicine, manufacturing and robotics.
![Page 53: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/53.jpg)
TYPES OF SENSORS
• IR SENSOR
• SOUND SENSOR
• TEMPERATURE SENSOR
![Page 54: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/54.jpg)
IR SENSOR
![Page 55: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/55.jpg)
WORKING• IR sensor works on the principle of emitting IR
rays and receiving the reflected ray by a receiver (Photo Diode).
• IR source (LED) is used in forward bias.• IR Receiver (Photodiode) is used in reverse
bias.
![Page 56: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/56.jpg)
VOLTAGE COMPARATOR
• A Comparator is a device which compares two voltages or currents and switches its output to indicate which is larger.
• Comparator is an Op-amp.
![Page 57: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/57.jpg)
LIGHT Sensor Circuit
![Page 58: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/58.jpg)
TEMPERATURE SENSOR
![Page 59: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/59.jpg)
TIMER 555 IC
![Page 60: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/60.jpg)
The 555 Timer IC is an integrated circuit (chip) implementing a variety of timer and multivibrator applications.
![Page 61: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/61.jpg)
OPERATING MODES
• MONOSTABLE MODE
• BISTABLE MODE
• ASTABLE MODE
![Page 62: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/62.jpg)
Monostable mode• In this mode, the 555 functions as a "one-
shot"
• Applications include timers, missing pulse detection, bouncefree switches, touch switches, frequency divider, capacitance measurement, pulse-width modulation (PWM) etc
![Page 63: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/63.jpg)
CIRCUIT DIAGRAM IN MONOSTABLE MODE
![Page 64: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/64.jpg)
Contd....• The pulse begins when the 555 timer receives a
trigger signal. • The width of the pulse is determined by the time
constant of an RC network, which consists of a capacitor (C1) and a resistor (R1).
• The pulse width can be lengthened or shortened to the need of the specific application by adjusting the values of R and C.
T = 1.1 X R1 X C1
![Page 65: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/65.jpg)
Pictorial representation
![Page 66: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/66.jpg)
Bistable Mode
o In bistable mode, the 555 timer acts as a basic flip-flop.o The trigger and reset inputs (pins 2 and 4 respectively on a
555) are held high via pull-up resisters while the threshold input (pin 6) is simply grounded.
o Thus configured, pulling the trigger momentarily to ground acts as a 'set' and transitions the output pin (pin 3) to Vcc (high state).
o Pulling the reset input to ground acts as a 'reset' and transitions the output pin to ground (low state).
o No capacitors are required in a bistable configurationo Pin 8 (Vcc) is, of course, tied to Vcc while pin 1 (Gnd) is
grounded.o Pins 5 and 7 (control and discharge) are left floating.
![Page 67: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/67.jpg)
Astable mode
• In Astable mode, the '555 timer ' puts out a continuous stream of rectangular pulses having a specified frequency.
• Resistor R1 is connected between VCC and the discharge pin (pin 7) and another resistor (R2) is connected between the discharge pin (pin 7), and the trigger (pin 2) and threshold (pin 6) pins that share a common node.
• Hence the capacitor is charged through R1 and R2, and discharged only through R2.
![Page 68: robotics and its components](https://reader038.vdocument.in/reader038/viewer/2022102323/554a4a20b4c905293a8b589d/html5/thumbnails/68.jpg)
Contd....• In the above circuit we are triggering the 555
timer by applying voltage produced by sound.• This voltage when generated pass through the
capacitor which works as a filter.• This filtered voltage is then fed to transistor
which is inverting the voltage and also amplifying it.
• And hence creating a negative triggering pulse.