LFR
LFR
4.Goto step 1.
COMPONENTS
AVR SERIES MICROCONTROLLER ATMEGA8
It is the same principle in ALL Infra-Red proximity sensors. The basic idea is to send infra red
light through IRLEDs,which is then reflected by any object in front of the sensor.
This is an electrical property of Light Emitting Diodes (LEDs) which is the fact that
a led Produce a voltage difference across its leads when it is subjected to light. As if it was
a photo-cell, but with much lower output current. In other words, the voltage generated by
the leds can't be in any way used to generate electrical power from light, It can barely
be detected. that's why as you will notice in the schematic, we are going to use a Op-Amp
(operational Amplifier) to accurately detect very small voltage changes
MOTOR INTERFACE CIRCUIT
CIRCUIT DESCRIPTION
The 8 sensors are connected to PORTA. The L298 Motor Driver has 4 inputs
to control the motion of the motors and two enable inputs which are used
for switching the motors on and off. To control the speed of the motors a
PWM waveform with variable duty cycle is applied to the enable pins.
Rapidly switching the voltage between Vs and GND gives an effective
voltage between Vs and GND whose value depends on the duty cycle of
PWM. 100% duty cycle corresponds to voltage equal to Vs, 50 %
corresponds to 0.5Vs and so on The 1N4004 diodes are used to prevent
back EMF of the motors from disturbing the remaining circuit.
L298 is used as a coil driver instead of l293D L298 as it has current capacity
of 2A per channel @ 45V compared to 0.6 A @ 36 V of a L293D. L293D’s
package is not suitable for attaching a good heat sink, practically you can’t
use it above 16V without frying it. L298 on the other hand works happily at
16V without a heat sink, though it is always better to use one.
PROGRAMING PART
WRITING A CODE IN C
COMPILING CODE USING CODEVISION AVR
CONVERTING IT TO HEX USING CODEVISION AVR
SIMULATION OF THE HEX FILE IN THE AVR STUDIO 4.0
DOWNLOADING THE PORGRAMIN TO MICROCONTROLLER USING AVR
LOADER
VIDEO OF PROGRAMMING AND
SIMULATION PART
DESIGN OF MECHANICAL STRUCTURE
APPLICATION
Automated Stability control
Much like antilock brakes work to allow the driver to steer while braking on
slippery surfaces, stability control works to help the vehicle stay on its driver-
intended path in turns. Sometimes a driver will enter a curve too quickly and
exceed the tire's ability to hold the road through the turn. When this happens, the
vehicle begins to spin or skid. Stability control pulsates the brakes of individual
wheels to help "rotate" the vehicle to the driver's intended path.
Steering wheel angle sensor : determines the driver's intended rotation; i.e. where
the driver wants to steer. This kind of sensor is often based on AMR-elements.
Yaw rate sensor : measures the rotation rate of the car; i.e how much the car is
actually turning. The data from the yaw sensor is compared with the data from the
steering wheel angle sensor to determine regulating action.
Numerous studies around the world confirm that ESC is highly effective in helping
the driver maintain control of the car and saving lives and reducing the severity of
crashes.[3] In the fall of 2004 in the U.S., the National Highway and Traffic Safety
Administration confirmed the international studies, releasing results of a field
study in the U.S. of ESC effectiveness. NHTSA concluded that ESC reduces crashes
by 35%. Additionally, Sport utility vehicles (SUV's) with stability control are
involved in 67% fewer accidents than SUVs without the system. The Insurance
Institute for Highway Safety (IIHS) issued its own study results in 2004 concluding
that universal use of ESC could save 7,000 lives a year in the United States. In June
2006, the IIHS released a second study showing that up to 10,000 fatal US crashes
could be avoided annually if all vehicles were equipped with ESC[4] The 2006 study
concluded that ESC reduces the likelihood of all fatal crashes by 43%, fatal single-
vehicle crashes by 56%, and fatal single-vehicle rollovers by 77-80%.
APPLICATION
AGV(Automated guided vehicles)