Final Year Project
Final Year Project
FACULTY OF ENGINEERING
MECHATRONICS ENGINEERING PROGRAM
June 2023
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
ii
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
ABSTRACT
This book introduces a mars exploration robot based system that useful to explore the
planet mars. Mars Rover NSU is a semi-autonomous robot that is developed based on
sensors and interactive applications. The robot is capable of completing human assistant
tasks, Astronaut assistance task, collecting resource from planet mars, giving a feedback
of soils condition such as temperature, moisture, pH. This robotics system includes a web
based mother station from where the rover is controlled and given instructions to
complete tasks. The mars rover will be used in planetary exploration research to explore
life on mars. This rover has rocker-bogie suspension system, robotics arm, Drilling
mechanism, live feed camera, aluminum wheels suitable to explore planet mars. This
research is mainly focused on robotic system and computational efficiency. The system is
consist of a GPS system for mapping purpose and smooth controlling features. In his paper
we will discuss about different functionalities of mars rover. The end result will show the
efficiency, impact and performance analysis of the system.
iii
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
ACKNOWLEDGEMENTS
We would like to express our sincere gratitude to everyone who has contributed to the
successful completion of our graduation project “ Exploring Rover For Rugged &
Unpaved surfaces ”. Firstly, we would like to extend our heartfelt thanks to our project
supervisors, Prof.Dr. Abd El-Fattah Ali Aladl , Eng. Mohamed El-Meadawy for their
guidance, support, and encouragement throughout the project. Their valuable insights
and suggestions have been instrumental in shaping the direction of our research and
implementing the project goals. We would also like to thank the faculty members of the
engineering department for their unwavering support and for providing us with an
excellent academic environment to pursue our practical work. In conclusion, we would
like to express our heartfelt appreciation to everyone who has played a role, big or
small, in the completion of our graduation project. Thank you all for your support,
guidance, and encouragement.
iv
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
TABLE OF CONTENTS
ABSTRACT ............................................................................................................................................. iii
ACKNOWLEDGEMENTS ................................................................................................................... iv
LIST OF Figures ................................................................................................................................. viii
LIST OF ABBREVIATIONS ............................................................................................................. xiii
List of Equations ............................................................................................................................... xiii
1 Chapter (1) Introduction ...............................................................................................................2
1.1 Planetry Exploration ...............................................................................................................2
1.2 History of Exploring Rovers .................................................................................................3
1.3 Objectives of The Rover .........................................................................................................6
2 Chapter (2) Mechanical Design ...................................................................................................8
2.1 Movement Mechanism ...........................................................................................................8
2.1.1 Rocker_Bogie Suspension System………………………………………………………..9
2.2 CAD Software .......................................................................................................................... 17
2.2.1 SolidWorks……………………………………………………………………………………….18
2.3 Steps of Designing the 3d model ..................................................................................... 19
2.3.1 getting the key dimensions………………………………………………………………..19
2.3.2 Design of the main chasis…………………………………………………………………..21
2.3.3 Design of the Rocker Bogie suspention………………………………………………22
2.3.4 Design of links…………………………………………………………………………………..24
2.3.5 Design of Weels & Rims……………………………………………………………………..26
2.3.6 Design of motor holders…………………………………………………………………….28
2.3.7 Design of Camera unit………………………………………………………………………..32
2.3.8 design of 6 Dof Robotic Arm………………………………………………………………36
2.4 Simulation Of RBM ................................................................................................................ 36
2.4.1 Simulation on Curved path………………………………………………………………..36
2.4.2 Simulation on Steps…………………………………………………………………………..37
2.4.3 Results of Simulation…………………………………………………………………………38
2.5 Final body ................................................................................................................................. 39
3 Chapter (3) Manufacturing ........................................................................................................ 41
3.1 3D-Printing .............................................................................................................................. 41
3.1.1 intorduction……………………………………………………………………………………...41
3.1.2 General principles……………………………………………………………………………..42
3.1.3 Two major type Manufacturing………………………………………………………….44
3.1.4 Advantages of 3d printing………………………………………………………………….45
3.1.5 Disadvantages of 3d printing……………………………………………………………..49
3.1.6 Slicing in 3d printing…………………………………………………………………………49
3.1.7 3d printing our model……………………………………………………………………….54
v
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
vi
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
vii
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
LIST OF Figures
Figure 1-1 Sojouner Rover…………………………………………………………………………………….. 3
Figure 1-2 Spirit Rover………………………………………………………………………………………….. 4
Figure 1-3 Curiosity Rover…………………………………………………………………………………….. 4
Figure 1-4 Persevernce Rover……………………………………………………………………………….. 5
Figure 2-1 Line Diagram of Rocker Bogie Mechanism………………………………………….. 10
Figure 2-2 Three Dimensional view of Rocker Bogie Mechanism…………..................... 10
Figure 2-3 RBM on uneven path……………………………………………………………………………. 16
Figure 2-4 3D_CAD Software………………………………………………………………………………… 17
Figure 2-5 SolidWorks 2023…………………………………………………………………………………. 18
Figure 2-6 NASA Persevernce Rover Model…………………………………………………………… 19
Figure 2-7 Various scales of Persevernce Rover…………………………………………………… 20
Figure 2-8 Front, Top and side views ……………………………………………………………………. 20
Figure 2-9 Aluminum Extrusion with suitable T nuts ……………………………………………. 21
Figure 2-10 The main chasis …………………………………………………………………………………. 21
Figure 2-11 Top view of the rocker_bogie suspension with the differential ..22
Figure 2-12 Side view of the rocker_bogie suspension with the differential ..23
viii
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
ix
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
x
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
xi
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
Figure 4-38 ordering the PCB from JLCPCB site …………………………………….. 111
Figure 5-2 Instantaneous Turn Center with slip angles ………………………. 118
xii
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
LIST OF ABBREVIATIONS
RBM Rocker_Bogie Mechanism
CAD Computed aided Design
Pcb Printed Circuit bourd
NASA National Aeronautics and Space Administration
List of Equations
wheel base = horizontal length of stairs – ( Rf + Rr ) (1-1)
xiii
CHAPTER 1
INTRODUCTION
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
2
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
As of May 2021, there have been six successful robotically operated Mars rovers; the
first five, managed by the American NASA Jet Propulsion Laboratory, were (by date of
Mars landing):
Sojourner (1997), Spirit (2004–2010), Opportunity (2004–2018), Curiosity (2012–),
and Perseverance (2021–).
The sixth, managed by the China National Space Administration, is Zhurong (2021–).
On January 24, 2016, NASA reported that then current studies on Mars
by Opportunity and Curiosity would be searching for evidence of ancient life, including
a biosphere based
on autotrophic, chemotrophic or chemolithoautotrophic microorganisms, as well as
ancient water, including fluvio-lacustrine environments (plains related to
ancient rivers or lakes) that may have been habitable. The search for evidence
of habitability, taphonomy (related to fossils), and organic carbon on Mars is now a
primary NASA objective.
The Soviet probes, Mars 2 and Mars 3, were physically tethered probes; Sojourner was
dependent on the Mars Pathfinder base station for communication with
Earth; Opportunity, Spirit and Curiosity were on their own. As of February
3
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
2023, Curiosity is still active, while Spirit, Opportunity, and Sojourner completed their
missions before losing contact. On February 18, 2021, Perseverance, the newest American
Mars rover, successfully landed. On May 14, 2021, China's Zhurong became the first non-
American rover to successfully operate on Mars.
4
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
5
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
The rover has four main science objectives that support desired science goals:
Seeking biosignatures: seek signs of possible past microbial life in those habitable
environments, particularly in specific rock types known to preserve signs over time.
Caching samples: collect core rock and regolith ("soil") samples and store them
within the rover and on the Martian surface (as a backup) for delivery to a future
sample return rocket.
Preparing for humans: test oxygen production from the Martian atmosphere.
6
CHAPTER 2
MECHANICAL DESIGN
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
8
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
variations of the this mechanism have been presented in literature. The FIDO rover and
the Sojourner have six independently steered and driven wheels suspended from a
rocker-bogie mechanism. The Rocky7 Rover has a similar suspension system, but only the
front wheels are steered. The Nanorover and the Nomad have four steered wheels
suspended from two bogies, a variation of the rockerbogie mechanism. The CRAB Rover
uses two parallel bogie mechanisms on each side to overcome obstacles. Lamon et al.
optimize a simplified quasi-static model of the six-wheeled rover Shrimp. The motor
torques are optimized subject to minimizing the slip of the wheels, hence the odometric
error and power consumption are minimized. The optimization seeks for an optimum in
the constrained solution space given an initial solution. Li et al. derive a mathematical
model to optimize rover suspension parameters which define the geometry of the rocker-
bogie. The objective is to minimize the energy consumption, the vertical displacement of
the rover’s centre of mass and its pitch angle. The authors make use of a sequential
quadratic programming algorithm. Iagnemma and Dubowsky introduce an algorithm
which optimizes individual wheel ground contact forces. The objective is to optimize
traction and to minimize power consumption.
The term “rocker” describes the rocking aspect of the larger links present each side of the
suspension system and balance the bogie as these rockers are connected to each other
and the vehicle chassis through a modified differential. In the system, “bogie” refers to the
conjoining links that have a drive wheel attached at each end. Bogies were commonly used
to bare loading as tracks of army tanks as idlers distributing the load over the terrain.
Bogies were also quite commonly used on the trailers of semitrailer trucks as that very
time the trucks will have to carry much heavier load. The chassis plays vital role to
maintain the average pitch angle of both rockers by allowing both rockers to move as per
the situation. The physics of these rovers is quite complex. To design and control these
analytical models of how the rover interacts with its environment are essential.
9
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
Models are also needed for rover action planning. Simple mobility analysis of rocker-bogie
vehicles have been developed and used for design evaluation in the available published
works. Improving the performances of a simpler four wheel rover has also been explored
10
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
2.1.1.2 Advantages
The design incorporates independent motors for each wheel. There are no springs or
axles, making the design simpler and more reliable.
Rocker Bogie Suspension can withstand a tilt of at least 500 in any direction without
overturning, which is the biggest advantage of heavy loaded vehicle.
Rocker Bogie consisting of no spring and stub axle in each wheel which allows the chasis
to climb over any obstacle such as rocks, ditches, sands etc. that are upto double the
wheels diameter in size while keeping all the wheels on ground for maximum time.
1.) Stow in an extremely small space and deploy the mobility into a stance that would
provide the rover with 45 degree stability
2.) Absorb a large percentage of the impact loads the rover would experience during
lander egress and surface traverse. The rocker-bogie suspension is a mechanism that,
along with a differential, enables a six-wheeled vehicle to passively keep all six wheels in
contact with a surface even when driving on severely uneven terrain
11
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
The rocker-bogie system is the suspension arrangement used in the MarS rovers
(mechanical robot) introduced for the Mars Pathfinder and also used on the Mars
Exploration Rover (MER) and Mars Science Laboratory (MSL) missions. It is currently
NASA's favored design. The term “rocker” comes from the rocking aspect of the larger link
on each side of the suspension system. These rockers are connected to each other and the
vehicle chassis through a differential. Relative to the chassis, when one rocker goes up,
the other goes down. The chassis maintains the average pitch angle of both rockers. One
end of a rocker is fitted with a drive wheel and the other end is pivoted to a bogie. The
term “bogie” refers to the links that have a drive wheel at each end. Bogies were commonly
used as load wheels in the tracks of army tanks as idlers distributing the load over the
terrain. Bogies were also quite commonly used on the trailers of semitrailer trucks. Both
applications now prefer trailing arm suspensions The rocker-bogie design has no springs
or stub axles for each wheel, allowing the rover to climb over obstacles, such as rocks, that
are up to twice the wheel's diameter in size while keeping all six wheels on the ground. As
with any suspension system, the tilt stability is limited by the height of the center of
gravity. Systems using springs tend to tip more easily as the loaded side yields. Based on
the center of mass, the Curiosity rover of the Mars Science Laboratory mission can
withstand a tilt of at least 45 degrees in any direction without overturning, but automatic
sensors limit the rover from exceeding 30-degree tilts. The system is designed to be used
at slow speed of around 10 centimeters per second (3.9 in/s) so as to minimize dynamic
shocks and consequential damage to the vehicle when surmounting sizable obstacles. JPL
states that this rocker bogie system reduces the motion of the main MER vehicle body by
half compared to other suspension systems. Each of the rover's six wheels has an
independent motor. The two front and two rear wheels have individual steering motors
which allow the vehicle to turn in place. Each wheel also has cleats, providing grip for
climbing in soft sand and scrambling over rocks. The maximum speed of the robots
operated in this way is limited to eliminate as many dynamic effects as possible so that
the motors can be geared down, thus enabling each wheel to individually lift a large
portion of the entire vehicle's mass. In order to go over a vertical obstacle face, the front
12
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
wheels are forced against the obstacle by the center and rear wheels. The rotation of the
front wheel then lifts the front of the vehicle up and over the obstacle. The middle wheel
is then pressed against the obstacle by the rear wheels and pulled against the obstacle by
the front until it is lifted up and over. Finally, the rear wheel is pulled over the obstacle by
the front two wheels. During each wheel's traversal of the obstacle, forward progress of
the vehicle is slowed or completely halted. This is not an issue for the operational speeds
at which these vehicles have been operated to date. One of the future applications of
rovers will be to assist astronauts during surface operations. To be a useful assistant, the
rover will need to be able to move much faster than human walking speed or at least
equivalent. Other missions which have been proposed, such as the Sun-Synchronous
Lunar Rover, require even greater speeds (4–10 km/h). Rocker Bogie Suspension has the
specialty of being able to climb over obstacles twice the diameter of the wheel, that too
without compromising the stability of the rover as a whole.
1. The mechanism allows to climb over high obstacles, while keeping all the six wheels in
contact with the ground. This is only true at the operational speeds of rovers like Curiosity
which is around 10 cm/s.
2. The two sides (left and right) move independently, and hence the rover can traverse
terrains where the right and left rockers go over different type of obstacles.
3. The mechanism is designed such as due to the independent motion of right and left
rockers, the pitching of the chassis or the rover body remains an average of the two
rockers.
4. System with spring suspensions are susceptible to tip-over sideways easily than rocker-
bogie. Curiosity, by design, can sustain over 50 deg tilt in any direction.
5. The design incorporates independent motors for each wheel. There are no springs or
axles, making the design simpler and more reliable.
6. The design reduces the main body motion by half, compared to any other suspension.
13
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
The jerk experienced by any of the wheel is transferred to the body as a rotation via the
differential connecting the two rockers, not as translation like conventional suspensions.
Over the past decade, the rocker-bogie suspension design has become a proven mobility
application known for its superior vehicle stability and obstacle-climbing capability.
Following several technology and research rover implementations, the system was
successfully flown as part of Mars Pathfinder’s Sojourner rover. When the Mars
Exploration Rover (MER) Project was first proposed, the use of a rocker-bogie suspension
was the obvious choice due to its extensive heritage. The challenge posed by MER was to
design a lightweight rocker-bogie suspension that would permit the mobility to stow
within the limited space available and deploy into a configuration that the rover could
then safely use to egress from the lander and explore the Martian surface. This paper will
describe how the MER rocker-bogie suspension subsystem was able to meet these
conflicting design requirements while highlighting the variety of deployment and latch
mechanisms employed in the design. The primary role of the MER suspension subsystem
is to provide the rover with a mobility system that has the kinematic range to permit the
rover to safely traverse 20 cm obstacles and allow the wheel assemblies to rotate for rover
“arc-turn” and “turn-in-place” maneuvers. In addition to these general stability
requirements, there were several requirements unique to the particular issues of the MER
vehicle.
1.) Stow in an extremely small space and deploy the mobility into a stance that would
provide the rover with 45 degree stability
2.) Absorb a large percentage of the impact loads the rover would experience during
lander egress and surface traverse.
The rocker-bogie suspension is a mechanism that, along with a differential, enables a six-
wheeled vehicle to passively keep all six wheels in contact with a surface even when
driving on severely uneven terrain There are two key advantages to this feature. The first
advantage is that the wheels’ pressure on the ground will be equilibrated. This is
14
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
extremely important in soft terrain where excessive ground pressure can result in the
vehicle sinking into the driving surface. The second advantage is that while climbing over
hard, uneven terrain, all six wheels will nominally remain in contact with the surface and
under load, helping to propel the vehicle over the terrain. MER takes advantage of this
configuration by integrating each wheel with a drive actuator, maximizing the vehicle’s
motive force capability. Another key feature of the suspension that has not been
emphasized in previous technology and flight applications is the ability to absorb
significant driving loads. In the past, rocker-bogie suspensions have been used on rovers
where the loads generated during driving have been relatively low. Therefore, the
suspension served primarily as a “rigid” kinematic link between the rover body and the
wheels. However, the MER rover has the challenge of egressing from a lander poised on
airbags and surface features, a maneuver that could require the vehicle to drop from a
significant height above the surface. Instruments that had been stowed during the landing
phase of the mission will be deployed during driving and were not designed to withstand
large loads in their science-gathering configuration. A compelling design requirement was
to therefore create a “soft” suspension to limit the accelerations experienced by the
payload during driving. However, one of the more challenging design issues to address
was how soft to make the suspension. A suspension that was too soft will result in large
deflections where the rover body or its science appendages may contact Martian surface
features in an uncontrolled manner. Therefore, * Jet Propulsion Laboratory, California
Institute of Technology, Pasadena, CA Proceedings of the 37th Aerospace Mechanisms
Symposium, Johnson Space Center, May 19-21, 2004 185 the suspension had to be
designed to give the rover a ride somewhere between a luxury vehicle and a truck. The
suspension system stiffness target was one that would produce a translational impact
load no greater than 6 G’s and not let the rover body deflect below a 20 cm ground height.
The resulting suspension structural members were fabricated from tapered, welded,
titanium box beams tuned to meet these requirements. The design of these elements also
provides exceptional bending and torsional capability while minimizing the volume and
mass impact to the spacecraft. The last and most difficult design requirement was to
create a suspension that would stow within the tetrahedral lander, unfold and latch into
15
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
a deployed configuration, and provide the rover with the ground clearance and stability
necessary to navigate the Martian surface. This task required significant coordination
with other rover and lander subsystems in order to produce a deployment sequence free
of static or dynamic interferences.
16
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
CAD is also sometimes called “computer-aided design and drafting” (CADD). Using
computer_based software to assist in design processes is known as computer-aided
design. Various kinds of engineers and designers regularly utilize CAD software. Two-
dimensional (2-D) drawings and three-dimensional (3-D) models can both be produced
using CAD software. By making designs simple to share, review, simulate, and edit using
3D CAD, you can quickly bring new, unique items to market. When it comes to the
conventional “pencil on paper” method of engineering and design, known as manual
drafting, CAD software has supplanted the T-squares and protractors employed by past
designers
17
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
2.2.1 SolidWorks
Professional 3D designers frequently utilize this Dassault Systems product. It is a feature-
based, parametric model. Employers usually look for candidates with SolidWorks
knowledge because it is a well-known mechanical design software
with a sizable user base. This 3D modeling CAD software is widely
utilized in the mechanical engineering and design fields. A variety
of capabilities, including tools for design validation or reverse
engineering, are included in the Solidworks software.
18
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
So, In order to Design our project, the rover was subdivided into several steps.
19
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
Then, by tacking 3 pictures of front, top and side views, all of the main dimentions were
Aquired and the design of our modified rover begun.
20
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
With the help of 3d printed parts, the chasis is connected to the differential and the
rocker_bogie suspension.
21
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
The rocker bogie system maintains a relatively constant weight on each of the
rover's wheels. The suspension also minimizes rover tilt as it drives, keeping it
more stable.
The rocker bogie is made with a differential connected to the body of the rover
for stability.
The differential connects the left and right rockers and connects to the body of
the rover by a pivot point in the centre of the rover’s top deck.
Figure 2-11 Top view of the rocker_bogie suspension with the differential .
22
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
We decided on 6 wheeled rocker bogie, so we have three main parts for the
rocker bogie-
The first one is the rocker which connects the front wheel to the differential and
bogie in the rear.
The second one is the bogie which connects the middle and rear wheel to the
rocker.
The third one is the connector for the front and back wheel to the rocker bogie
for steering and rotation.
Figure 2-12 Side view of the rocker_bogie suspension with the differential .
23
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
In Triangle BNC, Angle BNC = 900 , Angle NBC = Angle NCB = 450 , Therefore,NC = NB
24
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
25
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
26
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
27
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
28
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
29
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
30
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
31
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
32
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
33
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
34
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
35
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
36
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
37
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
After the realized simulation, the results has been generated and analyzed that the
simulated model can run on a plane without any inclination with 10 cm/s.
RBM can climb on steps having less height but there is a difficulty to climb on large height
steps.
Centre of Gravity position in each of the two operating modes, contrasting the response
of these two distinctive configurations of the rocker-bogie suspension against upcoming
obstacles that can be present along the system generated obstacles and roadblocks.
38
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
39
CHAPTER 3
MANUFACTURING
PROCESS
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
(1) 3D-printing
(2) Acrylic lasr cut
3.1 3D-Printing
3.1.1 intorduction
41
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
3D printable models may be created with a computer aided design package or via 3D
scanner. The manual modeling process of preparing geometric data for 3D
computer graphics is similar to plastic arts such as sculpting. 3D scanning is
a process of analyzing and collecting digital data on the shape and
appearance of a real object. Based on this data, three-dimensional models of
the scanned object can then be produced. 46 | P a g e Both manual and
automatic creation of 3D printable models is difficult for average consumers.
This is why several marketplaces have emerged over the last years. Among the most
popular are Shape ways, Thing verse, My MiniFactory and Threading.
3.1.2.2 Printing
Before printing a 3D model from an STL file, it must first be processed by a piece of
software called a "slicer" which converts the model into a series of thin layers and
produces a G-code file containing instructions tailored to a specific printer. Several open-
source slicer programs exist, including Skeinforge, Slic3r, KISSlicer, and Cura. The 3D
printer follows the G-code instructions to lay down successive layers of liquid, powder,
paper or sheet material to build the model from a series of cross sections. These layers,
which correspond to the virtual cross sections from the CAD model, are joined or
automatically fused to create the final shape. The primary advantage of this technique is
its ability to create almost any shape or geometric feature. Printer resolution describes
layer thickness and X-Y resolution in dots per inch (dpi) or micrometers (µm). Typical
layer thickness is around 100 µm (250 DPI), although some machines such as the Objet
Convex series and 3D Systems' ProJet series can print layers as thin as 16 µm (1,600 DPI).
X-Y resolution is comparable to that of laser printers. The particles (3D dots) are around
50 to 100 µm (510 to 250 DPI) in diameter. Construction of a model with contemporary
methods can take anywhere from several hours to several days, depending on the method
used and the size and complexity of the model. Additive systems can typically reduce this
42
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
time to a few hours, although it varies widely depending on the type of machine used and
the size and number of models being produced simultaneously. Traditional techniques
like injection moldings can be less expensive for manufacturing polymer products in high
quantities, but additive manufacturing can be faster, more flexible, and less expensive
when producing relatively small quantities of parts. 3D printers give designers and
concept development teams the ability to produce parts and concept models using a
desktop size printer.
3.1.2.3 Finishing
43
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
• Creating A Form
• Conserves Resources
• Efficient
• 3D Printing
• Uncovering A Form
o Carving A Sculpture
o Chiseling A Statue
• Wasteful
• Time Consuming
44
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
45
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
Combining different raw materials isn’t always possible with mass production methods
due to the high costs involved and to their chemical and physical properties that make
them tricky to combine using traditional methods. 3D printing has eliminated many of
these limitations not only because of the initial dependence on plastic, but also because of
a constant innovation made by enthusiasts believing that 3D printing’s potential hasn’t
been reached yet. Thus, a lot of companies now provide tens of different materials with
unique finishes producing the feel and look of glass, ceramics or metal with a variety of
strengths and temperature resistance.
Manufacturing plastic and metal objects in particular is generally a wasteful process with
a lot of surplus materials and chunky parts. For some aircraft builders, up to 90 percent
of the material is usually wasted. Creating a similar object with the use of additive
manufacturing not only utilizes less energy, but also minimizes waste. Other objects that
46
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
can be made with the use of additive manufacturing include jewelry, footwear, automotive
parts, and more. Sometimes, the finished product of 3D printing can be up to 60 percent
lighter than the machined part but still sturdy. Large cost savings can be attained in this
way and a smaller amount of waste also means a lesser effect on the environment.
The speed of 3D printing is quicker as compared to the traditional method. It’s similar to
comparing the top speed of a sports car to a horse cart. They both take us to our
destination, but the travel period differs significantly. With industrial 3D printing
technologies being able to create an object in a few hours, the traditional manufacturing
methods, taking up to two or more days (from prototype to finish product), are gradually
becoming obsolete. This leads to an on-demand manufacturing model and to considerable
cost savings. Why should we have stores filled up with stocks if we can make them based
on the demand? Even if this scheme might not work with major offline manufacturers
because of their independence on offline sellers that commonly purchase in bulk, it can
prove very efficient for an online business.
47
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
Avoiding most of the mass manufacturing faults does not only make better products but
it also extends their life as they will break less often. This is not necessarily a great benefit
for manufacturers who need the product life cycle to be profitable, but it is certainly a
major benefit for the end consumer
3.1.4.7 Sustainability
less waste compared to traditional manufacturing methods is not only a cost saving
feature of 3D printing but also a possible eco-friendly attribute. Add to this the multi-
purpose characteristic of a 3D printer (can build different objects without the need of
using specialised machines for each part) and their digital ecosystem (all 3D models are
transmitted electronically so in theory they can be printed out where they are needed,
minimizing therefore transport costs) and we get a sustainable manufacturing process.
Integrating additive manufacturing with more classic production methods – as is the case
48
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
with 3D printed textiles in the clothing industry – adds another layer (excuse the pun) to
the sustainability case.
4. Dangerous Items: 3D printers can create dangerous items, such as guns and knives,
with very little or no oversight.
5. More Useless Stuff: One of the dangers of 3D printers is that they will be used to create
more useless stuff that is bad for the environment and wallets. Fortunately, there are new
methods of automatically recycling objects made by 3D printers that hold promise of
better recycling in the future.
A slicer is software that transforms digital 3D models into instructions for producing an
object on a specific 3D printer. The instructions include the model as well as user-entered
3D printing settings, such as speed, layer height, and support structure options. Each 3D
printing technique produces 3D objects by layering material. Therefore, the term "slicer"
49
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
3D models are sliced into instructions for 3D printers by the process known as slicing. It
essentially "slices" the 3D model into thin layers and then determines the path for each
layer to be printed to get the best strength, shortest printing time, etc. A 3D CAD model,
often an STL format file, is converted into G code, which the printer may use. The three
main categories of parameters that can be adjusted in a slicer program are as follows:
50
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
• Layer heights
• Shells
• 3D print speeds.
Print bed settings, filament diameter, extrusion multiplier, and extruder temperature are
included in filament settings. A printer's settings include the diameter of the nozzle, the
shape of the print bed (L x W), and the Z offset. In the following sections, we'll examine
some Slicer options that directly affect the ability to slice three-dimensional models
Cura is an open-source, free, and widely used 3D slicing software. Ultimate made the
software specifically for their 3D printers. The 3D slicer is appropriate for all users, from
novices to experts across a range of sectors. For a better user experience, it is simple to
use, has a quick graphical user interface, and receives frequent updates. It also features a
considerable resource collection and a sizable user base. Cura is compatible with
computers running macOS, Windows, and Linux and supports a variety of 3D printers.
Additionally, it connects with several plugins to improve workflow and CAD programs
like SelfCAD, SolidWorks and Autodesk Inventor. The software displays a tool path, an
expected printing time, and material usage for file types like STL, X3D, OBJ, and 3MF. In
addition, it supports a wide range of image formats, such as JPG, GIF, PNG, and BMP.
51
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
52
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
53
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
(1) PLA filament : PLA is a type of polyester made from fermented plant starch
from corn, cassava, maize, sugarcane or sugar beet pulp. The sugar in these
renewable materials are fermented and turned into lactic acid, when is then
made into polylactic acid, or PLA.
54
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
(2) TPU filament : TPU (Thermoplastic polyurethane) is a type of flexible and elastic
3D printing filament. Its rubber-like elasticity, resilience, and durability make it
suitable for uses requiring impact-absorption and a soft-touch surface. Examples
of TPU 3D printed parts include tubes, seals, bushings and vibration dampeners.
55
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
As our model is quite big and 3d printed parts represents 70% of the main body, the 3d
printing process to long time to finish ( over 5 weeks ). with a 4 kg of total filament.
starting with the differential bar and ending with wheels & Rims
56
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
57
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
58
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
59
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
60
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
61
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
Laser cutting acrylic is an exceptionally popular application for Epilog Laser machines
because of the high-quality results that are produced.
Depending on the type of acrylic you’re working with, the laser can produce a smooth,
flame-polished edge when laser cut, and it can also produce a bright, frosty white
engraving when laser engraved.
Before beginning to experiment with acrylic in your laser, it’s important to understand
the different types of this substrate. There are actually two types of acrylics suitable for
use with the laser: cast and extruded.
Cast acrylic sheets are made from a liquid acrylic that is poured into molds that can be
set into various shapes and sizes. This is the type of acrylic used for most of the awards
you see on the market. Cast acrylic is ideal for engraving because it turns a frosty white
color when engraved. Cast acrylic can be cut with a laser, but it will not result in flame-
polished edges. This acrylic material is better suited for engraving.
The other type of acrylic is known as extruded acrylic, which is a very popular cutting
material. Extruded acrylic is formed through a higher-volume manufacturing technique,
so it is typically less expensive than cast, and it reacts very differently with the laser
beam. Extruded acrylic will cut cleanly and smoothly and will have a flame-polished
edge when laser cut. But when it is engraved, instead of a frosted look you will have a
clear engraving.
62
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
Epilog’s Pin Table is the perfect accessory to help you get those perfect cuts on extruded
acrylic. This handy device allows you to raise and support your acrylic for better cutting
edge quality. The Pin Table incorporates movable pins that can be placed anywhere along
the table’s grid of one inch (25.4 mm) spaced holes. The acrylic is raised and supported in
locations where the laser will not be cutting, which is what helps eliminate backside
reflection. The Pin Table also allows you to place pins to support small or intricate parts
that would normally fall out of the cutting pattern.
DXF is short for Drawing Exchange Format or Drawing Interchange Format and is a type
of vector file. Engineers, designers and architects often use the DXF format for 2D and
3D drawings during product design.
Several 3D applications support DXF format, but it is most often used to share designs
across different CAD programs.
DXF files, which use the .DXF extension, are completely open-source This makes them
different to other file formats used in CAD file sharing — such as DWG files.
63
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
64
CHAPTER 4
ELECTRICAL DESIGN
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
4.1.1 Dc motors
4.1.1.1 what is Dc motor ?
66
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
DC motors are differentiated by the connections between the field winding and the
armature. The field winding can be connected parallel to the armature or connected in a
series. In some cases, the connection is both parallel and in a series.
Since DC motors are everywhere and used for a wide variety of applications, there is a
different type to meet the needs of every application. Regardless of your need for DC
motors, it is important to understand each type since they can be found in every aspect
of life.
The commutator is an electrical switch that reverses the current between the rotor and
the external power source. It is a method of applying electrical current to the windings
and produces a steady rotating torque by reversing the current direction. The sections of
the commutator are attached to the windings on the rotor through a set of contact bars
that are set in the shaft of the motor.
There are three main types of DC motors: separately excited, self excited, or permanent
magnet. In the separately excited and self excited, an electromagnet is used in the stator
structure. With the permanent magnet type, a powerful magnet generates the magnetic
field.
Self excited DC motors are further divided into shunt, series, and compound. The
compound excited type is separated into cumulative and differential with short
and long shunts in each type.
67
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
68
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
produce the magnetic field. It has a regular armature consisting of a commutator and
brushes.
Permanent magnet DC motors are smaller and less expensive. They use rare earth
magnets such as samarium cobalt or neodymium iron boron.
69
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
1. Shunt
In a shunt wound DC motor, the field and armature windings are connected parallel to
each other; this exposes the field winding to terminal voltage. Though the supply is the
same, the current for the field and armature windings is different. The speed of a shunt
DC motor is constant and does not deviate with varying mechanical loads.
2. Series
The field and armature winding on a series DC motor are connected to the power supply
in a series. The same current flows in the field and armature windings. A series wound
motor can work with AC and DC voltage supply, which makes it a universal motor. Series
motors always rotate in the same direction regardless of the voltage source. Their speed
varies with the mechanical load.
70
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
3. Compound
A compound DC motor uses the features of the series and shunt field windings. The
winding for the armature is connected in a series while the winding for the field is a
shunt or parallel connection.
Compound DC motors are further divided into cumulative and differential. With
cumulative DC motors, the flux of the shunt field helps the flux in the series field. They
both move in the same direction while the flux of a differential compound DC motor, for
the series and shunt fields, moves in the opposite direction. Cumulative and differential
compound DC motors can have long or short shunts; this is based on the shunting of the
shunt field winding.
71
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
The armature coils are switched electronically by transistors at the correct rotor
position. The created force causes the rotor to rotate. Hall sensors sense the position of
the rotor and are placed on the stator. The feedback position of the rotor from the
sensors determines when to switch the current of the armature.
The design of brushless DC motors eliminates the need for brushes and makes BLDC
motors quieter and more reliable with an efficiency rating of 85 to 90 percent. The
elimination of brushes removes the wear and tear that brushes experience since very
little heat is produced by the rotating magnet.
72
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
BLDC motors can be inrunner or outrunner where an inrunner brushless motor has the
permanent magnets inside the electromagnets while an outrunner has the permanent
magnets outside the electromagnets. The working principle for both designs is the same
with different configurations.
73
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
a. Stator
The stator produces the magnetic force that causes the rotor of a brushless DC motor to
spin. It is either inside and surrounded by the rotor or outside enclosing the rotor. The
stator is made up of laminated steel stampings stacked together to form a magnetic core.
Coils of wire are wound around the core and are connected to the controller.
The pieces of steel of the stator can be slotted or slotless with slotless cores being
capable of producing high speed motors because of low inductance, a design that is more
expensive since it requires more coil turns.
b. Rotor
The rotor contains a permanent magnet with two to eight pairs of poles with alternate
south and north poles. The magnetic material for the rotor is carefully chosen in order to
produce the required magnetic field density. The types of magnets for the rotor can be
ferrite or neodymium.
The different core configurations are circular with permanent magnets on the periphery
or circular with rectangular magnets.
74
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
c. Hall Sensor
Hall sensors synchronize the stator armature excitation by sensing the position of the
rotor. The commutation of BLDC motors is controlled electronically causing the stator
windings to be energized in sequence to rotate the rotor. Before a winding can be
energized, the Hall sensor identifies the position of the rotor. Most BLDC motors have
three Hall sensors that are placed in the stator. Each of the sensors generates a low and
high signal when the rotor poles pass near them.
75
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
For large electrical applications, such as steel mills and electric trains, alternating
current (AC) is converted into DC current since the speed and torque characteristics of a
DC motor are superior to an AC motor. In the case of industrial applications, DC motors
are as widely used as three phase induction motors.
4.1.1.3.1 Stator
The stator is the unmoving main body of the motor, and it provides support and
protection for the motor. The stator provides a rotating magnetic field that drives the
armature or rotor. It is the static part of the motor that houses the field windings and
receives the electrical supply through its terminals.
4.1.1.3.2 Shaft
The windings and the commutator rotate the shaft, which is at the center of the motor
and made of a hardened metal, usually steel, to withstand the loads of the application.
The commutator bars are attached to the plate that is affixed to the shaft by plastic
molding. The torque that is produced by the winding is transferred to the shaft
76
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
supported by the stator. The shaft protrudes through the stator and connects the motor
to the application.
4.1.1.3.3 Terminals
A DC motor has two terminals: positive and negative. When the positive wire is
connected to the positive terminal and the negative wire connected to the negative
terminal, the motor rotates clockwise. When they are reversed, the motor rotates
counter clockwise. The terminals provide the power supply for the motor and are
connected to the brushes and brush arms inside the back cover.
77
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
4.1.1.3.4 Magnets
The magnets used in DC motors are referred to as permanent magnets; this means their
magnetic field is always active. Opposite ends of magnets attract while similar ends
repel. The magnetic field of a magnet runs from the south pole to the north pole. The
most powerful part of a magnet‘s magnetic field is at its ends.
Two magnets create a very strong field; this is why two magnets are included in a DC
motor around the rotor such that the strong magnetic field passes through the rotor.
78
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
4.1.1.3.5 Rotor
The rotor or armature is made of multiple disks that are insulated from each other by
laminated sheets. The multiple disks prevent the creation of a large eddy current. (Eddy
currents are the reason the plates are insulated.) Eddy currents are still present but are
much smaller and do not interfere with the operation of the motor; they are a necessary
part of the motor's operation. For greater motor efficiency, the disks of the rotor are
made as small as possible. The rotor is the dynamic part of the motor that is used to
create the mechanical revolutions.
79
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
4.1.1.3.7 Brushes
The brushes of a DC motor provide the coils with power and are metal pieces that act
like springs. On one side, they have a conductive material made of carbon. On the other
side, they have a pin where the power supply is applied to the motor. The brushes are
pushed by their spring action against the commutator, are held in place by the brush
arms, and are directly connected to the terminals or electrical supply.
80
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
4.1.1.3.8 Commutator
The commutator is made of small copper plates that are mounted on the shaft and rotate
as the shaft rotates. The rotation of the rotor causes the poles of the power supply to the
coils to change. Each coil is connected to two commutator plates, which are electrically
isolated from each other but connected by the coils. With positive and negative
terminals connected to two commutator plates, current easily flows and an
electromagnetic field is generated.
81
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
• Construction & Working Principle The construction of a stepper motor is fairly related
to a DC motor. It includes a permanent magnet like Rotor which is in the middle & it will
turn once force acts on it. This rotor is enclosed through a no. of the stator which is wound
through a magnetic coil all over it. The stator is arranged near to rotor so that magnetic
fields within the stators can control the movement of the rotor.
82
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
The stepper motor can be controlled by energizing every stator one by one. So the stator
will magnetize & works like an electromagnetic pole which uses repulsive energy on the
rotor to move forward. The stator’s alternative magnetizing as well as demagnetizing will
shift the rotor gradually &allows it to turn through great control.
Stepper Motor Construction In this motor, there is a soft iron that is enclosed through the
electromagnetic stators. The poles of the stator as well as the rotor don’t depend on the
kind of stepper. Once the stators of this motor are energized then the rotor will rotate to
line up itself with the stator otherwise turns to have the least gap through the stator. In
this way, the stators are activated in a series to revolve the stepper motor.
83
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
Driving Techniques
Stepper motor driving techniques can be possible with some special circuits due to their
complex design. There are several methods to drive this motor, some of them are
discussed below by taking an example of a four-phase stepper motor.
The basic method of driving a stepper motor is a single excitation mode. It is an old
method and not used much at present but one has to know about this technique. In this
technique every phase otherwise stator next to each other will be triggered one by one
alternatively with a special circuit. This will magnetize & demagnetize the stator to move
the rotor forward.
In this technique, two stators are activated at a time instead of one in a very less time
period. This technique results in high torque & allows the motor to drive the high load.
This technique is fairly related to the Full step drive because the two stators will be
arranged next to each other so that it will be activated first whereas the third one will be
activated after that. This kind of cycle for switching two stators first &after that third
stator will drive the motor. This technique will result in improved resolution of the
stepper motor while decreasing the torque.
• Micro Stepping
technique is most frequently used due to its accuracy. The variable step current will
supply by the stepper motor driver circuit toward stator coils within the form of a
sinusoidal waveform. The accuracy of every step can be enhanced by this small step
current. This technique is extensively used because it provides high accuracy as well as
decreases operating noise to a large extent.
84
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
Stepper motors operate differently from DC brush motors, which rotate when voltage is
applied to their terminals. Stepper motors, on the other hand, effectively have multiple
toothed electromagnets arranged around a central gear-shaped piece of iron. The
electromagnets are energized by an external control circuit, for example, a
microcontroller. Stepper Motor Circuit To make the motor shaft turn, first one
electromagnet is given power, which makes the gear’s teeth magnetically attracted to the
electromagnet’s teeth. At the point when the gear’s teeth are thus aligned to the first
electromagnet, they are slightly offset from the next electromagnet.
So when the next electromagnet is turned ON and the first is turned OFF, the gear rotates
slightly to align with the next one and from there the process is repeated. Each of those
slight rotations is called a step, with an integer number of steps making a full rotation. In
that way, the motor can be turned by a precise. Stepper motor doesn’t rotate continuously,
they rotate in steps. There are 4 coils with a 90o angle between each other fixed on the
stator. The stepper motor connections are determined by the way the coils are
85
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
interconnected. In a stepper motor, the coils are not connected. The motor has a 90o
rotation step with the coils being energized in a cyclic order, determining the shaft
rotation direction. The working of this motor is shown by operating the switch. The coils
are activated in series in 1-sec intervals. The shaft rotates 90o each time the next coil is
activated. Its low speed torque will vary directly with current.
• Types of Stepper Motor There are three main types of stepper motors, they are:
▪ Permanent Magnet Stepper Motor Permanent magnet motors use a permanent magnet
(PM) in the rotor and operate on the attraction or repulsion between the rotor PM and
the stator electromagnets.
This is the most common type of stepper motor as compared with different types of
stepper motors available in the market. This motor includes permanent magnets in the
construction of the motor. This kind of motor is also known as tin-can/can-stack motor.
The main benefit of this stepper motor is less manufacturing cost. For every revolution, it
has 48-24 steps.
▪ Variable Reluctance Stepper Motor Variable reluctance (VR) motors have a plain iron
rotor and operate based on the principle that minimum reluctance occurs with minimum
gap, hence the rotor points are attracted toward the stator magnet poles. The stepper
motor like variable reluctance is the basic type of motor and it is used for the past many
years. As the name suggests, the rotor’s angular position mainly depends on the magnetic
circuit’s reluctance that can be formed among the teeth of the stator as well as a rotor.
▪ Hybrid Synchronous Stepper Motor Hybrid stepper motors are named because they
use a combination of permanent magnet (PM) and variable reluctance (VR) techniques to
achieve maximum power in small package sizes. The most popular type of motor is the
hybrid stepper motor because it gives a good performance as compared with a permanent
86
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
magnet rotor in terms of speed, step resolution, and holding torque. But, this type of
stepper motor is expensive as compared with permanent magnet stepper motors. This
motor combines the features of both the permanent magnet and variable reluctance
stepper motors. These motors are used where less stepping angle is required like 1.5, 1.8
& 2.5 degrees.
• How to Select a Stepper Motor? Before selecting a stepper motor for your requirement,
it is very significant to examine the torque-speed curve of the motor. So this information
is available from the designer of the motor, and it is a graphical symbol of the torque of
the motor at a specified speed. The motor’s torque-speed curve should match closely the
necessities of the application; or else, the expected system performance cannot be
obtained.
• Types of Wiring The stepper motors are generally two-phase motors like unipolar
otherwise bipolar. For each phase in a unipolar motor, there are two windings. Here,
center-tapped is a common one lead in between two windings toward a pole. The unipolar
motor has 5 to 8 leads. In the construction, where the common of two poles are divided
however center-tapped, this stepper motor includes six leads. If the two-pole center taps
are short inside, then this motor includes five leads. Unipolar with 8 leads will facilitate
both series & parallel connection while the motor with five lead or six lead has stator coil’s
series connection. The operation of the unipolar motor can be simplified because while
operating them, there is no requirement of reversing the flow of current within the driving
circuit which are known as bifilar motors. In a bipolar stepper motor, for each pole, there
is a single winding. The direction of supply needs to change through the driving circuit so
that it will become complex so these motors are called unifilar motors.
by Varying Clock Pulses Stepper motor control circuit is a simple and low-cost circuit,
mainly used in low power applications. The circuit is shown in the figure, which consists
of 555 timers IC as a stable multi-vibrator. The frequency is calculated by using the given
relationship.
87
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
Stepper Motor Control by Varying Clock Pulses The output of the timer is used as a clock
for two 7474 dual ‘D’ flip-flops (U4 and U3) configured as a ring counter.
When power is initially switched on, only the first flip-flop is set (i.e. Q output at pin 5 of
U3 will be at logic ‘1’) and the other three flip-flops are reset (i.e. the output of Q is at logic
0). On receipt of a clock pulse, the logic ‘1’ output of the first flip-flop gets shifted to the
second flip-flop (pin 9 of U3).
88
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
Thus, logic 1 output keeps shifting circularly with every clock pulse. Q outputs of all the
four flip-flops are amplified by Darling-ton transistor arrays inside ULN2003 (U2) and
connected to the stepper motor windings orange, brown, yellow, black to 16, 15,14, 13 of
ULN2003 and the red to +ve supply.
The common point of the winding is connected to the +12V DC supply, which is also
connected to pin 9 of ULN2003. The color code used for the windings is may vary from
make to make. When the power is switched on, the control signal connected to the SET
pin of the first flip-flop and CLR pins of the other three flip-flops goes active ‘low’ (because
of the power-on-reset circuit formed by the R1-C1 combination) to set the first flip-flop
and reset the remaining three flip-flops.
By pressing the reset switch, you can stop the stepper motor. The motor again starts
rotating in the same direction by releasing the reset switch.
89
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
• Ruggedness
• Maintenance is low
• Reliability is high
• Precise positioning and repeatability of movement since good stepper motors have an
accuracy of 3 – 5% of a step and this error is noncumulative from one step to the next.
• It is possible to achieve very low-speed synchronous rotation with a load that is directly
coupled to the shaft.
• A wide range of rotational speeds can be realized as the speed is proportional to the
frequency of the input pulses.
• Efficiency is low
• Accuracy is low
90
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
• Extremely Noisy
A servo motor is a type of motor that can rotate with great precision. Normally this type
of motor consists of a control circuit that provides feedback on the current position of the
motor shaft, this feedback allows the servo motors to rotate with great precision. If you
want to rotate an object at some specific angles or distance, then you use a servo motor.
It is just made up of a simple motor which runs through a servo mechanism. If motor is
91
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
motor then it is called AC servo motor. For this tutorial, we will be discussing only about
the DC servo motor working. Apart from these major classifications, there are many
other types of servo motors based on the type of gear arrangement and operating
characteristics. A servo motor usually comes with a gear arrangement that allows us to
get a very high torque servo motor in small and lightweight packages. Due to these
features, they are being used in many applications like toy car, RC helicopters and planes,
Robotics, etc.
Servo motors are rated in kg/cm (kilogram per centimeter) most hobby servo motors are
rated at 3kg/cm or 6kg/cm or 12kg/cm. This kg/cm tells you how much weight your servo
motor can lift at a particular distance. For example: A 6kg/cm Servo motor should be able
to lift 6kg if the load is suspended 1cm away from the motors shaft, the greater the
distance the lesser the weight carrying capacity. The position of a servo motor is decided
1. Controlled device
2. Output sensor
3. Feedback system
It is a closed-loop system where it uses a positive feedback system to control motion and
the final position of the shaft. Here the device is controlled by a feedback signal generated
Here reference input signal is compared to the reference output signal and the third signal
is produced by the feedback system. And this third signal acts as an input signal to the
92
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
control the device. This signal is present as long as the feedback signal is generated or
there is a difference between the reference input signal and reference output signal. So
the main task of servomechanism is to maintain the output of a system at the desired value
at presence of noises.
A servo consists of a Motor (DC or AC), a potentiometer, gear assembly, and a controlling
circuit. First of all, we use gear assembly to reduce RPM and to increase torque of the
motor. Say at initial position of servo motor shaft, the position of the potentiometer knob
is such that there is no electrical signal generated at the output port of the potentiometer.
Now an electrical signal is given to another input terminal of the error detector amplifier.
Now the difference between these two signals, one comes from the potentiometer and
another comes from other sources, will be processed in a feedback mechanism and output
will be provided in terms of error signal. This error signal acts as the input for motor and
motor starts rotating. Now motor shaft is connected with the potentiometer and as the
motor rotates so the potentiometer and it will generate a signal. So as the potentiometer’s
angular position changes, its output feedback signal changes. After sometime the position
external signal provided. At this condition, there will be no output signal from the
amplifier to the motor input as there is no difference between external applied signal and
the signal generated at potentiometer, and in this situation motor stops rotating.
Interfacing hobby Servo motors like s90 servo motor with MCU is very easy. Servos have
three wires coming out of them. Out of which two will be used for Supply (positive and
negative) and one will be used for the signal that is to be sent from the MCU. An MG995
Metal Gear Servo Motor which is most commonly used for RC cars humanoid bots etc.
93
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
The color coding of your servo motor might differ hence check for your respective
datasheet.
All servo motors work directly with your +5V supply rails but we have to be careful on
the amount of current the motor would consume if you are planning to use more than two
All motors have three wires coming out of them. Out of which two will be used for
Supply (positive and negative) and one will be used for the signal that is to be sent from
the MCU.
Servo motor is controlled by PWM (Pulse with Modulation) which is provided by the
control wires. There is a minimum pulse, a maximum pulse and a repetition rate. Servo
motor can turn 90 degree from either direction form its neutral position. The servo motor
expects to see a pulse every 20 milliseconds (ms) and the length of the pulse will
94
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
determine how far the motor turns. For example, a 1.5ms pulse will make the motor turn
to the 90° position, such as if pulse is shorter than 1.5ms shaft moves to 0° and if it is
Servo motor works on PWM (Pulse width modulation) principle, means its angle of
rotation is controlled by the duration of applied pulse to its Control PIN. Basically servo
(potentiometer) and some gears. High speed force of DC motor is converted into torque
by Gears. We know that WORK= FORCE X DISTANCE, in DC motor Force is less and
distance (speed) is high and in Servo, force is High and distance is less. The potentiometer
is connected to the output shaft of the Servo, to calculate the angle and stop the DC motor
Servo motor can be rotated from 0 to 180 degrees, but it can go up to 210 degrees,
the Electrical Pulse of proper width, to its Control pin. Servo checks the pulse in every
20 milliseconds. The pulse of 1 ms (1 millisecond) width can rotate the servo to 0 degrees,
95
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
1.5ms can rotate to 90 degrees (neutral position) and 2 ms pulse can rotate it to 180
degree.
All servo motors work directly with your +5V supply rails but we have to be careful about
the amount of current the motor would consume if you are planning to use more than two
4.1.3.6 Mg996r
MG996R High Torque Metal Gear Dual Ball Bearing Servo This High-Torque MG996R
Digital Servo features metal gearing resulting in extra high 10kg stalling torque in a tiny
package. The MG996R is essentially an upgraded version of the famous MG995 servo, and
features upgraded shock-proofing and a redesigned PCB and IC control system that make
it much more accurate than its predecessor. The gearing and motor have also been
upgraded to improve dead bandwith and centering. The unit comes complete with 30cm
wire and 3 pin 'S' type female header connector that fits most receivers, including Futaba,
JR, GWS, Cirrus, Blue Bird, Blue Arrow, Corona, Berg, Spektrum and Hitec. This high-
torque standard servo can rotate approximately 120 degrees (60 in each direction). You
can use any servo code, hardware or library to control these servos, so it's great for
beginners who want to make stuff move without building a motor controller with
feedback & gear box, especially since it will fit in small places. The MG996R Metal Gear
Servo also comes with a selection of arms and hardware to get you set up nice and fast!
Specifications
• Weight: 55 g
96
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
• Temperature range: 0 ºC – 4.8 V a 7.2 V – 900 mA (6V) double ball bearing design 55 ºC
97
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
4.2.1.1 Microcontroller
The Arduino Mega 2560, the successor to the Arduino Mega, is a microcontroller board
based on a ATmega2560 AVR microcontroller. It has 70 digital input/output pins (of
which 14 can be used as PWM outputs and 16 can be used as analog inputs), a 16 MHz
resonator, a USB connection, a power jack, an in-circuit system programming (ICSP)
header, and a reset button. It contains everything needed to support the microcontroller;
simply connect it to a computer with a USB cable or power it with a AC-to-DC adapter or
battery to get started.
The Mega 2560 differs from the preceding Mega 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. This auxiliary microcontroller has its own USB bootloader, which allows
advanced users to reprogram it.
The Arduino has a large support community and an extensive set of support libraries and
hardware add-on “shields” (e.g. you can easily make your Arduino wireless with our Wixel
shield), making it a great introductory platform for embedded electronics.
98
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
Summary
Microcontroller: ATmega2560
Operating voltage: 5 V
Input voltage (recommended): 7-12 V
Digital I/O pins: 70 (of which 14 provide PWM output)
Analog input pins: 16*
DC current per I/O pin: 40 mA
DC current for 3.3V pin: 50 mA
Flash memory: 256 KB of which 8 KB used by bootloader
SRAM: 8 KB
EEPROM: 4 KB
Clock speed: 16 MHz
*The Arduino Mega 2560 has 70 total available I/O lines; all of them can function as digital
I/O lines, and sixteen of them can be used as analog inputs.
99
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
The DRV8871 device is a brushed-DC motor driver for printers, appliances, industrial
equipment, and other small machines. Two logic inputs control the Hbridge driver, which
consists of four N-channel MOSFETs that can control motors bidirectionally with up to
3.6-A peak current. The inputs can be pulsewidth modulated (PWM) to control motor
speed, using a choice of current-decay modes. Setting both inputs low enters a low-power
sleep mode. The DRV8871 device has advanced currentregulation circuitry that does not
use an analog voltage reference or external sense resistor. This novel solution uses a
standard low-cost, low-power resistor to set the current threshold. The ability to limit
current to a known level can significantly reduce the system power requirements and
bulk capacitance needed to maintain stable voltage, especially for motor startup and stall
conditions. The device is fully protected from faults and short circuits, including
undervoltage (UVLO), overcurrent (OCP), and overtemperature (TSD). When the fault
condition is removed, the device automatically resumes normal operation.
100
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
The A4988 is a complete microstepping motor driver with built-in translator for easy
operation. It is designed to operate bipolar stepper motors in full-, half-, quarter-,
eighth-, and sixteenth-step modes, with an output drive capacity of up to 35 V and ±2 A.
The A4988 includes a fixed off-time current regulator which has the ability to operate in
Slow or Mixed decay modes. The translator is the key to the easy implementation of the
A4988. Simply inputting one pulse on the STEP input drives the motor one microstep.
There are no phase sequence tables, highfrequencycontrollines,or
complexinterfacestoprogram. The A4988 interface is an ideal fit for applications where a
complex microprocessor is unavailable or is overburdened. During stepping operation,
the chopping control in the A4988 automatically selects the current decay mode, Slow or
Mixed. In Mixed decay mode, the device is set initially to a fast decay for a proportion of
the fixed off-time, then to a slow decay for the remainder of the off-time. Mixed decay
current control resultsinreducedaudiblemotornoise,increasedstepaccuracy, and reduced
power dissipation.
101
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
102
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
4.2.2.1 Microcontroller
The Arduino Pro Mini is a small microcontroller board based on the ATmega 328.
intended for use on breadboards and when space is critical. It has 14 digital
input/output pins (of which 6 can be used as PWM outputs), 8 analog inputs, and a
16 MHz crystal oscillator. It can be programmed with the USB TTL serial adapter.
Specifications
Microcontroller: ATmega328
Operating Voltage: 5V
Input Voltage: 7-9 V
Digital I/O Pins: 14 (of which 6 provide PWM output)
Analog Input Pins: 8 (of which 4 are broken out onto pins)
DC Current per I/O Pin: 40 mA
Flash Memory: 16 KB (of which 2 KB used by bootloader)
SRAM: 1 KB
EEPROM: 512 bytes
Clock Speed: 16 MHz
103
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
104
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
Features
Power Supply: 1.9 : 3.3 v
2DB Antenna
Low noise amplifier (LNA) for noise supression
Power Amplifier (PA)
1Km Range with line of sight at 250kbps
Ultra low power consumption – months to years of battery lifetime
250kbps to 2Mbit Data Rate
Auto Acknowledge & Auto Re-Transmit
Multiceiver - 6 Data Pipes
Software selectable channel from 2400MHz to 2525MHz (125 Selectable channels)
105
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
106
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
107
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
108
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
109
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
4.3 PCB
110
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
111
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
All PCBs are designed with the help of easy EDA online software.
112
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
113
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
CHAPTER 5
114
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
The different curvature radii mean that to avoid sliding, the steering geometry must
steer the inside front tyre at a larger angle than the outside front. Ackermann Steering
refers to the geometric configuration that allows both front wheels to be steered at the
appropriate angle to avoid tyre sliding.
For a given turn radius R, wheelbase L, and track width T, engineers calculate the
required front steering angles (δ_(f,in) and δ_(f,out)) with the following expressions:
115
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
The
difference in front-wheel steer angle as a function of the input steer angle is known as
Dynamic Toe. If the vehicle dimensions are known, it is possible to construct a curve of
the desired toe change for the full range of expected turn radii, such as the example in
Figure 2.
The tighter the desired vehicle turn radius, the larger the difference in steer angles
required. Ackermann Steering geometry is a practical measure to avoid sliding tyres
while in the pit lane or parking on the street. The picture gets much more complicated
once the vehicle is at speed.
116
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
If a tyre has a slip angle, the lateral sliding velocity component present is greater than
zero.
For this reason, the goal is to fine-tune the sliding conditions of each tyre to optimise
total performance, rather than try to avoid tyre slip entirely.
The key to unlocking this performance comes from understanding the relationship
between vertical load and lateral force capacity in tyres.
Figure 4 displays the lateral force vs slip angle relationship for an Indy Lights
Tyre across a range of vertical loads.
117
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
vs slip angle curves for a Cooper Tires Indy Lights 2017 Front Tyre
The higher the vertical load on the tyre, the greater peak lateral force it can produce. At
higher vertical loads, the peak lateral force arrives at a higher slip angle. This trend is
expected but not necessarily present in all tyres and may depend on compound or
construction.
The relationship between vertical load and peak slip angle is known as the Line of
Peaks. Characterising the Line of Peaks is essential due to the onset of lateral load
transfer during a cornering manoeuvre, transferring vertical load from the inside tyres
to the outside tyres.
It is critical to make sure both tyres operate at their peak slip angles simultaneously to
maximise performance. In the case of the Indy Lights tyre, this means that the more
heavily loaded outside tyre should be at a higher slip angle than the inside tyre. Steering
the outside tyre more than the inside for a given steering wheel input achieves this.
The result is the exact opposite of Ackermann Steering and is known as reverse
Ackermann or anti-Ackermann. Many race cars fitted with Anti-Ackermann exploit the
peak operating conditions of the individual tyres.
118
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
119
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
5.2 PWM
There are many different ways to control the speed of DC motors but one very simple
and easy way is to use Pulse Width Modulation.
But before we start looking at the in’s and out’s of “Pulse Width Modulation” we need to
understand a little more about how a DC motor works.
Next to stepper motors, the Permanent Magnet DC Motor (PMDC) is the most commonly
used type of small direct current motor available producing a continuous rotational
speed that can be easily controlled. Small DC motors ideal for use in applications were
speed control is required such as in small toys, models, robots and other such
electronics circuits.
A DC motor consist basically of two parts, the stationary body of the motor called the
“Stator” and the inner part which rotates producing the movement called the “Rotor”.
For D.C. machines the rotor is commonly termed the “Armature”.
Generally in small light duty DC motors the stator consists of a pair of fixed permanent
magnets producing a uniform and stationary magnetic flux inside the motor giving these
types of motors their name of “permanent-magnet direct-current” (PMDC) motors.
The motors armature consists of individual electrical coils connected together in a
circular configuration around its metallic body producing a North-Pole then a South-
Pole then a North-Pole etc, type of field system configuration.
The current flowing within these rotor coils producing the necessary electromagnetic
field. The circular magnetic field produced by the armatures windings produces both
north and south poles around the armature which are repelled or attracted by the
stator’s permanent magnets producing a rotational movement around the motors
central axis as shown.
120
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
As the armature rotates electrical current is passed from the motors terminals to the
next set of armature windings via carbon brushes located around the commutator
producing another magnetic field and each time the armature rotates a new set of
armature windings are energised forcing the armature to rotate more and more and so
on.
So the rotational speed of a DC motor depends upon the interaction between two
magnetic fields, one set up by the stator’s stationary permanent magnets and the other
by the armatures rotating electromagnets and by controlling this interaction we can
control the speed of rotation.
The magnetic field produced by the stator’s permanent magnets is fixed and therefore
can not be changed but if we change the strength of the armatures electromagnetic field
by controlling the current flowing through the windings more or less magnetic flux will
be produced resulting in a stronger or weaker interaction and therefore a faster or
slower speed.
Then the rotational speed of a DC motor (N) is proportional to the back emf (Vb) of the
motor divided by the magnetic flux (which for a permanent magnet is a constant) times
an electromechanical constant depending upon the nature of the armatures windings
(Ke) giving us the equation of: N ∝ V/KeΦ.
121
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
controlled, ie, the longer the pulse is “ON”, the faster the motor will rotate and likewise,
the shorter the pulse is “ON” the slower the motor will rotate.
In other words, the wider the pulse width, the more average voltage applied to the
motor terminals, the stronger the magnetic flux inside the armature windings and the
faster the motor will rotate and this is shown below.
122
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
123
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
frequency is constant at about 256 Hz and the motor is switched “ON” and “OFF” at this
rate.
Resistor R1 plus the “top” part of the potentiometer, VR1 represent the resistive network
of RA. While the “bottom” part of the potentiometer plus R2 represent the resistive
network of RB above.
These values can be changed to suite different applications and DC motors but providing
that the 555 Astable circuit runs fast enough at a few hundred Hertz minimum, there
should be no jerkiness in the rotation of the motor.
Diode D3 is our old favourite the flywheel diode used to protect the electronic circuit
from the inductive loading of the motor. Also if the motor load is high put a heatsink on
the switching transistor or MOSFET.
Pulse width modulation is a great method of controlling the amount of power delivered
to a load without dissipating any wasted power. The above circuit can also be used to
control the speed of a fan or to dim the brightness of DC lamps or LED’s. If you need to
control it, then use Pulse Width Modulation to do it.
124
CHAPTER 6
CODING
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
SPI is a synchronous, full duplex main-subnode-based interface. The data from the main
or the subnode is synchronized on the rising or falling clock edge. Both main and
subnode can transmit data at the same time. The SPI interface can be either 3-wire or 4-
wire. This article focuses on the popular 4-wire SPI interface.
6.1.1 Interface
The device that generates the clock signal is called the main. Data transmitted between
the main and the subnode is synchronized to the clock generated by the main. SPI
devices support much higher clock frequencies compared to I2C interfaces. Users should
consult the product data sheet for the clock frequency specification of the SPI interface.
SPI interfaces can have only one main and can have one or multiple subnodes. Figure 1
shows the SPI connection between the main and the subnode.
The chip select signal from the main is used to select the subnode. This is normally an
active low signal and is pulled high to disconnect the subnode from the SPI bus. When
multiple subnodes are used, an individual chip select signal for each subnode is required
from the main. In this article, the chip select signal is always an active low signal.
126
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
MOSI and MISO are the data lines. MOSI transmits data from the main to the subnode
and MISO transmits data from the subnode to the main.
To begin SPI communication, the main must send the clock signal and select the subnode
by enabling the CS signal. Usually chip select is an active low signal; hence, the main
must send a logic 0 on this signal to select the subnode. SPI is a full-duplex interface;
both main and subnode can send data at the same time via the MOSI and MISO lines
respectively. During SPI communication, the data is simultaneously transmitted (shifted
out serially onto the MOSI/SDO bus) and received (the data on the bus (MISO/SDI) is
sampled or read in). The serial clock edge synchronizes the shifting and sampling of the
data. The SPI interface provides the user with flexibility to select the rising or falling
edge of the clock to sample and/or shift the data. Please refer to the device data sheet to
determine the number of data bits transmitted using the SPI interface.
In SPI, the main can select the clock polarity and clock phase. The CPOL bit sets the
polarity of the clock signal during the idle state. The idle state is defined as the period
when CS is high and transitioning to low at the start of the transmission and when CS is
low and transitioning to high at the end of the transmission. The CPHA bit selects the
clock phase. Depending on the CPHA bit, the rising or falling clock edge is used to sample
and/or shift the data. The main must select the clock polarity and clock phase, as per the
requirement of the subnode. Depending on the CPOL and CPHA bit selection, four SPI
modes are available. Table 1 shows the four SPI modes.
127
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
Clock
Clock Phase Used to Sample
SPI Mode CPOL CPHA Polarity in
and/or Shift the Data
Idle State
128
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
SPI Mode 0, CPOL = 0, CPHA = 0: CLK idle state = low, data sampled on rising edge and
shifted on falling edge.
Figure 3 shows the timing diagram for SPI Mode 1. In this mode, clock polarity is 0,
which indicates that the idle state of the clock signal is low. The clock phase in this mode
is 1, which indicates that the data is sampled on the falling edge (shown by the orange
dotted line) and the data is shifted on the rising edge (shown by the dotted blue line) of
the clock signal.
Figure 3.
SPI Mode 1, CPOL = 0, CPHA = 1: CLK idle state = low, data sampled on the falling edge and
shifted on the rising edge.
129
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
Figure 4 shows the timing diagram for SPI Mode 3. In this mode, the clock polarity is 1,
which indicates that the idle state of the clock signal is high. The clock phase in this
mode is 1, which indicates that the data is sampled on the falling edge (shown by the
orange dotted line) and the data is shifted on the rising edge (shown by the dotted blue
line) of the clock signal.
Figure 4.
SPI Mode 3, CPOL = 1, CPHA = 1: CLK idle state = high, data sampled on the falling edge
and shifted on the rising edge.
Figure 5 shows the timing diagram for SPI Mode 2. In this mode, the clock polarity is 1,
which indicates that the idle state of the clock signal is high. The clock phase in this
mode is 0, which indicates that the data is sampled on the rising edge (shown by the
orange dotted line) and the data is shifted on the falling edge (shown by the dotted blue
line) of the clock signal.
Figure 5.
SPI Mode 2, CPOL = 1, CPHA = 0: CLK idle state = high, data sampled on the rising edge
and shifted on the falling edge.
130
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
Multiple subnodes can be used with a single SPI main. The subnodes can be connected in
regular mode or daisy-chain mode.
As can be seen from Figure 6, as the number of subnodes increases, the number of chip
select lines from the main increases. This can quickly add to the number of inputs and
outputs needed from the main and limit the number of subnodes that can be used. There
are different techniques that can be used to increase the number of subnodes in regular
mode; for example, using a mux to generate a chip select signal.
In this method, as data is propagated from one subnode to the next, the number of clock
cycles required to transmit data is proportional to the subnode position in the daisy
chain. For example, in Figure 7, in an 8-bit system, 24 clock pulses are required for the
data to be available on the 3rd subnode, compared to only eight clock pulses in regular
SPI mode. Figure 8 shows the clock cycles and data propagating through the daisy chain.
Daisy-chain mode is not necessarily supported by all SPI devices. Please refer to the
product data sheet to confirm if daisy chain is available.
131
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
The newest generation of ADI SPI enabled switches offer significant space saving
without compromise to the precision switch performance. This section of the article
discusses a case study of how SPI enabled switches or muxes can significantly simplify
the system-level design and reduce the number of GPIOs required.
The ADG1412 is a quad, single-pole, single-throw (SPST) switch, which requires four
GPIOs connected to the control input of each switch. Figure 9 shows the connection
between the microcontroller and one ADG1412.
132
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
Figure 13. SPI enabled switches configured in a daisy chain to further optimize the
GPIOs.
Figure 13 is for illustration purposes. The ADGS1412 data sheet recommends a pull-up
resistor on the SDO pin. Please refer to the ADGS1412 data sheet for further details on
daisy-chain mode. For the sake of simplicity, four switches have been used in this
example. As the number of switches increase in a system, the benefits of board
simplicity and space saving is significant. The ADI SPI enabled switches provide a 20%
overall board space reduction in a 4 × 8 crosspoint configuration with eight quad SPST
switches on a 6-layer board. The article “Precision SPI Switch Configuration Increases
Channel Density” provides detail on how precision SPI switch configuration increases
channel density.
133
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
IBus.loop();
ch0 = IBus.readChannel(0);
ch1 = IBus.readChannel(1);
ch2 = IBus.readChannel(2);
ch3 = IBus.readChannel(3);
// Steering right
r = map(ch0, 1515, 2000, 1400, 600); // turining radius from 1400mm to 600mm
// Steering left
r = map(ch0, 1485, 1000, 1400, 600); // turining radius from 600mm to 1400mm
s = map(ch2, 1000, 2000, 0, 100); // rover speed from 0% to 100%Code language: Arduino
(arduino)
void calculateMotorsSpeed() {
134
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
else {
// Outer wheels, furthest wheels from turning point, have max speed
// Due to the rover geometry, all three outer wheels should rotate almost with the same speed.
They differe only 1% so we asume they are the same.
speed1 = s;
// Inner front and back wheels are closer to the turing point and have lower speeds compared to
the outer speeds
// Inner middle wheel is closest to the turning point, has the lowest speed
void calculateServoAngle() {
135
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
// Calculate the angle for each servo for the input turning radius "r"
servoW1.startEaseTo(97 - thetaOuterFront);
servoW3.startEaseTo(97 + thetaOuterBack);
servoW4.startEaseTo(94 - thetaInnerFront);
136
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
#include <nRF24L01.h>
#include <RF24.h>
#include <Wire.h>
#define b1 8 // Button 1
#define b2 9 // Button 2
#define b3 2 // Button 3
#define b4 3 // Button 4
137
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
int c = 0;
struct Data_Package {
byte j1PotX;
byte j1PotY;
byte j1Button;
byte j2PotX;
byte j2PotY;
byte j2Button;
byte pot1;
byte pot2;
byte tSwitch1;
byte tSwitch2;
byte button1;
138
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
byte button2;
byte button3;
byte button4;
};
Data_Package data; //Create a variable with the above structureCode language: Arduino
(arduino)
.
void initialize_MPU6050() {
// Configure Accelerometer
Wire.beginTransmission(MPU);
Wire.write(0x10); //Set the register bits as 00010000 (+/- 8g full scale range)
Wire.endTransmission(true);
// Configure Gyro
Wire.beginTransmission(MPU);
139
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
Wire.endTransmission(true);
radio.begin();
radio.openWritingPipe(address);
radio.setAutoAck(false);
radio.setDataRate(RF24_250KBPS);
radio.setPALevel(RF24_PA_LOW);
pinMode(jB1, INPUT_PULLUP);
pinMode(jB2, INPUT_PULLUP);
pinMode(t1, INPUT_PULLUP);
pinMode(t2, INPUT_PULLUP);
pinMode(b1, INPUT_PULLUP);
pinMode(b2, INPUT_PULLUP);
pinMode(b3, INPUT_PULLUP);
data.j1PotX = map(analogRead(A1), 0, 1023, 0, 255); // Convert the analog read value from 0 to
1023 into a BYTE value from 0 to 255
140
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
data.j1Button = digitalRead(jB1);
data.j2Button = digitalRead(jB2);
data.tSwitch2 = digitalRead(t2);
data.button1 = digitalRead(b1);
data.button2 = digitalRead(b2);
data.button3 = digitalRead(b3);
if (digitalRead(t1) == 0) {
read_IMU(); // Use MPU6050 instead of Joystick 1 for controling left, right, forward and
backward movements
141
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
// Map the angle values from -90deg to +90 deg into values from 0 to 255, like the values we are
getting from the Joystick
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
#include <Wire.h>
#define b1 8 // Button 1
#define b2 9 // Button 2
#define b3 2 // Button 3
142
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
#define b4 3 // Button 4
int c = 0;
struct Data_Package {
byte j1PotX;
byte j1PotY;
byte j1Button;
byte j2PotX;
143
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
byte j2PotY;
byte j2Button;
byte pot1;
byte pot2;
byte tSwitch1;
byte tSwitch2;
byte button1;
byte button2;
byte button3;
byte button4;
};
void setup() {
Serial.begin(9600);
initialize_MPU6050();
// Call this function if you need to get the IMU error values for your module
144
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
//calculate_IMU_error();
radio.begin();
radio.openWritingPipe(address);
radio.setAutoAck(false);
radio.setDataRate(RF24_250KBPS);
radio.setPALevel(RF24_PA_LOW);
pinMode(jB1, INPUT_PULLUP);
pinMode(jB2, INPUT_PULLUP);
pinMode(t1, INPUT_PULLUP);
pinMode(t2, INPUT_PULLUP);
pinMode(b1, INPUT_PULLUP);
pinMode(b2, INPUT_PULLUP);
pinMode(b3, INPUT_PULLUP);
pinMode(b4, INPUT_PULLUP);
145
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
data.j1PotX = 127; // Values from 0 to 255. When Joystick is in resting position, the value is in
the middle, or 127. We actually map the pot value from 0 to 1023 to 0 to 255 because that's one
BYTE value
data.j1PotY = 127;
data.j2PotX = 127;
data.j2PotY = 127;
data.j1Button = 1;
data.j2Button = 1;
data.pot1 = 1;
data.pot2 = 1;
data.tSwitch1 = 1;
data.tSwitch2 = 1;
data.button1 = 1;
data.button2 = 1;
data.button3 = 1;
data.button4 = 1;
void loop() {
// Read all analog inputs and map them to one Byte value
data.j1PotX = map(analogRead(A1), 0, 1023, 0, 255); // Convert the analog read value from 0 to
1023 into a BYTE value from 0 to 255
146
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
data.j1Button = digitalRead(jB1);
data.j2Button = digitalRead(jB2);
data.tSwitch2 = digitalRead(t2);
data.button1 = digitalRead(b1);
data.button2 = digitalRead(b2);
data.button3 = digitalRead(b3);
data.button4 = digitalRead(b4);
if (digitalRead(t1) == 0) {
read_IMU(); // Use MPU6050 instead of Joystick 1 for controling left, right, forward and
backward movements
radio.write(&data, sizeof(Data_Package));
147
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
void initialize_MPU6050() {
// Configure Accelerometer
Wire.beginTransmission(MPU);
Wire.write(0x10); //Set the register bits as 00010000 (+/- 8g full scale range)
Wire.endTransmission(true);
// Configure Gyro
Wire.beginTransmission(MPU);
Wire.endTransmission(true);
void calculate_IMU_error() {
// We can call this funtion in the setup section to calculate the accelerometer and gury data
error. From here we will get the error values used in the above equations printed on the Serial
Monitor.
148
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
// Note that we should place the IMU flat in order to get the proper values, so that we then can
the correct values
Wire.beginTransmission(MPU);
Wire.write(0x3B);
Wire.endTransmission(false);
Wire.requestFrom(MPU, 6, true);
c++;
c = 0;
149
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
Wire.beginTransmission(MPU);
Wire.write(0x43);
Wire.endTransmission(false);
Wire.requestFrom(MPU, 4, true);
c++;
Serial.print("AccErrorX: ");
Serial.println(AccErrorX);
Serial.print("AccErrorY: ");
Serial.println(AccErrorY);
150
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
Serial.print("GyroErrorX: ");
Serial.println(GyroErrorX);
Serial.print("GyroErrorY: ");
Serial.println(GyroErrorY);
void read_IMU() {
Wire.beginTransmission(MPU);
Wire.endTransmission(false);
//For a range of +-8g, we need to divide the raw values by 4096, according to the datasheet
151
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
previousTime = currentTime; // Previous time is stored before the actual time read
Wire.beginTransmission(MPU);
Wire.endTransmission(false);
GyroX = (Wire.read() << 8 | Wire.read()) / 32.8; // For a 1000dps range we have to divide first
the raw value by 32.8, according to the datasheet
// Currently the raw values are in degrees per seconds, deg/s, so we need to multiply by
sendonds (s) to get the angle in degrees
152
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
// Map the angle values from -90deg to +90 deg into values from 0 to 255, like the values we are
getting from the Joystick
153
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
#include <SoftwareSerial.h>
#include <Servo.h>
Servo servo01;
Servo servo02;
Servo servo03;
Servo servo04;
Servo servo05;
Servo servo06;
int index = 0;
154
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
servo01.attach(5);
servo02.attach(6);
servo03.attach(7);
servo04.attach(8);
servo05.attach(9);
servo06.attach(10);
Bluetooth.setTimeout(1);
delay(20);
servo1PPos = 90;
servo01.write(servo1PPos);
servo2PPos = 150;
servo02.write(servo2PPos);
servo3PPos = 35;
servo03.write(servo3PPos);
servo4PPos = 140;
servo04.write(servo4PPos);
servo5PPos = 85;
servo05.write(servo5PPos);
servo6PPos = 80;
155
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
servo06.write(servo6PPos);
if (Bluetooth.available() > 0) {
156
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
CHAPTER 8
CONCLUSION
157
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
After finishing the rover . One of the main challenge of this research was having
appropriate instruments available to test and integrate. As a member of developing
country this type of research is expensive as well as difficult for us to conduct.
Comparing to first world countries mars rovers costing, our total cost is half of them.
Comparing to the performances our results support existing mars rover performance
result. It is indeed a great contribution for planet exploration research. In future we have
a plan to make this system more advanced using efficient steering system, image
processing to map objects, making the system full autonomous with emotion
Intelligence system. We believe we will develop it more and will continue this research
for achieving greater goals. Life on mars was always an enigma to solve and now a day’s
mars rover research is contributing, supporting to explore life on mars. We believe
someday mongol pothik can be the next mars rover to land on planet mars. Further
studies on mars rover will help researchers at great exten
158
REFERENCES
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
REFERENCES
[1] NASA’s Mars Exploration Program Website, http://mars.jpl.nasa.gov.
[2] Adam Steltzner, et al., “Mars Science Laboratory Entry, Descent, and Landing System
Overview,” AAS 13- 236, AIAA/AAS Spaceflight Mechanics Meeting, Lihue, HI, February
2013.
[3] John P. Grotzinger, et al., “Mars Science Laboratory mission and science investigation,”
Space Sci. Rev., 170, 5- 56, 2012.
[4] Robert Anderson, et al., “Collecting Samples in Gale Crater, Mars; an Overview of the
Mars Science Laboratory Sample Acquisition, Sample Processing and Handling System”,
Space Sci. Rev., 170, 57-75, September 2012.
[5] P.A. Jansma and R. Jones, “Advancing the Practice of Systems Engineering at JPL,” IEEE
Aerospace Conference, Big Sky, Montanan, March 2006.
[6] Richard Welch, et al., “Verification and Validation of the MSL Curiosity Rover,” 8th
Annual System of Systems Engineering Conference, HI, June 2013.
H. Abarca, R. Deen, G. Hollins et al., Image and data processing for InSight Lander
operations and science. Space Sci. Rev. 215, 22 (2019). https://doi.org/10.1007/s11214-
019-0587-9
A.C. Allwood, L.A. Wade, M.C. Foote et al., PIXL: Planetary Instrument for X-Ray
Lithochemistry. Space Sci. Rev. 216, 134 (2020). https://doi.org/10.1007/s11214-020-
00767-7
B.E. Bayer, Color Imaging Array, United States Patent # 3,971,065 (1976) J.F. Bell III, S.W.
Squyres, K.E. Herkenhoff, J.N. Maki, H.M. Arneson, D. Brown, S.A. Collins, A. Dingizian, S.T.
160
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
Elliot, E.C. Hagerott, A.G. Hayes, M.J. Johnson, J.R. Johnson, J. Joseph, K. Kinch, M.T.
Lemmon, R.V. Morris, L. Scherr, M. Schwochert, M.K. Shepard, G.H. Smith, J.N. Sohl-
Dickstein, R. Sullivan, W.T. Sullivan, M. Wadsworth, Mars Exploration Rover Athena
Panoramic Camera (Pancam) investigation. J. Geophys. Res. 108(E12), 8063 (2003).
https://doi.org/10.1029/2003JE002070
J.F. Bell III et al., The Mars 2020 Perseverance rover Mast Camera Zoom (Mastcam-Z)
multispectral, stereoscopic imaging investigation. Space Sci. Rev. (2020, this issue).
https://doi.org/10.1007/ s11214-020-00755-x R. Bhartia et al.,
161
MECHATRONICS ENGINEERING PROGRAM PROJECTS 2022-2023
163