Beruflich Dokumente
Kultur Dokumente
CHAPTER 1: INTRODUCTION
Chapter 1
INTRODUCTION
1.1
CHAPTER 1: INTRODUCTION
INTRODUCTION:
The main objective of this chapter is to give the ideas about the whole project. This
chapter contains of several subtopics that contains of project overview, the objective, scope,
the methodology and the summary of the thesis. This chapter is also including of explanation
of the implementation process of the project.
1.2
PROJECT OVERVIEW:
The project consists of a main circuit that includes a LCD display indicator, two Hall
sensors attached to the bike frame, and a small magnet placed on the gear shift lever. It
operation depends entirely on the gear shift lever movement instead of connecting to
speedometer and tachometer sensors, making this its main advantage. The signals of the two
hall sensors are read by the AVR ATmeag8 microcontroller. The current gear is stored in
EEPROM even if the motor is turned OFF. This will be restored when the device is turned
ON again.
CHAPTER 1: INTRODUCTION
Magnetic Field
Sense from
Gear lever
No
Sensing On?
Yes
Sense Level
Down
Up
Gear level
decreased by
-1
Gear level
increased by
+1
Microcontroller
Operation
Crystal
Oscillator
(16 MHz
Freq.
Generation
LCD Display
CHAPTER 1: INTRODUCTION
There are two hall sensors in the project, Bike Gear Indicator. They are up Sensor
and down sensor. When there is an increase in Gear Level, the count increases by +1
and when there is a increase in Gear Level, count decreases by -1. In motorcycles,
there are gear levers. When the gear levers are in motion, they create magnetic field
and those magnetic fields are captured and sensed by the two hall sensors depending
upon down gear shift or up gear shift. The fields generated are in ac (alternative
current) form. Hence a bridge rectifier is used to convert it into dc (direct current)
form upto 5 Volts. This along with the sensor output is given to the microcontroller.
A crystal oscillator is connected to the microcontroller which generates 16 MHz
frequency required for the operation. The whole operation is performed in the
microcontroller. A 16*2 LCD display is connected to the microcontroller which
indicates the gear level as projects output.
CHAPTER 1: INTRODUCTION
Chapter 2
LIST OF COMPONENTS
CHAPTER 1: INTRODUCTION
CHAPTER 1: INTRODUCTION
III.
IV.
Crystal Oscillator
V.
VI.
VII.
Bridge Rectifier
PCB
Resistors
VIII.
Capacitors
IX.
9V Battery
CHAPTER 1: INTRODUCTION
Frequently, a Hall sensor is combined with circuitry that allows the device to act in a
digital (on/off) mode, and may be called a switch in this configuration. Commonly seen in
industrial applications such as the pictured pneumatic cylinder, they are also used in
consumer equipment; for example some computer printers use them to detect missing paper
and open covers. When high reliability is required, they are used in keyboards.
The US5881 is a unipolar Hall Effect sensor IC fabricated from mixed signal CMOS
technology. It incorporates advanced chopper stabilization techniques to provide accurate and
stable magnetic switch points. There are many applications for this sensor in addition to those
listed above. The design, specifications and performance have been optimized for
applications of solid state switches
CHAPTER 1: INTRODUCTION
in
consumer
devices
such
as
DVD
players,
gaming
devices, clocks, watches, calculators, and telephones, and have replaced cathode ray
tube (CRT) displays in most applications. They are available in a wider range of screen sizes
than CRT and plasma displays, and since they do not use phosphors, they do not suffer image
burn-in. LCDs are, however, susceptible to image persistence.
CHAPTER 1: INTRODUCTION
PIN
TYPE
DESCRIPTION
Name
NO.
Input
Supply Input
Common
Ground
Output
Supply Input
oscillator is
an electronic
oscillator circuit
that
uses
the
10
CHAPTER 1: INTRODUCTION
bridge is
an
arrangement
of
four
(or
more) diodes in
a bridge
circuit configuration that provides the same polarity of output for either polarity of input.
When used in its most common application, for conversion of an alternating
current (AC) input into a direct current (DC) output, it is known as a bridge rectifier. A bridge
rectifier provides full-wave rectification from a two-wire AC input, resulting in lower cost
and weight as compared to a rectifier with a 3-wire input from a transformer with a centertapped secondary winding.
The essential feature of a diode bridge is that the polarity of the output is the same
regardless of the polarity at the input.
2.2.6 PCB:
11
CHAPTER 1: INTRODUCTION
Fig 2.8PCB
Printed circuit boards are electronic circuits boards created for mounting electronic
components on a nonconductive board, and for creating conductive connections between
them. The boards are made from glass reinforced plastic with copper tracks in the place of
wires. Components are fixed in position by drilling holes through the board, locating the
components and then soldering them in place. The copper tracks link the components
together forming a circuit
A PCB allows signals and power to be routed between physical devices. Solder is the
metal that makes the electrical connections between the surface of the PCB and the electronic
components. Being metal, solder also serves as a strong mechanical adhesive.
2.2.7 Resistors:
A resistor is a passive two terminal component that implement electrical resistance as
a circuit element. Resistors act to reduce current flow and at the same time act to lower
voltage levels within circuit. In electronic circuit resistors are used to limit current flow
Fig2.9 Resistor
Here we have used 3resistors
R1- 10k,
R2- 2k
2.2.8 Capacitor:
ACROPOLIS TECHNICAL CAMPUS
12
CHAPTER 1: INTRODUCTION
component used
to
store energy electro statically in an electric field. The forms of practical capacitors vary
widely, but all contain at least two electrical conductors separated by a dielectric . The
conductors can be thin films, foils or sintered beads of metal etc. The "none conducting"
dielectric acts to increase the capacitor's charge capacity. A dielectric can be glass, ceramic,
plastic films, air etc.
C1C233pF,
C3 100 pF,
C4C51000F
2.2.9 Battery:
13
CHAPTER 1: INTRODUCTION
Fig 2.10Battery
An electric battery is a device consisting of one or more electrochemical cells that
convert stored chemical energy into electrical energy. Each cell contains a positive terminal,
or cathode, and a negative terminal, or anode. Electrolytes allow ions to move between the
electrodes and terminals, which allows current to flow out of the battery to perform work
14
Chapter 3
AVR ATMEGA 8
3.1
INTRODUCTION:
The AVR is a modified Harvard architecture 8-bit RISC single chip microcontroller
which was developed by Atmel in 1996. The AVR was one of the first microcontroller
families to use on-chip flash memory for program storage, as opposed to one-time
programmable ROM, EPROM, or EEPROM used by other microcontrollers at the time
3.2.1 Categories:
AVR microcontrollers are available in three categories
1. TinyAVR Less memory, small size, suitable only for simple applications
2. MegaAVR These are the most popular ones having good amount memory (up to 256
KB), higher number of inbuilt peripherals and suitable for moderate to complex
applications.
3. XmegaAVR Used commercially for complex applications, which require large
program memory and high speed.
The following table compares the above mentioned AVR series of microcontrollers:
Series Name
Pins
Flash Memory
Special Feature
Tiny AVR
6-32
0.5-8Kb
Small in size
Mega AVR
28-100
4-256Kb
Extended Peripheral
Xmega AVR
44-100
16-384Kb
2.
GND: Ground.
3.
RESET: A low level on this pin for longer than the minimum pulse length will
generate a reset, even if the clock is not running.
4.
5.
AVCC: The supply voltage pin for the A/D Converter, Port C (3.0).It should be
externally connected to VCC, even if the ADC is not used. If the ADC is used, it should
be connected to VCC through a low-pass filter.
PORT B:
Port B is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each
bit). The Port B output buffers have symmetrical drive characteristics with both high sink and
source capability. As inputs, Port B pins that are externally pulled low will source current if
the pull-up resistors are activated. The Port B pins are tri-stated when a reset condition
becomes active, even if the clock is not running. Depending on the clock selection fuse
settings, PB6 can be used as input to the inverting Oscillator amplifier and input to the
internal clock operating circuit. Depending on the clock selection fuse settings, PB7 can be
used as output from the inverting Oscillator amplifier. If the Internal Calibrated RC Oscillator
is used as chip clock source, PB7.6 is used as TOSC2.1 .Input for the Asynchronous
Timer/Counter2 if the AS2 bit in ASSR is set. The various special features of Port B are
elaborated in table.
FUNCTIONS
PB7
PB6
PB5
PB4
PB3
PB2
PB1
PB0
PORT C:
Port C (PC5.PC0) Port C is a 7-bit bi-directional I/O port with internal pull-up
resistors (selected for each bit). The Port C output buffers have symmetrical drive
characteristics with both high sink and source capability. As inputs, Port C pins that are
externally pulled low will source current if the pull-up resistors are activated. The Port C pins
are tri-stated when a reset condition becomes active, Even if the clock is not running
PC6/RESET: If the RSTDISBL Fuse is programmed, PC6 is used as an I/O pin. Note
that the electrical characteristics of PC6 differ from those of the other pins of Port C. If the
RSTDISBL Fuse is unprogrammed, PC6 is used as a Reset input. A low level on this pin for
longer than the minimum pulse length will generate a Reset, even if the clock is not running.
Shorter pulses are not guaranteed to generate a Reset. The various special features of Port C
are elaborated in Table:
PORT PIN
FUNCTIONS
PC6
PC5
PC4
PC3
PC2
PC1
PC0
PORT D:
Port D is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each
bit). The Port B output buffers have symmetrical drive characteristics with both high sink and
source capability. As inputs, Port D pins that are externally pulled low will source current if
the pull-up resistors are activated. The Port D pins are tri-stated when a reset condition
becomes active, even if the clock is not running. Depending on the clock selection fuse
settings
The Port D pins with alternate functions are shown in Table:
PORT PIN
FUNCTIONS
PD7
PD6
PD5
PD4
PD3
PD2
PD1
PD0
Chapter 4
PCB DESIGNING
4.1 Introduction:
A printed
circuit
board
(PCB) mechanically
supports
and
electrically
connects electronic components using conductive tracks, pads and other features etched from
copper sheets laminated onto a non-conductive substrate. PCBs can be single sided (one
copper layer), double sided (two copper layers) or multi-layer. Conductors on different layers
are connected with plated-through holes called visa. Advanced PCBs may contain
components - capacitors, resistors or active devices - embedded in the substrate.
Printed circuit boards are used in all but the simplest electronic products. Alternatives to
PCBs include wire wrap and point-to-point construction. PCBs require the additional design
effort to lay out the circuit but manufacturing and assembly can be automated. Manufacturing
circuits with PCBs is cheaper and faster than with other wiring methods as components are
mounted and wired with one single part. Furthermore, operator wiring errors are eliminated.
4.2 Lamination:
Multi-layer printed circuit boards have trace layers inside the board. One way to make a
4-layer PCB is to use a two-sided copper-clad laminate, etch the circuitry on both sides, then
laminate to the top and bottom pre-preg and copper foil. Lamination is done by placing the
stack of materials in a press and applying pressure and heat for a period of time. This results
in an inseparable one piece product. It is then drilled, plated, and etched again to get traces on
top and bottom layers. Finally the PCB is covered with solder mask, marking legend, and a
surface finish may be applied. Multi-layer PCBs allow for much higher component density.
hobbyists, is immersion etching, in which the board is submerged in etching solution such as
ferric chloride.
4.4 Drilling:
Holes through a PCB are typically drilled with small-diameter drill bits made of solid
coated tungsten carbide. Coated tungsten carbide is recommended since many board
materials are very abrasive and drilling must be high RPM and high feed to be cost effective.
Drill bits must also remain sharp so as not to mar or tear the traces. Drilling with high-speedsteel is simply not feasible since the drill bits will dull quickly and thus tear the copper and
ruin the boards.
RESULT
RESULT
26
ACROPOLIS TECHNICAL CAMPUS
RESULT
As we shift the gear in a bike, hall sensors senses that shift and gives the result on 16*2
LCD panel.
When gear lever shifts from neutral to first gear, result is indicated on LCD as 1.
When gear is shifted from first to second gear, LCD panel displays the result as 2.
This increasing gear level indicates gear shift towards the upper hall sensor which gives
'+1' count to gear indicator.
But when the gear is shifted from upper to lower level, it gives '-1' count to gear
indicator. And in this way the project is working successfully.
27
ACROPOLIS TECHNICAL CAMPUS
CONCLUSION
CONCLUSION
CONCLUSION
In the early parts of this project, our vague goals led to a broad scope of ideas, and a
lack of structure. Choosing areas of focus and completing research of prior knowledge in this
area helped us to narrow our design and choose an approach that is feasible.
Many aspects of this project involved learning how particular processes work,
including the PCB layout. Our final design utilized many different aspects of the field of
electronics engineering and design.
The PCB design made our prototype much more secure and aesthetic. The set design
goals were completed, though there is much that can be improved upon.
REFERENCES
REFERENCES:
1. http://www.circuitstoday.com/avr-atmega8-microcontroller-an-introduction
2. http://www.atmel.com/images/atmel-2486-8-bit-avr-microcontrolleratmega8_l_datasheet.pdf
3. http://en.wikipedia.org/wiki/Microcontroller
4. http://www.electronics-lab.com/projects/automotive/006/index.html