Professional Documents
Culture Documents
AGRICULTURAL ROBOT
A PROJECT REPORT
Submitted by
V.DINESH 411519106005
M.KARTHICK KUMAR 411519106009
M.KAVIPRIYA 411519106010
D.SHALANI 411519106024
BACHELOR OF ENGINEERING
in
ELECTRONICS AND COMMUNICATION ENGINEERING
MAY 2023
ANNA UNIVERSITY: CHENNAI 600 025
BONAFIDE CERTIFICATE
SIGNATURE SIGNATURE
ii
ACKNOWLEDGEMENT
We are very much indebted to our PARENTS and FRIENDS for the
continuous support & encouragement throughout the project successfully.
iii1
ABSTRACT
The paper aims on the design, development and the fabrication of the robot which
can dig the soil, leveller to close the mud and sprayer to spray water, these whole
systems of the robot work with the battery More than 40% of the population in the
world chooses agriculture as the primary occupation, in recent years the
development of the autonomous vehicles in the agriculture has experienced
increased interest. The vehicle is controlled by Relay. The advantages of these robots
are hands-free and fast data input operations. In the field of agricultural autonomous
vehicle, a concept is been developed to investigate if multiple small autonomous
machines could be more efficient than traditional large tractors and human forces.
2
iv
TABLE OF CONTENT
CHAPTER TITLE PAGE NO
NO
ABSTRACT iv
LIST OF FIGURES ix
LIST OF ABBREVIATIONS xi
1 INTRODUCTION 1
1.1 EMBEDDED SYSTEM 2
1.1.1 CLASSIFICATION OF 3
EMBEDDED SYSTEMS
1.1.2 BLOCK DIAGRAM OF AN 4
EMBEDDED SYSTEM
1.1.3 EMBEDDED SYSTEM 5
APPLICATION
1.2 INTERNET OF THINGS 5
1.3 HOW IOT WORKS 7
1.3.1 BENEFITS OF IOT 8
1.3.2 CONSUMER AND ENTERPRISE 9
IOT APPLICATIONS
2 LITERATURE REVIEW 10
3 METHODOLOGY 14
3.1 PROJECT DESCRIPTION 14
3.2 WORKING PRINCIPLE 14
3.3 BLOCK DIAGRAM OF THE 15
3
V
PROJECT
3.4 HARDWARE REQURIMENT 15
3.5 SOFTWARE REQURIMENT 15
5 POWER SUPPLY
5.1 DEFINITION 21
5.2 BLOCK DIAGRAM OF A BASIC 21
POWER SUPPLY
5.3 SIMPLE 5V SUPPLY FOR 22
DIGITAL CIRCUITS
5.4 CIRCUIT DESCRIPTION 23
5.4.1 CIRCUIT DIAGRAM OF THE 23
POWER SUPPLY
5.5 COMPONENT LIST 24
5.6 MORE OUTPUT CURRENT
24
5.6.1 OTHER OUTPUT VOLTAGES
4
vi
5.6.2 SOIL MOISTURE SENSOR 25
5.6.3 SOIL MOISTURE SENSOR PIN 25
CONFIGURATION
5.6.4 HOW THE SENSOR WORKS 26
5.6.5WORKING PRINCIPLE 26
5.6.6 SPECIFICATIONS 27
5.6.7 SOIL MOISTURE SENSOR 27
APPLICATIONS
5.7 DC MOTOR 27
5.7.1WORKING 28
5.7.2 CONTROL OF DC MOTOR 30
5.7.3 MAIN TYPES OF DC MOTORS 31
5.7.4. PERMANENT MAGNET DC
MOTORS 31
5.7.5. SERIES DC MOTORS 31
5.7.6. SHUNT DC MOTORS 31
5.7.7 COMPOUND DC MOTORS 32
8 CONCLUSION 42
5
Vii
8.1 FUTURE WORK 43
REFERENCES 51
Viii
6
LIST OF FIGURES
ix
7
5.3 Increasing the output voltage 26
5.5 Electromagnet 28
5,8 DC Motor 29
x
8
LIST OF ABBREVIATION
9
xi
CHAPTER 1
INTRODUCTION
Agriculture is the backbone of India. The history of Agriculture in India dates
back to Indus Valley Civilization Era and even before that in some parts of Southern
India. Today, India ranks second worldwide in farm output. The special vehicles
play a major role in various fields such as industrial, medical, military applications
etc., The special vehicle field are gradually increasing its productivity in agriculture
field. Some of the major problems in the Indian agricultural are rising of input costs,
availability of skilled labours, lack of water resources and crop monitoring. To
overcome these problems, the automation technologies were used in agriculture. The
automation in the agriculture could help farmers to reduce their efforts. The vehicles
are being developed for the processes for ploughing, levelling, water spraying. All
of these functions have not yet performed using a single vehicle. In this the robots
are developed to concentrate in an efficient manner and also it is expected to perform
the operations autonomously. The proposed idea implements the vehicle to perform
the functions such as ploughing, seed sowing, mud levelling, water spraying. These
functions can be integrated into a single vehicle and then performed. The idea of
applying robotics technology in agriculture is very new. We can expect the robots
performing agricultural operations autonomously such as ploughing, seed sowing,
mud closing and water spraying. Watching the farms day & night for an effective
report, allowing farmers to reduce the environmental impact, increase precision and
efficiency, and manage individual plants in novel ways The applications of
instrumental robotics are spreading every day to cover further domains.
1
10
1.1 EMBEDDED SYSTEM:
An embedded system is a controller programmed and controlled by a real-
time operating system (RTOS) with a dedicated function within a larger mechanical
or electrical system, often with real-time consumption of embedded systems
computing constraints.
3
devices such as digital watches and MP3 players, to large stationary installations.
Complexity varies from low, with a single microcontroller
4
1.1.3 EMBEDDED SYSTEMS APPLICATIONS:
• Embedded systems in automobiles include motor control, cruise control, body
safety, engine safety, robotics in an assembly line, car multimedia, car
entertainment, E-com access, mobiles etc.
• Embedded systems in telecommunications include networking, mobile
computing, and wireless communications, etc.
• Embedded system in smart cards include banking, telephone and security
systems.
• Embedded Systems in satellites and missiles include defence, communication,
and aerospace
• Embedded systems in computer networking & peripherals include image
processing, networking systems, printers, network cards, monitors and
displays
• Embedded Systems in digital consumer electronics include set-top boxes,
DVDs, high-definition TVs and digital cameras.
5
Connectivity, Widespread Adoption of IP-based Networking, Computing
Economics, Miniaturization, Advances in Data.
• Connectivity Models: IoT implementations use different technical
communications models, each with its own characteristics. Four common
communications models described by the Internet Architecture Board
include: Device-to-Device, Device-to-Cloud, Device-to-Gateway, and Back-
End Data-Sharing. These models highlight the flexibility in the ways that IoT
devices can connect and provide value to the user.
6
microcontroller is explained. IoT devices often use an operating system to support
the interaction between the software and the microcontroller. We will define the
role of an operating system in an IoT device and how an IoT operating system differs
from a standard one.
8
1.3.2 CONSUMER AND ENTERPRISE IOT APPLICATIONS:
There are numerous real-world applications of the internet of things, ranging from
consumer IoT and enterprise IoT to manufacturing and industrial IoT (IoT). IoT
applications span numerous verticals, including automotive, telco, energy and more.
In the consumer segment, for example, smart homes that are equipped with smart
thermostats, smart appliances and connected heating, lighting and electronic devices
can be controlled remotely via computers, smartphones or other mobile devices.
Wearable devices with sensors and software can collect and analyse user data,
sending messages to other technologies about the users with the aim of making users'
lives easier and more comfortable. Wearable devices are also used for public safety
-for example, improving first responders' response times during emergencies by
providing optimized routes to a location or by tracking construction workers' or
firefighters' vital signs at life-threatening sites.
9
CHAPTER 2
LITERATURE REVIEW
10
panel gets heated it converts sunlight into electricity. This electrical energy is fed
into the charging circuit. The charging circuit will work according to maximum
power point tracking (MPPT) protocol to generate pulsed voltage and also avoids
reverse current. The pulsed voltage is given to battery in order to charge it. The
charging of battery is controlled with the help of voltage sensors. Since battery is
bidirectional it will charge and supply voltage to Arduino at a time. The voltage
supply with sustained oscillation is fed into Arduino with the aid of high pass filter.
The channel relay provides voltage supply to all different mechanisms. The motor
driver is used to drive the DC motors which run the robot.
11
H-bridge drivers are used to drive inductive loads that requires forward and reverse
function with speed control such as DC Motors, and Stepper Motors. It uses the
popular L298 motor driver IC and has an on-board 5V regulator which it can supply
to an external circuit. It can control up to 4 DC motors, or 2 DC motors with
directional and speed control. Motor drivers acts as an interface between the motors
and the control circuits. Motor requires high amount of current whereas the
controller circuit works on low current signals. So, the function of motor drivers is
to take a low-current control signal and then turn it into a higher-current signal that
can drive a motor.
12
process has various advantages in sowing the seeds. Seed sowing robot is regulated
and hand-operated. It slashes the exercise of farmers and increases the potential of
seed sowing compared to normal planting. In this system we are operating an
automated seed sowing robot. It consists of Arduino at mega 328P microcontroller
l293ddriver, battery, servomotor, ultrasonic sensor, soil moisture sensor. Robot will
sow the seed on the ground until it finds an obstacle. If the obstacle is found it stops
and before sowing the seed on the field it usually turns right thus moving forward.
Aruna Devi, Bharathi R ‘Robot Control Using Mobile Phone’. I have not
received any update regarding paper. This is my final warning. If not submitted I
have to reduce marks. Recently, robot technology has gained popularity because of
labour shortage, ability to work for long hours, etc. Conventionally, wireless control
robots use RF circuits, which have the drawbacks of limited working range, limited
frequency range and limited control. Use of a mobile phone for robotic control can
overcome these limitations. It provides the advantages of robust control, working
range as large as the coverage area of the service provider.
13
CHAPTER 3
METHODOLOGY
The aim of this paper is to develop a multipurpose machine, which is used for
digging the soil and leveller to close the mud and water sprayer to spray water with
least changes in accessories with minimum cost. This whole system of the robot
works with the battery controlled through mobile. The base frame is made for the
robot with 4 wheels connected and driven the rear wheel is dc motor. One end of the
frame, cultivator is fitted which is also driven by dc motor and design is made to dig
the soil. water pump sprayer to spray the water. The whole robot requires the 12v
battery to operate the system. IR transmitter and IR receiver is used to control the
operation of the vehicle. Moisture sensor is used to sense the water level in the
ground and turn on and turn off the pumping motor depending on water level.
14
3.3 BLOCK DIAGRAM OF THE PROJECT
• Arduino IDE
• Embedded C
15
CHAPTER 4
HARDWARE DESCRIPTION
16
reference versions of Arduino, moving forward. The Uno is the latest in a series of
USB.
4.2 POWER:
VIN: The input voltage to the Arduino board when it's using an external power
source (as opposed to 5 volts from the USB connection or other regulated power
source). You can supply voltage through this pin, or, if supplying voltage via the
power jack, access it through this pin.
5V. This pin outputs a regulated 5V from the regulator on the board. The board can
be supplied with power either from the DC power jack (7 - 12V), the USB connector
(5V), or the VIN pin of the board (7-12V). Supplying voltage via the 5V or 3.3V
pins bypasses the regulator, and can damage your board. We don't advise it.
17
GND. Ground pins.
4.3 MEMORY
The ATmega328 has 32 KB (with 0.5 KB used for the bootloader). It also
has 2 KB of SRAM and 1 KB of EEPROM (which can be read and written with
the EEPROM library). Input and Output Each of the 14 digital pins on the Uno can
be used as an input or output, using pin Mode (), digital Write (), and digital Read
() functions. They operate at 5 volts. Each pin can provide or receive a maximum
of 40 mA and has an internal pull-up resistor (disconnected by default) of 20-50
Kilo ohms.
4.3.1 FUNCTIONS OF PIN
Serial: 0 (RX) and 1 (TX). Used to receive (RX) and transmit (TX) TTL serial
data.These pins are connected to the corresponding pins of the ATmega8U2 USB-
to-TTL Serial chip.
External Interrupts: 2 and 3. These pins can be configured to trigger an
interrupt on a low value, a rising or falling edge, or a change in value. See the attach
Interrupt () function for details.
PWM: 3, 5, 6, 9, 10, and 11. Provide 8-bit PWM output with the analog Write
() function.
SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK). These pins support SPI
communication using the SPI library.
LED: 13. There is a built-in LED connected to digital pin 13. When the pin
is HIGH value, the LED is on, when the pin is LOW, it's off. The Uno has 6 analog
inputs, labeled A0 through A5, each of which provide 10 bits of resolution (i.e., 1024
different values). By default, they measure from ground to 5 volts, though is it
18
possible to change the upper end of their range using the AREF pin and the analog
Reference () function. Additionally, some pins have specialized functionality:
TWI: A4 or SDA pin and A5 or SCL pin. Support TWI communication using
the Wire library. There are a couple of other pins on the board: AREF. Reference
voltage for the analog inputs. Used with analog Reference (). Reset. Bring this line
LOW to reset the micro controller. Typically used to add a reset button to shields
which block the one on the board. See also the mapping between Arduino pins and
ATmega328 ports. The mapping for the Atmega8, 168, and 328 is identical.
Communication the Arduino Uno has a number of facilities for communicating with
a computer, another Arduino, or other micro controllers.
The ATmega328 provides UART TTL (5V) serial communication, which is
available on digital pins 0 (RX) and 1 (TX). An ATmega16U2 on the board channels
this serial communication over USB and appears as a virtual com port to software
on the computer. The '16U2 firmware uses the standard USB COM drivers, and no
external driver is needed.
However, on Windows, a .inf file is required. The Arduino software includes
a serial monitor which allows simple textual data to be sent to and from the Arduino
board. The RX and TX LEDs on the board will flash when data is being transmitted
via the USB-to-serial chip and USB connection to the computer (but not for serial
communication on pins 0 and 1). A Software Serial library allows for serial
communication on any of the U no's digital pins. The ATmega328 also supports I2C
(TWI) and SPI communication. The Arduino software includes a Wire library to
simplify use of the I2C bus; see the documentation for details. For SPI
communication, use the SPI library.
19
4.4 PIN CONFIGURATION:
The transformer steps up or steps down the input line voltage and isolates
the power supply from the power line. The rectifier section converts the alternating
current input signal to a pulsating direct current. However, as you proceed in this
chapter you will learn that pulsating dc is not desirable. For this reason, a filter
section is used to convert pulsating dc to a purer, more desirable form of dc
voltage.
The final section, the regulator, does just what the name implies. It maintains
the output of the power supply at a constant level in spite of large changes in load
current or input line voltages. Now that you know what each section does, let's trace
21
an AC signal through the power supply. At this point you need to see how this signal
is altered within each section of the power supply. Later on, in the chapter you will
see how these changes take place. In view B of figure 4-1, an input signal of 115
volts AC is applied to the primary of the transformer. The transformer is a step-up
transformer with a turn’s ratio of 1:3. We can calculate the output for this transformer
by multiplying the input voltage by the ratio of turns in the primary to the ratio of
turns in the secondary; therefore, 115 volts AC´ 3 = 345 volts ac (peak-to- peak) at
the output. Because each diode in the rectifier section conducts for 180 degrees of
the 360-degree input, the output of the rectifier will be one-half, or approximately
173 volts of pulsating DC. The filter section, a network of resistors, capacitors, or
inductors, controls the rise and fall time of the varying signal. Consequently, the
signal remains at a more constant DC level. We will see the filter process more
clearly in the discussion of the actual filter circuits. The output of the filter is a signal
of 110 volts dc, with ac ripple riding on the dc. The reason for the lower voltage
(average voltage) will be explained. The regulator maintains its output at a constant
110-volt dc level, which is used by the electronic equipment (more commonly called
the load).
22
• Availability of components: Easy to get, uses only very common basic
components.
This circuit can give +5V output at about 150 mA current, but it can be
increased to 1 A when good cooling is added to 7805 regulator chip. The circuit has
over overload and terminal protection.
23
The capacitors must have enough high voltage rating to safely handle the
input voltage feed to circuit. The circuit is very easy to build into a piece of Vero
board.
1. Unregulated voltage in
2. Ground
3. Regulated voltage out
• Change the transformer from where we take the power to the circuit to a
model which can give as much current as we need from output
• Put a heat sink to the 7805 regulators (so big that it does not overheat
because of the extra losses in the regulator)
24
Fig:5.3 Increasing the Output Voltage
If we need other voltages than +5V, we can modify the circuit by replacing
the 7805 chips with another regulator with different output voltage from regulator
78xx chip family. The last numbers in the chip code tells the output voltage. The
input voltage must be at least 3V greater than regulator output voltage to otherwise
the regulator does not work well.
The soil moisture sensor is one kind of sensor used to gauge the volumetric
content of water within the soil. As the straight gravimetric dimension of soil
moisture needs eliminating, drying, as well as sample weighting.
These sensors measure the volumetric water content not directly with the
help of some other rules of soil like dielectric constant, electrical resistance,
otherwise interaction with neutrons, and replacement of the moisture content.
The relation among the calculated property as well as moisture of soil should
be adjusted & may change based on ecological factors like temperature, type of soil,
otherwise electric conductivity.
25
The microwave emission which is reflected can be influenced by the moisture
of soil as well as mainly used in agriculture and remote sensing within hydrology.
This module also includes a potentiometer that will fix the threshold value, &
the value can be evaluated by the comparator-LM393. The LED will turn on/off
based on the threshold value.
26
The sensor averages the water content over the entire length of the sensor.
There is a 2 cm zone of influence with respect to the flat surface of the sensor, but it
has little or no sensitivity at the extreme edges.
5.6.6 SPECIFICATIONS
• The required voltage for working is 5V
• The required current for working is <20mA
• Type of interface is analog
• The required working temperature of this sensor is 10°C~30°C
5.7 DC MOTOR
27
A DC motor is any of a class of rotary electrical machines that converts direct
current electrical energy into mechanical energy. The most common types rely on
the forces produced by magnetic fields. Nearly all types of DC motors have some
internal mechanism, either electromechanical or electronic, to periodically change
the direction of current flow in part of the motor.
DC motors were the first type widely used, since they could be powered from
existing direct-current lighting power distribution systems. A DC motor's speed can
be controlled over a wide range, using either a variable supply voltage or by
changing the strength of current in its field windings. Small DC motors are used in
tools, toys, and appliances. The universal motor can operate on direct current but is
a lightweight brushed motor used for portable power tools and appliances. Larger
DC motors are used in propulsion of electric vehicles, elevator and hoists, or in
drives for steel rolling mills. The advent of power electronics has made replacement
of DC motors with AC motors possible in many applications.
5.7.1 WORKING
The DC motor is a machine that transforms electric energy into mechanical
energy in form of rotation. Its movement is produced by the physical behaviour of
electromagnetism. DC motors have inductors inside, which produce the magnetic
field used to generate movement. But how does this magnetic field changes if DC
current is being used
28
Fig:5.5 Electro Magnet
An electromagnet, which is a piece of iron wrapped with a wire coil that has
voltage applied in its terminals. If two fixed magnets are added in both sides of
this electromagnet, the repulsive and attractive forces will produce a torque.
29
Fig:5.8 DC Motor
This way, as the electromagnet is moving its polarity is changing and the shaft
may keep rotating. Even if it is simple and sounds that it will work great there are
some issues which make these motors energy inefficient and mechanically
unstable, the principal problem is due to the timing between each polarity
inversion. Since polarity in the electromagnet is changed mechanically, at some
velocities polarity is changing too soon, which result in reverse impulses and
sometimes in changing too late, generating instantaneous “stops” in rotation.
Whatever the case, these issues produce current peaks and mechanical instability.
30
is not a third wire to control a DC motor, but knowing the previous behaviours it can
be designed a way to control it, and the solution is an H-bridge.
31
The permanent magnet motor uses a permanent magnet to create field flux.
This type of DC motor provides great starting torque and has good speed regulation,
but torque is limited so they are typically found on low horsepower applications.
5.7.3.2 SERIES DC MOTORS
In a series DC motor, the field is wound with a few turns of a large wire
carrying the full armature current. Typically, series DC motors create a large amount
of starting torque, but cannot regulate speed and can even be damaged by running
with no load. These limitations mean that they are not a good option for variable
speed drive applications.
5.7.3.3. SHUNT DC MOTORS
In shunt DC motors the field is connected in parallel (shunt) with the armature
windings. These motors offer great speed regulation due to the fact that the shunt
field can be excited separately from the armature windings, which also offers
simplified reversing controls.
32
CHAPTER 6
SOFTWART REQUIREMENTS DETAILS
6.1 EMBEDDED C
Embedded C is most popular programming language in software field for
developing electronic gadgets. Each processor used in electronic system is
associated with embedded software.
33
The Embedded C code written in above block diagram is used for blinking the
LED connected with Port0 of micro controller.In embedded system programming C
code is preferred over other language. Due to the following reasons:
• Easy to understand
• High Reliability
• Portability
• Scalability
Web applications are rarely used, although XML files and other output may
be passed to a computer for display. File systems with folders are typically absent as
are SQL databases.
34
Software development requires use of a cross compiler, which runs on a
computer but produces executable code for the target device. Debugging requires
use of an in-circuit emulator, JTAG or SWD. Software developers often have access
to the complete kernel (OS) source code.
Size of the storage memory and RAM can vary significantly. Some systems
run in 16 KB of Flash and 4 KB of RAM with a CPU operating at 8 MHz, other
systems can rival contemporary computers.[8] These space requirements lead to
more work being done in C or embedded C++, instead of C++. Interpreted languages
like BASIC (while e.g. Parallax Propeller can use compiled BASIC) and Java (Java
ME Embedded 8.3[9] is available for e.g. ARM Cortex-M4, Cortex-M7 micro
controllers and older ARM11used in Raspberry Pi and Intel Galileo Gen. 2) are not
commonly used; while an implementation of the interpreted Python 3
language – Micro Python – is however available expressly for micro controller use,
e.g. 32-bit ARM-based (such as BBC micro: bit) and 16-bit PIC micro controllers.
35
Fig 6.2 Embedded C program with examples
• bit
• sbit
• sfr
• small
• large
These are few of the many keywords associated with the Cx51 C Compiler along
with the standard C Keywords.
36
6.2 ARDUINO IDE
Arduino is an open-source platform used for building electronics projects.
Arduino consists of both a physical programmable circuit board (often referred to as
a microcontroller) and a piece of software, or IDE (Integrated Development
Environment) that runs on your computer, used to write and upload computer code
to the physical board.
The Arduino platform has become quite popular with people just starting out
with electronics, and for good reason. Unlike most previous programmable circuit
boards, the Arduino does not need a separate piece of hardware (called a
programmer) in order to load new code onto the board – you can simply use a USB
cable. Additionally, the Arduino IDE uses a simplified version of C++, making it
easier to learn to program. Finally, Arduino provides a standard form factor that
breaks out the functions of the micro-controller into a more accessible package.
The Arduino hardware and software were designed for artists, designers,
hobbyists, hackers, newbies, and anyone interested in creating interactive objects or
environments. Arduino can interact with buttons, LEDs, motors, speakers, GPS
units, cameras, the internet, and even your smart-phone or your TV! This flexibility
combined with the fact that the Arduino software is free, the hardware boards are
pretty cheap, and both the software and hardware are easy to learn has led to a large
community of users who have contributed code and released instructions for
a huge variety of Arduino-based projects
There are many varieties of Arduino boards (explained on the next page) that
can be used for different purposes. Some boards look a bit different from the one
below, but most Arduinos have the majority of these components in common.
37
Fig 6.3 Arduino IDE Diagram
Programs written using Arduino Software (IDE) are called sketches. These
sketches are written in the text editor and are saved with the file extension.ino. The
editor has features for cutting/pasting and for searching/replacing text. The message
area gives feedback while saving and exporting and also displays errors. The console
displays text output by the Arduino Software (IDE), including complete error
messages and other information. The bottom righthand corner of the window
displays the configured board and serial port. The toolbar buttons allow you to verify
and upload programs, create, open, and save sketches, and open the serial monitor.
The Arduino IDE is incredibly minimalistic, yet it provides a near-complete
environment for most Arduino-based projects. The top menu bar has the standard
options, including “File” (new, load save, etc.), “Edit” (font, copy, paste, etc.),
“Sketch” (for compiling and programming), “Tools” (useful options for testing
projects), and “Help”. The middle section of the IDE is a simple text editor that
where you can enter the program code. The bottom section of the IDE is dedicated
to an output window that is used to see the status of the compilation, how much
memory has been used, any errors that were found in the program, and various other
useful messages.
38
Projects made using the Arduino are called sketches, and such sketches are
usually written in a cut-down version of C++ (a number of C++ features are not
included). Because programming a microcontroller is somewhat different from
programming a computer, there are a number of device-specific libraries (e.g.,
changing pin modes, output data on pins, reading analog values, and timers). This
sometimes confuses users who think Arduino is programmed in an “Arduino
language.” However, the Arduino is, in fact, programmed in C++. It just uses unique
libraries for the device.
39
User-written code only requires two basic functions, for starting the sketch and the
main program loop, that are compiled and linked with a program stub main() into an
executable cyclic executive program with the GNU toolchain, also included with the
IDE distribution. The Arduino IDE employs the program avrdude to convert the
executable code into a text file in hexadecimal encoding that is loaded into the
Arduino board by a loader program in the board's firmware.
6.3 ADVANTAGES
40
CHAPTER 7
41
CHAPTER 8
42
agricultural robotic system had been done using model structure design mingled with
different precision farming machineries. Few prototypes were designed by European
Union named CROPS, USA-ISAAC2 & Michigan_x0002_Hortibot, Australia-
AgBot, Finland-Demeter, India-Agribot and many other countries. The agricultural
robots are designed using different localization techniques which are vision, GPS,
laser and sensor-based navigation control system. comparative study including an
overview of Robotics approach for precision Agriculture in India and worldwide
development is explored.
43
Appendix1:Coding
String i;
#define soil A0
#define ir 2
#define motor 8
int revleft4 = 4;
int fwdleft5 = 5;
int revright6 = 6;
int fwdright7 = 7;
void setup() {
Serial.begin(9600);
pinMode(soil,INPUT);
pinMode(ir,INPUT);
pinMode(motor,OUTPUT);
pinMode(revleft4, OUTPUT); // set Motor pins as output
pinMode(fwdleft5, OUTPUT);
pinMode(revright6, OUTPUT);
pinMode(fwdright7, OUTPUT);
digitalWrite(motor,LOW);
44
void loop() {
while(Serial.available()>0)
{
i=Serial.readString();
Serial.println(i);
}
int b = analogRead(soil);
b =map(b,0,1024,0,100);
Serial.println(b);
int c = digitalRead(ir);
Serial.println(c);
if (i=="2")
{
digitalWrite(fwdright7, HIGH);
digitalWrite(revright6, LOW);
digitalWrite(fwdleft5, HIGH);
digitalWrite(revleft4, LOW);
}
if (i=="3")
{
digitalWrite(fwdright7, LOW);
45
digitalWrite(revright6, HIGH);
digitalWrite(fwdleft5, LOW);
digitalWrite(revleft4, HIGH);
}
}
46
Appendix2:Acceptence Conference Paper
47
REFERENCES
[1] Dr.K.Sharmilee, D. Abinisha , M. Gopega , V. Jeevitha , R. Srinithi. 2021.
International Journal of Research in Engineering and Science (IJRES). ISSN
(Online): 2320-9364,Volume 9 Issue 3 ǁ 2021 ǁ PP. 04-08
[6] Haris Quazi , Akash Gupta , Kedar Prabhu , Abhishek Mishra, Vinay Kumar
Singh(2018). International Journal of Research in Engineering, Science and
Management(IJRESM). | ISSN (Online): 2581-5792,Volume-1, Issue-12,
December-2018 www.ijresm.com
48
[7] Bersy S B Bhuvaneshwari K, Damian Delecta T, GeethaPriya R, Saraswathi M.
(2020). Iot based Smart Multipurpose Agricultural Robot.
[9] S Mahendra Kumar and T Guna Sekar, (2016) “Cross-Layer Design for Energy
Efficient Multicast Video Transmission over Mobile Ad Hoc Networks”, Asian
Journal of Research in Social Sciences and Humanities, Volume 6, Issue 9, Pages
719-734.
[10] Mahendrakumar Subramaniam and Sasikala Ramasamy, (2014) “A survey on
performance analysis of energy aware multicast routing protocols in mobile ad hoc
network”,International Journal of Networking and Virtual Organisations,
Inderscience Publishers, Volume 14, Issue 4, Pages 340-354.
[13] Tillett, N.D., Hague, T. and Marchant, J.A.(1998) A robotic system for plant
scale husbandry. Journal of Agricultural Engineering Research, 69, 169-178.
49
[14] Tang, L., Tian, L., and Steward, B. L. 2000, Colour image segmentation with
genetic algorithm for in- field weed sensing, Transactions of the ASAE - American
Society of Agricultural Engineers 43:41019-1028.
[15] Pedersen, B. B. 2001, Weed density estimation from digital images in spring
barley, Unpublished MSc thesis KVL, Denmark.
[16] Søgaard, H. T. and Heisel, T. 2002, Weed classification by active shape models.
AgEng 2002, International Conference on Agricultural Engineering, Budapest,
Hungary, June-July 2002.
[17] Leropoulos, I., Greenman, J., and Melhuish, C. (2003). Imitating metabolism:
Energy autonomy in biologically inspired robots. AISB '03 Second international
symposium on imitation in animals and artifacts. Aberystwyth, Wales, pp.191-194.
[20] Lund, I. and Søgaard, H. T. 2005, Robotic Weeding - Plant recognition and
micro spray on single weeds, 5ECPA (This conference), ed. J. V. Stafford.
50
[21]Blackmore,S.(2007).A systems view of agricultural robotics.Precision
Agriculture conference,Wageningen Academic Publishers, the Netherlands. pp.23-
31
51