Professional Documents
Culture Documents
Innovians Technologies
Implementing New Ideas & Technology
Organized By
Innovians Technologies
www.innovianstechnologies.com
Address: C-56/11- 7th Floor, Sector-62, Noida, U.P., India-201301. Contact: 0120-4324129
Email: info@innovianstechnologies.com
Web: www.innovianstechnologies.com
In
Innovians Technologies
Table of Content
1. Introduction ... 3
2. Introduction to Basic Electronics ... 4
2.1. Voltage & Current .. 4
2.2. Resistors .. 5
2.3. Capacitors 8
2.4. Inductors . 10
2.5. Diode . .11
3. Motors 14
4. Introduction to Motor Drivers. 14
4.1. H-Bridge ...14
4.2. L239D Dual H-Bridge Motor Driver ...15
5. Introduction to AVR Series (Atmega 8/8L) Microcontroller16
5.1. Features 16
5.2. Pin Diagram ..17
5.3. Block Diagram ..18
5.4. PIN Description 18
6. Type of Switches...19
7. Installation of required software applications...20
7.1. Installation of Code Vision AVR .21
7.2. Installation of USBASP Programmer Drivers 26
8. Atmega 8L Pin Configuration ..34
9. Microcontroller Board Diagram 35
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
1. Introduction
Robots and robotic technologies have an intellectual and emotional appeal that transcends any other type
of engineered product, and this appeal is felt no more so than with children and young adults. Robots and
robotic technologies represent a practical application of physics, computer science, engineering, and
mathematics, and provide a very powerful and flexible approach to demonstrate a variety of engineering
concepts. In addition, robotics appeals to a broad range of interests and allows multiple points of access to
science, mathematics, and engineering for many types of learners. As a result, robotic technology and
robots are being used by an increasing number of educators at the college level to reinforce computer
science and engineering theory, and to teach basic software and mechanical engineering at the grammar
school, middle school and high school levels. But perhaps most importantly for younger students, robots
and robotic technology inculcate an interest in science and increase selfesteem, as well as teach basic life
skills such as problem solving, decision making, goal setting and logical thinking.
As we are living in an age of Information Technology. Electronics is at the very foundation of the
Information and Computer Age and robotics. The giant strides that we have made in the areas of
Communications and Computers are possible only because of the great successes that we have achieved
in the field of Electronics. It is sometimes unbelievable, how many electronics gadgets that we carry these
days in our person
Digital Wrist-watch, Calculator, Cell-phone, Digital Diary or a PDA, Digital Camera or a Video
camera, etc.
The different type of Electronic equipments that has invaded our offices and homes these days is also
mind boggling. Many things we use at home and office are remote controlled, for example, Television
(TV), Air-Conditioners, Audio equipment, Telephone, etc. It is almost close to magic how even a child,
now-a-days, can switch channels, or increase decrease the volume of sound in a TV at home by just
clicking on a few buttons sitting at the comfort of a sofa away from the Television apparently without any
physical wiring or connection!
Again, we are astonished, how we are able to talk to our near and dear living several thousands of
Kilometers away, from wherever we are, at home, office, on the road in a car, or in a classroom by just
clicking a few n umbers on our palm sized cellular phones! Electronics has made deep impact in several
vital areas such as health care, medical diagnosis and Treatment, Air and space travels, Automobiles, etc.
In short, the technological developments of several countries of the globe are directly related to their
strengths in electronics design, manufacture, products and services.
Just as we teach physics, chemistry, biology and mathematics in our schools, it is high time we start
teaching our children at school, Electronics as a separate subject by itself. This brings us face to face to an
important question: How to teach the basic concepts of such an important subject like Electronics most
effectively? If one wants to gain a good understanding of electronics, he or she should build circuits and
test them independently. For this one should acquire a practical knowledge of the characteristics of
different devices and in constructing the various circuits. Let us try to learn such skills by the proven
scheme of
LEARNING BY DOING.
There is only one way to learn to do anything: and I found Robotics is the best way to learn all this.
info@innovianstechnologies.com
www.innovianstechnologies.com
Innovians Technologies
In
Voltage, V
Current, I
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
2.2. Resistors
A resistor is a passive two-terminal electrical component that implements electrical resistance as a circuit
element. The current through a resistor is in direct proportion to the voltage across the resistor's terminals.
Thus, the ratio of the voltage applied across a resistor's terminals to the intensity of current through the
circuit is called resistance. This relation is represented by Ohm's law:
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
somewhere. See the section Dialing with potentiometers, later in this chapter, for detailed info
on these puppies.
Resistor Colors
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
resistors that you use in low-current applications. The majority of resistors that you use for
hobby electronics are rated at 14 or even 18 watt. High-wattage resistors take many forms,
some of which you can see in Figure 4-3. Resistors over five watts commonly come encased in
epoxy or other waterproof and flameproof coating and have a rectangular, rather than
cylindrical, shape. Higher-wattage resistors may even include their own metal heat sink where
the fins help draw heat away from the resistor.
Variable Resistors
The variable resistor is a resistor whose value can be adjusted by turning a shaft or sliding a
control. These are also called potentiometers or rheostats and allow the resistance of the device
to be altered by hand. Variable resistors can be inexpensive single-turn types or multi-turn types
with a helical element.
Some variable resistors can be fitted with a mechanical display to count the turns.
Variable resistors can sometimes be unreliable, because the wire or metal can corrode or wear.
Some modern variable resistors use plastic materials that do not corrode and have better wear
characteristics.
Calculations
Power dissipation
The power dissipated by a resistor is the voltage across the resistor times the current through the
resistor:
All three equations are equivalent, the last two being derived from the first by Ohm's
Law. The total amount of heat energy released per unit time is the integral of the power:
As a special case, the resistance of N resistors connected in series, each of the same resistance R, is given
by NR.
Resistors in a parallel configuration are each subject to the same potential difference (voltage), however
the currents through them add. The conductances of the resistors then add to determine the conductance
of the network. Thus the equivalent resistance (Req) of the network can be computed:
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
The parallel equivalent resistance can be represented in equations by two vertical lines "||" (as in
geometry) as a simplified notation. Occasionally two slashes "//" are used instead of "||", in case the
keyboard or font lacks the vertical line symbol. For the case of two resistors in parallel, this can be
calculated using:
2.3. Capacitors
Capacitors store electrons by attracting them to a positive voltage. When the voltage is reduced or
removed, the electrons move off. When a capacitor removes or adds electrons to the circuit in this
fashion, it can work to smooth out voltage fluctuations. In some cases you can use capacitors combined
with resistors as timers. Capacitors make possible all kinds of circuits, such as amplifiers and thousands
of others.
Some types of capacitors.
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
Though they many sound complicated because of all the things that you can use them for, capacitors are
really very simple devices. The typical capacitor has two metal plates inside it. The plates dont touch.
Instead, a dielectric material, which is a fancy term for an insulator, separates the plates. The charge is
stored at the surface of the plates, at the boundary with the dielectric. Because each plate stores an equal
but opposite charge, the total charge in the capacitor is always zero.
Capacitance of a capacitor
The capacitors capacitance (C) is a measure of the amount of charge (Q) stored on each plate for a given
potential difference or voltage (V) which appears between the plates:
In SI units, a capacitor has a capacitance of one farad when one coulomb of charge causes a potential
difference of one volt across the plates. Since the farad is a very large unit, values of capacitors are
usually expressed in microfarads (F), nanofarads (nF) or picofarads (pF). The capacitance is
proportional to the surface area of the conducting plate and inversely proportional to the distance between
the plates. It is also proportional to the permittivity of the dielectric (that is, non-conducting) substance
that separates the plates.
Stored energy
As electric charge accumulates on the plates of a capacitor, a voltage develops across the capacitor due to
the electric field of the accumulated charge. Ever increasing work must be done against this ever
increasing electric field as more charge accumulates. The energy (measured in joules , in SI ) stored in a
capacitor is equal to the amount of work required to establish the voltage across the capacitor, and
therefore the electric field. The energy stored is given by:
Capacitor networks
A capacitor can be used to block the DC Current flowing within the circuit and therefore have important
applications in coupling of ac signals between amplifier stages, whilst preventing dc from passing.
Capacitors in a parallel: in this configuration each have the same potential difference (voltage). To find
their total equivalent capacitance (C):
Capacitor in Series: The current through capacitors in series stays the same, but the voltage across each
capacitor can be different. The sum of the potential differences (voltage) is equal to the total voltage. To
find their total Capacitance:
One possible reason to connect capacitors in series is to increase the overall voltage rating. In practice, a
very large resistor might be connected across each capacitor to divide the total voltage appropriately for
the individual ratings.
www.innovianstechnologies.com
In
Innovians Technologies
2.4. Inductors
An inductor is a passive electrical device that stores energy in a magnetic field, typically by combining
the effects of many loops of electric current.
www.innovianstechnologies.com
10
In
Innovians Technologies
The current through inductors in series stays the same, but the voltage across each inductor can be
different. The sum of the potential differences (voltage) is equal to the total voltage. To find their total
Inductance:
2.5 Diodes
The diode is the simplest form of semiconductor. You use semiconductors in a circuit to control
the flow of electrons. A diode has two terminals, each with a high resistance to current in one
direction and low resistance to current in the opposite direction. Or put another way, diodes act
as a one-way valve for electrons. Electrons can go through the diode in one direction
but not in the other. A variety of applications use diodes and these diodes fall into numerous
subtypes.
Here is a list of the most common diodes:
Zener: These puppies limit voltage to a pre-determined amount. You can build a voltage
regulator for your circuit cheaply and easily with a zener diode.
Light-emitting diode (LED): All semiconductors emit infrared light when they conduct
current. LEDs emit visible light. Now available in all the colors of the rainbow.
Silicon-controlled rectifier (SCR): The SCR is a type of switch used to control AC or DC
currents. Theyre common in light dimmer switches.
Rectifier: This basic diode transforms (referred to as rectifying) AC current to provide
DC current only. (Remember: AC current alternates between both positive and negative values.
DC current does not alternate, and is only positive or negative. See Figure 4-6 for an example.)
Diodes are often referred to as rectifiers because they perform this rectifying function.
Bridge rectifier: This component consists of four diodes, connected one to the other to
form a kind of box shape; it rectifies AC to DC with maximum efficiency.
info@innovianstechnologies.com
www.innovianstechnologies.com
11
In
Innovians Technologies
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
Light-Emitting Diodes
If bright lights turn you on, you can appreciate the curious behavior of semiconductors: They
emit light when you apply an electric current to them. This light is generally very dim and only
in the infrared region of the electromagnetic spectrum. The light-emitting diode (LED), such as
the light that glows yellow or green when your computer is on, is a special type of
semiconductor expressly designed to emit copious amounts of light. Most LEDs are engineered
to produce red, yellow, or green visible light, but some special-purpose types emit infrared,
blue, and even white light.
LEDs carry the same specifications as any other diode, but they usually havea pretty low
current rating. An LED has a PIV rating of about 100 to 150 volts, with a maximum current
rating of under 50 milliamps. If more current passes through an LED than its maximum rating
allows, the LED burns up.
Resistors, meet LEDs
You use a resistor, such as the one in Figure below, to limit the current to the LED. You select
the value of the resistor to maintain the current below the maximum current rating of the LED.
The calculation is simple, and for most LEDs and 5 or 12 volt circuits, you can use common
resistor values that get you in the right ballpark.
13
We list common resistor values in Table below. The values are selected based on the ratings of
most LEDs.
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
3. Motors
An electric motor is an electromechanical device that converts electrical energy into mechanical energy.
There are two types of motor:
1. AC Motors (Run on AC Electric Power).
2. DC Motors (Run on DC Electric Power).
4.
In this part of tutorial we will learn to interface a DC motor with a microcontroller. Usually Hbridge is preferred way of interfacing a DC motor. These days many IC manufacturers have Hbridge motor drivers available in the market like L293D is most used H-Bridge driver IC. Hbridge can also be made with the help of transistors and MOSFETs etc. rather of being cheap,
they only increase the size of the design board, which is sometimes not required so using a
small 16 pin IC is preferred for this purpose.
4.1
H-Bridge
14
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
Interfacing
15
info@innovianstechnologies.com
www.innovianstechnologies.com
Innovians Technologies
In
info@innovianstechnologies.com
www.innovianstechnologies.com
16
Innovians Technologies
In
5.2.PIN DIAGRAM
17
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
5.3.Block Diagram
18
VCC : Digital supply voltage. Magnitude of the voltage range between 4.5 to 5.5 V for the ATmega8 and
2.7 to 5.5 V for ATmega8L.
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
6. Types of Switches
Switches are essentially binary devices: they are either completely on ("closed") or completely off
("open"). There are many different types of switches:
19
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
Under Software Folder, double click on the Code Vision AVR Folder, then you will find 2 folder of 32Bit & 64-Bit. So based on the type of Operating System whether it is 32-Bit or 64-Bit O.S. then install the
Code Vision AVR accordingly.
20
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
21
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
22
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
23
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
24
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
25
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
26
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
27
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
28
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
29
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
30
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
31
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
32
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
33
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
34
info@innovianstechnologies.com
www.innovianstechnologies.com
In
Innovians Technologies
35
info@innovianstechnologies.com
www.innovianstechnologies.com