Professional Documents
Culture Documents
Relay
Motor- 4
Arduino
Android
Bluetooth Nano LM – 298
App
module Atmega H – Bridge Module
HC - 06 Motor- 3
328
Motor- 1 Motor- 2
Figure 4.2 Overall block diagram of grass cutter robot with Bluetooth module
4.2.Block Operation
The android application from the smart phone controls the operation of grass
cutter robot. Android application sends signals that are commanded by user to
Bluetooth module. Bluetooth module sends received signals to Arduino Nano
(ATmega 328P) microcontroller. Arduino Nano controls the operation of relay
ON/OFF condition that controls cutting motor and controls the L298N H-Bridge
Module that controls the DC motors from moving part. All of the system is powered
by 12V DC battery.
4.3.Circuit Diagram
RX
Bluetooth TX
HC-06 GND
VCC 3.3V
+5V VCC NO +
GND NC Motor
D13 D12 IN COM -
3V3 D11
RLF D10
D9
A1 D8
A2 D7
A3 D6
A4 ARDUINO D5
A5 NANO D4
A6 AT MEGA D3
A7 328 D2
+5V 5V GND
RST RST
GND RXO
VIN T X1
L 298 N +
+ H-Bridge MOT OR 4
MOT OR 1 Out 1 Out 4 -
-
- -
Out 2 Out 3 MOT OR 3
MOT OR 2
+ +
12V GND 5V IN1 IN2 IN3 IN4
+12V +5V
The running time of the grass cutter robot depends on the power from the
battery. This thesis use 12V ,5.4 A/h battery. So, calculation for the running time is
the following.
From the upper calculation, the running time of the grass cutter robot is 9
hours.
4.5.Software Implementation
Firstly, the program writing for the grass cutter robot starts with the definition
of devices’ pin (Figure 4.4). And then, declaration of the input/output for all system
devices and checking the serial data are written at void setup () (Figure 4.5). If serial
data is getting, all of the system of the robot is operated by the serial data from
Bluetooth module. Operation states for the grass cutter robot are written in void loop
()(Figure 4.6).
Interface with
arduino
Read the
command from
the arduino
bluetooth RC
car appliication
No
Is left Yes
Car moves left.
direction?
No
Is right Yes
Car moves right.
direction?
No
Yes
Stopping the
motion of car..
No Is switch on to the
blade of system?
Yes
End
The steps of the programming flow chart of the grass cutting robot are following.
First step: The initialization of the system input and output devices.
Second step: Reading the commands from the serial data of Arduino Bluetooth
RC car android application.
Fourth step: operation of the grass cutting section of the robot is written.
Final step: All of the process is completed, all of the running system are stopping.
4.9.
Simulation Progress
Proteus Simulation
ISIS is the software used to draw schematics and simulate the circuits
in real time.The simulation allows human access during run time,thus
providing real time simulation.
ARES is used for PCB designing.It has the feature of viewing output
in 3D view of the designed PCB along with components.
The designer can also develop 2D drawings for the product.
Features
ISIS has wide range of components in its library. It has sources, signal
generators, measurement and analysis tools like oscilloscope, voltmeter,
ammeter etc., probes for real time monitoring of the parameters of the circuit,
switches, displays, loads like motors and lamps, discrete components like
resistors, capacitors, inductors, transformers, digital and analog Integrated
circuits, semi-conductor switches, relays, microcontrollers, processors, sensors
etc.
Step 1: Open ISIS software and select New design in File menu
Step 2: A dialogue box appears to save the current design. However,
we are creating a new design file so you can click Yes or No depending on the
content of the present file. Then a Pop-Up appears asking to select the
template. It is similar to selecting the paper size while printing. For now
select default or according to the layout size of the circuit.
Step 3:An untitled design sheet will be opened, save it according to your wish,it is
better to create a new folder for every layout as it generates other files supporting
your design. However, it is not mandatory.
Step 4:To Select components, Click on the component mode button.
Component Mode
The testing of the grass cutter robot with Bluetooth module simulates at the
Proteus software. Firstly, components to be used are searched in components mode,
terminal mode, and instruments sections. And then, picked components are placed and
connected them. If all of the connection of components are checking right or wrong. If
all connection is right, user open Arduino software and run the program. After
running program, HEX file path copies from the Arduino software. This path is pasted
to the edit component mode of microcontroller. All of the above steps are completed,
simulation is starting. The results of the simulation are shown in figure 4.8.
The simulation for the grass cutter robot operation is used Proteus simulation
software. At the running of simulation, virtual terminal is used for checking the
receiving signals from Bluetooth module.
Figure 4.8. (a) Forward condition of the grass cutter robot at simulation
Figure 4.8. (b) Reverse condition of the grass cutter robot at simulation
Figure 4.8. (c) Right condition of the grass cutter robot at simulation
Figure 4.8. (d) Left condition of the grass cutter robot at simulation
Figure 4.8. (e) Pump motor ON condition of the grass cutter robot at simulation
Figure 4.8. (f) Pump motor OFF condition of the grass cutter robot at simulation
Figure 4.9 Final results for the simulation of grass cutter robot
The hardware testing of the grass cutter robot with Bluetooth module includes
the following steps.
The testing of the forward and reverse controlling of grass cutter robot uses
four DC motor (300rpm), L298N motor driver and Arduino Nano microcontroller.
The positive and negative of the left-side two dc motor are connected with parallel
and the positive line of the motors are connect the OUT1 of the L298N motor driver.
The negative line of the motors are connect the OUT2 of the L298N motor driver. The
positive and negative of the right-side two dc motor are connected with parallel and
the positive line of the motors are connect the OUT3 of the L298N motor driver. The
negative line of the motors are connect the OUT4 of the L298N motor driver.
The control signal pins of the L298N motor driver is connected to the Arduino
Nano microcontroller. When microcontroller provides the signals, motor driver drives
forward and reverse movement and left turning and right turning movement. The
control process of motor forward and reverse movement is shown in table 4.1. The
movement of the robot is shown in figure 4.11.
12V OUT1
GND OUT2
L298 MOTOR
5V DRIVER - +
OUT3 Right DC
12V
IN1 IN2 IN3 IN4 OUT4 motors
5 6 9 10 Left DC
12V - motors
GND ARDUINO Nano
The testing of grass cutting motor is controlled with Arduino Nano and Relay
module. When microcontroller is not provided any signals to relay module, relay
module doesn’t operates cutting motor. If microcontroller is provided any signals to
relay module, relay module operates cutting motor. The operation of the cutter motor
driving is shown in figure 4.12.
After above the testing is completed, all the system of the robot start to
running. Grass cutter robot operates under the commands of the user. User controls
the operation of robot with android app at smart phone. The testing of the grass cutter
robots operation is shown in figure 4.13.
Figure 4.14 Testing results of the grass cutter robot