Professional Documents
Culture Documents
19322492444e0acadc584908.38747942.TRANING REPORT PDF
19322492444e0acadc584908.38747942.TRANING REPORT PDF
Company Profile
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 1
Augmentation is a dream virtue of every performer we at EESPL envisaged on a theme for providing a new epitome of IT solutions in the embedded Telecom & Software based Product development services. Our edge right from the start was creating a perceptible differentiation among the plethora of communized IT solutions.
EESPL - where progress is a winning habit
Eureka ElectroSoft Solutions Pvt. Ltd. (EESPL) is primarily operating as a registered R & D lab for the development and conception of Advanced Automation related software and hardware solutions. Our expertise includes electronics and software based stand alone solutions as well as combined integrated solutions termed as Electrosoft Solutions. At EESPL over the years we have developed a core competency to maximize the quality & innovation parameter while working on any task. Our proven values have made us as a prime leader in providing customized solutions. It is our stiff endeavor to amplify our clients viewpoints and to carve up their thoughts. This in turn is transformed into factual scenario working models with a collection of prime technological aspects. All this is and much more in the shortest turnaround period.
EESPL the background and essence of operations
The year 2002 witnessed the birth of a visualization which was to impart economy with a pinnacle swiftness of innovation in contemporary Industrial IT Solutions. There came EESPL and a new chapter of imparting excellence in IT techniques came into subsistence. That was the foundation and today the road voyaged by EESPL encompasses years of reliance, accomplishments and above all unlimited bonds. Bonds that speak for themselves, relationships that reflect factual progress. Triumph at EESPL is defined as the never ending smile on our dear customers face. At EESPL we do not impart conception, we create endearing teams.
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 2
Understanding the pulsation of a customer forms our principal challenge. Assurances that mean results, efforts that capitulate advancement and outcomes that move imaginings form the spirit of our day after day working. Timeliness is of chief value to us and understanding the modern day race for time, we deliver the maximum in minimum and that too with precision. Our approach of operation also constitutes of a dedicated Registered Research and Development lab to make available the final deliverables with thread bare technologies. Our precedence is often devised on the scale of our customers desires. After carefully analyzing on the need based approach we craft a well planned set of operations each fragment is build with an in depth focus on customers requirements.
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 3
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 4
QUALITY TESTING Extensive industry exposure, expanded skills and comprehensive experience in executing key projects for reputed global companies enable us to bring world-class technology, true-value professional expertise & immense knowledge of successful project management. Quality Assurance is one of the key focus areas and once a solution is developed, our Software Testing Team steps in to perform the rigorous rituals, required to deliver a robust, flawless product/application. Software testing at Olive is performed at several points in the Software Development Life Cycle (SDLC), as an application is constructed component by component into a functioning system. Our qualified testers carry out intense testing for bugs and flaws and fix the same - all within the strictest time frame. CUSTOMER SUPPORT AND FEEDBACK REVIEW
Ensuring total customer satisfaction is EESPLs forte and the company has implemented an effective customer relationship management strategy for increased efficiency and overall success. From project kick-off to customer sign-off, Eureka's dedicated Managers will work in tandem with you and provide round-the-clock updates on project status. They also solve problems, answer queries and give instant feedback. Eureka provides 24x7 online support, proposed (each customer query will be immediately recorded and a ticket number will be issued for future reference).
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 5
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 6
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 7
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 8
Connecting Emotions
Our venture into the turf of Telecom Network Services has been under the aegis of Eureka Telecom Solutions. Our principal focal point in this sphere is to fuse diverse expertise for catering to Telecom Networking, Communication & Infrastructure maintenance needs of globally distributed Enterprises and Telecom Carriers (GSM & CDMA). Our laurels in segment sector include associations with variety of renowned Telecom players such as SPICE, VODAFONE, RELIANCE, ERICSSON, SIEMENS, NOKIA and ZTE. On the offerings are telecom site installation and commissioning, BSC & Transcoder Installation & Commissioning, BSS support and Maintenance, Installation of MSCs, Electrical resourcing and installation. In addition to above utilities, we are also diligently developing hardware and software based automation gear for TELECOM sector.
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 9
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 10
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 11
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 12
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 13
Training Modules
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 14
Introduction
Technology has rapidly grown in past two-three decades. An engineer without practical knowledge and skills cannot survive in this technical era. Theoretical knowledge does matter but it is the practical knowledge that is the difference between the best and the better. Organizations also prefer experienced engineers than fresher ones due to practical knowledge and industrial exposure of the former. So industrial exposure is mandatory for engineers nowadays. The practical training is highly conductive for solid foundation for: 1) Knowledge and personality. creativity. 2) Confidence building 3) Enhancement of
Embedded Systems are present every where around us like from a simple digital wrist watch to the most complex satellite space ships. All entities involving automation are equipped with embedded systems. At the core of every embedded system there is either a microprocessor or a microcontroller or any other programmable intelligent unit that works with the other interfaced units to make a complete working product. So in ongoing cutthroat competition it is mandatory for every engineer to understand and become proficient in this upcoming technology. Embedded systems are computers which are part of special-purpose devices. Due to the limited duties these systems can be highly optimized to the particular needs. Traditionally most of these systems are used for control and process measurement, as a side-effect of higher integration of integrated circuits more complex applications can be solved by embedded systems. To be able to solve these problems, embedded systems are commonly equipped with various kinds of peripherals. Early applications of embedded devices include the guidance computer of the Minuteman I missiles and the Apollo guidance computer. The Minuteman I & II missiles are intercontinental ballistic nuclear warheads, produced by Boeing in the 1960s. Due to the large quantities of ICs used in the guidance system of Minuteman II missiles, prices for ICs fell from 1000$ each to 3$ each. This lead to wide adoption of embedded systems in consumer electronics
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 15
'
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 16
Module -1
TRANSFORMER
BRIDGE RECTIFIER
SHUNT CAPACITOR
VOLTAGE REGULATOR
The power supply circuit comprises of four basic parts: The transformer steps down the 220 V a/c. into 12 V a/c. The transformer work on the principle of magnetic induction, where two coils: primary and secondary are wound around an iron core. The two coils are physically insulated from each other in such a way that passing an a/c. current through the primary coil creates a changing voltage in the primary coil and a changing magnetic field in the core. This in turn induces a varying a/c. voltage in the secondary coil. The a/c. voltage is then fed to the bridge rectifier. The rectifier circuit is used in most electronic power supplies is the single-phase bridge rectifier with capacitor filtering, usually followed by a linear voltage regulator. A rectifier circuit is necessary to convert a signal having zero average value into a nonzero average value. A rectifier transforms alternating current into direct
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 17
O/P 16 V TRANSFORMER
The ripple of the D.C. voltage is smoothened using a filter capacitor of 1000 microF 25V. The filter capacitor stores electrical charge. If it is large enough the capacitor will store charge as the voltage rises and give up the charge as the voltage falls. This has the effect of smoothing out the waveform and provides steadier voltage output. A filter capacitor is connected at the rectifier output and the d.c voltage is obtained across the capacitor. When this capacitor is used in this project, it should be twice the supply voltage. When the filter is used, the RC charge time of the filter capacitor must be short and the RC discharge time must be long to eliminate ripple action. In other words the capacitor must charge up fast, preferably with no discharge. When the rectifier output voltage is increasing, the capacitor charges to the peak voltage Vm. Just past the positive peak, the rectifier output voltage starts to fall but at this point the capacitor has +Vm voltage across it. Since the source voltage becomes slightly less than Vm, the capacitor will try to send current back through the diode of rectifier. This reverse biases the
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 18
I\P(12V) 1
1N4007
7805
VIN
GND
VOUT
O\P(5V)
+
D1
D2
+ -
GROUND
1000UF
T1
+ -
LED
The voltage regulator regulates the supply if the supply if the line voltage increases or decreases. The series 78xx regulators provide fixed regulated voltages from 5 to 24 volts. An unregulated input voltage is applied at the IC Input pin i.e. pin 1 which is filtered by capacitor. The out terminal of the IC i.e. pin 3 provides a regular output. The third terminal is connected to ground. While the input voltage may vary over some permissible voltage
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
220 V AC
D3
D4
C1
2 1
Page 19
OUTPUT
J2 470 E +
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 20
MICROCONTROLLERS VERSUS MICROPROCESSORS What is the difference between a microprocessor and microcontroller? The microprocessors (such as 8086,80286,68000 etc.) contain no RAM, no ROM and no I/O ports on the chip itself. For this reason they are referred as general- purpose microprocessors. A system designer using general- purpose microprocessor must add external RAM, ROM, I/O ports and timers to make them functional. Although the addition of external RAM, ROM, and I/O ports make the system bulkier and much more expensive, they have the advantage of versatility such that the designer can decide on the amount of RAM, ROM and I/o ports needed to fit the task at hand. This is the not the case with microcontrollers. A microcontroller has a CPU (a microprocessor) in addition to the fixed amount of RAM, ROM, I/O ports, and timer are all embedded together on the chip: therefore, the designer cannot add any external memory, I/O, or timer to it. The fixed amount of on chip RAM, ROM, and number of I/O ports in microcontrollers make them ideal for many applications in which cost and space are critical. In many applications,
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 21
EXTERNAL INTERRUPTS
ETC. INTERRUPT CONTROL ON-CHIP ROM for program code ON-CHIP RAM
TIMER 0
TIMER 1
CPU
OSC
BUS CONTROL
4 I/O
PORTS
TXD RXD
SERIAL PORT
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 22
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 23
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 24
PIN DESCRIPTION
The 89C51 have a total of 40 pins that are dedicated for various functions such as I/O, RD, WR, address and interrupts. Out of 40 pins, a total of 32 pins are set aside for the four ports P0, P1, P2, and P3, where each port takes 8 pins. The rest of the pins are designated as Vcc, GND, XTAL1, XTAL, RST, EA, and PSEN. All these pins except PSEN and ALE are used by all members of the 8051 and 8031 families. In other words, they must be connected in order for the system to work, regardless of whether the microcontroller is of the 8051 or the 8031 family. The other two pins, PSEN and ALE are used mainly in 8031 based systems. Vcc Pin 40 provides supply voltage to the chip. The voltage source is +5 V. GND Pin 20 is the ground.
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 25
GND
It must be noted that there are various speeds of the 8051 family. Speed refers to the maximum oscillator frequency connected to the XTAL. For example, a 12 MHz chip must be connected to a crystal with 12 MHz frequency or less. Likewise, a 20 MHz microcontroller requires a crystal frequency of no more than 20 MHz. When the 8051 is connected to a crystal oscillator and is powered up, we can observe the frequency on the XTAL2 pin using oscilloscope. RST Pin 9 is the reset pin. It is an input and is active high (normally low). Upon applying a high pulse to this pin, the microcontroller will reset and terminate all activities. This is often referred to as a power on reset. Activating a power-on reset will cause all values in the registers to be lost. Notice that the value of Program Counter is 0000 upon reset, forcing the CPU to fetch the first code from ROM memory location 0000. This means
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 26
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 27
Eureka Electrosoft Solutions Pvt. Ltd. I/O port pins and their functions
The four ports P0, P1, P2, and P3 each use 8 pins, making them 8-bit ports. All the ports upon RESET are configured as output, ready to be used as output ports. To use any of these as input port, it must be programmed. Port 0 Port 0 occupies a total of 8 pins (pins 32 to 39). It can be used for input or output. To use the pins of port 0 as both input and output ports, each pin must be connected externally to a 10K-ohm pull-up resistor. This is due to fact that port 0 is an open drain, unlike P1, P2 and P3. With external pull-up resistors connected upon reset, port 0 is configured as output port. In order to make port 0 an input, the port must be programmed by writing 1 to all the bits of it. Port 0 is also designated as AD0-AD7, allowing it to be used for both data and address. When connecting a microcontroller to an external memory, port 0 provides both address and data. The microcontroller multiplexes address and data through port 0 to save pins. ALE indicates if P0 has address or data. When ALE=0, it provides data D0D7, but when ALE=1 it has address A0-A7. Therefore, ALE is used for de-multiplexing address and data with the help of latch 74LS373. Port 1 Port 1 occupies a total of 8 pins (pins 1 to 8). It can be used as input or output. In contrast to port 0, this port does not require pull-up resistors since it has already pull-up resistors internally. Upon reset, port 1 is configures as an output port. Similar to port 0, port 1 can be used as an input port by writing 1 to all its bits.
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 28
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 29
MODULE -2
LED INTERFACING
Like a normal diode, an LED consists of a chip of semiconducting material impregnated, or doped, with impurities to create a p-n junction. As in other diodes, current flows easily from the p-side, or anode, to the n-side, or cathode, but not in the reverse direction. Charge-carrierselectrons and holesflow into the junction from electrodes with different voltages. When an electron meets a hole, it falls into a lower energy level, and releases energy in the form of a photon. The wavelength of the light emitted, and therefore its color, depends on the band gap energy of the materials forming the p-n junction. In silicon or germanium diodes, the electrons and holes recombine by a non-radiative transition which produces no optical emission, because these are indirect band gap materials. The materials used for an LED have a direct band gap with energies corresponding to near-infrared, visible or near-ultraviolet light. LED development began with infrared and red devices made with gallium arsenide. Advances in materials science have made possible the production of devices with ever-shorter wavelengths, producing light in a variety of colors. LEDs are usually built on an n-type substrate, with an electrode attached to the p-type layer deposited on its surface. P-type substrates, while less common, occur as well. Many commercial LEDs, especially GaN/InGaN, also use sapphire substrate. Substrates that are transparent to the emitted wavelength, and backed by a reflective layer, increase the LED efficiency. The refractive index of the package material should match the index of the semiconductor, otherwise the produced light gets partially reflected back into the semiconductor, where it may be absorbed and turned into additional heat, thus lowering the efficiency. This type of reflection also occurs at the surface of the package if the LED is coupled to a medium with a different refractive index such as a glass fiber or air. The refractive index of most LED semiconductors is quite high, so in almost all cases the LED is coupled
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 30
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 31
CIRCUIT Diagram
VCC
D1 LED D2 LED D3 LED D4 LED D5 LED D6 Y? LED CRY STAL D7 LED R1 R D8 LED C? CAP NP 31 39 38 37 36 35 34 33 32 1 2 3 4 5 6 7 8 19 18 9 U?
40
P2.0/A8 P2.1/A9 P2.2/A10 P2.3/A11 P2.4/A12 P2.5/A13 P2.6/A14 P2.7/A15 P3.0/RXD P3.1/TXD P3.2/INTO P3.3/INT1 P3.4/TO P3.5/T1 P3.6/WR P3.7/RD PSEN ALE/PROG 21 22 23 24 25 26 27 28 10 11 12 13 14 15 16 17 29 30
P0.0/AD0 P0.1/AD1 P0.2/AD2 P0.3/AD3 P0.4/AD4 P0.5/AD5 P0.6/AD6 P0.7/AD7 P1.0/T2 P1.1/T2-EX P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 XTAL1 XTAL2 RST EA/VPP
AT89C52
20
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 32
// This file contains the Ports and SFR // This file is used to produce seconds and
#define led P1 // 'P1' is given the another name as led, u can use 'led' Or directly 'P1' //for programming
// Repeat forever
// light on lower 4 leds '0'-> ON (11110000) // 1 secdelay // light on upper 4 leds '1'-> OFF (00001111)
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 33
LEDS Programs
ON OFF PATTERN #include<reg51.h> 8051 #include<delay.h> milliseconds delay //This file contains the Ports and SFR address of //This file is used to produce seconds and
#define led P1 // 'P1' is given the another name as 'led' ,u can use 'led' Or directly 'P1' //for programming
//
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 34
LEDS +SWITCHES #include<reg51.h> of 8051 #include<delay.h> miliseconds delay //This file contains the Ports and SFR address //This file is used to produce seconds and
#define led P1 // 'P1' is given the another name as 'led' ,u can use 'led' Or directly 'P1' //for programming
led=0x00; secdelay(1);
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 35
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 36
MODULE -3
DC MOTOR Circuit Diagram
RESET S/W
VCC
2
VCC
U5
SW1 C3
10UF 10K
2 2 2
R1
S1 S2 1 S3 1
1
33PF CRYSTAL
C1 Y1 C2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
VCC P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 RESET RXD TXD INT0 INT1 T0 T1 WR 8051 RD X2 X1 VSS P0.0 P0.1 P0.2 P0.3 P0.4 P0.5 P0.6 P0.7 EA/VP ALE/P PSEN P2.7 P2.6 P2.5 P2.4 P2.3 P2.2 P2.1 P2.0
40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21
R2 2 3 4 5 6 7 8 9 10 C 1
3 4 5 6 7 8
14 13 12 11 10 9 VCC 3 K1
U1
RESISTOR SIP 10
1 2
IN1
OUT1
16 15
MG2
MOTOR DC
UL2003
5 4 1 2
33PF
GROUND
Working Principle: The principle upon which the d.c. motor works is very simple . If a current carrying conductor is placed in a magnetic field, mechanical force is experienced on the conductor, the direction of which is given by the Fleming's left hand rule and hence the
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 37
Eureka Electrosoft Solutions Pvt. Ltd. conductor moves in the direction of force. The magnitude of the mechanical force experienced on the conductor is given by: F = B Ic Lc newtons
where B is the field strength in teslas , Ic is the current flowing through the conductor in amperes and Lc is the length of the conductor in metres.
When the motor is connected to the d.c. supply mains a direct current passes through the brushes and the commutator to the armature winding ; while it passes through the commutator it is converetd into a.c. so that the group of conductors under successive field poles carry currrent in the opposite direction. Also the direction of the currrent in the individual conductors reverse as they pass away from the influence of one pole to that of the next.
The split phase arrangement of the motor creates two fluxes B1and B2 which induces voltage around them in the rotor and under the influence of these induced voltages current flows in the rotor. The current i1 produced by flux B1 reacts with flux B2 and develops force F1.The quantities are going to be expressed as :
B1=B1max . sin(wt) B2=B2max . sin(wt + ) It may be assumed with negligible error thet the paths in which the rotor current flow has negligible self-inductance and hence the rotor currents are in phase with their respective voltages. i1(db1/dt)=.B1max.cos wt i2(db2/dt)=K. B2 max.cos (wt +X) Since the two forces (f1and f2 ) developed are in opposition .Therefore the net force F acting on the movable element is given as:
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 38
F=F2-F1(B2.i1-i2.b1) F=K B1 max.B2 max sin r) EMF Equation: Back EMF, Eb=Flux *ZNP/60A where Z= total number of armature cunductors N= Speed in r.p.m P= total number of poles A= Total number of parallel paths. V= Eb + IaRa Ia= (V - Eb)/Ra where V = Terminal voltage Ia= Armature current Ra= Armature resistance Eb= back e.m.f. Types of D.C. motor: (i) Permanent magnet motors: It consists of an armature and one or several permanent magnets encircling the armature . Field coils are usually notrequired. However some of these motors do have coils wound on the poles . If they exist , these coils are intended only for recharging the magnets in the event that they loose their strength. (ii) Seperately excited D.C. motors: These motors have field coils
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 39
Eureka Electrosoft Solutions Pvt. Ltd. similar to those of a shunt wound machine, but the armature and field coils are fed from diferent supply sources and may have different voltage ratings. (iii) Series wound D.C. motor: As the name indicates, the field coils, consisting of few turns of a thick wire are connected in series with the armature. The cross-sectional area of the wire used for the field has to be fairly large to carry the armature current ,but owing to the higher current , the number of turns of wire in them need not be large. (iv) Shunt wound D.C. motor: These motors are so named because they basically operate with field coils connected in parallel with the armature. The field winding consists of a large number of turns of comparatively fine wire so as to provide large resistance. The field current is much less than the armature current, sometimes as low as 5%. (v) Compound wound D.C. motor : A compound wound D.C. motor has both shunt and series field coils. The shunt field is normally stronger of the two. Compound wound motors are of two types:. (a) Cumalative compound wound motor. (b) Differential compound wound motor.
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 40
void PWM(unsigned char Ton) { dc_motor=ON; millisecond ms_delay(Ton); dc_motor=OFF; millisecond ms_delay(100-Ton); } void main() { while(1) { PWM(50); } // switch oFF the Dc motor for (100-Ton) // switch on the Dc motor for Ton
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 41
void main() { while(1) { dc_motor=ON; secdelay(3); dc_motor=OFF; secdelay(2); } // switch OFF the Dc motor // switch on the Dc motor
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 42
MODULE -4
RELAY
THE ELECTROMAGNETIC solenoid valve
The electromagnetic relay consists of a multi-turn coil, wound on an iron core, to form an electromagnet. When the coil is energised, by passing current through it, the core becomes temporarily magnetised. The magnetised core attracts the iron armature. The armature is pivoted which causes it to operate one or more sets of contacts. When the coil is de-energised the armature and contacts are released. The coil can be energised from a low power source such as a transistor while the contacts can switch high powers such as the mains supply. The relay can also be situated remotely from the control source. Relays can generate a very high voltage across the coil when switched off. This can damage other components in the circuit. To prevent this a diode is connected across the coil.
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 43
As there are always some chances of high voltage spikes back from the switching circuit i.e. heater so an optocoupler/isolator MCT2e is used. It provides and electrical isolation between the microcontroller and the heater. MCT2e is a 6-pin IC with a combination of optical transmitter LED and an optical receiver as phototransistor. Microcontroller is connected to pin no 2 of MCT2e through a 470-ohm resistor. Pin no.1 is given +5V supply and pin no.4 is grounded. To handle the current drawn by the heater a power transistor BC-369 is used as a current driver. Pin no.5 of optocoupler is connected to the base of transistor. It takes all its output to V cc and activates the heater through relay circuit. The electromagnetic relay consists of a multi-turn coil, wound on an iron core, to form an electromagnet. When the coil is energized, by passing current through it, the core becomes temporarily magnetized. The magnetized core attracts the iron armature. The armature is pivoted which causes it to operate one or more sets of contacts. When the coil is de-energised the armature and contacts are released. Relays can generate a very high voltage across the coil when switched off. This can damage other components in the circuit. To prevent this a diode is connected across the coil. Relay has five points. Out of the 2 operating points one is permanently connected to the ground and the other point is connected to the collector side of the power transistor. When Vcc reaches the collector side i.e. signal is given to the operating points the coil gets magnetized and attracts the iron armature. The iron plate moves from normally connected (NC) position to normally open (NO) position. Thus the heater gets the phase signal and is ON. To remove the base leakage voltage when no signal is present a 470-ohm resistance is used.
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 44
Circuit diagram
RESET S/W
VCC
2
VCC
U5
SW1 C3
10UF 10K
2 2 2
R1
S1 1 S2 1 S3 1
33PF CRYSTAL
C1 Y1 C2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
VCC P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 RESET RXD TXD INT0 INT1 T0 T1 WR RD X2 X1 VSS P0.0 P0.1 P0.2 P0.3 P0.4 P0.5 P0.6 P0.7 EA/VP ALE/P PSEN P2.7 P2.6 P2.5 P2.4 P2.3 P2.2 P2.1 P2.0
40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21
R2 2 3 4 5 6 7 8 9 10 C 1
3 4 5 6 7 8
14 13 12 11 10 9 VCC 3 K1
U1
RESISTOR SIP 10
1 2
IN1
OUT1
16 15
MG2
MOTOR DC
UL2003
5 4 1 2
8051
33PF
GROUND
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 45
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 46
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 47
//
some
delay
for
key
// if u press s2
if(maxlen==255) // if maxlen is equal to 255 then store '9' in maxlen maxlen=9; unsigned char type variable value 255 is stored in it // so thats why the above step is necessary ms_delay(223); // note :if u decrement an
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 48
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 49
MODULE -5
STEPPER MOTOR
Motion Control, in electronic terms, means to accurately control the movement of an object based on either speed, distance, load, inertia or a combination of all these factors. There are numerous types of motion control systems, including; Stepper Motor, Linear Step Motor, DC Brush, Brushless, Servo, Brushless Servo and more. A stepper motor is an electromechanical device which converts electrical pulses into discrete mechanical movements. Stepper motor is a form of ac. motor .The shaft or spindle of a stepper motor rotates in discrete step increments when electrical command pulses are applied to it in the proper sequence. The motors rotation has several direct relationships to these applied input pulses. The sequence of the applied pulses is directly related to the direction of motor shafts rotation. The speed of the motor shafts rotation is directly related to the frequency of the input pulses and the length of rotation is directly related to the number of input pulses applied [39]. For every input pulse, the motor shaft turns through a specified number of degrees, called a step. Its working principle is one step rotation for one input pulse. The range of step size may vary from 0.72 degree to 90 degree. In position control application, if the number of input pulses sent to the motor is known, the actual position of the driven job can be obtained. A stepper motor differs from a conventional motor (CM) as under: a. Input to SM is in the form of electric pulses whereas input to a CM is invariably from a constant voltage source. b. A CM has a free running shaft whereas shaft of SM moves through angular steps. c. In control system applications, no feedback loop is required when SM is used but a feedback loop is required when CM is used. d. A SM is a digital electromechanical device whereas a CM is an analog electromechanical device [40].
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 50
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 51
fixed movement is possible as a result of basic magnetic theory where poles of the Same polarity repel and opposite poles attract. The direction of the rotation is dictated by the stator poles. The stator poles are determined by the current sent through the wire coils. As the direction of the current is changed, the polarity is also changed causing the reverse motion of the rotor. The stepper motor used here has a total of 5 leads: 4 leads representing the four stator windings and 1
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 52
Winding C
Winding D
Step 1 2 3 4
Winding A 0 1 1 1
Winding B 1 0 1 1
Winding C 1 1 0 1
Winding D 1 1 1 0
3.12.2 Step Angle & Steps per Revolution Movement associated with a single step, depends on the internal construction of the motor, in particular the number of teeth on the stator and the rotor. The step angle is the minimum degree of rotation associated with a single step. Step per revolution is the total number of steps needed to rotate one complete rotation or 360 degrees (e.g., 180 steps * 2 degree = 360) [31].
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 53
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 54
Circuit diagram
RESET S/W
VCC
2
VCC
SW1 C3
RESISTOR SIP 10
1 R2 2 3 4 5 6 7 8 9 10 C 1 3 4 5 6 7 8 2
MOTOR STEPPER
U5 IN1 IN2 IN3 IN4 IN5 IN6 IN7 GRD OUT1 OUT2 OUT3 OUT4 OUT5 OUT6 OUT7 VCC 16 15 14 13 12 11 10 9 VCC
4 5 6
MG1 1 2 3
10UF 10K
2 2 2
U1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 VCC P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 RESET RXD TXD INT0 INT1 T0 T1 WR 8051 RD X2 X1 VSS P0.0 P0.1 P0.2 P0.3 P0.4 P0.5 P0.6 P0.7 EA/VP ALE/P PSEN P2.7 P2.6 P2.5 P2.4 P2.3 P2.2 P2.1 P2.0 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21
R1
S1 S2 1 S3 1
1
33PF CRYSTAL
C1 Y1 C2
UL2003
33PF
GROUND
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 55
Page 56
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 57
DIRECTION CONTROL +SWITCHES #include<reg51.h> #include<delay.h> sbit m1=P0^0; //define the four windigs of stepper motor using sbit as m1,m2,m3,m4 sbit m2=P0^1; sbit m3=P0^2; sbit m4=P0^3; sbit s1=P3^2; sbit s2=P3^3; sbit s3=P3^4; void mov_clk() { m1=1;m2=0;m3=0;m4=0; moves one step angle in //give high pulse to m1 motor // clockwise ms_delay(200); m1=0;m2=1;m3=0;m4=0; moves two step angle in //give high pulse to m2 motor // clockwise ms_delay(200); //define the switches using sbit as s1,s2,s3
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 58
ms_delay(200); m1=0;m2=0;m3=1;m4=0; ms_delay(200); m1=0;m2=1;m3=0;m4=0; ms_delay(200); m1=1;m2=0;m3=0;m4=0; ms_delay(200); } void motor_stop() { m1=0;m2=0;m3=0;m4=0; }
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 59
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 60
MODULE -6
Seven Segment
The seven-segment LED display has four individual digits, each with a decimal point. Each of the seven segments (and the decimal point) in a given digit contains an individual LED. When a suitable voltage is applied to a given segment LED, current flows through and illuminates that segment LED. By choosing which segments to illuminate, any of the nine digits can be shown. For example, as shown in the figure below, a 2 can be displayed by illuminating segments a, b, d, e, and g.
Seven segment displays come in two varieties - common anode (CA) and common cathode (CC). In a CA display, the anodes for the seven segments and the decimal point are joined into a single circuit node. To illuminate a segment in a CA display, the voltage on a cathode must be at a suitably lower voltage (about .7V) than the anode. In a CC display, the cathodes are joined together, and the segments are illuminated by bringing the anode voltage higher than the cathode node (again, by about .7V). The Digilab board uses CA displays.
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 61
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 62
Circuit diagram
R2
470 E VCC(5V)
U1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 VCC P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 RESET RXD TXD INT0 INT1 T0 T1 WR RD X2 X1 VSS P0.0 P0.1 P0.2 P0.3 P0.4 P0.5 P0.6 P0.7 EA/VP ALE/P PSEN P2.7 P2.6 P2.5 P2.4 P2.3 P2.2 P2.1 P2.0 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21
5 4 3 2 1 g f vcc a b
RESET S/W
VCC
2
VCC
SW1 C3
10UF
R1
10K
S1 S2 1 S3 1
1 C1
2 2 2
8051
33PF CRYSTAL
Y1 C2
e d vcc c h
U2
7-segment
33PF
GROUND
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
6 7 8 9 10
Page 63
// array is used to store the value of data to be sent on the port to display // any digit on seven segment as below unsigned char seg_array[10]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90}; void main() { unsigned char count; while(1) { for(count=0;count<10;count++) { seg_port=seg_array[count]; array to the port secdelay(1); } } } // put array digit value from
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 64
// array is used to store the value of data to be sent on the port to display // any digit on seven segment as below unsigned char seg_array[10]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};
void main() { char count; while(1) { for(count=9;count>=0;count--) { seg_port=seg_array[count]; of digit fom array to secdelay(1); } } } // send the corresponding value // port
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 65
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 66
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 67
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 68
MODULE 7
LCD
Liquid Crystal Display
3.2.12.1 LCD Display Liquid crystal displays (LCD) are widely used in recent years as compares to LEDs. This is due to the declining prices of LCD, the ability to display numbers, characters and graphics, incorporation of a refreshing controller into the LCD, their by relieving the CPU of the task of refreshing the LCD and also the ease of programming for characters and graphics. HD 44780 based LCDs are most commonly used. LCD pin description The LCD discuss in this section has the most common connector used for the Hitatchi 44780 based LCD is 14 pins in a row and modes of operation and how to program and interface with microcontroller is describes in this section.
16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 69
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 70
Register Clear display screen Return home Decrement cursor(shift cursor to left) Increment cursor(shift cursor to right) Shift display right Shift display left Display off, cursor off Display off, cursor on Display on, cursor off Display on, cursor blinking Display on, cursor blinking Shift cursor position to left Shift cursor position to right Shift the entire display to the left Shift the entire display to the right Force cursor to beginning of 1st line Force cursor to beginning of 2nd line
2 line and 5x 7 matrix
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 71
5 6 7 8 9 10 11 12 13 14
R/W=0 for write, R/W=1 for read Enable The 8 bit data bus The 8 bit data bus The 8 bit data bus The 8 bit data bus The 8 bit data bus The 8 bit data bus The 8 bit data bus The 8 bit data bus
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 72
Circuit diagram
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 73
void lcd_cmd(unsigned char datax) lcd port { ms_delay(20); DATA=datax; RS=0; RW=0; E=1; ms_delay(5); E=0; }
//clear RS (ie. RS=0) to write command // write operation // send H-L pulse at E pin
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 74
void lcd_init() power on time { lcd_cmd(0x38); ms_delay(3); lcd_cmd (0x38); ms_delay(3); lcd_cmd (0x0c); ms_delay(3); lcd_cmd (0x06); right ms_delay(3); lcd_cmd (0x01); ms_delay(3); lcd_cmd (0x80); command ms_delay(3); }
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 75
void displaypval(unsigned int datax) decimal value to lcd { unsigned int temp,temparr[3]; for(temp=3;temp>0;temp--) { temparr[temp-1]=datax%10; datax=datax/10; } for(temp=0;temp<3;temp++) { lcd_data(temparr[temp]+48); } } void main()
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 76
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 77
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 78
void lcd_init() lcd at power on time { lcd_cmd(0x38); ms_delay(3); lcd_cmd (0x38); ms_delay(3); lcd_cmd (0x0c); command ms_delay(3); lcd_cmd (0x06); right ms_delay(3); lcd_cmd (0x01); ms_delay(3); lcd_cmd (0x80); command ms_delay(3); } void main() //
display
on
cursor
off
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 79
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 80
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 81
void lcd_init() power on time { lcd_cmd(0x38); ms_delay(3); lcd_cmd (0x38); ms_delay(3); lcd_cmd (0x0c); ms_delay(3); lcd_cmd (0x06); right ms_delay(3); lcd_cmd (0x01); ms_delay(3); lcd_cmd (0x80); command ms_delay(3); } void main()
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 82
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 83
void lcd_cmd(unsigned char datax) lcd port { ms_delay(20); DATA=datax; RS=0; RW=0; E=1; ms_delay(5); E=0; } void lcd_data (unsigned char datax) lcd port { ms_delay(20); DATA=datax; RS=1;
//clear RS (ie. RS=0) to write command // write operation //send H-L pulse at E pin
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 84
void lcd_init() at power on time { lcd_cmd(0x38); ms_delay(3); lcd_cmd (0x38); ms_delay(3); lcd_cmd (0x0c); command ms_delay(3); lcd_cmd (0x06); right ms_delay(3); lcd_cmd (0x01); ms_delay(3); lcd_cmd (0x80); command ms_delay(3); } void main() //
display
on
cursor
off
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 85
for(count=0;count<26;count++) // loop to count from 0 to 26 as A-Z total 26 character { lcd_cmd(start_loc); lcd_data(ch+count); it to ASCII value secdelay(1); start_loc++; // set start location as 0x80 // add to the count to convert // wait for one second // increment start location
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 86
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 87
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 88
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 89
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 90
RESISTOR
A resistor is an electrical component that limits or regulates the flow of electrical current in an electronic circuit. Resistors can also be used to provide a specific voltage for an active device such as a transistor. All other factors being equal, in a direct-current (DC) circuit, the current through a resistor is inversely proportional to its resistance, and directly proportional to the voltage across it. This is the well-known Ohm's Law. In alternating-current (AC) circuits, this rule also applies as long as the resistor does not contain inductance or capacitance. Resistors can be fabricated in a variety of ways. The most common type in electronic devices and systems is the carbon-composition resistor. Fine granulated carbon (graphite) is mixed with clay and hardened. The resistance depends on the proportion of carbon to clay; the higher this ratio, the lower the resistance. Another type of resistor is made from winding Nichrome or similar wire on an insulating form. This component, called a wirewound resistor, is able to handle higher currents than a carbon-composition resistor of the same physical size. However, because the wire is wound into a coil, the component acts as an inductors as well as exhibiting resistance. This does not affect performance in DC circuits, but can have an adverse effect in AC circuits because inductance renders the device sensitive to changes in output.
Eureka Embedded & Advanced Software Technologies (EEAST) A Training Unit of Eureka Electrosoft Solutions Pvt. Ltd.
Page 91
Page 92
Page 93
CAPACITOR
A capacitor is a tool consisting of two conductive plates, each of which hosts an opposite charge. These plates are separated by a dielectric or other form of insulator, which helps them maintain an electric charge. There are several types of insulators used in capacitors. Examples include ceramic, polyester, tantalum air, and polystyrene. Other common capacitor insulators include air, paper, and plastic. Each effectively prevents the plates from touching each other. A capacitor is often used to store analogue signals and digital data. Another type of capacitor is used in the telecommunications equipment industry. This type of capacitor is able to adjust the frequency and tuning of telecommunications equipment and is often referred to a variable capacitor. A capacitor is also ideal for storing an electron. A capacitor cannot, however, make electrons.
SYMBOL
A capacitor measures in voltage, which differs on each of the two interior plates. Both plates of the capacitor are charged, but the current flows in opposite directions. A capacitor contains 1.5 volts, which is the same voltage found in a common AA battery. As voltage is used in a capacitor, one of the two plates becomes filled with a steady flow of current. At the same time, the current flows away from the other plate. To understand the flow of voltage in a capacitor, it is helpful to look at naturally occurring examples. Lightning, for example, is similar to a capacitor. The cloud represents one of the plates and the ground represents the other. The lightning is the charging factor moving between the ground and the cloud.
Page 94
UNPOLARISED CAPACITORS
A non-polarized ("non polar") capacitor is a type of capacitor that has no implicit polarity -- it can be connected either way in a circuit. Ceramic, mica and some electrolytic capacitors are non-polarized. You'll also sometimes hear people call them "bipolar" capacitors.
TRANSISTORS
Page 95
Page 96
A bipolar junction transistor has three terminals - Base, Collector, and Emitter corresponding to the three semi-conductor layers of the transistor. The weak input current is applied to the inner (base) layer. When there is a small change in the current or voltage at the inner semiconductor layer (base), a rapid and far larger change in current takes place throughout the whole transistor.
Page 97
Pictured above is a schematic diagram of the more common NPN transistor. Below is an illustration of the same transistor using water rather than electricity to illustrate the way it functions:
The illustration shows pipe work with three openings B (Base), C (Collector), and E (Emitter). The reservoir of water at C is the supply voltage which is prevented from getting though to E by a plunger. If water is poured into B, it pushes up the plunger letting lots of water flow from C to E. If even more water is poured into B, the plunger moves higher, and the flow of water from C to E increases. Therefore, a small input current of electricity to the Base leads to a large flow of electricity from the Collector to the Emitter.
Transistor Gain
Looking at the water analogy again, if it takes 1 litre of water per minute poured into B to control 100 litres of water per minute flowing from C to E, then the Gain (or amplification factor) is 100. A real transistor with a gain of 100 can control 100mA of current from C to E with an input current of just 1mA to the base (B).
Page 98
LDR
A Light Dependent Resistor (aka LDR, photoconductor, or photocell) is a device which has a resistance which varies according to the amount of light falling on its surface.
A typical light dependent resistor is pictured above together with (on the right hand side) its circuit diagram symbol. Different LDR's have different specifications, however the LDR's we sell in the REUK Shop are fairly standard and have a resistance in total darkness of 1 MOhm, and a resistance of a couple of kOhm in bright light (10-20kOhm @ 10 lux, 2-4kOhm @ 100 lux).
Page 99
Eureka Electrosoft Solutions Pvt. Ltd. Uses for Light Dependent Resistors
Light dependent resistors are a vital component in any electric circuit which is to be turned on and off automatically according to the level of ambient light - for example, solar powered garden lights, and night security lighting. An LDR can even be used in a simple remote control circuit using the backlight of a mobile phone to turn on a device - call the mobile from anywhere in the world, it lights up the LDR, and lighting (or a garden sprinkler) can be turned on remotely!
DIODES
A diode is the simplest sort of semiconductor device. Broadly speaking, a semiconductor is a material with a varying ability to conduct electrical current. Most semiconductors are made of a poor conductor that has had impurities (atoms of another material) added to it. The process of adding impurities is called doping.
SYMBOL OF DIODE
Circuit Symbol
Page 100
IMAGE OF DIODES In the case of LEDs, the conductor material is typically aluminum-galliumarsenide (AlGaAs). In pure aluminum-gallium-arsenide, all of the atoms bond perfectly to their neighbors, leaving no free electrons (negatively-charged particles) to conduct electric current. In doped material, additional atoms change the balance, either adding free electrons or creating holes where electrons can go. Either of these additions make the material more conductive. A semiconductor with extra electrons is called N-type material, since it has extra negatively-charged particles. In N-type material, free electrons move from a negatively-charged area to a positively charged area. A semiconductor with extra holes is called P-type material, since it effectively has extra positively-charged particles. Electrons can jump from hole to hole, moving from a negatively-charged area to a positively-charged area. As a result, the holes themselves appear to move from a positively-charged area to a negatively-charged area. A diode comprises a section of N-type material bonded to a section of P-type material, with electrodes on each end. This arrangement conducts electricity in only one direction. When no voltage is applied to the diode, electrons from the Ntype material fill holes from the P-type material along the junction between the layers, forming a depletion zone. In a depletion zone, the semiconductor material
Page 101
At the junction, free electrons from the N-type material fill holes from the P-type material. This creates an insulating layer in the middle of the diode called the depletion zone.
To get rid of the depletion zone, you have to get electrons moving from the N-type area to the P-type area and holes moving in the reverse direction. To do this, you connect the N-type side of the diode to the negative end of a circuit and the P-type side to the positive end. The free electrons in the N-type material are repelled by the negative electrode and drawn to the positive electrode. The holes in the P-type material move the other way. When the voltage difference between the electrodes is high enough, the electrons in the depletion zone are boosted out of their holes and begin moving freely again. The depletion zone disappears, and charge moves across the diode.
Page 102
When the negative end of the circuit is hooked up to the N-type layer and the positive end is hooked up to P-type layer, electrons and holes start moving and the depletion zone disappears.
If you try to run current the other way, with the P-type side connected to the negative end of the circuit and the N-type side connected to the positive end, current will not flow. The negative electrons in the N-type material are attracted to the positive electrode. The positive holes in the P-type material are attracted to the negative electrode. No current flows across the junction because the holes and the electrons are each moving in the wrong direction. The depletion zone increases. (See How Semiconductors Work for more information on the entire process.)
Page 103
When the positive end of the circuit is hooked up to the N-type layer and the negative end is hooked up to the P-type layer, free electrons collect on one end of the diode and holes collect on the other. The depletion zone gets bigger.
DIODES CHARACTERISTICS
Page 104
LED
A light-emitting diode (LED) is a semiconductor device that emits visible light when an electric current passes through it. The light is not particularly bright, but in most LEDs it is monochromatic, occurring at a single wavelength. The output from an LED can range from red (at a wavelength of approximately 700 nanometers) to blue-violet (about 400 nanometers). Some LEDs emit infrared (IR) energy (830 nanometers or longer); such a device is known as an infrared-emitting diode (IRED). An LED or IRED consists of two elements of processed material called P-type semiconductors and N-type semiconductors. These two elements are placed in direct contact, forming a region called the P-N junction. In this respect, the LED or IRED resembles most other diode types, but there are important differences. The LED or IRED has a transparent package, allowing visible or IR energy to pass through. Also, the LED or IRED has a large PN-junction area whose shape is tailored to the application.
SYMBOL OF LED
Circuit Symbol
Benefits of LEDs
Low power requirement: Most types can be operated with battery power supplies. High efficiency: Most of the power supplied to an LED or IRED is converted into radiation in the desired form, with minimal heat production. Long life: When properly installed, an LED or IRED can function for decades.
Page 105
Page 106
Component
Quantity Cost
MCU Module
40 Pin Base MCU Crystal 11.0592 Capacitor 22uF Resistance 10 Kohm Capacitor 33 pf SIP Push Button
LED Job
leds Resisance 470 ohm
Switches
Push Button
Page 107
LCD
LCD 16 Pin Connector
Page 108