Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
(ABSTRACT)
With the growth of vehicles in large number and with the same Narrow size road it
is very difficult for the driver to drive a vehicle safely without a crash on the road. If for a
small fraction of time if a vehicle driven has missed his attention then it will result in
crash of vehicle with front vehicle even if the vehicle is in small speed or no speed. In
congested traffic sometimes a vehicle owner get frosted and he cant keep watch on
vehicle in slow moving traffic. In such a situation this pre crash vehicle detection system
Today many sensors are available for detection of pre crash between vehicles. We
are using IR sensor system for detecting pre crash between vehicles. In our proposed
system we are using a Infrared transmitter and infrared receiver combination system
which is attached to a relay board. The IR sensor system continuously sends signals and
monitors any car or other obstacles are in front of car. The distance up to which IR sensor
can work may be up to 3 centi meter. When any obstacle or vehicle detected by IR sensor
system it will send signal to the relay board embedded. Motors are connoted through
relay board when relay is on state all motors are stop so that vehicle will stop. If relay is
security.
4. Semantic diagram
5. Conclusion
6. Bibiliography
CHAPTER 1
INTRODUCTION TO EMBEDDED SYSTEM INTRODUCTION
TO EMBEDDED SYSTEM
EMBEDDED SYSTEM
Since the embedded system is dedicated to specific tasks, design engineers can
optimize it, reducing the size and cost of the product, or increasing the reliability and
performance. Some embedded systems are mass-produced, benefiting from economies of
scale.
Physically, embedded systems range from portable devices such as digital watches
and MP3 players, to large stationary installations like traffic lights, factory controllers, or
the systems controlling nuclear power plants. Complexity varies from low, with a single
microcontroller chip, to very high with multiple units, peripherals and networks mounted
inside a large chassis or enclosure.
Certain operating systems or language platforms are tailored for the embedded
market, such as Embedded Java and Windows XP Embedded. However, some low-end
consumer products use very inexpensive microprocessors and limited storage, with the
application and operating system both part of a single program. The program is written
permanently into the system's memory in this case, rather than being loaded into RAM
(random access memory), as programs on a personal computer are.
MICROCONTROLLERS FOR EMBEDDED SYSTEMS
Component List :
2. Voltage regulator
3. Capacitors
4. Diodes
Voltage regulator :
7805 IC Rating :
Current rating Ic = 1A
A bridge rectifier consists of four p-n junction diodes connected in the above
shown manner. In the positive half cycle of the supply the voltage induced across
the secondary of the electrical transformer i.e. VMN is positive. Therefore point E
is positive with respect to F. Hence, diodes D 3 and D2 are reversed biased and
diodes D1 and D4 are forward biased. The diode D3 and D2 will act as open
switches (practically there is some voltage drop) and diodes D1 andD4 will act as
closed switches and will start conducting. Hence a rectified waveform appears at
the output of the rectifier as shown in the first figure. When voltage induced in
secondary i.e. VMN is negative than D 3 and D2 are forward biased with the other
two reversed biased and a positive voltage appears at the input of the filter.
DC Filteration
The rectified voltage from the rectifier is a pulsating dc voltage having very high
ripple content. But this is not we want, we want a pure ripple free dc waveform.
Hence a filter is used. Different types of filters are used such as capacitor filter, LC
filter, Choke input filter, type filter. Figure below shows a capacitor filter
connected along the output of the rectifier and the resultant output waveform.
As the
instantaneous voltage starts increasing the capacitor charges, it charges till the
waveform reaches its peak value. When the instantaneous value starts reducing the
capacitor starts discharging exponentially and slowly through the load (input of the
regulator in this case). Hence, an almost constant dc value having very less ripple
content is obtained.
Regulation
This is the last block in a regulated DC power supply. The output voltage or
current will change or fluctuate when there is change in the input from ac mains or
due to change in load current at the output of the regulated power supply or due to
other factors like temperature changes. This problem can be eliminated by using a
regulator. A regulator will maintain the output constant even when changes at the
input or any other changes occur.
The output voltage can be adjusted with adjusting the values of resistances
R1 and R2. Usually coupling capacitors of values about 0.01F to 10F needs to be
connected at the output and input to address input noise and output transients.
Ideally the output voltage is given by
The output voltage is strengthen and deduction of the output voltage is done
capacitor C3(0.1uF). To avoid the chance of the input get shorted D5 diode is used
to save the regulator. If D5 is not presented in the circuit, the output capacitor can
leave its charge immediately during low impedance course inside the regulators.
IR DISTANCE SENSOR
IR Distance Sensor:-
IR distance sensors are one of the most used distance sensors. They fall in 3
categories:
Reflection
(Short range. Not more than 2 - 3cm)
IR reflection sensor
This type uses an IR-LED and IR-diode (or phototransistor). When an object is
close to the sensor it reflects the light emitted by the LED to the IR-diode. Using
modulated IR-light (A) and filtering (B) the input signal of the IR-diode leads to
better results as this blocks (much of) other IR-light. There are ICs that contain
both a modulator, IR-diode and filter-circuit.
Triangulation
(Larger range. Around 10 - 30cm) e.g. Sharp has a family of sensors that use this
principle for measuring distance. They consist of an IR-LED and an IR-sensitive
LDR strip. Combined with built-in optical lenses, the reflected beam's position on
the LDR depends on how far the object is.
Infra-Red actually is normal light with a particular colour. We humans can't see this
colour because its wave length of 950nm is below the visible spectrum. That's one of the
reasons why IR is chosen for remote control purposes, we want to use it but we're not
interested in seeing it. Another reason is because IR LEDs are quite easy to make, and
therefore can be very cheap.
Although we humans can't see the Infra-Red light emitted from a remote control doesn't
mean we can't make it visible.
A video camera or digital photo camera can "see" the Infra-Red light as you can see in
this picture. If you own a web cam you're in luck, point your remote to it, press any
button and you'll see the LED flicker.
Modulation
Modulation is the answer to make our signal stand out above the noise. With modulation
we make the IR light source blink in a particular frequency. The IR receiver will be tuned
to that frequency, so it can ignore everything else.
You can think of this blinking as attracting the receiver's attention. We humans also notice
the blinking of yellow lights at construction sites instantly, even in bright daylight.
In the picture above you can see a modulated signal driving the IR LED of the transmitter
on the left side. The detected signal is coming out of the receiver at the other side.
In serial communication we usually speak of 'marks' and 'spaces'. The 'space' is the
default signal, which is the off state in the transmitter case. No light is emitted during the
'space' state. During the 'mark' state of the signal the IR light is pulsed on and off at a
particular frequency. Frequencies between 30kHz and 60kHz are commonly used in
consumer electronics.
At the receiver side a 'space' is represented by a high level of the receiver's output. A
'mark' is then automatically represented by a low level.
Please note that the 'marks' and 'spaces' are not the 1-s and 0-s we want to transmit. The
real relationship between the 'marks' and 'spaces' and the 1-s and 0-s depends on the
protocol that's being used. More information about that can be found on the pages that
describe the protocols.
The Transmitter
The transmitter usually is a battery powered handset. It should consume as little power as
possible, and the IR signal should also be as strong as possible to achieve an acceptable
control distance. Preferably it should be shock proof as well.
Many chips are designed to be used as IR transmitters. The older chips were dedicated to
only one of the many protocols that were invented. Nowadays very low power
microcontrollers are used in IR transmitters for the simple reason that they are more
flexible in their use. When no button is pressed they are in a very low power sleep mode,
in which hardly any current is consumed. The processor wakes up to transmit the
appropriate IR command only when a key is pressed.
Quartz crystals are seldom used in such handsets. They are very fragile and tend to break
easily when the handset is dropped. Ceramic resonators are much more suitable here,
because they can withstand larger physical shocks. The fact that they are a little less
accurate is not important.
The current through the LED (or LEDs) can vary from 100mA to well over 1A! In order
to get an acceptable control distance the LED currents have to be as high as possible. A
trade-off should be made between LED parameters, battery lifetime and maximum
control distance. LED currents can be that high because the pulses driving the LEDs are
very short. Average power dissipation of the LED should not exceed the maximum value
though. You should also see to it that the maximum peek current for the LED is not
exceeded. All these parameters can be found in the LED's data sheet.
A simple transistor circuit can be used to drive the LED. A transistor with a suitable HFE
and switching speed should be selected for this purpose.
The resistor values can simply be calculated using Ohm's law. Remember that the
nominal voltage drop over an IR LED is approximately 1.1V.
In the picture above you can see a typical block diagram of such an IR receiver. Don't be
alarmed if you don't understand this part of the description, for everything is built into
one single electronic component.
The received IR signal is picked up by the IR detection diode on the left side of the
diagram. This signal is amplified and limited by the first 2 stages. The limiter acts as an
AGC circuit to get a constant pulse level, regardless of the distance to the handset.
As you can see only the AC signal is sent to the Band Pass Filter. The Band Pass Filter is
tuned to the modulation frequency of the handset unit. Common frequencies range from
30kHz to 60kHz in consumer electronics.
The next stages are a detector, integrator and comparator. The purpose of these three
blocks is to detect the presence of the modulation frequency. If this modulation frequency
is present the output of the comparator will be pulled low.
As I said before, all these blocks are integrated into a single electronic component. There
are many different manufacturers of these components on the market. And most devices
are available in several versions each of which are tuned to a particular modulation
frequency.
Please note that the amplifier is set to a very high gain. Therefore the system tends to start
oscillating very easily. Placing a large capacitor of at least 22F close to the receiver's
power connections is mandatory to decouple the power lines.
Some data sheets recommend a resistor of 330 Ohms in series
with the power supply to further decouple the power supply from
the rest of the circuit.
There are several manufacturers of IR receivers on the market. Siemens, Vishay and
Telefunken are the main suppliers here in Europe. Siemens has its SFH506-xx series,
where xx denotes the modulation frequency of 30, 33, 36, 38, 40 or 56kHz. Telefunken
had its TFMS5xx0 and TK18xx series, where xx again indicates the modulation
frequency the device is tuned to. It appears that these parts have now become obsolete.
They are replaced by the Vishay TSOP12xx, TSOP48xx and TSOP62xx product series.
Sharp, Xiamen Hualian and Japanese Electric are 3 Asian IR receiver producing
companies. Sharp has devices with very cryptic ID names, like: GP1UD26xK,
GP1UD27xK and GP1UD28xK, where x is related to the modulation frequency. Hualian
has it's HRMxx00 series, like the HRM3700 and HRM3800. Japanese Electric has a
series of devices that don't include the modulation frequency in the part's ID. The PIC-
12042LM is tuned to 36.7kHz, and the PIC12043LM is tuned to 37.9kHz.
The End?
This concludes the theory of operation for IR remote control systems intended for use in
consumer electronics. I realize that other ways exist to implement IR control, but I will
limit myself to the description above. One of the issues not covered here is security.
Security is of no importance if I want to control my VCR or TV set. But when it comes to
opening doors or cars it literally becomes a 'key' feature! Maybe I will cover this issue
later, but not for now.
I also realize that my small list of manufacturers is far from being complete. It is hardly
possible to list every manufacturer here. You can send me an e-mail if you have details
about other protocols that you feel should be added to my pages.
This page only described the basic theory of operation of IR remote control. It did not
describe the protocols that are involved in communication between transmitter and
receiver. Many protocols are designed by different manufacturers. You can find the
protocols of some manufacturers in the link section at the top of this page.
DRIVER CIRCUIT
Relay:
A type of relay that can handle the high power required to directly control an
electric motor or other loads is called a contactor. Solid-state relays control power
circuits with no moving parts, instead using a semiconductor device to perform
switching. Relays with calibrated operating characteristics and sometimes multiple
operating coils are used to protect electrical circuits from overload or faults; in
modern electric power systems these functions are performed by digital
instruments still called "protective relays".
Basic Design and Operation:
When the coil is energized with direct current, a diode is often placed across
the coil to dissipate the energy from the collapsing magnetic field at deactivation,
which would otherwise generate a voltage spike dangerous to semiconductor
circuit components. Some automotive relays include a diode inside the relay case.
Types of Relay:
Latching relay
Read relay
Mercury-wetted relay
Mercury relay
Polarized relay
Ratchet relay
Coaxial relay
Contactor
Vacuum relay
Since relays are switches, the terminology applied to switches is also applied to
relays; a relay switches one or more poles, each of whose contacts can be thrown
by energizing the coil in one of three ways:
SPST Single Pole Single Throw. These have two terminals which can be
connected or disconnected. Including two for the coil, such a relay has four
terminals in total. It is ambiguous whether the pole is normally open or
normally closed. The terminology "SPNO" and "SPNC" is sometimes used
to resolve the ambiguity.
DPST Double Pole Single Throw. These have two pairs of terminals.
Equivalent to two SPST switches or relays actuated by a single coil.
Including two for the coil, such a relay has six terminals in total. The poles
may be Form A or Form B (or one of each).
DPDT Double Pole Double Throw. These have two rows of change-over
terminals. Equivalent to two SPDT switches or relays actuated by a single
coil. Such a relay has eight terminals, including the coil.
Applications:
CAR
IR TX IR RX
Relay Board
POWER SUPPLY
CONCLUSION
CONCLUSION
Electronic Components
-D.V.Prasad
Wireless Communications
- Theodore S. Rappaport
-Andrew N.SLOSS
-Domenic SYMES
-Chris WRIGHT
References on the Web:
www.national.com
www.nxp.com
www.8052.com
www.microsoftsearch.com
www.geocities.com
www.keil.com