Imagine a robot that moves through wheels and speaks with your commands,also it can detect of object due to ultrasonıc sensör and then stopping. and you can do it with cheap microcontrollers on the market. A menu can be broadcast remotely while on the move, including an announcement or any text within your commands. you can hear it in a loud voice. No audio recording. it is used in all hex codes and arduino audio synthesis feature.
1. CYPRUS INTERNATIONAL UNIVERSITY
FACULTY OF ENGINEERING
INDUSTRIAL ENGINEERING & ELECTRICAL AND ELECTRONIC
ENGINEERING
ROBOCRIER
By
Ufuk COŞKUN 20154947
Tolga MELETLİ 20130765
Sevinç BEZİRCİOĞLU 20141424
Supervisor
As. Prof. Dr. Ziya DEREBOYLU
Instructor Nidai KORDAL
Nicosia-2018
4. CYPRUS INTERNATIONAL UNIVERSITY
FACULTY OF ENGINEERING
INDUSTRIAL ENGINEERING & ELECTRICAL AND ELECTRONIC
ENGINEERING
ROBOCRIER
By
Ufuk COŞKUN 20154947
Tolga MELETLİ 20130765
Sevinç BEZİRCİOĞLU 20141424
Supervisor
As. Prof. Dr. Ziya DEREBOYLU
Instructor Nidai KORDAL
Nicosia-2018
6. II
ABSTRACT
The Line follower robot is a mobile machine that can detect and follow the line drawn on the
floor. Generally, the path is predefined and can be either visible like a black line on a white
surface with a high contrasted color or it can be invisible like a magnetic filed. Definitely, this
kind of Robot should sense the line with its Infrared Ray (IR) sensors that installed under the
robot. After that, the data is transmitted to the processor by specific transition buses. Hence, the
processor is going to decide the proper commends and then it sends them to the driver and thus
the path will be followed by the line follower robot.
7. III
TABLE OF CONTENTS
ABSTRACT .............................................................................................................................II
CHAPTER 1..............................................................................................................................1
INTRODUCTION ....................................................................................................................1
CHAPTER 2..............................................................................................................................2
GENERAL INFORMATION ABOUT ROBOTICS ............................................................2
2.1 History about Robotics.....................................................................................................2
2.2 Robot Types......................................................................................................................3
CHAPTER 3..............................................................................................................................4
DESIGN OF ROBOCRIER.....................................................................................................4
3.1 Purpose .............................................................................................................................4
3.2 Environment .....................................................................................................................4
3.3 Assembly..........................................................................................................................4
3.3.1 Chassis Assembly......................................................................................................4
3.3.2 Electronic Assembly..................................................................................................4
3.4 Line Follower Robot.........................................................................................................5
3.5 Information Announcement System.................................................................................7
3.6 Economical Analysis of the Design .................................................................................8
CHAPTER 4............................................................................................................................11
PROJECT PLAN....................................................................................................................11
4.1 Work Breakdown Structure (WBS) with Gantt Chart....................................................11
4.1.1 Assign Duties...........................................................................................................12
4.1.2 Coordinate Activities...............................................................................................12
4.2 Gantt Chart .....................................................................................................................12
4.3 Steps ...............................................................................................................................13
4.3.1 Chassis Assembly....................................................................................................13
4.3.2 Electronic Assembly................................................................................................13
4.4 Body ...............................................................................................................................13
4.4.1 Choosing Material ...................................................................................................13
4.4.2 Fiberglass.................................................................................................................13
4.4.3 Dimensioning ..........................................................................................................13
4.4.4 Forming ...................................................................................................................13
4.4.5 Assembly.................................................................................................................13
8. IV
CHAPTER 5............................................................................................................................14
MATERIAL CHARACTERISTICS ....................................................................................14
5.1 Materials Used................................................................................................................14
5.2 Materials and Features....................................................................................................14
5.2.1 Arduino Uno............................................................................................................14
5.2.1.1 Important Library .................................................................................................15
5.2.2 DC Motors...............................................................................................................15
5.2.3 Motor Driver............................................................................................................16
5.2.4 CNY70 Line Sensor ................................................................................................17
5.2.5 Speaker ....................................................................................................................18
5.2.6 Li-Po Battery...........................................................................................................18
5.2.7 NRF24L01 2.4 GHz Transceiver Module...............................................................19
5.2.8 Sound Amplifier Circuit..........................................................................................21
5.2.9 HC-SR04 Ultrasonic Sensor....................................................................................21
5.2.10 Wheels ...................................................................................................................22
5.2.11 Robot Chassis ........................................................................................................22
5.3 Reasons for Using Materials on the Robot.....................................................................23
5.3.1 Arduino Uno............................................................................................................23
5.3.2 Dc Motors................................................................................................................23
5.3.3 Motor Driver............................................................................................................23
5.3.4 CNY70 Sensor.........................................................................................................23
5.3.5 Speaker ....................................................................................................................23
5.3.6 Li-po Battery ...........................................................................................................23
5.3.7 HC-SR04 Ultrasonic Distance Sensor.....................................................................23
5.3.8 NRF24L01 2.4 GHz Transceiver Module...............................................................23
5.3.9 Amplifier Circuit .....................................................................................................24
5.3.10 Wheels ...................................................................................................................24
5.3.11 Robot Chassis ........................................................................................................24
CHAPTER 6............................................................................................................................25
ROBOT ASSEMBLY AND CREATE OF BODY WITH FIBERGLASS .......................25
6.1 Robot Assembly .............................................................................................................25
6.2 Create of Body with Fiberglass ......................................................................................26
6.3 Materials Used and Reasons for Use.............................................................................26
9. V
6.3.1 Fiberglass.................................................................................................................26
6.3.2 Hardener Cream......................................................................................................26
6.3.3 Plastic Teddy Bear...................................................................................................26
6.3.4 Aluminium Foil .......................................................................................................27
6.3.5 Mask and Glove.......................................................................................................27
6.4 Production Stage.............................................................................................................27
6.5 Assembly of Body and Chassis ......................................................................................28
CHAPTER 7............................................................................................................................30
COMPARED PROBLEMS AND SOLUTIONS .................................................................30
7.1 Do not follow the robot line ...........................................................................................30
7.2 Sensor Malfunction Ultrasonic.......................................................................................30
7.3 Power Source..................................................................................................................30
7.4 Arduino Mega Problem..................................................................................................30
CHAPTER 8............................................................................................................................31
COMMUNICATION BETWEEN OF ARDUINO .............................................................31
8.1 RF Signal........................................................................................................................31
APPENDIX I...........................................................................................................................32
APPENDIX II .........................................................................................................................36
APPENDIX III........................................................................................................................38
REFERENCES .......................................................................................................................48
10. 1
CHAPTER 1
INTRODUCTION
In the system that we will create using many elements in the scope of the application, our aim
will be to carry out the announcement process which is the main aim at the same time while
watching our robot line. Circuit design and implementation, microcontroller programming,
mechanical design and machining, testing and testing will take place within the scope of the
application. Our line-following robot will not move freely, it will move in keeping with the
determined area. The robot checks the status of the sensor at short intervals and determines the
position according to the line. Depending on the design idea, a certain number of these sensors
are used, with certain intervals and layout, and the motors are controlled according to the
information received therefrom.
11. 2
CHAPTER 2
GENERAL INFORMATION ABOUT ROBOTICS
Robotics, in different forms, has always been on people’s minds, since the time we first
built things. You may have seen machines that artisans made that tried to mimic a human ‘s
motions and behaviour. Although in principle humonoids are robots and are designed and
governed. Robots are very powerfull elements of today’s industry. They are capable of
performing many different tasks and operations precisely and do not require common safety
and comfort elements human needs. However, it takes much effort and many resources to make
a robot function properly. Most companies that made robots in the mid-1980s no longer exist,
and only companies that made industrial robots remain in the market. The subject of robotics
covers many different areas. Robots alone are hardly ever useful. They are used together with
other devices, peripherals, and other manufacturing machines. They are generally integrated
into a system, which as a whole is designed to perform a task or do an operation. It is a system
that contains sensors, control systems, manipulators, power supplies and software all working
together to perform a task. Designing, building, programming and testing a robots is a
combination of physics, mechanical engineering, electrical engineering, structural engineering,
mathematics and computing.In some cases biology, medicine, chemistry might also be
involved. [1]
2.1 History about Robotics
1922: Czech author Karel Capek wrote a story called Rossum’s Universal Robots and
introduced the word “Rabota” (meaning worker).
1946: Geoge Devol developed the magnetic controller, a playback device. Eckert and Mauchley
built the ENIAC computer at the University of Pennsylvania.
1952: The first NC machine was built at MIT.
1954: The first programmable robot is designed by George Devol, who coins the term Universal
Automation. He later shortens this to Unimation, which becomes the name of the first robot
company. Unimate was the first industrial robot, which worked on a General Motors assembly
line at the Inland Fisher Guide Plant in Ewing Township, New Jersey, in 1961. It was invented
by George Devol in the 1950s using his original patent filed in 1954 and granted in 1961 The
present invention relates to the automatic operation of machinery, particularly the handling
apparatus, and to automatic control apparatus suited for such machinery.
12. 3
1978: The Puma (Programmable Universal Machine for Assembly) robot is developed by
Unimation with a General Motors design support.
1980s: The robot industry enters a phase of rapid growth. Many institutions introduce programs
and courses in robotics. Robotics courses are spread across mechanical engineering, electrical
engineering, and computer science departments.
1995-present: Emerging applications in small robotics and mobile robots drive a second
growth of start-up companies and research. [2]
2002 – 2010: Turkey's First Walking Humanoid Robot: SURALP (Sabancı University Robot
Research Laboratory Platform). There have been many successful researches on humanoid
robotics in the world and impressive results have been obtained. Humanoid robots must also be
able to interact with the environment, to hold objects, to push, to carry, and to change their
location, so that they can function as human assistants beside the walker. This interaction makes
the force control techniques for contact and the visual control with the help of the cameras
important for the objectsIn this direction, Sabancı University is continuing to search for a
humanoid robot to be a source of pride for our country. An important consequence of this work
involving many phases was the design and manufacture of SURALP, Turkey's first humanoid
robot. [3]
2.2 RobotTypes
Classification of Robots by Coordinate Systems
• Cartesian coordinate system,
• Cylindrical coordinate system,
• Spherical coordinate system,
• Rotary coordinate system.
Classification by Robot Types
• Cartesian robots
• Hinged robots
• Scara robots
Robotics in medicine and health
• Robotic prostheses
• Operating Robots
13. 4
CHAPTER 3
DESIGN OF ROBOCRIER
3.1 Purpose
The purpose students of our project are to communicate to the people in a verbal way the
announcements such as social activities, exam dates, club activities that teachers will take place
in the school.
3.2 Environment
Our robot will announce the exam dates and similar situations verbally by following a specific
direction to inform our students and teachers, which has a dynamic environmental area. We will
create a black line on the white ground The starting and ending points we have determined will
determine the robot that the robot will move. Since there will be people in the area, extra
precautions will be taken as a precaution against the threats that the robot will create and the
interventions against the robot.
3.3 Assembly
We think we will have two different assemblies; There are Chassis assembly and Electronic
assembly.
3.3.1 Chassis Assembly
Installation of basic moving parts and basic circuit elements on the chassis as specified on the
equipment.
3.3.2 Electronic Assembly
The electronic parts that we fix on the chassis are connected to each other by cables. Engine
driver , the microprocessor is the part that controls the current and voltage that transmit the
output information to the moving parts. Sensör circuit, it provides status control of the robot by
communicating the input information from the outside with the processor.
14. 5
3.4 Line FollowerRobot
The robot that follows the line, as its name suggests, is a robot type that follows a line by making
use of color difference.The robot following the line can autonomously track a particular path.
This road can be white on black or black on white. However, they can be developed and used
in different areas. The work of line-following robots can be examined under the headings of
input units, decision-making unit. . You can see the diagram following the line and the obstacle
detection processes chart of robot, line following obstancle flow chart and following chart
between of transmitter and receiver, line following circuit diagram in Table 1 and Figure 1-2.
Table 1 : Following the line and the obstacle detection processes chart of robot
15. 6
Figure 1 : Line Following Circuit Diagram of Robocrie
Figure 2 : Line Following and Obstacle Flow Chart
16. 7
3.5 Information Announcement System
Our robot consists of three main components. These are line-following, announcement and
communication systems. When our robot performs the process of the announcement system, it
will receive the commands through the microprocessor and broadcast it with the speaker which
is the output unit. We will communicate using the Receiver and Transmitter to perform the
audible signal.When creating communication we will use the Synthesis of Aurdinuo. You can
see transmitter circuit, receiver and amplifier circuit, following chart between of transmitter and
receiver in Figure 3-4-5.
Figure 3 : Transmitter Circuit
Figure 4 : Receiver and Amplifier Circuit
17. 8
Figure 5 : Following Chart Between of Transmitter and Receiver
3.6 EconomicalAnalysis of the Design
We will be able to get high efficiency in our robot and at the same time economically suitable
equipments will be selected. You can see economical analysis for equipment in Table 2.
18. 9
Table 2 : Economical Analysis
Name of the
product Model Amount
Unit
price
Arduino card Genesis 1
125,00
TL
Arduino card Mega 2560 R3 1 92,00 TL
Arduino card Uno R3 1 85,50 TL
Arduino card Full Set 1
149,00
TL
Arduino card Driver card Colorduino 8x8 1
105,00
TL
Arduino card Driver card Moto Shield 1
188,80
TL
Arduino card Driver card VNH2SP30 1 70,80 TL
Name of Product Model Amount
Unit
Price
Jumper cable Male-female 40 10,00 TL
Sensor Object-detection GLV18 1 80,00 TL
Sensor Object-detection MZ80 1 29,00 TL
Sensor Object-detection HC-SR04 1 11,80 TL
Sensor Object-detection UP3330IR 1 55,00 TL
Sensor Line sensor QTR-8RC 1 35,00 TL
Sensor Line sensor TCRT5000 1 14,00 TL
Sensor Line sensor CNY70 1 6,00 TL
Sensor Color sensor TAOS TCS230 1 40,00 TL
Sensor Color sensor VNH2SP30 1 70,80 TL
Name of Product Model Amount
Unit
Price
Engine 6V 180RPM Dc Engine 1 24,00 TL
Engine Titan 12V 10 Rpm 1 64,50 TL
Engine Pars 12V 120 RPM 1
148,50
TL
Engine Pars 12V 200 RPM 1
148,50
TL
Wheels SLT20 2 36,00 TL
Wheels 88MM 2 57,50 TL
Wheels GROT 2 17,50 TL
Name of Product Model Amount
Unit
Price
Battery 3S LiPo Batarya 1 65,00 TL
19. 10
Name of Product Model Amount
Unit
Price
Transreceiver
Module nRFL24L01 1 2 USD
Name of Product Model Amount
Unit
Price
Fiberglass - 1 25,00 TL
Name of Product Model Amount
Unit
Price
Speaker Sk-S10 1 24,00 TL
Speaker BT-10B 1 48,00 TL
Speaker SPA2201/10 2 52,00 TL
Speaker Z-120 2 55,00 TL
20. 11
CHAPTER 4
PROJECT PLAN
4.1 Work BreakdownStructure (WBS)with Gantt Chart
You can see work breakdown structure in Figure 6.
Figure 6 : Work Breakdown Structure
21. 12
4.1.1 Assign Duties
Robot will be designed and built by Industrial engineering students, where weight and materials
used for construction are important factors. electrical engineering students will design the
speaker system and line following circuits. Also, software for line following and maneuver
ability will be developed by this student.
4.1.2 Coordinate Activities
It is that the steps related to the project move towards one another in relation to each other.
4.2 Gantt Chart
Comes with Gantt charts and workload scheduling for employees; It helps you monitor a
specific time and number of employees in a project and the time spent. You can see the WBS
of Gantt Chart in Figure 7.
Figure 7 : WBS of Gantt Chartt
22. 13
4.3 Steps
4.3.1 Chassis Assembly
Installation of basic moving parts and basic circuit elements on the chassis as specified on the
equipment.
4.3.2 Electronic Assembly
The electronic parts that we fix on the chassis are connected to each other by cables.
4.4 Body
4.4.1 Choosing Material
In order for the robot's movement tribe to be better, the load from moving pieces must be at a
minimum level.
4.4.2 Fiberglass
We opted to use fiberglass because it is lightweight, durable and easy to shape.
4.4.3 Dimensioning
We will use fiberglass to measure the size of the robot.
4.4.4 Forming
Obtaining the desired shaping from the mold based on the height and width of the robot.
4.4.5 Assembly
The joining phase of the robot chassis and fiberglass.
23. 14
CHAPTER 5
MATERIAL CHARACTERISTICS
5.1 Materials Used
Arduino Uno
Motors (6V - 250 Rpm * 2)
Engine Driver
CNY70 Line Sensor
0.5 Watt 8 ohm Speaker
Li-po battery (11.1 V - 3S 1350 mA)
HC-SR 04 Ultrasonic distance sensors
Transmitter and Receiver Module
Sound Amplifier Circuit
Wheels
Robot Chassis
5.2 Materials and Features
5.2.1 Arduino Uno
The ATmega328 is an Arduino card containing a microcontroller. Arduino Uno has 14 digital
input / output pins. Six of them can be used as PWM outputs. There are also 6 analog inputs,
one 16 MHz crystal oscillator, USB connection, power jack (2.1mm), ICSP header and reset
button. Arduino Uno contains all of the components necessary to support a microcontroller.
You can connect the Arduino Uno to a computer, and run it with an adapter or a battery. You
can see the Arduino Uno used in the circuit in Figure 8 .
Figure 8 : Arduino Uno
24. 15
Arduino and Technical Specifications
Microcontroller: ATmega328
Operating voltage: +5 V DC
Recommended supply voltage: 7 - 12 V DC
Supply voltage limits: 6 - 20 V
Digital input / output pins: 14 (6 supports PWM output)
Analog input pins: 6
DC current per input / output pin: 40mA
Current for 3.3 V pin: 50 mA
Flash memory: 32 KB (used for 0.5 KB bootloader)
SRAM: 2 KB
EEPROM: 1 KB
Clock frequency: 16 MHz
5.2.1.1 Important Library
Talkie.h Library
It is a software implementation of the Texas Instruments speech synthesis architecture (Linear
Predictive Coding) from the late 1970s / early 1980s, as used on several popular applications.
Talkie comes with over 1000 words of speech data that can be included in your projects. Most
words only take a fraction of a KB, so you can add plenty.
Audio Output
Talkie sets up a special very high speed PWM, so audio can be taken directly from pin 3 with
no other filtering. Note that Talkie uses Timers 1 and 2 for this purpose, which may conflict
with PWM outputs or other libraries.
5.2.2 DC Motors
Small brush DC gear motors are available in five different motor types from 5: 1 to 1000: 1 at
various gear ratios. High Power (HP), Medium Power (MP), and Low Power (LP) 6V motors
with 6V and 12V high power long life carbon brush motors (HPCB), shorter life special metal
brushes. The 6V HPCB and & V HP motors have the same performance as the brushes that
affect the service life of the motor.
Technicial Specifications
Ideal Working Voltage: 6V
25. 16
Working Voltage Range: 3V-9V
Engine Type: Sanyo 12mm
Motor Shaft: 3mm D Shaft
Motor Spindle Length: 9mm
Reducer Conversion Ratio: 51.45: 1
Engine Speed: 250 RPM
Idle Current: 40mA
Current in Force: 0.36A
Strength of Forcing: 0.5 kg-cm
5.2.3 Motor Driver
Motor drive circuits are used because the outputs of the microcontrollers are insufficient to
directly control DC motors or stepper motors. Motor drive circuits are used to control the motors
by raising the signals from the outputs of the microcontrollers. Motor drive circuits can be
prepared in H bridge and similar shapes using transistors. However, motor drive integrated
circuits are generally preferred for convenience.
The L293D and L293B motor driver integrations are 16-legged motor driver integrations with
two H-bridges. Generally, with the L293D and L293B, which are the preferred motor driver
integrations for DC motor control, the two motors can be controlled bidirectionally
independently of each other. PWM control can also be performed by using the enable legs of
the L293 motor drive ICs. You can see along motor driver with the illustration in Figure 9 . [5]
Figure 9 : DC Motor
26. 17
Technicial Specifications
V Input: 6V - 12V (Voltage directly goes to Arduino input pin)
Idle current: 10mA (All card)
Engine Outputs: Continuous 0.6 Amps x2, Instant 1 Amps x2.
Built-in LDR Sensors (LDR).
Easy sensor connections
Measured only on 68mm x 53mm x 10mm.
It is fully compatible with Arduino Uno & Leonardo cards.
Card weight is 34 grams.
5.2.4 CNY70 Line Sensor
The CNY70 contrast sensor has one photodiode and one phototransistor. The photodiode emits
a light with a wavelength of 950 nm. (IR light). The base of the phototransistor is triggered by
the reflection of this IR light beam. In this way, the reflection of IR light will be different on
black and white grounds, so that the CNY70 contrast sensor distinguishes black and white
colorsThe CNY70 contrast sensor produces analog signals. These signals are converted to
digital signals using the 74HC14 schmitt trigger converter to process the analog signals in the
microcontroller. You can see the input and output tables for CNY70 in Table 3. [6]
Table 3 : CNY70 Input and Output Table
27. 18
5.2.5 Speaker
This small speaker is ideal for radio and amplifier projects. At the same time, the robot is small
enough and suitable for our project. You can see the speaker used in the robot in Figure 10.
Figure 10 : Speaker
Features:
Small size
Power rating: 0.5W
Impedance: 8 Ohm
Dimensions:
Diameter: 50 mm
Height: 16 mm
Lower diameter: 28 mm
5.2.6 Li-Po Battery
It is called lithium-ion polymer battery. The lithium-ion battery is a more advanced design and
carries the same characteristics. Such batteries have no memory effect and the energy losses are
slow when not in use. They may be dangerous if used improperly. If the necessary precautions
are not taken, their life may be shorter than other battery types.We use 11 V 1350 mAh battery
and our battery is about 15 W and we use it based on the power of our battery robot. The power
of our robot is 5 W and it is possible to operate the selected battery for 2 hours.You can see the
Li-Po Battery in the robot in Figure 11.
28. 19
Figure 11 : Li-po Battery
Li- Po Battery Technical Specifications:
Lipo cells are made up of cells. The empty state of a single cell should be 4.2V at 3V. The cells
of the lipo pillars may be connected in series (S) or parallel (P). This is referred to as the battery
connector shape. For example; If 2 cells are connected in series, 3S is called 3S2P. If 3 cells are
connected in series, 3S, 2 cells in parallel are connected to 2P, 3 cells are connected in series,
and if there is another group connected in parallel, they are called 3S2P.
5.2.7 NRF24L01 2.4 GHz Transceiver Module
Developed by Nordic, the NRF24L01 wireless module is a low power consumption module
that allows wireless communication at 2.4GHz frequency. It has a communication speed of
2MBps, supports the SPI interface, and exchanges commands between the Arduino and the
module via the SPI interface. The NRF24L01 modules can be used for both receiver and
transmitter functions. It is decided by the code we wrote in Arduino, which one is the recipient
and which is the sender. It can be used as both a receiver and a transceiver to perform
bidirectional communication according to the needs of the project. The NRF24L01 wireless
communication module has a driver library named "nRF24L01p.h" for Arduino and a library
named "NRF24.h". [7] You can see the NRF24L01 2.4 GHz Transceiver Module used in the
robot in Figure 12.
29. 20
Figure 12 : NRF24L01 2.4 GHz Transceiver Module
Features:
It can broadcast in the 2.4GHz band.
Communication speed can be selected at speeds of 250KBps, 1MBps and 2MBps.
Ultra low power consumption
Working Voltage: 1.9-3.6V
IO Ports Operating Voltage: 0-3.3V / 5V
Transmitter Signal Power: +7 dB
Receiver Sensitivity ≤ 90dB
Communication Distance: Outdoor area 250m
Dimensions: 15x29mm
PIN Connection
Arduino NRF24L01
Pin no 9 CE
Pin no 10 CS
Pin no 11 MOSI
Pin no 12 MISO
Pin no 13 SCK
3,3 Volt Vcc
GND GND
30. 21
5.2.8 Sound Amplifier Circuit
The weak electrical signals applied to the input are transferred to the output with the help of the
active circuit elements of the circuit. In doing so, he uses the energy he gets from the power
supply. This energy works in the same way as the input signal but with a stronger output signal.
As a result, the power of the electrical signal from the amplifier output is higher than the power
applied to the input.[8].
5.2.9 HC-SR04 Ultrasonic Sensor
The Hc-SR04 ultrasonic sensor is an input source that calculates the distance to the object using
sonar (and sound navigation and ranging). The system we use as the sonar allows us to obtain
the dimension of the crescent distance using sound waves. You can see the HC-SR04 Ultrasonic
Sensor used in the robot in Figure 13. [9]
Figure 13 : HC- SR04 Ultrasonic Sensor
Features
Power Supply: + 5V DC
Minimum current: <2mA
Operating current: 15mA
Operating frequency: 40 kHz
Effective Angle: <15 degrees
Distance measurement between: 2cm - 400cm
Sensitivity: 0.3cm
Trigger input pulse width: 10uS
Size: 45mm x 20mm x 15mm
Layout
VCC = + 5V DC
Trig = Trigger part of the sensor
31. 22
Echo = Receiver part of the sensor
GND = Grounding part
5.2.10 Wheels
It is a quality robot wheel that you can easily use in your line watching robot and special robot
projects. The tires of the wheels are serrated and the friction is high. They can be used with
motors with a 3 mm D shaft radius. The motor shaft is mounted directly on the wheel. You can
see the wheels used of the robot in Figure 14.
Figure 14 : Wheels
5.2.11 Robot Chassis
The robot's chassis is a skeleton that carries all the robot's materials. The line drawing robot
should have a light and long design. The distance between the motor axis and the sensor distance
must be at the robot data processing speed.
32. 23
5.3 Reasonsfor Using Materials on the Robot
5.3.1 Arduino Uno
The announcement process was selected because Arduino Uno only performed the sound
synthesis process.
5.3.2 Dc Motors
Dc motors have been chosen because their ideal operating voltage can be fed by the power
supply of the robot, so it has the feature of carrying the weight of the assembly, size and power
of the robot.
5.3.3 Motor Driver
It is chosen because it supports 6V-12V motors and we can get enough pin number from the
driver.
5.3.4 CNY70 Sensor
It has been selected because of its sensitivity to light and its sensitivity to distance from the
ground.
5.3.5 Speaker
Speaker has 0.5 Watt 8 Ohm resistance, so our robot can be fed comfortably with power supply.
Because high power and resistive speakers require size and powerful amp, a speaker type that
can be used in prototype robots has been chosen.
5.3.6 Li-po Battery
This battery has been chosen to provide long-term energy needs and to use the required current
constantly and regularly.
5.3.7 HC-SR04 Ultrasonic Distance Sensor
It has features that can meet the needs of the robot, is adjustable with a range of distances, and
this distance sensor is preferred because it has a certain height.
5.3.8 NRF24L01 2.4 GHz Transceiver Module
According to the project, two identical modules are used to provide bidirectional
communication, both as transmitter and receiver, easy programming is preferred because of its
low power consumption and 2.4 GHz frequency.
33. 24
5.3.9 Amplifier Circuit
The volume is not sufficient if the arduino pin voltage in the program is low to get sound output.
So we have to use an external amplifier circuit. You can see amplifier circut in Figure 15.
Figure 15 : Amplifier Circuit
5.3.10 Wheels
Considering the size of the fiberglass body we designed and the weight of the robot, a thin base
wheel selection was made to minimize friction of the wheels with the surface.
5.3.11 Robot Chassis
The electronic materials fixed on the chassis are chosen because they can be fitted with fittings
in a suitable way. Plexiglass has been chosed as being durable and hard and workable material.
34. 25
CHAPTER 6
ROBOT ASSEMBLY AND CREATE OF BODY WITH
FIBERGLASS
6.1 RobotAssembly
1) The motors are mounted on the position suitable for the chassis. The motors are mounted
on the rear of the chassis to efficiently receive their power.
2) Thin bottom plastic wheels are used to make the engine more power efficient and reduce
engine power. The motor and the wheel position are appropriate (the wheel is on the
engine shaft).
3) The Arduino board has been installed on the chassis with extra connection apparatus.
4) Since the motor driver is compatible with ardino, the arduino and motor driver are
combined in a folded system.
5) The battery (li-po battery) is connected to the + 12V supply inputs of the motor drive.
6) The 470 ohms and 10K robot will follow the line, CNY70 (3 units) sensors are soldered
on 470 ohms and 10K resistors on our own plaque board. Then the sensor board was
mounted on the front of the chassis.
7) The outputs of these sensors are connected to the inputs on the motor drive.
8) The ultrasonic sensor pins are connected to the pins we have set on Arduino, so that
communication with Arduino has been realized. You can see the robot assembly with
materials in Figure 16.
Figure 16 : Robot Assembly with Materials
35. 26
6.2 Create of Body with Fiberglass
Using Fiberglass, we aimed to create an animal mold for our robot.The basic principle of this
purpose is to reduce the weight of the robot to minumum.
Used Materials
Fiberglass.
Hardener cream.
Plastic teddy bear.
Aluminium foil.
Mask.
Glove.
6.3 Materials Usedand Reasonsfor Use
6.3.1 Fiberglass
The basic principle for using glass fiber is to get more efficiency from the motors by reducing
the weight of the robot. You can see the fiberglass material used in Figure 17.
Figure 17 : Fiberglass
6.3.2 Hardener Cream
Our goal of using hardener cream is to dry fiberglass in a faster and healthier way.
6.3.3 Plastic Teddy Bear
In line with our teachers' desires, we decided that the robot body should be in the mold of a
bear. As a result of researches and observations we made, we bought the most suitable plastic
toy bear and used it for body shape. You can see the plastic toy tank used for the robot in Figure
18.
36. 27
Figure 18 : Plastic Teddy Bear
6.3.4 Aluminium Foil
Is a practical material we use to distinguish between fiberglass and plastic toy.
6.3.5 Mask and Glove
Our goal is to use the mask and gloves, fiberglass is a chemical material. We protected ourselves
in this way because we thought it could be harmful to human health.
6.4 Production Stage
The mixture obtained by mixing the purchased fiberglass and cream was poured onto plastic
toy and the mold was removed and it was expected to dry. Aluminum foil was used to
discriminate between foil and toys. This process is made in two separate ways for the body and
head. After drying, the sanding process was carried out. You can see the molding step of the
plastic toy in Figure 19.
Figure 19 : Plastic Toy Mold Stage
37. 28
6.5 Assembly of Body and Chassis
Four guide iron for chassis and body assembly were used at equal heights. We use the bolt nut
for assembly robot chassis and body. We will isolate the iron with the electric tape to prevent
any short circuit through the iron. You can see the chassis and body assembly with iron in
Figure 20-21.
Figure 20 : Body and Chassis Connection with Iron and Nut
Figure 21 : Assembly Body and Chassis Connection with Iron and Nut
We made the robot shank with fiberglass because it needs to be protected from external factors.
You can see the coating process with the robotic felt in Figure 22 – 23. But it needs to be outside
to be able to use our distance sensor.we opened two holes in front of our robot (head) and pulled
outside the sensor tips. So that the sensor can perform its duty and the materials can be safely
protected against external factors. You can see the sensor placement on the robot in Figure 24.
38. 29
Figure 22 : Molding Process with Felt
Figure 23 : Body Coating Process with Felt
Figure 24 : Sensor Placement on the Robo
39. 30
CHAPTER 7
COMPARED PROBLEMS AND SOLUTIONS
7.1 Do not follow the robot line
In the purchased QTR3A sensor circuit, the sensor was replaced by a CNY70 sensor circuit
because the sensor on the left side did not see the sensor line and the motors did not move in
the direction of rotation.
7.2 SensorMalfunction Ultrasonic
The trigger pin on the ultrasonic sensor was defective due to the obstacle detection of the robot,
so it was replaced with the same one which is robust.
7.3 PowerSource
The Lipo 1350 was replaced with a more professional Lipo 1350 ma unit because of the current
imbalance in the 9 V battery that we started to use after the first assembly of the robot and the
loss of power in a short time.
7.4 Arduino Mega Problem
Arduino Uno was used because there was no sound synthesizing feature in Arduino Mega.
40. 31
CHAPTER 8
COMMUNICATION BETWEEN OF ARDUINO
The goal is to be able to communicate between the computer and the robot through our modules,
which have wireless RF signaling capability, to announce the desired audible signal. The
arduino communication codes used by the operator are sent to the receiver via the transmitter.
Subsequently, the sent commands are converted into sentences that we have defined in the
arduino that is connected to the receiver module. Using the sound synthesis feature of arduino
uno, the sound from the speaker is output.
8.1 RF Signal
In publishing, information such as sound, image and data are transmitted by means of a higher
frequency electromagnetic wave. High frequency wave is called radio frequency. This wave is
indicated by RFC. (If the information carried by RF is also sound, it is indicated by AF and the
image is indicated by VF abbreviation.
An RF transmitter is built, modulated, and then transmitted after passing through mixers and
amplifiers; ie sent to buyers.
The RF speed is equal to the speed of light in space. 𝑐 = 3𝑥108
41. 32
APPENDIX I
Section 1 : Line Following Software
const int sag_i = 12;
const int sag_g = 3;
const int sol_i = 13;
const int sol_g = 11;
const int sol_sensor = A5;
const int sag_sensor = A3;
const int orta_sensor = A4;
int sol_durum, sag_durum,orta_durum;
int Buzzer = A2;
int trigPin = 9;
int echoPin = 10; void setup()
{
pinMode(sag_i, OUTPUT);
pinMode(sag_g, OUTPUT);
pinMode(sol_i, OUTPUT);
pinMode(sol_g, OUTPUT);
pinMode(Buzzer, OUTPUT);
pinMode(sag_sensor, INPUT);
pinMode(sol_sensor, INPUT);
pinMode(trigPin, OUTPUT);
pinMode(echoPin,INPUT);
Serial.begin(9600);
pinMode(Buzzer,OUTPUT);
}