Documente Academic
Documente Profesional
Documente Cultură
Transformer
Bridge Rectifier
Shunt Capacitor
Voltage Regulator
The power supply circuit comprises of four basic parts: The transformer steps down the 220V a/c. into 12V 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 non-zero average value. A rectifier transforms alternating current into direct current by limiting or regulating the direction of flow of current. The output resulting from a rectifier is a pulsating D.C. voltage. This voltage is not appropriate for the components that are going to work through it. 7805
1N4007 12-0-12 V 1000uF 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 diode. The diode disconnects or separates the source the source form load. The capacitor starts to discharge through load. This prevents the load voltage from falling to zero. The capacitor continues to discharge until source voltage becomes more than capacitor voltage. The diode again starts conducting and the capacitor is again charged to peak value Vm. When capacitor is charging the rectifier supplies the charging through capacitor branch as well as load current, the capacitor sends currents through the load. The rate at which capacitor discharge depends upon time constant RC. The longer the time constant, the steadier is the output voltage. An increase in load current i.e. decrease in resistance makes time constant of discharge path smaller. The ripple increase and d.c output voltage V dc decreases. Maximum capacity cannot exceed a certain limit because the larger the capacitance the greater is the current required to charge the capacitor. 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 range, and the output voltage remains constant within specified voltage variation limit. The 78xx ICs are positive voltage regulators whereas 79xx ICs are negative voltage regulators. These voltage regulators are integrated circuits designed as fixed voltage regulators for a wide variety of applications. These regulators employ current limiting, thermal shutdown and safe area compensation. With adequate heat sinking they can deliver output currents in excess of 1 A. These regulators have internal thermal overload protection. It uses output transistor safe area compensation and the output voltage offered is in 2% and 4% tolerance.
Aluminium gallium indium phosphide (AlGaInP) high-brightness orange-red, orange, yellow, and green Gallium arsenide phosphide (GaAsP) red, orange-red, orange, and yellow Gallium phosphide (GaP) red, yellow and green Gallium nitride (GaN) green, pure green (or emerald green), and blue also white (if it has an AlGaN Quantum Barrier) Indium gallium nitride (InGaN) near ultraviolet, bluish-green and blue Silicon carbide (SiC) as substrate blue Silicon (Si) as substrate blue (under development) Sapphire (Al2O3) as substrate blue Zinc selenide (ZnSe) blue Diamond (C) ultraviolet Aluminium nitride (AlN), aluminium gallium nitride (AlGaN), aluminium gallium indium nitride (AlGaInN) near to far ultraviolet (down to 210 nm) With this wide variety of colors, arrays of multicolor LEDs can be designed to produce unconventional color patterns.
Circuit Diagram
D L D L D L D L D L D L D L D L E E E E E E E E
1 D 2 D 3 D 4 D 5 D 6 Y D C 7 D 8 D C C R ? A Y P S N T A P R R 1 L ? 3 3 3 3 3 3 3 3 1 2 3 4 5 6 7 8 9 8 7 6 5 4 3 2 U P P P P P P P P P P P P P P P P ? 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
V C C
4 0
. . . . . . . . . . . . . . . . 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 / / / / / / / / A A A A A A A A D D D D D D D D P0 P1 P 2 P 3 P 4 P 5 P 6 P 7 2 2 2 2 2 2 2 . 0 2 . 1 . 2 . 3 . 4 . 5 . 6 . 7 / / / / / / 2 /2A /2A A 2 A 2 A 2 A 2 A 2 A 1 2 8 3 9 41 51 61 71 81 1 0 1 2 3 4 5
1 0 / T 2 P 3 . 0 / R 1 1X D / T 2 P E 3 X . 1 / T1 X2 D P 3 . 2 / I N 3T O 1 P 3 . 3 / I 1N 4 T 1 P 3 . 4 / 1T 5O P 3 . 5 /1 T 6 1 P 3 . 6 / W 7 R 1 P 3 . 7 / R D P A P 2 L E S / P E 2 9 N 3 0 R O G
1 9 1 8 X T A L 1 X T A L 2 9 R S T 3 1 A E A / V C P 5
T 8 9
2 0
Circuit Diagram
1 2 3 M M G O 2 T O R S T E P P E R
V Q 1
2C
P N P 3 6 9 Q 2 Q 3
Q 4 3 6 9
R 4
R 5
4 7 0
o h m
4 U
2 1 5 3
1 6 4 1 7 5
1 8 6 1 9 7 2 0 8
2 1 9 2 2
0 3 1 4
P C
1 O N N E C T O R D B 2 5
D.C. MOTOR
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 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.
1 2 2 5 1 3
1 1 4
1 2 1 2
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: 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 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 crosssectional 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.
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.
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.
Circuit diagram
phase D11 1 V CC R2 2 MCT2E 6 5 4 3 1 2 R4 BC-369 V CC RELA Y J4 5 NC 4 NO 1 2 HEA TER
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].
Open Loop Operation One of the most significant advantages of a stepper motor is its ability to be accurately controlled in an open loop system. Open loop control means no feedback information about position is
needed. This type of control eliminates the need for expensive sensing and feedback devices such as optical encoders. Control position is known simply by keeping track of the input step pulses [39]. Every stepper motor has a permanent magnet rotor (shaft) surrounded by a stator. The most common stepper motor has four stator windings that are paired with a center-tapped common. This type of stepper motor is commonly referred to as a four- phase stepper motor. The center tap allows a change of current direction in each of two coils when a winding is grounded, thereby resulting in a polarity change of the stator. Notice that while a conventional motor shaft runs freely, the stepper motor shaft moves in a fixed repeatable increment which allows one to move it to a precise position. This repeatable
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 common for the center tapped leads. As the sequence of power is applied to each stator winding, the rotor will rotate. There are several widely used sequences where each has a different degree of precision. Table shows the normal 4-step sequence. For clockwise go for step 1 to 4 & for counter clockwise go for step 4 to 1.
W i n d i n g W i n d i n g
A1 2 3 B
W i n d i n g
6 W Ci n d i n g
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
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]. Since the stepper motor is not ordinary motor and has four separate coils, which have to be energized one by one in a stepwise fashion. We term them as coil A, B, C and D. At a particular instant the coil A should get supply and then after some delay the coil B should get a supply and then coil C and then coil D and so on the cycle continues. The more the delay is introduced between the energizing of the coils the lesser is the speed of the stepper motor and vice versa.
Circuit diagram
1 2 3
M M
G O
2 T O
T E
V Q 1
2C
P N P 3 6 9 Q 2 Q 3
Q 4 3 6 9
R 4
R 5
4 7 0
o h m
4 U
2 1 5 3
1 6 4 1 7 5
1 8 6 1 9 7 2 0 8
2 1 9 2 2
0 3 1 4
P C
1 O N N E C T O R D B 2 5
1 2 2 5 1 3
1 1 4
1 2 1 2
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. The seven LEDs in each digit are labelled a-g. Since the Digilab board uses CA displays, the anodes for each of the four digits are connected in a common node, so that four separate anode circuit nodes exist (one per digit). Similar cathode leads from each digit have also been tied together to form seven common circuit nodes, so that one node exists for each segment type. These four anode and seven cathode circuit nodes are available at the J2 connector pins labelled A1-A4 and CA-CG. With this scheme, any segment of any digit can be driven individually. For example, to illuminate segments b and c in the second digit, the b and c cathode nodes would be brought to a suitable low voltage (by connecting the corresponding circuit node available at the J2
connector to ground), and anode 2 would be brought to a suitable high voltage (by connecting the corresponding circuit node available at the J2 connector to Vdd).
Circuit diagram
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.
1 1 1 1 1 1 1
9 8 7 6 5 4 3 2 1
6 5 4 3 2 1 0
1 1 1 1 1 1 1 9 8 7 6 5 4 3 2 1
6 5 4 3 2 1 0
G V D D D D D D D D E R R C V G
n d c c 7 6 5 4 3 2 1 0 / S o c n W
n t r a 2s t c d
1
VCC, VSS, VEE The voltage VCC and VSS provided by +5V and ground respectively while VEE is used for controlling LCD contrast. Variable voltage between Ground and Vcc is used to specify the contrast (or "darkness") of the characters on the LCD screen.
RS (register select) There are two important registers inside the LCD. The RS pin is used for their selection as follows. If RS=0, the instruction command code register is selected, then allowing to user to send a command such as clear display, cursor at home etc.. If RS=1, the data register is selected, allowing the user to send data to be displayed on the LCD. R/W (read/write) The R/W (read/write) input allowing the user to write information from it. R/W=1, when it read and R/W=0, when it writing. EN (enable) The enable pin is used by the LCD to latch information presented to its data pins. When data is supplied to data pins, a high power, a high-to-low pulse must be applied to this pin in order to for the LCD to latch in the data presented at the data pins. D0-D7 (data lines) The 8-bit data pins, D0-D7, are used to send information to the LCD or read the contents of the LCDs internal registers. To displays the letters and numbers, we send ASCII codes for the letters A-Z, a-z, and numbers 0-9 to these pins while making RS =1. There are also command codes that can be sent to clear the display or force the cursor to the home position or blink the cursor. We also use RS =0 to check the busy flag bit to see if the LCD is ready to receive the information. The busy flag is D7 and can be read when R/W =1 and RS =0, as follows: if R/W =1 and RS =0, when D7 =1(busy flag =1), the LCD is busy taking care of internal operations and will not accept any information. When D7 =0, the LCD is ready to receive new information.
(HEX) 1 2 4 6 5 7 8 A C E F
10
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
14 18 1C 80 C0 38
Pin 1 2 3 4
I/O I
Description Ground +5V power supply Power supply to control contrast RS=0 to select command register, RS=1 to select data register.
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
Circuit diagram