What Is Embedded System?
What Is Embedded System?
CHAPTER 1
INTRODUCTION
What is embedded system?
An embedded system is not a computer system that is used primarily for processing, not a
software system on PC or UNIX, not a traditional business or scientific application. High-end
embedded & lower end embedded systems. High-end embedded system - Generally 32, 64 Bit
Controllers used with OS. Examples Personal Digital Assistant and Mobile phones etc .Lower end
embedded systems - Generally 8,16 Bit Controllers used with an minimal operating systems and
hardware layout designed for the specific purpose.
• An embedded system is any computer system hidden inside a product other than a
computer.
• They will encounter a number of difficulties when writing embedded system software in
addition to those we encounter when we write applications
– Throughput – Our system may need to handle a lot of data in a short period of time.
– Response–Our system may need to react to events quickly
– Testability–Setting up equipment to test embedded software can be difficult
– Debugability–Without a screen or a keyboard, finding out what the software is
doing wrong (other than not working) is a troublesome problem
– Reliability – embedded systems must be able to handle any situation without human
intervention
– Memory space – Memory is limited on embedded systems, and you must make the
software and the data fit into whatever memory exists
– Program installation – you will need special tools to get your software into
embedded systems
– Power consumption – Portable systems must run on battery power, and the software
in these systems must conserve power
– Processor hogs – computing that requires large amounts of CPU time can
complicate the response problem
– Cost – Reducing the cost of the hardware is a concern in many embedded system
projects; software often operates on hardware that is barely adequate for the job.
• Embedded systems have a microprocessor/ microcontroller and a memory. Some have a
serial port or a network connection. They usually do not have keyboards, screens or disk
drives.
APPLICATIONS
Venkata Naga Rohit Gunturi [1]:The main aim of this paper is to provide automatic
irrigation to the plants which helps in saving money and water. The entire system is controlled
using 8051 micro controller which is programmed as giving the interrupt signal to the
sprinkler. Temperature sensor and humidity sensor are connected to internal ports of micro
controller via comparator, When ever there is a change in temperature and humidity of the
surroundings these sensors senses the change in temperature and humidity and gives an
interrupt signal to the micro-controller and thus the sprinkler is activated.
Bishnu Deo Kumar, Prachi Srivastava, Reetika Agrawal, Vanya Tiwari [2]:In this paper,
soil moisture sensor is placed in the root zone of plant/field. The sensor sends information
and transmits the data to the microcontroller. An algorithm was developed to measure
threshold value soil moisture sensor that was programmed into a microcontroller to monitor
the humidity content of the soil. This paper designs a model of automatic irrigation system
which is based on microcontroller ATMEGA328. Temperature and soil moisture sensors are
placed in the field. Sensors sense the moisture content of the soil and give the information to
farmer through GSM Module. Farmer gets to know the status of the pump installed in the
field via GSM Module without going into the field. When the moisture content reaches above
the desired threshold value the pump automatically turns off and the message is conveyed to
the farmer.
John (2006) [3] stated that there are a state that plant are able to survive without water, which is
known as dormancy, however every plant have its own limitation for them to recover when they
are insufficient of water during this period of time. The inability for the plant to recover from the
moisture loss is known as permanent wilting point (John, 2006). Therefore, water is important for
the plant to survive.
According to Wiecko (2006) [4], there are many factors that affect the transpiration and
evaporation process of the plant including humidity, temperature and wind. Low humidity cause
the both process of evaporation and transpiration high, however for the temperature, it has a
different effect on the process. The high temperature will cause the evaporation rate to be high but
for transpiration process, it works differently. Wiecko (2006) further stated that usually the leave
transpire more as the temperature rise, however if the temperature is too high, the stomata closure
can be triggered to save water. Therefore, unless the temperature is extremely high, the rate of
transpiration increases as the temperature increase.
1.1 OBJECTIVES
▪ Automation: The primary objective of this system is to automate the process of watering
plants. By integrating the 8051 microcontroller with a remote control and water pump, the
system eliminates the need for manual watering and provides a convenient way to water
plants remotely.
▪ Remote Control Operation: The system aims to enable users to control the watering
process from a distance using a remote control. The remote control interface allows users
to send commands to the microcontroller wirelessly, triggering the water pump and
initiating the watering process.
▪ Watering Control: The system should have the ability to control the duration and
frequency of watering. It can be programmed to water plants at specific intervals, ensuring
that the plants receive the right amount of water for healthy growth. This objective requires
the microcontroller to have a timer or scheduling mechanism.
▪ Water Conservation: An important objective is to promote water conservation by
efficiently using water resources. The system should incorporate sensors or other
mechanisms to monitor the moisture level in the soil. By intelligently adjusting the
watering process based on the soil moisture, the system can avoid overwatering and prevent
water wastage.
CHAPTER 2
METHODOLOGY
Figure.2.1: Block Diagram of Remote control plant watering system using 8051
Fig.2.2: Schematic Diagram of Remote control plant watering system using 8051
➢ The remote-control plant watering system using the 8051 microcontroller is a smart and
efficient solution to automate the watering process for plants. This system is designed to
provide a convenient way to water plants without the need for manual intervention. By
using a remote control, users can easily control the watering of their plants from a
distance.
➢ The heart of this system is the 8051 microcontrollers, a widely used microcontroller in
embedded systems. The microcontroller is responsible for receiving commands from the
remote control and controlling the watering mechanism accordingly.
➢ The remote control is equipped with buttons or switches that send signals to the
microcontroller wirelessly. These signals are transmitted using a wireless communication
module such as RF (Radio Frequency) or IR (Infrared). The microcontroller receives the
signals, interprets them, and triggers the watering mechanism.
➢ In this mini project IR receiver is used as wireless communication module. Generally, IR
receiver is used in consumer electronics such as TV remote controls, have an effective
range of around 5 to 10 meters (16 to 33 feet).
CHAPTER 3
SOFTWARE REQUIREMENTS
3.1 CODING
main:
djnz VAR1,$
mov VAR1,#255
djnz VAR1,$
mov VAR1,#255
djnz VAR1,$
mov VAR1,#255
djnz VAR1,$
mov VAR1,#255
djnz VAR1,$
mov VAR1,#100
djnz VAR1,$
mov FLIP,c
clr A
fadd:
djnz VAR1,$
mov VAR1,#255
djnz VAR1,$
mov VAR1,#255
djnz VAR1,$
mov VAR1,#4
djnz VAR1,$
mov c,IR
rlc a
djnz COUNT,fadd
clr a
fcmd:
djnz VAR1,$
mov VAR1,#255
djnz VAR1,$
mov VAR1,#255
djnz VAR1,$
mov VAR1,#4
djnz VAR1,$
mov c,IR
rlc a
djnz COUNT,fcmd
cjne a,#00,nvalid
mov a,TEMP
nvalid:
ljmp main
clr a
mov c,FLIP
rlc a
mov TEMP,a
clr a
mov c,TOG
rlc a
cjne a,TEMP,valid1
sjmp nvalid
valid1:
mov c,FLIP
mov TOG,c
mov a,CMD
clr c
ljmp main
skip1:
ljmp main
skip2:
ljmp main
skip3:
ljmp main
skip4:
ljmp main
5. Save the Project by typing suitable project name with no extension in u r own folder sited
in either C:\ or D:\
15. lick on the file option from menu bar and select “new”.
16. The next screen will be as shown in next page, and just maximize it by double clicking on
its blue boarder.
19. ow right click on Source group and click on “Add files to Group Source”.
21. Now select as per your file extension given while saving the file
22. lick only one time on option “ADD”.
23. Now Press function key F7 to compile. Any error will appear if so happen.
28. Drag the port a side and click in the program file.
HARDWARE COMPONENTS:
1. VOLTAGE REGULATOR
2. MICROCONTROLLER (AT89S52/AT89C51)
3. SUBMERSIBLE PUMP
4. RELAY
5. PUSH BUTTONS
6. LED
7. 1N4007
8. RESISTORS
9. CAPACITORS
10. BATTERY
3.4 DESCRIPTION
Features
• utput urrent up to
• utput oltages of , 6, , 9, , 2, , , 24
Description
The LM78XX/LM78XXA series of three-terminal positive regulators are available in the TO-
220/D-PAK package and with several fixed output voltages, making them useful in a Wide range of
applications. Each type employs internal current limiting, thermal shutdown and safe operating area
protection, making it essentially indestructible. If adequate heat sinking is provided, they can deliver over
1A output Current. Although designed primarily as fixed voltage regulators, these devices can be used with
external components to obtain adjustable voltages and currents.
MICROCONTROLLER AT89S52
Features:
Pin Description:
VCC:
GND:
Ground
Port 0:
Port 0 is an 8-bit open drain bidirectional I/O port. As an output port, each pin can sink
eight TTL inputs. When 1s are written to port 0 pins, the pins can be used as high-impedance
inputs. Port 0 can also be configured to be the multiplexed low-order address/data bus during
accesses to external program and data memory. In this mode, P0 has internal pull-ups. Port 0 also
receives the code bytes during Flash programming and outputs the code bytes during program
verification. External pull-ups are required during program verification.
Port 1:
Port 1 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 1 output buffers can
sink/source four TTL inputs. When 1s are written to Port 1 pins, they are pulled high by the internal
pull-ups and can be used as inputs. As inputs, Port 1 pins that are externally being pulled low will
source current (IIL) because of the internal pull-ups. In addition, P1.0 and P1.1 can be configured
to be the timer/counter 2 external count input (P1.0/T2) and the timer/counter 2 trigger input
(P1.1/T2EX).
Port 2:
Port 2 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 2 output buffers can
sink/source four TTL inputs. When 1s are written to Port 2 pins, they are pulled high by the internal
pull-ups and can be used as inputs. As inputs, Port 2 pins that are externally being pulled low will
source current (IIL) because of the internal pull-ups. Port 2 emits the high-order address byte
during fetches from external program memory and during accesses to external data memory that
use 16-bit addresses (MOVX @ DPTR). In this application, Port 2 uses strong internal pull-ups
when emitting 1s. During accesses to external data memory that use 8-bit addresses (MOVX @
RI), Port 2 emits the contents of the P2 Special Function Register.
Port 3:
Port 3 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 3 output buffers can
sink/source four TTL inputs. When 1s are written to Port 3 pins, they are pulled high by the internal
pull-ups and can be used as inputs. As inputs, Port 3 pins that are externally being pulled low will
source current (IIL) because of the pull-ups.
RST:
Reset input. A high on this pin for two machine cycles while the oscillator is running resets
the device. This pin drives high for 98 oscillator periods after the Watchdog times out. The
DISRTO bit in SFR AUXR (address 8EH) can be used to disable this feature. In the default state
of bit DISRTO, the RESET HIGH out feature is enabled.
ALE/PROG:
Address Latch Enable (ALE) is an output pulse for latching the low byte of the address
during accesses to external memory. This pin is also the program pulse input (PROG) during Flash
programming.
In normal operation, ALE is emitted at a constant rate of 1/6 the oscillator frequency and
may be used for external timing or clocking purposes. Note, however, that one ALE pulse is
skipped during each access to external data memory.
PSEN:
Program Store Enable (PSEN) is the read strobe to external program memory. When the
AT89S52 is executing code from external program memory, PSEN is activated twice each
machine cycle, except that two PSEN activations are skipped during each access to external data
memory.
EA/VPP:
External Access Enable. EA must be strapped to GND in order to enable the device to
fetch code from external program memory locations starting at 0000H up to FFFFH. Note,
however, that if lock bit 1 is programmed, EA will be internally latched on reset. EA should be
strapped to VCC for internal program executions. This pin also receives the 12-volt programming
enable voltage (VPP) during Flash programming.
XTAL1:
Input to the inverting oscillator amplifier and input to the internal clock operating circuit.
XTAL2:
Oscillator Characteristics:
XTAL1 and XTAL2 are the input and output, respectively, of an inverting amplifier which can be
configured for use as an on-chip oscillator, as shown in Figure 1. Either a quartz crystal or ceramic
resonator may be used. To drive the device from an external clock source, XTAL2 should be left
unconnected while XTAL1 is driven as shown in Figure 6.2. There are no requirements on the
duty cycle of the external clock signal, since the input to the internal clocking circuitry is through
a divide-by-two flip-flop, but minimum and maximum voltage high and low time specifications
must be observed.
Idle Mode
In idle mode, the CPU puts itself to sleep while all the on chip peripherals remain active. The
mode is invoked by software. The content of the on-chip RAM and all the special functions
registers remain unchanged during this mode. The idle mode can be terminated by any enabled
interrupt or by a hardware reset.
In the power down mode the oscillator is stopped, and the instruction that invokes power
down is the last instruction executed. The on-chip RAM and Special Function Registers retain
their values until the power down mode is terminated. The only exit from power down is a
hardware reset. Reset redefines the SFRs but does not change the on-chip RAM. The reset should
not be activated before VCC is restored to its normal operating level and must be held active long
enough to allow the oscillator to restart and stabilize.
SUBMERSIBLE PUMP
This is a low cost, small size Submersible Pump Motor which can be operated from a 2.5 ~ 6V
power supply. It can take up to 120 liters per hour with very low current consumption of 220mA.
Just connect tube pipe to the motor outlet, submerge it in water and power it.
Specifications:
PUSH BUTTONS
A push-button (also spelled pushbutton) or simply button is a simple switch mechanism for
controlling some aspect of a machine or a process. Buttons are typically made out of hard material,
usually plastic or metal. The surface is usually flat or shaped to accommodate the human finger or
hand, so as to be easily depressed or pushed. Buttons are most often biased switches, though even
many un-biased buttons (due to their physical nature) require a spring to return to their un-pushed
state. Different people use different terms for the "pushing" of the button, such as press, depress,
mash, and punch.
LED
A light-emitting diode (LED) is a semiconductor light source. LEDs are used as indicator
lamps in many devices, and are increasingly used for lighting. When a light-emitting diode is
forward biased (switched on), electrons are able to recombine with holes within the device,
releasing energy in the form of photons.
Electronic Symbol:
1N4007
Diodes are used to convert AC into DC these are used as half wave rectifier or full wave rectifier.
Three points must he kept in mind while using any type of diode.
PN JUNCTION OPERATION
Now that you are familiar with P- and N-type materials, how these materials are joined together
to form a diode, and the function of the diode, let us continue our discussion with the operation
of the PN junction. But before we can understand how the PN junction works, we must first
consider current flow in the materials that make up the junction
RESISTORS
V = IR
Fig.3.4.11 Resistors
CAPACITORS
Fig.3.4.12: Capacitors
A capacitor (formerly known as condenser) is a device for storing electric charge. The
forms of practical capacitors vary widely, but all contain at least two conductors separated by a
non-conductor. Capacitors used as parts of electrical systems, for example, consist of metal foils
separated by a layer of insulating film.
BATTERY
An electrical battery is a combination of one or more electrochemical cells, used to convert stored
chemical energy into electrical energy. The battery has become a common power source for many
household and industrial applications.
Batteries may be used once and discarded, or recharged for years as in standby power applications.
Miniature cells are used to power devices such as hearing aids and wristwatches; larger batteries
provide standby power for telephone exchanges or computer data centers.
CHAPTER 4
CHAPTER 5
HARDWARE TESTING
In electronics, a continuity test is the checking of an electric circuit to see if current flows
(that it is in fact a complete circuit). A continuity test is performed by placing a small voltage
(wired in series with an LED or noise-producing component such as a piezoelectric speaker) across
the chosen path. If electron flow is inhibited by broken conductors, damaged components, or
excessive resistance, the circuit is "open".
Devices that can be used to perform continuity tests include multi meters which measure
current and specialized continuity testers which are cheaper, more basic devices, generally with a
simple light bulb that lights up when current flows.
An important application is the continuity test of a bundle of wires so as to find the two ends
belonging to a particular one of these wires; there will be a negligible resistance between the "right"
ends, and only between the "right" ends.
This test is the performed just after the hardware soldering and configuration has been
completed. This test aims at finding any electrical open paths in the circuit after the soldering.
Many a times, the electrical continuity in the circuit is lost due to improper soldering, wrong and
rough handling of the PCB, improper usage of the soldering iron, component failures and presence
of bugs in the circuit diagram. We use a multi meter to perform this test. We keep the multi meter
in buzzer mode and connect the ground terminal of the multi meter to the ground. We connect both
the terminals across the path that needs to be checked. If there is continuation then you will hear
the beep sound.
This test is performed to check whether the voltage at different terminals is according to
the requirement or not. We take a multi meter and put it in voltage mode. First of all check the
voltage across the battery terminal whether it is fully charged or not, the battery used in this project
is 2 , so touch the ‘red terminal’ of battery with ‘red probe’ of multi meter and touch ‘black
terminal’ of battery with ‘black probe’ of multi meter, if 2V is being displayed on multi meter
screen then we can proceed for next steps.
Now that the power supply is available, no IC should be inserted in the base, first apply power and
check whether proper voltage is reaching at ‘vcc’ and ‘gnd’ pins of each base or not. If proper
voltages appear at the supply pins of IC bases then insert IC and check the required output.
Now we have to check whether the LEDs are in working condition or not, Red LED or IR LED or
hoto diode has got one ‘longer leg’ and one ‘shorter leg’. onger leg is positive terminal of
and shorter leg is negative terminal.
ow keep the multi meter in ‘buzzer mode or continuity mode’ and touch ‘red probe’ of multi
meter to the ‘longer leg’ of and ‘black probe’ of multi meter to the ‘shorter leg’ of , if
glows in such case that means it’s working.
The black LED is photodiode and white LED is IR diode even these components have got longer
leg and shorter leg, insert longer leg into +ve marking hole on PCB and insert shorter leg into other
hole of LED marking on PCB .
CHAPTER 6
APPLICATIONS
6.1 APPLICATIONS
➢ Home Gardening: The system can be used in home gardens or indoor plants to automate
the watering process. With the remote-control feature, users can conveniently water their
plants from a distance, making it suitable for individuals who are away from home for
extended periods or for people with limited mobility.
➢ Agricultural Applications: The system can be utilized in agricultural fields to automate
the irrigation process. Farmers can remotely control the watering of their crops based on
specific needs, such as soil moisture levels or weather conditions. This can result in
improved crop yield and water conservation.
➢ Research and Development: Scientists and researchers studying plant growth and
development can employ the system to automate watering protocols in controlled
environments. They can remotely monitor and adjust watering schedules, allowing for
precise experiments and data collection.
➢ Commercial Nurseries: Plant nurseries and horticultural businesses can use the remote
control system to streamline their watering operations. With the ability to control multiple
watering units remotely, they can ensure consistent watering across a large number of
plants, leading to healthier and more vibrant foliage.
➢ Public Gardens and Parks: Municipalities or organizations responsible for maintaining
public gardens and parks can benefit from a remote control watering system. They can
monitor and manage watering schedules for various locations, optimizing water usage and
reducing manual labor.
6.2 ADVANTAGES
✓ Convenience: With a remote control system, you can water your plants without physically
being present near them. This is especially beneficial if you have a large garden or if the
plants are in hard-to-reach areas.
✓ Time-saving: The remote control system allows you to automate the watering process,
saving you time and effort. You can set specific watering schedules and durations based
on the plant's requirements.
✓ Customization: Using the 8051 microcontroller, you can program the watering system to
meet the specific needs of different plants. This level of customization ensures that each
plant receives the right amount of water at the right time.
✓ Water conservation: The ability to remotely control the watering system allows you to
optimize water usage. You can easily turn off or adjust the watering schedule if it's raining
or the soil moisture levels are already sufficient. This helps to conserve water and prevent
overwatering.
✓ Monitoring and feedback: Some remote control systems provide feedback on soil
moisture levels, temperature, and other environmental parameters. This enables you to
monitor the plant's health remotely and make necessary adjustments to the watering
schedule or other conditions as required.
6.3 LIMITATIONS
✓ Initial setup complexity: Building a remote control system using the 8051 microcontroller
requires some technical knowledge and expertise. It involves electronic circuit design,
programming, and integration, which may be challenging for beginners.
✓ Limited range: The range of the remote control system is dependent on the wireless
communication technology used. If the range is limited, you may need to be in relatively
close proximity to the watering system to control it effectively.
✓ Power supply requirements: The remote control system, along with the 8051
microcontroller and other components, needs a stable power supply. If the power source is
unreliable or experiences interruptions, the system may not function properly.
✓ Cost: Building a remote control plant watering system using the 8051 microcontroller and
associated components can be relatively expensive compared to traditional manual
watering methods. The cost of the microcontroller, sensors, wireless modules, and other
electronic components can add up.
CONCLUSION
After completing this mini project, it can be concluded that it fulfills the objectives stated in
beginning, which makes user to allow to turn on and off the water pump and set the system to
automate mode via a control unit. However, to implement it in real environment, several
modifications has to be made especially on the networking and the power supply.
✓ Smart Irrigation System: You can enhance the capabilities of the remote-control plant
watering system by incorporating various sensors like soil moisture, temperature,
humidity, and light sensors. This would enable the system to monitor the environmental
conditions and adjust the watering schedule accordingly. Additionally, you could integrate
weather forecast data to optimize the watering patterns based on predicted rainfall.
✓ IoT Integration: By connecting the system to the Internet of Things (IoT), you can
remotely monitor and control the plant watering system from anywhere in the world. This
would allow you to receive real-time data on plant conditions and adjust watering
parameters as needed. IoT integration can also enable features such as automatic
notifications and alerts when certain conditions are met or when maintenance is required.
✓ Data Analytics and Machine Learning: Collecting data from the remote control plant
watering system over time can provide valuable insights into plant behavior, water
consumption patterns, and optimal watering schedules. By applying data analytics and
machine learning techniques to this data, you can develop predictive models that can
automatically adjust the watering parameters based on the specific needs of different plant
species or environmental conditions.
✓ Mobile Application Interface: Develop a mobile application that connects to the remote
control plant watering system, allowing users to monitor and control their plants through
their smartphones. The mobile app can provide a user-friendly interface with features like
scheduling watering cycles, adjusting parameters, viewing sensor data, and receiving
notifications.
✓ Integration with Smart Home Systems: Integrate the plant watering system with popular
smart home platforms like Amazon Alexa, Google Home, or Apple HomeKit. This
integration would enable voice commands and seamless control of the watering system as
part
REFERENCES
2. icro controller based automatic plant irrigation system. Kumar, Srivastava, grawal… - …
esearch Journal of …, 2 7 - academia.edu
8.Design of remote monitoring and control system with automatic irrigation system using GSM-bluetooth