Sample Project Report
Sample Project Report
ENGINEERING
PROJECT TITLE
Self-Balancing Robot
SUBMITTED BY
KAMALESH.B 310623243023
LALITH ANAND.SJ
310623243033
PURUSOTHAMAN 310623243043
To drive the motors we need some information on the state of the robot.
We need to know the direction in which the robot is falling, how much the
robot has tilted and the speed with which it is falling. All these information
can be deduced from the readings obtained from MPU6050. We combine
all these inputs and generate a signal which drives the motors and keeps
the robot balanced.
• COMPONENTS USED :
• Arduino uno microcontroller
• Geared DC motors ( 2Nos)
• motor driver module
• accelerometer and gyroscope
• A pair of wheels
• 7.4V Li-ion Battery
• Connecting wires
• 3D printed Body
• Ultrasonic sensor
Controller :
Motor Driver:
Wheels:
Do not under estimate these wheels. So make sure your wheels have good grip
over the floor you are using. Watch closely, your grip should never allow your
wheels to skit on the floor.
• The best choice of Accelerometer and Gyroscope for your bot will be the
MPU6050.
• The accelerometer measures the acceleration along one direction, while the
gyroscope measures the angular acceleration on one axis.
Chassis:
The chassis lays an important role which carries all the electronic components. You can use
cardboard, wood, plastic anything that you are good with. But, just make sure the chassis is
sturdy and should not wiggle when the bot is trying to balance
Motors: The best choice of motor that you can use for a self balancing robot, without a doubt
will be Stepper motor. Yes it is not mandatory to have a stepper; the bot works fine with these
cheap commonly available yellow coloured DC gear motors as well.
Ultrasonic sensor :
The ultrasonic sensor works on the principle of SONAR and RADAR system which is
used to determine the distance to an object.
By measuring the time required for the echo to reach to the receiver, we can calculate the
distance. This is the basic working principle of Ultrasonic module to measure distance.
HC-SR-04 has an ultrasonic transmitter, receiver and control circuit.
In ultrasonic module HCSR04, we have to give trigger pulse, so that it will generate
ultrasound of frequency 40 kHz. After generating ultrasound i.e. 8 pulses of 40 kHz, it
makes echo pin high. Echo pin remains high until it does not get the echo sound back.
So the width of echo pin will be the time for sound to travel to the object and return
back. Once we get the time we can calculate distance, as we know the speed of sound.
CIRCUIT DIAGRAM:
• The circuit diagram clearly explains about the circuit
connections between the various electronic components.
Many different sensory devices are used to determine the position and orientation of
an object. The most common of these sensors are the gyroscope and the
accelerometer. Though similar in purpose, they measure different things. When
combined into a single device, they can create a very powerful array of information.
The most important component in the balancing of the bot is the accelerometer and
gyroscope module MPU6050…lets see more about gyroscope and accelerometer..
What is a gyroscope?
A gyroscope is a device that uses Earth's gravity to help determine orientation. Its
design consists of a freely-rotating disk called a rotor, mounted onto a spinning axis in
the center of a larger and more stable wheel. As the axis turns, the rotor remains
stationary to indicate the central gravitational pull, and thus which way is "down
"One typical type of gyroscope is made by suspending a relatively massive rotor inside
three rings called gimbals," according to a study guide by Georgia State University.
"Mounting each of these rotors on high quality bearing surfaces insures that very little
torque can be exerted on the inside rotor."
Gyroscopes were first invented and named in the 19th century by French physicist
Jean-Bernard-Léon Foucault. It wasn't until 1908 that German inventor H. Anschütz-
Kaempfe developed the first workable gyrocompass, according to Encyclopedia
Britannica. It was created to be used in a submersible. Then, in 1909, it was used to
create the first auto-pilot.
What is an accelerometer?
An accelerometer is a compact device designed to measure non-gravitational
acceleration. When the object it's integrated into goes from a standstill to any velocity,
the accelerometer is designed to respond to the vibrations associated with such
movement. It uses microscopic crystals that go under stress when vibrations occur,
and from that stress a voltage is generated to create a reading on any acceleration.
Accelerometers are important components to devices that track fitness and other
measurements in the quantified self-movement.
The first accelerometer was called the Atwood machine and was invented by the
English physicist George Atwood in 1783, according to the book "Practical MEMS," by
Ville Kaajakari.
The gyroscope maintains its level of effectiveness by being able to measure the rate
of rotation around a particular axis. When gauging the rate of rotation around the roll
axis of an aircraft, it identifies an actual value until the object stabilizes out. Using the
key principles of angular momentum, the gyroscope helps indicate orientation. In
comparison, the accelerometer measures linear acceleration based on vibration.
The appearance of the accelerometer in the consumer electronics market, with the
introduction of such widespread devices like the iPhone using it for the built-in
compass app, has facilitated its overall popularity in all avenues of software.
Determining screen orientation, acting as a compass and undoing actions by simply
shaking the smartphone are a few basic functions that rely on the presence of an
accelerometer. In recent years, its application among consumer electronics extends
now to personal laptops.
Sensors in use
Real-world usage best illustrates the differences between these sensors.
Accelerometers are used to determine acceleration, though a three-axis
accelerometer could identify the orientation of a platform relative to the Earth's surface.
However, once that platform begins moving, its readings become more complicated
to interpret. For example, in a free fall, the accelerometer would show zero
acceleration. In an aircraft performing a 60-degree angle of bank for a turn, a three-
axis accelerometer would register a 2-G vertical acceleration, ignoring the tilt entirely.
Ultimately, an accelerometer cannot be used alone to assist in keeping aircrafts
properly oriented.
The intended use of each device ultimately influences their practicality in each platform
used. Many devices benefit from the presence of both sensors, though many rely on
the use of but one. Depending on the type of information you need to collect —
acceleration or orientation — each device will provide different results.
Fig caption
Fig caption
Therefore this self-balancing technology is used in the development of self -balancing cars
and bikes as seen in the picture above.
Reference :
https://maker.pro/arduino/projects/build-arduino-self-balancing-robot
https://www.omega.co.uk/prodinfo/how-does-a-pid-controller-work.html
https://www.instructables.com/id/Arduino-Self-Balancing-Robot-1/
https://www.livescience.com/40103-accelerometer-vs-gyroscope.html