Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1.1 NEED OF AUTOMATION :Earlier, we looked into the face of future when we talked about
automated devices, which could do anything on instigation of a controller,
but today it has become a reality. An automated device can replace good
amount of human working force, moreover humans are more prone to errors
and in intensive conditions the probability of error increases whereas, an
automated device can work with diligence, versatility and with almost zero
error. Replacing human operators in tasks that involve hard physical or
monotonous work.
Replacing humans in tasks done in dangerous environments (i.e. fire,
space, volcanoes, nuclear facilities, underwater, etc) Performing tasks that
are beyond human capabilities of size, weight, speed, endurance, etc.
Economy improvement. Automation may improve in economy of enterprises,
society or most of humankind. For example, when an enterprise that has
invested in automation technology recovers its investment, or when a state
or country increases its income due to automation like Germany or Japan in
the 20th Century. This is why this project looks into construction and
1
1.2 HOME AUTOMATION :Home/office automation is the control of any or all electrical devices in
our home or office, whether we are there or away. Home/office automation is
one of the most exciting developments in technology for the home that has
come along in decades. There are hundreds of products available today that
allow us control over the devices automatically, either by remote control; or
even by voice command.
A home automation system integrates electrical devices in a house
with each other. The techniques employed in home automation include those
in building automation as well as the control of domestic activities, such as
home entertainment systems, houseplant and yard watering, pet feeding,
changing the ambiance "scenes" for different events (such as dinners or
parties), and the use of domestic robots. Devices may be connected through
a computer network to allow control by a personal computer, and may allow
remote access from the internet.
Typically, a new home is outfitted for home automation during
construction, due to the accessibility of the walls,outlets, and storage rooms,
and the ability to make design changes specifically to accommodate certain
technologies. Wireless systems are commonly installed when outfitting a preexisting house, as they reduce wiring changes. These communicate through
the existing power wiring, radio, or infrared signals with a central controller.
Network sockets may be installed in every room like AC power receptacles.
Although automated homes of the future have been staple exhibits for
World's Fairs and popular backgrounds in science fiction, complexity,
competition between vendors, multiple incompatible standards and the
resulting expense have limited the penetration of home automation to
homes of the wealthy or ambitious hobbyists.
Chapter 2
PROJECT DESCRIPTION :In this project, we present a system to control home appliances from a
computer through password . The system is designed for controlling the
2
ON/OFF mode of different home appliances such as light, fan, TV, aircondition etc.
1. It can be used to control the printer as well as household and other
electrical appliance.
2. The computer program included as part of the project controls relays
through the interface circuit, which in turn, switch the appliance nor
ff.
3. The parallel port has 12 outputs including 8 data lines and 4 control
lines.
4. The parallel port or line printer terminal is found commonly on the back
of a PC as a D-type 25 female connector.
5. The port is composed of 4 control lines and 5 status lines and 8 data
lines.
6. The original port is a bundle of 3 ports namely data port, status port
and control port.
7. Each of the data , sataus and the control port have specific addresses
assigned to the them.
The parallel port
Chapter 3
HARDWARE REQUIREMENT :
Power supply
Transformer
Rectifier
Input filter
Regulator
Output filter
Output indication
Relay
Diode
Capacitor
Resistor
Transistor
3.1 POWER SUPPLY :Initial stage of every electronic circuit is power supply system
which
provides
required
power
to drive the whole system. The
specification of power supply depends on the power requirement and this
requirement is determined by its rating.
The input to the circuit is applied from the regulated power supply.
The a.c. input i.e., 230V from the mains supply is step down by
transformer to 12V and is fed to a rectifier. The output obtained from
rectifier is a pulsating d.c voltage. So in order to get a pure d.c voltage,
output voltage from the rectifier is fed to a filter to remove any
the
the
the
a.c
4
3.3 RECTIFIER :-
3.4 INPUT FILTER :After rectification we obtain dc supply from ac but it is not pure dc it
may have some ac ripples .To reduce these ripples we use filters. It
comprises of two filters low frequency ripple filter and high frequency
ripple filter.
To reduce low frequency ripples we use electrolytic capacitor. The
voltage rating of capacitor must be double from incoming dc supply. It
blocks dc and passes ripples to ground.
3.5 REGULATOR :Regulator is a device which provides constant output voltage with
varying input voltage. There are two types of regulators(a) Fixed voltage regulator
(b) Adjustable regulator
We have used fixed voltage regulator LM78XX last two digits signify
output voltage. The voltage for our system is 5V
3.6 OUTPUT FILTER :It is used to filter out output ripple if any.
3.7 OUTPUT INDICATOR :We use LED to observe the functioning of our system. If the LED glows
it confirms
proper functioning of our supply. We have used four power supply units.
The supply is for the microcontroller, display and relay unit.. The
microcontroller
requires 5 volt supply to perform any desired task.
3.8 RELAY :A relay is an electrically controllable switch widely used in
industrial controls, automobiles and appliances.The relay allows the
isolation of two separate sections of a system with two
different voltage sources i.e., a small amount of
voltage/current on one side can handle a large
amount of voltage/current on the other side but there is
no chance that these two voltages mix up.
Fig 3.8 circuit symbol of relay
of diode
3.9.1 P N 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.
But before we can understand how the PN junction works, we must first
consider current flow in the materials that make up the junction and what
happens initially within the junction when these two materials are joined
together.
3.9.1.1 CURRENT FLOW IN N-TYPE MATERIAL :Conduction in the N-type semiconductor, or crystal, is similar to
conduction in a copper wire. That is, with voltage applied across the material,
electrons will move through the crystal just as current would flow in a copper
wire. The positive potential of the battery will attract the free electrons in the
crystal. As an electron leaves the crystal, an electron from the negative
terminal of the battery will enter the crystal, thus completing the current
path. Therefore, the majority current carriers in the N-type material
(electrons) are repelled by the negative side of the battery and move
through the crystal toward the positive side of the battery.
3.9.1.2 CURRENT FLOW IN P-TYPE MATERIAL :Current flow through the P-type material is illustrated. Conduction in the P
material is by positive holes, instead of negative electrons. A hole moves from the
positive terminal of the P material to the negative terminal. Electrons from the
external circuit enter the negative terminal of the material and fill holes in the
vicinity of this terminal. At the positive terminal, electrons are
removed from the covalent bonds, thus creating new holes
by a dielectric. Capacitors are widely used in electronic circuits for blocking direct
current while allowing alternating current to pass, in filter networks, for smoothing
the output of power supplies, in the resonant circuits that tune radios to particular
frequencies and for many other purposes.
Fig
3.11
resistor
3.12
transistor
Chapter 4
WORKING :-
Here is a circuit for using the printer port of a PC, for control
application using software and some interface hardware. The interface circuit
along with the given software can be used with the printer port of any PC for
controlling up to eight equipment .
The interface circuit shown in the figure(in chapter 2) is drawn for
only one device, being controlled by D0 bit at pin 2 of the 25-pin parallel
port. Identical circuits for the remaining data bits D1 through D7 (available at
pins 3 through 9) have to be similarly wired. The use of opto-coupler ensures
complete isolation of the PC from the relay driver circuitry.
Lots of ways to control the hardware can be implemented using
software. In C/C++ one can use the outportb(portno,value) function where
portno is the parallel port address (usually 378hex for LPT1) and 'value' is
the data that is to be sent to the port. For a value=0 all the outputs (D0-D7)
are off. For value=1 D0 is ON, value=2 D1 is ON, value=4, D2 is ON and so
on. eg. If value=29(decimal) =
cannot be broken because to the person standing outside can just see
the closed door and not the lock as it is inbuilt. The password is given
with the help of computre and can be changed by simply making a
small change in the program and then burning the program in the
controller.
10
11
Chapter 8
http://www.slides-share.net
12