























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
























Emtech foundation (Janak puri) is an training institute ,provides summer as well as technical training. This institute is known for its innovative ideas ,provides software as well as hardware trainings accomplished on KIEL,MPLAB IDE,AVR STUDIOs etc Students may get the opportunity to work individually with latest equipments to realize their projects at the optimum cost. Institute has a very experienced faculty with well communication skills. It is affilliated by microchip corporations limited. This institute provides technical support for the life time to its students.
An embedded system is a computer system designed to perform one or a few dedicated functions often with real-time computing constraints. It is embedded as part of a complete device often including hardware and mechanical parts. By contrast, a general-purpose computer, such as a personal computer (PC), is designed to be flexible and to meet a wide range of end-user needs. Embedded systems control many devices in common use today. Embedded systems are controlled by one or more main processing cores that is typically either a microcontroller or a digital signal processor (DSP). The key characteristic is however being dedicated to handle a particular task, which may require very powerful processors. Since the embedded system is dedicated to specific tasks, design engineers can optimize it reducing the size and cost of the product and increasing the reliability and performance.
A light-emitting diode ( LED ) is a semiconductor light source. LEDs are used as indicator lamps in many devices, and are increasingly used for lighting. The LED is based on the semiconductor diode. When a diode is forward biased (switched on), electrons are able to recombine with holes within the device, releasing energy in the form of photons. This effect is called electroluminescence and the color of the light (corresponding to the energy of the photon) is determined by the energy gap of the semiconductor. An LED is usually small in area (less than 1 mm 2 ), and integrated optical components are used to shape its radiation pattern and assist in reflection. LEDs present many advantages over incandescent light sources including lower energy consumption, longer lifetime, improved robustness, smaller size, faster switching, and greater durability and reliability. However, they are relatively expensive and require more precise current and heat management than traditional light sources. Current LED products for general lighting are more expensive to buy than fluorescent lamp sources of comparable output.
The original LEDs only emitted light of one frequency or color of light. These were blues, greens, yellows, oranges or reds and they were unsuited for domestic lighting. Recent innovations in materials, doping and die structure have developed high brightness LEDs that emit light in all visible frequencies to produce white light. The high efficiency LEDs made by Luxeon can be used in a variety of applications. The most appropriate solution is dependent on the overall budget, needs and type of installation. Different light sources will be used in different applications based on the needs of the people. They also enjoy use in applications as diverse as replacements for traditional light sources in automotive lighting (particularly indicators) and in traffic signals.
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 LCD’s 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.
#include<p18cxxx.h> #define RS PORTCbits.RC #define EN PORTCbits.RC unsigned char array[]="ELECTRONICS"; int i,J; void delay (void) { for(i=0;i<11;i++) ; } void inst(void) { RS=0; EN=1; delay(); EN=0; delay(); } void data(void) { RS=1; EN=1; delay(); EN=0; delay(); } void main() { TRISD=0X00; TRISC=0X00; PORTD=0X38; inst(); PORTD=0X80; inst(); for(J=0;J<6;J++) { PORTD=array[J]; data(); } }
A stepper motor (or step motor ) is a brushless, synchronous electric motor that can divide a full rotation into a large number of steps. The motor's position can be controlled precisely without any feedback mechanism (see open loop controller), as long as the motor is carefully sized to the application. Stepper motors are similar to switched reluctance motors (which are very large stepping motors with a reduced pole count, and generally are closed-loop commutated.)
Stepper motors operate differently from DC brush motors, which rotate when voltage is applied to their terminals. Stepper motors, on the other hand, effectively have multiple "toothed" electromagnets arranged around a central gear-shaped piece of iron. The electromagnets are energized by an external control circuit, such as a microcontroller. To make the motor shaft turn, first one electromagnet is given power, which makes the gear's teeth magnetically attracted to the electromagnet's teeth. When the gear's teeth are thus aligned to the 0first electromagnet, they are slightly offset from the next electromagnet. So when the next electromagnet is turned on and the first is turned off, the gear rotates slightly to align with the next one, and from there the process is repeated. Each of those slight rotations is called a "step," with an integer number of steps making a full rotation. In that way, the motor can be turned by a precise angle. Stepper motor characteristics
Figure 2 There are several types of stepper motors. 4-wire stepper motors contain only two electromagnets, however the operation is more complicated than those with three or four magnets, because the driving circuit must be able to reverse the current after each step. For our purposes, we will be using a 6-wire motor. Unlike our example motors which rotated 90 degrees per step, real-world motors employ a series of mini-poles on the stator and rotor to increase resolution. Although this may seem to add more complexity to the process of driving the motors, the operation is identical to the simple 90 degree motor we used in our example. An example of a multipole motor can be seen in Figure 3. In position 1, the north pole of the rotor's perminant magnet is aligned with the south pole of the stator's electromagnet. Note that multiple positions are alligned at once. In position 2, the upper electromagnet is deactivated and the next one to its immediate left is activated, causing the rotor to rotate a precise amount of degrees. In this example, after eight steps the sequence repeats.
Figure 3
A diode is a two-terminal electronic component that conducts electronic components in only one direction. The term usually refers to a semiconductor diode , the most common type today, which is a crystal of semiconductor connected to two electrical terminals, a P-N junction. The most common function of a diode is to allow an electric current in one direction (called the diode's forward direction) while blocking current in the opposite direction (the reverse direction). Thus, the diode can be thought of as an electronic version of a check valve. This unidirectional behavior is called rectification, and is used to convert alternating current to direct current, and remove modulation from radio signals in radio receivers.
The electrical resistance of an object is a measure of its opposition to the passage of a steady electric current. An object of uniform cross section will have a resistance proportional to its length and inversely proportional to its cross-sectional area, and proportional to the resistivity of the material. The resistance of a resistive object determines the amount of current through the object for a given potential difference across the object, in accordance with Ohm's law: I =V/R R is the resistance of the object, measured in ohms, equivalent to J·s/C^2 V is the potential difference across the object, measured in volts I is the current through the object, measured in amperes For a wide variety of materials and conditions, the electrical resistance does not depend on the amount of current through or the amount of voltage across the object, meaning that the resistance R is constant for the given temperature and material. Therefore, the resistance of an object can be defined as the ratio of voltage to current.In the case of nonlinear objects (not purely resistive, or not obeying Ohm's law), this ratio can change as current or voltage changes; the ratio taken at any particular point, the inverse slope of a chord to an I–V curve, is sometimes referred to as a "chordal resistance" or "static resistance"[
A voltage regulator is an electrical regulator designed to automatically maintain a constant voltage level.It may use an electromechanical mechanism, or passive or active electronic components. Depending on the design, it may be used to regulate one or more AC or DC voltages. Voltage regulators operate by comparing the actual output voltage to some internal fixed reference voltage. Any difference is amplified and used to control the regulation element in such a way as to reduce the voltage error. This forms a negative feedback control loop; increasing the open-loop gain tends to increase regulation accuracy but reduce stability (avoidance of oscillation, or ringing during step changes). There will also be a trade-off between stability and the speed of the response to changes. If the output voltage is too low the regulation element is commanded to produce a higher output voltage - by dropping less of the input voltage or to draw input current for longer periods if the output voltage is too high the regulation element will normally be commanded to produce a lower voltage. However, many regulators have over-current protection, so that they will entirely stop sourcing current (or limit the current in some way) if the output current is too high, and some regulators may also shut down if the input voltage is outside a given range .
A capacitor or condenser is a passive electronic component consisting of a pair of conductors separated by a dielectric (insulator). When a potential difference (voltage) exists across the conductors, an electric field is present in the dielectric. This field stores energy and produces a mechanical force between the conductors. The effect is greatest when there is a narrow separation between large areas of conductor, hence capacitor conductors are often called plates. Capacitors are widely used in electronic circuits to block the flow of direct current while allowing alternating current to pass, to filter out interference, to smooth the output of power supplies, and for many other purposes. They are used in resonant circuits in radio frequency equipment to select particular frequencies from a signal with many frequencies.