Beruflich Dokumente
Kultur Dokumente
CHAPTER 1
INTRODUCTION
What is the first thing that comes to mind when you think of a robot?
For many people it is a machine that imitates a human—like the androids in Star
Wars, Terminator and Star Trek: The Next Generation. However much these robots capture
our imagination, such robots still only inhabit Science Fiction. People still haven't been
able to give a robot enough 'common sense' to reliably interact with a dynamic world.
However, Rodney Brooks and his team at MIT Artificial Intelligence Lab are working on
creating such humanoid robots.
The type of robots that you will encounter most frequently are robots that do work
that is too dangerous, boring, onerous, or just plain nasty. Most of the robots in the world
are of this type. They can be found in auto, medical, manufacturing and space industries.
In fact, there are over a million of these type of robots working for us today.
Some robots like the Mars Rover Sojourner and the upcoming Mars Exploration
Rover, or the underwater robot Caribou help us learn about places that are too dangerous
for us to go. While other types of robots are just plain fun for kids of all ages. Popular toys
such as Teckno, Polly or AIBO ERS-220 seem to hit the store shelves every year around
Christmas time.
Sensing: First of all your robot would have to be able to sense its surroundings. It would
do this in ways that are not un similar to the way that you sense your surroundings.
Giving your robot sensors: light sensors (eyes), touch and pressure sensors
(hands), chemical sensors (nose), hearing and sonar sensors (ears), and taste
sensors (tongue) will give your robot awareness of its environment.
Movement: A robot needs to be able to move around its environment. Whether rolling on
wheels, walking on legs or propelling by thrusters a robot needs to be able to move. To
count as a robot either the whole robot moves, like the Sojourner or just parts of the robot
moves, like the Canada Arm.
Energy: A robot needs to be able to power itself. A robot might be solar powered,
electrically powered, battery powered. The way your robot gets its energy will depend on
what your robot needs to do.
Intelligence: A robot needs some kind of "smarts." This is where programming enters the
pictures. A programmer is the person who gives the robot its 'smarts.' The robot will have
to have some way to receive the program so that it knows what it is to do.
So what is a robot?
As more and more robots are designed for specific tasks this method of
classification becomes more relevant. For example, many robots are designed for assembly
work, which may not be readily adaptable for other applications. They are termed as
"assembly robots". For seam welding, some suppliers provide complete
welding systems with the robot i.e. the welding equipment along with other material
handling facilities like turntables etc. as an integrated unit. Such an integrated robotic
system is called a "welding robot" even though its discrete manipulator unit could be
adapted to a variety of tasks. Some robots are specifically designed for heavy load
manipulation, and are labelled as "heavy duty robots".[20]
Military robots.
Industrial robots. Robots are increasingly used in manufacturing (since the 1960s).
According to the Robotic Industries Association(RIA) US data, in 2016 automotive
industry was the main customer of industrial robots with 52% of total sales. In the auto
industry, they can amount for more than half of the "labour". There are even
"lights off" factories such as an IBM keyboard manufacturing factory in Texas that was
fully automated as early as 2003.
CHAPTER 2
BLOCK DIAGRAM
Firstly, the switch of the battery is turned ON to activate the robot and then the
program is loaded into the processor.
Then later, when we make any gestures like moving our elbow joints up and down,
then by the help of potentiometers connected to the elbow joints, the slider of the
potentiometer rotates and this cause a variation in resistance.
The variations in resistance are sent to arduino atmega 2560 through wires which
then rotates the servo motor in particular angle accordingly by using a map function
which maps the analog potentiometer values to angle values for servo motor.
Thus when the servo motors rotates, the mechanism is in such a way that it lifts the
robotic arms connected to the servo motors.
When we need to lift some heavy objects, we take the help of joystick module which
helps us to close and open the grippers which indirectly means rotates the mini servo
motor in particular angle by which the grippers open and close by which holding of
objects is done.
While the grippers are holding the objects, we can once again move our elbows by
which lifting of arms will be performed and then the objects are lifted.
With the help of joystick module we can drive the motors and the robot can be
carried to anywhere we want and can place the objects.
The main application of this robot finds in industries where the lifting of heavy
objects can take place. For example in cargo loading and un-loading.
CHAPTER 3
HARDWARE DESCRIPTION
● SRAM: 8 KB
● EEPROM: 4 KB
3.1.3 ON Board
The Arduino Mega2560 can be powered via the USB connection or with an
external power supply. The power source is selected automatically. External (non-USB)
power can come either from an AC-to-DC adapter (wall-wart) or battery. The adapter can
be connected by plugging a 2.1mm center-positive plug into the board's power jack. Leads
from a battery can be inserted in the Gnd and Vin pin headers of the POWER connector.
The board can operate on an external supply of 6 to 20 volts. If supplied with less
than 7V, however, the 5V pin may supply less than five volts and the board may be
unstable. If using more than 12V, the voltage regulator may overheat and damage the
board. The recommended range is 7 to 12 volts.
The Mega2560 differs from all preceding boards in that it does not use the FTDI
USB-to-serial driver chip. Instead, it features the Atmega8U2 programmed as a USB-to-
serial converter.
VIN. The input voltage to the Arduino board when it's using an external power
source (as opposed to 5 volts from the USB connection or other regulated power
source). You can supply voltage through this pin, or, if supplying voltage via the
power jack, access it through this pin.
5V. The regulated power supply used to power the microcontroller and other
components on the board. This can come either from VIN via an on-board
regulator, or be supplied by USB or another regulated 5V supply.
3V3. A 3.3volt supply generated by the on-board regulator. Maximum current
draw is 50 mA.
GND. Ground pins.
3.1.5 Memory
The ATmega2560 has 256 KB of flash memory for storing code (of which 8 KB
is used for the bootloader), 8 KB of SRAM and 4 KB of EEPROM (which can be read
and written with the EEPROM library).
Each of the 54 digital pins on the Mega can be used as an input or output, using
pinMode(), digitalWrite(), and digitalRead() functions. They operate at 5 volts. Each pin
can provide or receive a maximum of 40 mA and has an internal pull-up resistor
(disconnected by default) of 20-50 kOhms. In addition, some pins have specialized
functions:
Serial: 0 (RX) and 1 (TX); Serial 1: 19 (RX) and 18 (TX); Serial 2: 17 (RX)
and 16 (TX); Serial 3: 15 (RX) and 14 (TX). Used to receive (RX) and transmit
(TX) TTL serial data. Pins 0 and 1 are also connected to the corresponding pins
I2C: 20 (SDA) and 21 (SCL). Support I2C (TWI) communication using the
Wire library (documentation on the Wiring website). Note that these pins are not
AREF. Reference voltage for the analog inputs. Used with analogReference().
Reset. Bring this line LOW to reset the microcontroller. Typically used to add a
reset button to shields which block the one on the board.
3.1.7 Communication
recognize the board as a COM port automatically. The Arduino software includes a serial
monitor which allows simple textual data to be sent to and from the board. The RX and
TX LEDs on the board will flash when data is being transmitted via the ATmega8U2 chip
and USB connection to the computer (but not for serial communication on pins 0 and 1).
A Software Serial library allows for serial communication on any of the Mega's
digital pins.
The ATmega2560 also supports I2C (TWI) and SPI communication. The Arduino
software includes a Wire library to simplify use of the I2C bus; see the documentation on
the Wiring website for details. To use the SPI communication, please see the ATmega2560
datasheet.
3.1.8 Programming
The Arduino Mega2560 can be programmed with the Arduino software
(download). For details, see the reference and tutorials.
The Atmega2560 on the Arduino Mega comes reburned with a bootloader that
allows you to upload new code to it without the use of an external hardware programmer.
It communicates using the original STK500 protocol (reference, C header files).
You can also bypass the bootloader and program the microcontroller through the
ICSP (In-Circuit Serial Programming) header; see these instructions for details.
3.1.9 Automatic (Software) Reset
Rather than requiring a physical press of the reset button before an upload, the
Arduino Mega2560 is designed in a way that allows it to be reset by software running on
a connected computer. One of the hardware flow control lines (DTR) of the ATmega8U2
is connected to the reset line of the ATmega2560 via a 100 nano-farad capacitor. When
this line is asserted (taken low), the reset line drops long enough to reset the chip. The
Arduino software uses this capability to allow you to upload code by simply pressing the
upload button in the Arduino environment. This means that the bootloader can have a
shorter timeout, as the lowering of DTR can be well-coordinated with the start of the
upload.
This setup has other implications. When the Mega2560 is connected to either a
computer running Mac OS X or Linux, it resets each time a connection is made to it from
software (via USB). For the following half-second or so, the bootloader is running on the
The Arduino Mega has a resettable polyfused that protects your computer's USB
ports from shorts and overcurrent. Although most computers provide their own internal
protection, the fuse provides an extra layer of protection. If more than 500 mA is applied
to the USB port, the fuse will automatically break the connection until the short or
overload is removed.
both the Mega and Duemilanove / Diecimila. Please note that I2C is not located on the
same pins on the Mega (20 and 21) as the Duemilanove / Diecimila (analog inputs 4
and 5).
Arduino shields are modular circuit boards that piggyback onto your Arduino to
instill it with extra functionality. By using Arduino shield we can connect to the internet.
Many Arduino shields are stackable. We can connect many shields together to create a "Big
Mac" of Arduino modules. For example, combine an Arduino uno with a Voice box shield,
and a Wi-Fi shield to create a Wi-Fi talking Stephen Hawking (TM).
Shields are often supplied with either an example sketch, or a library. So, not only
do they just simply plug into the Arduino, but all we need to do to make them work is up
load up some example code to the Arduino.
Every Arduino shield must have the same form-factor as the standard Arduino.
Power and ground pins on one eight (previously six) pin header, and analog pins on a six-
pin header next to that. Digital pins cover the other edge on the other side, an eight-pin
header separated from a 10-pin by that weird 0.5" spacing. Some shields also require a
connection to the Arduino's ICSP header (the 2x3 programming header on the end). [3]
Some shields use every pin on the Arduino, while others only use a couple. When
stacking shields, it's important to make sure they don't use overlapping pins. Some shields
communicate with the Arduino via SPI or serial, and others use the Arduino's interrupts
or analog inputs.
The servo motor is most commonly used for high technology devices in the
industrial application like automation technology. It is a self-contained electrical device
that rotate parts of a machine with high efficiency and great precision. The output shaft of
this motor can be moved to a particular angle. Servo motors are mainly used in home
electronics, toys, cars, airplanes, etc. This article discusses about what is a servo motor,
servo motor working, servo motor types and its applications.
Servo motors are classified into different types based on their application, such as
AC servo motor, DC servo motor, brushless DC servo motor, positional rotation,
continuous rotation and linear servo motor etc. Typical servo motors comprise of three
wires namely, power control and ground. The shape and size of these motors depend on
their applications. RC servo motor is the most common type of servo motor used in hobby
applications, robotics due to their simplicity, affordability and reliability of control by
microprocessors.
The motor which is used as a DC servo motor generally have a separate DC source
in the field of winding & armature winding. The control can be archived either
by controlling the armature current or field current. Field control includes some particular
advantages over armature control. In the same way armature control includes some
advantages over field control. Based on the applications the control should be applied to
the DC servo motor. DC servo motor provides very accurate and also fast respond to start
or stop command signals due to the low armature inductive reactance. DC servo motors are
used in similar equipment and computerized numerically controlled machines.
AC servo motor is an AC motor that includes encoder is used with controllers for
giving closed loop control and feedback. This motor can be placed to high accuracy and
also controlled precisely as compulsory for the applications. Frequently these motors have
higher designs of tolerance or better bearings and some simple designs also use higher
voltages in order to accomplish greater torque. Applications of an AC motor mainly involve
in automation, robotics, CNC machinery, and other applications a high level of precision
and needful versatility.
Positional rotation servo motor is a most common type of servo motor. The shaft’s
o/p rotates in about 180°. It includes physical stops located in the gear mechanism to stop
turning outside these limits to guard the rotation sensor. These common servos involve in
radio-controlled water, radio-controlled cars, aircraft, robots, toys and many other
applications.
Continuous rotation servo motor is quite related to the common positional rotation
servo motor, but it can go in any direction indefinitely. The control signal, rather than set
the static position of the servo, is understood as the speed and direction of rotation. The
range of potential commands sources the servo to rotate clockwise or anticlockwise as
preferred, at changing speed, depending on the command signal. This type of motor is used
in a radar dish if you are riding one on a robot or you can use one as a drive motor on a
mobile robot.
Linear servo motor is also similar the positional rotation servo motor is discussed
above, but with an extra gear to alter the o/p from circular to back-and-forth. These servo
motors are not simple to find, but sometimes you can find them at hobby stores where they
are used as actuators in higher model airplanes.
A unique design for servo motors are proposed in controlling the robotics and for
control applications. They are basically used to adjust the speed control at high torques and
accurate positioning. Parts required are motor position sensor and a highly developed
controller. These motors can be categorized according the servo motor controlled by
servomechanism. If DC motor is controlled using this mechanism, then it is named as a DC
servo motor. Servo motors are available in power ratings from fraction of a watt to 100
watts. The rotor of a servo motor is designed longer in length and smaller in diameter so
that it has low inertia. To know more about this, please follow the link: Servo motor
working principle and interfacing with 8051 microcontroller
The servo motor is small and efficient, but serious to use in some applications like
precise position control. This motor is controlled by a pulse width modulator signal. The
applications of servo motors mainly involve in computers, robotics, toys, CD/DVD players,
etc. These motors are extensively used in those applications where a particular task is to be
done frequently in an exact manner.
The servo motor is used in robotics to activate movements, giving the arm to its
precise angle.
The Servo motor is used to start, move and stop conveyor belts carrying the product
along with many stages. For instance, product labeling, bottling and packaging
The servo motor is built into the camera to correct a lens of the camera to improve
out of focus images.
The servo motor is used in robotic vehicle to control the robot wheels, producing
plenty torque to move, start and stop the vehicle and control its speed.
The servo motor is used in solar tracking system to correct the angle of the panel so
that each solar panel stays to face the sun
The Servo motor is used in metal forming and cutting machines to provide specific
motion control for milling machines
The Servo motor is used in Textiles to control spinning and weaving machines,
knitting machines and looms
The Servo motor is used in automatic door openers to control the door in public
places like supermarkets, hospitals and theatres
3.4 POTENTIOMETER
Resistor, a small bundle of resistance, is one of the most used basic components in
an electric circuit. Mostly used to regulate the current flow by adding/subtracting resistance
from the circuit, these resistors are available in many shapes and sizes. These resistors can
be broadly classified as fixed and variable resistors. As their respective names suggest, a
fixed resistor has a single fixed value of resistance, whereas a variable resistor has
resistance value over a defined range. Out of the numerous linear and Non-linear variable
resistors available, the most common is the Potentiometer. This article deals with the
working principle, construction and application of a potentiometer. So, let’s get started!
The potentiometers or the “pots”, as it is commonly known in the electric circles, is a three
terminal variable resistor. Out of its three terminals, two of them are fixed and one is a
varying (linear / rotary) terminal.
The value of the resistance can be changed from zero to a defined upper limit, by
just manually sliding the contact over a resistive strip. As the resistance changes, the
current through the circuit changes and hence according to the ohms law, the voltage across
the resistive material also changes.
Since its covert’s rotary or linear motion by the operator into a change in resistance
(hence a change in electric parameter), it can be called an electro-mechanical transducer.
They are passive in nature, therefore dissipate power rather than supplying power to the
circuit.
In its early days of manufacture, it was thought of like a large wire wound resistive
coil, which could be adjusted so as to measure the voltage difference across it. Hence, the
name “potentiometer” was given to this device, which is coined from the combination of
two words: potential difference and metering.
They have come a long way since then. Gone are the days of large bulky
potentiometers, now what we get is quite small and easy to use and light to carry, also they
have now used in wide range of applications.
Now that we have had an introduction about the potentiometer, you might have a
curiosity of knowing how it looks like. Figure 1 shows some practical pots, while figure 2
shows the standard symbol of the same.
As already discussed, a potentiometer has three terminals. When connected to a circuit, the
two fixed terminals are connected to the ends of the resistive elements while the third
terminal is connected to the wiper.
In the circuit diagram shown below, the terminals of the potentiometer are marked 1, 2 and
3. The voltage supply is connected across terminals 1 and 3, positive lead to terminal one
while negative lead to terminal three. The terminal 2 is connected to the wiper.
Now a closer look into the figure, we can see that at the current position of wiper,
there are two resistive paths just like the resistor is split into two resistors. Out of these two
resistors, the one having longer resistive path will have a higher resistance. This is due to
the fact that resistance of a resistor depends on its length (since R=ρ). Higher the length,
higher is the resistance, provided the material of the resistor and its cross-sectional area
remains same.
For simplicity, lets name the two resistors, R1 and R2 (Refer figure). The wiper
voltage is actually the voltage across R2. The circuit now looks like a voltage divider, where
the output voltage is given the equation:
So clearly, if we want to change the output voltage, we can just change the value of R2, by
sliding the wiper towards the terminal 3. When the wiper is at terminal 1, R1 becomes zero
and the voltage across the wiper is same as the supply voltage.
Also, when the wiper is at terminal 3, the effective resistive path for R2 is zero, hence the
resistance R2 is zero.
The potentiometer essentially has a resistive element over which a moving terminal,
the wiper slides. Any potentiometer is constructed of the following parts:
The terminals: As already discussed, the potentiometer has three terminals, two fixed and
one variable.
The resistive element: This part is the main part of the device and it is connected to the
two fixed terminals. It is one of the decisive aspects when it comes to the cost of the
potentiometer, and also can govern aspects of the performance of the component including
the power dissipation capability and noise generated.
Carbon Composition: This is made from carbon granules and is one of the most common
types of resistive material used, because of its low cost. It also has a reasonably low noise
and lesser wear than other Materials. However, it is not that accurate in its operation.
Wire wound – These are basically Nichrome wires and are wound over an insulating
substrate. They are mostly used in high power applications and last really long. They are
precise but have limited resolution.
Conductive plastic: Often used in high end audio applications, they have very good
resolution but are really costly, and can be used in low power applications only.
Cermet: A very stable type of material, it has a low temperature coefficient and is highly
resistant to temperature. However, it has a short life and can burn a hole in your pocket.
The wiper: This is the one terminal that slides over a resistive strip to make an electrical
contact. It may be a rotary wiper that is like a half an arc, that covers over ¾ of a circle or
a linear wiper.
θ = (Vout/Vsupply)
The shaft: In case of a rotary wiper type potentiometer, a shaft is present over which the
wiper is fabricated.
Casting: All of the components is housed inside a casting, to prevnt it from external
physical damages
There are some particular characteristics of a potentiometer that one needs to know. Next
section deals with that.
TAPER:
The law of pots or the taper of pots is one such characteristic of potentiometer in
which one needs a prior knowledge, to pick the right device for the desired application. It
is nothing but a ratio between the wiper position and the resistance. This ratio when plotted
may be linear, logarithmic or antilogarithmic, as shown in figure.
MARKING CODES: While selecting a potentiometer, you need to know the maximum
value of resistance it can attain. For this purpose, the manufactures use marking codes,
which indicate the same. For example, a pot with a resistance of 100K marked on it
means, the maximum limit of the pot is 100kΩ.
Since, we also need to know the taper of the pot, the manufacturers use marking codes for
indicating the taper of the pot as well. The marking codes differ from a region to region.
One must have prior knowledge of what a code stands for.
HOP ON HOP OFF RESISTANCE: Like we have seen in the construction part of this
article that the resistive element is connected in between the two terminals. These terminals
are made of very low resistance metal. Hence, whenever the wiper enters or exits this
region, there will be a sudden change in the resistance. This characteristic of the pot is
called, hop on hop off resistance.
Now that the characteristics of the pot have been discussed let’s have a look into what are
the types of potentiometers.
Even though the basic construction and working principle of potentiometers are the
same, they differ in one aspect that is the geometry of the moving terminal. Mostly the
potentiometers what we find has a wiper that rotates over an arc shaped resistive material,
there is another type of pot where the wiper slides linearly over a straight resistive strip.
Based on the geometry of the resistive strip, the potentiometer can be broadly classified
into two types, discussed below.
Rotary type potentiometers: As the name suggests, this type of potentiometer has a
wiper which can be rotated across the two terminals, to vary the resistance of the
potentiometer. They are one of the common types of Pots. Depending upon how many
times, one can turn the wiper, they are further classified into the following categories:
Single turn: These pots are one of the commonly used type of pots. The wiper can take
only a single turn. It usually rotates a 3/4th of the full turn.
Multi turn: These pots can make multiple rotations like 5, 10 or 20. They have a wiper in
the form of a spiral or helix, or a worm-gear, to make the turns. Known for their high
precision, these types of pots are used where high precision and resolution are required.
Dual gang: From the name of this pot it can be assumed what it is. It is nothing but two
pots with equal resistance and taper are combined on the same shaft. The two channels are
set in parallel.
Concentric pot: Here two pots are combined together on shafts placed in a concentric
manner. The advantage of using this type of pot is that two controls can be used in one unit.
Servo pot: “Servo” meaning motor pot is a motorized pot. This means its resistance can be
adjusted or controlled automatically by a motor.
Linear type potentiometers: The next type of pots is one in which the wiper slides over
a straight resistive strip. They are also known by the names such as: slider, slide pot or
fader. They are further classified into the following types:
Slide pot: This is the basic type of a linear pot. They have a single resistive strip over which
the wiper slides linearly. They have a good precision and are moistly made from conducive
plastic.
Dual slide pot: This type of linear pot is just the calibration of two slide pot in parallel.
This means it has a single slider that controls two pots in parallel.
Multi turn pot: In an application where Precion and good resolution of utmost importance
this type of pot is used. IT HAS a spindle, that actuates the slider, that can turn up to 5, 10
or 20 times to improve the precision.
Motorized fader: As the name suggests, the movement of wiper of this pot is controlled
by a motor, and hence its resistance.
I. Pots as Controllers:
Potentiometers can be used in user Controlled input applications, where there is a
requirement of manual variation in the input. Like for example a throttle pedal is often a
dual gang pot, used to increase the redundancy of the system. Also, the joysticks that we
use in machine control, is a classic example of pot used as a user Controlled input.
Another application where pots are used as controllers are in audio systems. The
potentiometer with logarithmic taper, is often used in audio volume control devices, this is
so because our hearing has a logarithmic response to sound pressure. A logarithmic taper
pot will therefore naturally make the transition from a loud to soft sound (and vice versa),
smoother to our ears. Mostly a motorized pot (with logarithmic taper) is used for this
application.
Since these devices convert the position of the wiper into an electrical output, they
are used as transducers to measure distance or angles.
Vcc 5V
GND GND
3.5 JOYSTICK
3.5.1 Introduction
At Idle position output voltage, will be VCC/2. Now considering VCC = 5 volts,
following fig. shows the voltage mapping with different XY position.
When the joystick is at idle position, the output value of the X terminal and Y terminal
are Centre (2.5V) of the specified range (0V to 5V). According to the movement of a
holder, the output values are varying from minimum limit (0V) to maximum limit (5V).
This Joystick also has a select button/switch that is actuated when the Joystick knob
pressed down.
Pin 2 –X-OUT
This pin provides an analog output voltage from 0 volts to VCC according to the
movement of Holder in X-direction (axis).
Pin 3 - Y-OUT
This pin provides an analog output voltage from 0 volts to VCC according to the
movement of Holder in Y- direction (axis).
Pin 4 - Switch
When a switch is not pressed, this pin is connected to VCC through a resistor.
5 SW Switch
3.5.3 Features
Operating Voltage: 5V
Internal Potentiometer value: 10k
2.54mm pin interface leads
Dimensions: 1.57 in x 1.02 in x 1.26 in (4.0 cm x 2.6 cm x 3.2 cm)
Operating temperature: 0 to 70 °C
When we listen the word “Joystick” we think of Game controllers. If we talk about
Electronics there are many useful of application of Joystick. These type of module are
mostly used in Arduino based DIY projects and Robot Control. As we know, the module
gives analog output so it can be used for feeding the analog input based on direction or
movement. It can also be connected to a movable camera to control its movement.
We can use a Joystick Module with Arduino, Raspberry Pi and any other Micro-
controllers. We just have to connect the axis Pins VRx and VRy to the ADC Pins of the
micro-controller. If you want to use the switch then connect it to the digital Pin of the
Micro-controller. Follow the below block diagram to connect Joystick Module with
Microcontroller.
As used in many projects, the interfacing diagram of Joystick Module with the
Arduino is given below. It helps you to connect the joystick Module with Arduino and get
the analog output based on the direction of movement of Joystick Knob.
After Interfacing Joystick Module with the Arduino, we will get the analog output.
The output range is fixed for each direction. The below image shows, the value of analog
output for X and Y axis based on the movement of Joystick Module in all four directions
(+X, -X, +Y, -Y). You will also get some analog value when moving the knob diagonally
Vcc 5V
GND GND
3.5.6 Application
3.5.7 2D-model
3.6.1 Introduction
A servo motor is one of the widely used variable speed drives in industrial
production and process automation and building technology worldwide. Although servo
motors are not a specific class of motor, they are intended and designed to use in motion
control applications which require high accuracy positioning, quick reversing and
exceptional performance. Servo motors are interfaced with microcontrollers with help of
drivers. Driver is device which takes input from processing system and then delivers power
to load connected to it. Robolab Technologies has designed driver to drive 4 servo motors.
This board is dedicated for interfacing servo motors with controller.
1) TIP2955
3) LED
6) Slider Switch
A servo motor is a linear or rotary actuator that provides fast precision position
control for closed-loop position control applications. Unlike large industrial motors, a servo
motor is not used for continuous energy conversion. Servo motors have a heavy speed
response due to low inertia and are designed with small diameter and long rotor length.
Servo motors work on servo mechanism that uses position feedback to control the speed
and final position of the motor. Internally, a servo motor combines a motor, feedback
circuit, controller and other electronic circuit.
Working: This driver is able to drive 4 servo motors. We need drivers to drive motors
because microcontroller alone cannot provide such large amount of current. The 6 pin re-
limited connector available on the board is used to feed PWM pulses generated from
microcontroller to servo motors. TIP2955 IC is pnp transistor used for current boosting
purpose. LM7806 regulator IC provides only 1.5A current which is not sufficient to drive
4 servo motors. This transistor is used in output stage of voltage regulator circuit.
Power Connections:
3) Input connections: 6 pin re-limited connector is used to give inputs to driver board.
Servo drive generally has three control methods: position control mode, torque
control mode and speed control method.
The position control mode can determine the rotational speed generally
through the external input pulse frequency and the rotation angle by the
number of pulses. Some servo systems can assign velocity and displacement
directly by means of communication. Because the position mode can control
the speed and position strictly, it is generally used in the positioning device.
Torque control mode is assigned by the external analog input or direct address
to set the external output torque of motor shaft. The torque can be changed by
changing the setting of the analog immediately and the corresponding address
value can be realized by the change of communication mode. The main
application has strict requirement for the material on stress in the winding and
unwinding device, such as winding device or fibre optic equipment. The
setting of the torque should be changed at any time according to the radius of
the winding so as to ensure that the force of the material does not change with
the change of the winding radius.
Speed mode can have control for the rotation speed through the input of the
analog quantity or the pulse frequency. The outer loop PID with the upper
control device can be positioned. But the position signal of the motor or the
position signal of the direct load should be sent to the upper feedback for
calculation. The position mode also supports direct load loop detection
position signal. At this moment, the coder at the motor shaft end can only
detect the motor speed and the position signal is provided by the detection
device directly of the final load end. The advantage of this method is that it
can reduce the error in the intermediate transmission process and increase the
positioning accuracy in the whole system. [5]
3.6.6 Features of Servo Motors
The servo motor is specialized for high-response, high-precision positioning. As a
motor capable of accurate rotation angle and speed control, it can be used for a variety of
equipment.
Table 3.4 Connecting Servo Motor Driver L293D with Arduino Atmega
3.7 DC MOTOR
A DC motor is any of a class of rotary electrical machines that converts direct
current electrical energy into mechanical energy. The most common types rely on the forces
produced by magnetic fields. Nearly all types of DC motors have some internal mechanism,
either electromechanical or electronic, to periodically change the direction of current flow
in part of the motor.
DC motors were the first type widely used, since they could be powered from
existing direct-current lighting power distribution systems. A DC motor's speed can be
controlled over a wide range, using either a variable supply voltage or by changing the
strength of current in its field windings. Small DC motors are used in tools, toys, and
appliances. The universal motor can operate on direct current but is a lightweight motor
used for portable power tools and appliances. Larger DC motors are used in propulsion of
electric vehicles, elevator and hoists, or in drives for steel rolling mills. The advent of power
electronics has made replacement of DC motors with AC motors possible in many
applications.
produced by the coil can be changed with the direction and magnitude of the current
flowing through it. A simple DC motor has a stationary set of magnets in the stator and an
armature with one or more windings of insulated wire wrapped around a soft iron core that
concentrates the magnetic field. The windings usually have multiple turns around the core,
and in large motors there can be several parallel current paths. The ends of the wire winding
are connected to a commutator. The commutator allows each armature coil to be energized
in turn and connects the rotating coils with the external power supply through brushes. [9]
This DC or direct current motor works on the principal, when a current carrying
conductor is placed in a magnetic field, it experiences a torque and has a tendency to move.
This is known as motoring action. If the direction of current in the wire is reversed, the
direction of rotation also reverses. When magnetic field and electric field interact, they
produce a mechanical force, and based on that the working principle of DC motor is
established.
The direction of rotation of this motor is given by Fleming’s left-hand rule, which
states that if the index finger, middle finger and thumb of your left hand are extended
mutually perpendicular to each other and if the index finger represents the direction of
magnetic field, middle finger indicates the direction of current, then the thumb represents
the direction in which force is experienced by the shaft of the DC motor.
Here in a DC motor, the supply voltage E and current I is given to the electrical port
or the input port and we derive the mechanical output i.e. torque T and speed ω from the
mechanical port or output port as shown in the fig
The input and output port variables of the direct current motor are related by the
parameter K.
[5]
Direct current motors are named according to the connection of the field winding
with the armature.
A motor driver is an integrated circuit chip which is usually used to control motors
in autonomous robots. Motor driver act as an interface between Arduino and the motors.
The most commonly used motor driver IC’s are from the L293 series such as L293D,
L293NE, etc. These ICs are designed to control 2 DC motors simultaneously. L293D
consist of two H-bridge. H-bridge is the simplest circuit for controlling a low current rated
motor. We will be referring the motor driver IC as L293D only. L293D has 16 pins.
The L293 and L293D are quadruple high-current half-H drivers. The L293 is
designed to provide bidirectional drive currents of up to 1 A at voltages from 4.5 V to 36
V. The L293D is designed to provide bidirectional drive currents of up to 600-mA at
voltages from 4.5 V to 36 V. Both devices are designed to drive inductive loads such as
relays, solenoids, dc and bipolar stepping motors, as well as other high-current/high-voltage
loads in positive-supply applications.
All inputs are TTL compatible. Each output is a complete totem-pole drive circuit,
with a Darlington transistor sink and a pseudo-Darlington source. Drivers are enabled in
pairs, with drivers 1 and 2 enabled by 1,2EN and drivers 3 and 4 enabled by 3,4EN. When
an enable input is high, the associated drivers are enabled and their outputs are active and
in phase with their inputs. When the enable input is low, those drivers are disabled and their
outputs are off and in the high-impedance state. With the proper data inputs, each pair of
drivers forms a full-H (or bridge) reversible drive suitable for solenoid or motor
applications.
On the L293, external high-speed output clamp diodes should be used for inductive
transient suppression.
A VCC1 terminal, separate from VCC2, is provided for the logic inputs to minimize
device power dissipation. The L293and L293D are characterized for operation from 0°C to
70°C.
3.8.1 Specifications
The L293D is a 16 pin IC, with eight pins, on each side, dedicated to the controlling
of a motor. There are 2 INPUT pins, 2 OUTPUT pins and 1 ENABLE pin for each motor.
L293D consist of two H-bridge. H-bridge is the simplest circuit for controlling a low
current rated motor. [6]
1 - Enable 1-2, when this is HIGH the left part of the IC will work and when
it is low the left part won’t work.
2 - INPUT 1, when this pin is HIGH the current will flow though output 1
3 - OUTPUT 1, this pin should be connected to one terminal of motor
4,5 - GND, ground pins
6 - OUTPUT 2, this pin should be connected to one terminal of motor
7 - INPUT 2, when this pin is HIGH the current will flow though output 2
8 - VCC2, this is the voltage which will be supplied to the motor.
16 - VCC1, this is the power source to the IC. So, this pin should be supplied
with 5 V.
15 - INPUT 4, when this pin is HIGH the current will flow though output 4
The L293D IC receives signals from the microprocessor and transmits the relative
signal to the motors. It has two voltage pins, one of which is used to draw current for the
working of the L293D and the other is used to apply voltage to the motors. The L293D
switches it output signal according to the input received from the microprocessor. For
Example: If the microprocessor sends a 1(digital high) to the Input Pin of L293D, then the
L293D transmits a 1(digital high) to the motor from its Output Pin. An important thing to
note is that the L293D simply transmits the signal it receives. It does not change the signal
in any case.
The L293D is a 16 pin IC, with eight pins, on each side, dedicated to the controlling
of a motor. There are 2 INPUT pins, 2 OUTPUT pins and 1 ENABLE pin for each motor.
L293D consist of two H-bridge. H-bridge is the simplest circuit for controlling a low
current rated motor.
H-bridge is given this name because it can be modelled as four switches on the
corners of ‘H’. The basic diagram of H-bridge is given below:
In the given diagram, the arrow on the left points to the higher potential side of the
input voltage of the circuit. Now if the switches S1 & S4 are kept in a closed position while
the switches S2 & S3 are kept in an open position meaning that the circuit gets shorted
across the switches S1 & S4. This creates a path for the current to flow, starting from the
V input to switch S1 to the motor, then to switch S4 and then the exiting from the circuit.
This flow of the current would make the motor turn in one direction. The direction of
motion of the motor can be clockwise or anti-clock wise, this is because the rotation of the
motor depends upon the connection of the terminals of the motor with the switches. For
simplicity, assume that in this condition the motor rotates in a clockwise direction.
Now, when S3 and S2 are closed then and S1 and S4 are kept open then the current
flows from the other direction and the motor will now definitely rotates in counter-
clockwise direction. When S1 and S3 are closed and S2 and S4 are open then
the ‘STALL’ condition will occur (The motor will break).
The below figure 3.35 represents the interfacing of motor driver L293D with Arduino
Atmega
This is general purpose board which is used to supply the power to different
electronic components by the means of wires. These boards are used in applications where
number of electronic components are required for the functioning. There are variety of
design available in the market used for different purpose.
3.10.1 Specifications
Capacity =14 Wt
=1.82”Wx6.31"Lx1.18"H
Dimensions
3.13 WHEELS
Wheeled robots are robots that navigate around the ground using motorized wheels
to propel them. This design is simpler than using treads or legs and by using wheels they
are easier to design, build, and program for movement in flat, not-so-rugged terrain. They
are also better controlled than other types of robots. Disadvantages of wheeled robots are
that they cannot navigate well over obstacles, such as rocky terrain, sharp declines, or areas
with low friction. Wheeled robots are most popular among the consumer market; their
differential steering provides low cost and simplicity. Robots can have any number of
wheels, but three wheels are sufficient for static and dynamic balance. Additional wheels
can add to balance; however, additional mechanisms will be required to keep all the wheels
in the ground, when the terrain is not flat diameter wheels give the robot low torque but
high velocity. [6]
Types of wheels:
a) 2 wheeled Robot
b) 3 wheeled Robot
c) 4 wheeled Robot
d) 5 or more wheeled Robot
Aircraft manufacturers use Cast Acrylic sheet in jets and helicopters. Because of its
light and energy transmission properties architects find Cast acrylic sheet ideal for
skylights, sun screens, fascia panels and dome structures. [5]
Flexibility: Cast acrylic sheet is much more flexible than glass or many other building
materials. When using large sheets for windows, it is important that rabbets or channels be
deep enough to provide support against high winds.
Chemical Resistance: Cast acrylic sheet has excellent resistance to attack by many
chemicals. It is affected, in varying degrees, by benzene, toluene, carbon tetrachloride,
ethyl and methyl alcohol, lacquer thinners, ethers, ketones and esters.
Electrical Properties: Cast acrylic sheet is an excellent insulator. Its surface resistivity is
higher than that of most plastics.
Light Transmission: Colorless Cast acrylic sheet has a light transmittance of 92%. It is
clearer than window glass and will not turn yellow. Cast acrylic sheet is also available in a
large variety of transparent and translucent colors.
UV Light Resistance: Clear acrylic sheet resists ultraviolet light degradation. Each acrylic
sheet has a ten-year-limited warranty against yellowing and loss of light transmission.
Optical Clarity: Acrylic sheets have excellent light transmission. Clearer than glass! Will
not yellow after prolonged sun exposure.
Weather Resistance: Despite heat, cold, sunlight, and humidity acrylic sheet maintains its
original appearance and color.
Light Weight: Even with its strength and durability, acrylic sheet is only half the weight
of glass.
A nut is a type of fastener with a threaded hole. Nuts are almost always used in
conjunction with a mating bolt to fasten multiple parts together. The two partners are kept
together by a combination of their threads friction, a slight stretching of the bolt,
and compression of the parts to be held together.
In applications where vibration or rotation may work a nut loose, various locking
mechanisms may be employed: lock washers, jam nuts, specialist adhesive thread locking
fluid such as Loctite, safety pins or lock wire in conjunction with castellated nuts, nylon
inserts (nylon), or slightly oval-shaped threads.
Square nuts, as well as bolt heads, were the first shape made and used to be the most
common largely because they were much easier to manufacture, especially by hand. While
rare today due to the reasons stated below for the preference of hexagonal nuts, they are
occasionally used in some situations when a maximum amount of torque and grip is needed
for a given size: the greater length of each side allows a spanner to be applied with a larger
surface area and more leverage at the nut.
The most common shape today is hexagonal, for similar reasons as the bolt head:
six sides give a good granularity of angles for a tool to approach from, but more corners
would be vulnerable to being rounded off. It takes only one sixth of a rotation to obtain the
next side of the hexagon and grip is optimal. However, polygons with more than six sides
do not give the requisite grip and polygons with fewer than six sides take more time to be
given a complete rotation. Other specialized shapes exist for certain needs, such as wing
nuts for finger adjustment and captive nuts for inaccessible areas.
A bolt is a form of threaded fastener with an external male thread. Bolts are closely
related to screws. A screw is a type of fastener, in some ways similar to a bolt, typically
made of metal, and characterized by a helical ridge, known as a male thread. Screws are
used to fasten materials by digging in and wedging into a material when turned, while the
thread cuts grooves in the fastened material that may help pull fastened materials together
and prevent pull-out. There are many screws for a variety of materials; those commonly
fastened by screws include wood, sheet metal, and plastic.
CHAPTER 04
SOFTWARE DESCRIPTION
4.1 ARDUINO
The Arduino Integrated Development Environment (IDE) contains a text editor for
writing code, a massage, a text console, a toolbar with buttons for common functions and
a series of menus. It connects to the Arduino and Genuine hardware to upload programs
and communicate with arduino.
The software is also provided with general libraries which can be used within any
programs and provide extra functionality for use in sketches. The libraries can be included
in a program by the use of “#include” pre-processor directive. A list of libraries are
available in the library manager of Arduino. [7]
4.2 ARDUINO IDE
Arduino is a prototype platform based on an easy-to-use hardware and software. It
consists of a circuit board, which can be programed and ready-made software called
Arduino IDE (Integrated Development Environment), which is used to write and upload
the computer code to the physical board. [7]
Arduino boards are able to read analog or digital input signals from different
sensors and turn it into an output such as activating a motor, turning LED
on/off, connect to the cloud and many other actions.
You can control your board functions by sending a set of instructions to the
microcontroller on the board via Arduino IDE.
Unlike most previous programmable circuit boards, Arduino does not need an
extra piece of hardware (called a programmer) in order to load a new code onto
the board. You can simply use a USB cable.
How to set up the Arduino IDE on our computer and prepare the board to receive the
program via USB cable. [7]
Step 1:
First you must have your Arduino board and a USB cable. In case you use Arduino UNO,
Arduino Duemilanove, Nano, Arduino Mega 2560, or Diecimila, you will need a standard
USB cable (A plug to B plug), the kind you would connect to a USB printer as shown in
the following image.
You can get different versions of Arduino IDE from the Arduino Official Website.
You must select your software, which is compatible with your operating system (Windows,
IOS, or Linux). After your file download is complete, unzip the file [7].
The Arduino Uno, Mega, Duemilanove and Arduino Nano automatically draw
power from either, the USB connection to the computer or an external power supply. If you
are using an Arduino Diecimila, you have to make sure that the board is configured to draw
power from the USB connection. The power source is selected with a jumper, a small piece
of plastic that fits onto two of the three pins between the USB and power jacks. Check that
it is on the two pins closest to the USB port.[7]
Connect the Arduino board to your computer using the USB cable. The green power LED
(Labelled PWR) should glow.
After your Arduino IDE software is downloaded, you need to unzip the folder.
Inside the folder, you can find the application icon with an infinity label. Double-click the
icon to start the IDE
To avoid any error while uploading your program to the board, you must select the
correct Arduino board name, which matches with the board connected to your computer.
CHAPTER 5
5.1 FLOWCHART
EXPLANATION
The above figure 5.2 refers to the circuit diagram and the working of this robot is as follows.
Firstly, the switch of the battery is turned ON to activate the robot and then the
program is loaded into the processor.
Then later, when we make any gestures like moving our elbow joints up and down,
then by the help of potentiometers connected to the elbow joints, the slider of the
potentiometer rotates and this cause a variation in resistance.
The variations in resistance are sent to arduino atmega 2560 through wires which
then rotates the servo motor in particular angle accordingly by using a map function
which maps the analog potentiometer values to angle values for servo motor.
Thus, when the servo motors rotate, the mechanism is in such a way that it lifts the
robotic arms connected to the servo motors.
When we need to lift some heavy objects, we take the help of joystick module which
helps us to close and open the grippers which indirectly means rotates the mini servo
motor in particular angle by which the grippers open and close by which holding of
objects is done.
While the grippers are holding the objects, we can once again move our elbows by
which lifting of arms will be performed and then the objects are lifted.
With the help of joystick module, we can drive the motors and the robot can be
carried to anywhere we want and can place the objects.
The main application of this robot finds in industries where the lifting of heavy
objects can take place. For example, in cargo loading and un-loading.
CHAPTER 6
RESULTS
The above figure 6.1 refers to the final output of the robot. We can observe all the
connections are made as per the circuit diagram (refer 5.2). We can observe that a
Potentiometer is connected to Servo motor which controls the Servo motor only when
Potentiometer varies according with hand movement an object. The Joystick is used to
control the direction of robot and Movement.
The above figure 6.2 refers to the Acrylic Sheet and the materials required for
building body parts of the robot are shown. For more information about Materials refer
Chapter 3.
CHAPTER 7
CONCLUSION
7.1 ADVANTAGES
• This robot will not have any delay in sending the commands from sensor because
of wired communication. The existing system has delay as a drawback.
7.2 APPLICATIONS
• This robot will help to lift heavy objects which cannot be lifted by humans.
7.3 CONCLUSION
• Finally, our robot helps to lift the heavy objects which cannot be lifted by normal
people by mimicking the actions made by us.
• This robot can be easily controlled or driven to where ever required with ease
because it is controlled by joystick.
• This robot can be further extended by adding a GPS sensor by which the robot can
go fully wire-less.
• By creating algorithms which automatically tells the robot to lift the objects and
place them in particular order when a destination or a source is reached.
7.5 REFERENCES
[1]. WWW.Robolab technologies.in
[2]. Jin Xu, Guang Chen and Ming Xie School of Mechanical & Production
Engineering Nanyang Technological University.
[3]. Sandhya Devi, R.S. Dr. Vijay Kumar, V.R. and Sridevi, international journal
of current research.
[4]. Su Naing Myint, Min Min Oo, International Journal of Industrial Electronics
and ElectricalEngineering, Volume-4, Issue-12(Dec, 2016).
[5]. Dr. Rohini R. Mergu1 Netra R. Kurle2 Malakavva C. Tellur3 Chetana
S.Kshirsagar4 International Journal for Scientific Research & Development| Vol.
5, Issue 02, 2017 | ISSN(online): 2321-0613.
[6]. Harmeet Singh, Chetan Anand, Vinay Kumar, Ankit Sharma international
journal of engineering and computer science Issue: Vol 3 No 05(2014).
[7]. Jahnvi nimble, priyanka bhegade, snehal surve, priya chaugule International
Journal of Advances in Electronics and Computer Science, ISSN: 2393-2835
Volume-3, Issue-3, Mar.-2016.
[8]. R.Kannadasan, A.Krishnamoorthy, N.PrabakaranK.Naresh, V.Vijayarajan,
G.Sivashanmugam School of Computing Science and Engineering, Vellore
Institute of Technology.