This essay has been submitted by a student. This is not an example of the work written by our professional essay writers.
Commercial made solar trackers are a nice addition to any solar panel array. They help increase the time that panels directly face the sun and allow them to produce their maximum power. Unfortunately they can be expensive to buy. We decided to make our own solar tracker to see if we could reduce the cost. We did not want to re-invent the wheel but wanted to make it more affordable. We started out small and came up with the idea of solar tracking using time instead of using a device that would sense where the sun is and move the panels toward it.
The objective of this project is to control the position of a solar panel in accordance with the motion of sun. Brief Methodology: This project is designed with solar panels, RTC, Microcontroller, Stepper Motor and its driving circuit. In this project RTC is used to find or the location of Sun. It's a open loop system. 1) INTRODUCTION Renewable energy is rapidly gaining importance as an energy resource as fossil fuel prices fluctuate. At the educational level, it is therefore critical for engineering and technology students to have an understanding and appreciation of the technologies associated with renewable energy.
One of the most popular renewable energy sources is solar energy. Many researches were conducted to develop some methods to increase the efficiency of Photo Voltaic systems (solar panels). One such method is to employ a solar panel tracking system. This project deals with a RTC based solar panel tracking system. Solar tracking enables more energy to be generated because the solar panel is always able to maintain a perpendicular profile to the sun's rays. Development of solar panel tracking systems has been ongoing for several years now. As the sun moves across the sky during the day, it is advantageous to have the solar panels track the location of the sun, such that the panels are always perpendicular to the solar energy radiated by the sun. This will tend to maximize the amount of power absorbed by PV systems. It has been estimated that the use of a tracking system, over a fixed system, can increase the power output by 30% - 60%. The increase is significant enough to make tracking a viable preposition despite of the enhancement in system cost. It is possible to align the tracking heliostat normal to sun using electronic control by a micro controller. Design requirements are: 1) during the time that the sun is up, the system must follow the sun's position in the sky. 2) This must be done with an active control, timed movements are useful. It should be totally automatic and simple to operate. The operator interference should be minimal and restricted to only when it is actually required. The major components of this system are as follows.
1) RTC (Real Time Clock)
3) Output mechanical transducer (stepper motor).
Fig 1: Block Diagram of Time Operated Solar Tracking System
A BRIEF INTRODUCTION TO 8051 MICROCONTROLLER:
When we have to learn about a new computer we have to familiarize about the machine capability we are using, and we can do it by studying the internal hardware design (devices architecture), and also to know about the size, number and the size of the registers.
A microcontroller is a single chip that contains the processor (the CPU), non-volatile memory for the program (ROM or flash), volatile memory for input and output (RAM), a clock and an I/O control unit. Also called a "computer on a chip," billions of microcontroller units (MCUs) are embedded each year in a myriad of products from toys to appliances to automobiles. For example, a single vehicle can use 70 or more microcontrollers. The following picture describes a general block diagram of microcontroller.
AT89S52: The AT89S52 is a low-power, high-performance CMOS 8-bit microcontroller with 8K bytes of in-system programmable Flash memory. The device is manufactured using Atmel's high-density nonvolatile memory technology and is compatible with the industry-standard 80C51 instruction set and pinout. The on-chip Flash allows the program memory to be reprogrammed in-system or by a conventional nonvolatile memory pro-grammer. By combining a versatile 8-bit CPU with in-system programmable Flash on a monolithic chip, the Atmel AT89S52 is a powerful microcontroller, which provides a highly flexible and cost-effective solution to many, embedded control applications. The AT89S52 provides the following standard features: 8K bytes of Flash, 256 bytes of RAM, 32 I/O lines, Watchdog timer, two data pointers, three 16-bit timer/counters, a six-vector two-level interrupt architecture, a full duplex serial port, on-chip oscillator, and clock circuitry. In addition, the AT89S52 is designed with static logic for operation down to zero frequency and supports two software selectable power saving modes. The Idle Mode stops the CPU while allowing the RAM, timer/counters, serial port, and interrupt system to continue functioning. The Power-down mode saves the RAM con-tents but freezes the oscillator, disabling all other chip functions until the next interrupt
The hardware is driven by a set of program instructions, or software. Once familiar with hardware and software, the user can then apply the microcontroller to the problems easily.
The pin diagram of the 8051 shows all of the input/output pins unique to microcontrollers:
The following are some of the capabilities of 8051 microcontroller.
Internal ROM and RAM
I/O ports with programmable pins
Timers and counters
Serial data communication
The 8051 architecture consists of these specific features:
16 bit PC &data pointer (DPTR)
8 bit program status word (PSW)
8 bit stack pointer (SP)
Internal ROM 4k
Internal RAM of 128 bytes.
4 register banks, each containing 8 registers
80 bits of general purpose data memory
32 input/output pins arranged as four 8 bit ports: P0-P3
Two 16 bit timer/counters: T0-T1
Two external and three internal interrupt sources Oscillator and clock circuits.
RTC DS12C887 FEATURES:
â€¢ Drop-in replacement for IBM AT computer clock/ calendar
â€¢ Pin compatible with the MC146818B and DS1287
â€¢ Totally nonvolatile with over 10 years of operation in the absence of power
â€¢ Self-contained subsystem includes lithium, quartz, and support circuitry
â€¢ Counts seconds, minutes, hours, days, day of the week, date, month, and year with leap year compensation valid up to 2100
â€¢ Binary or BCD representation of time, calendar, and alarm
â€¢ 12- or 24-hour clock with AM and PM in 12-hour mode
â€¢ Daylight Savings Time option
â€¢ Selectable between Motorola and Intel bus timing
â€¢ Multiplex bus for pin efficiency
â€¢ Interfaced with software as 128 RAM locations
- 15 bytes of clock and control registers
- 113 bytes of general purpose RAM
â€¢ Programmable square wave output signal
â€¢ Bus-compatible interrupt signals (IRQ)
â€¢ Three interrupts are separately software-maskable and testable
- Time-of-day alarm once/second to once/day
- Periodic rates from 122 ms to 500 ms
- End of clock update cycle
â€¢ Century register
AD0-AD7 - Multiplexed Address/Data Bus
NC - No Connection
MOT - Bus Type Selection
CS - Chip Select
AS - Address Strobe
R/W - Read/Write Input
DS - Data Strobe
RESET - Reset Input
IRQ - Interrupt Request Output
SQW - Square Wave Output
VCC - +5 Volt Supply
GND - Ground
The DS12C887 Real Time Clock plus RAM is designed as a direct upgrade replacement for the DS12887 in existing IBM compatible personal computers to add hardware year 2000 compliance. A century byte was added to memory location 50, 32h, as called out by the PC AT specification. Lithium energy source, quartz crystal, and write-protection circuitry are contained within a 24-pin dual in-line package. As such, the DS12C887 is a complete subsystem replacing 16 components in a typical application. The functions include a nonvolatile time-of-day clock, an alarm, a one hundred -year calendar, programmable interrupt, square wave generator, and 113 bytes of nonvolatile static RAM. The real time clock is distinctive in that time-of-day and memory are maintained even in the absence of power.
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). 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.)
Fundamentals of Operation
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. An external control circuit, such as a microcontroller, energizes the electromagnets. 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 first 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
1. Stepper motors are constant power devices.
2. As motor speed increases, torque decreases.
3. The torque curve may be extended by using current limiting drivers and increasing the driving voltage.
4. Steppers exhibit more vibration than other motor types, as the discrete step tends to snap the rotor from one position to another.
5. This vibration can become very bad at some speeds and can cause the motor to lose torque.
6. The effect can be mitigated by accelerating quickly through the problem speeds range, physically damping the system, or using a micro-stepping driver.
7. Motors with a greater number of phases also exhibit smoother operation than those with fewer phases.
Open-loop versus closed-loop commutation
Steppers are generally commutated open loop, ie. the driver has no feedback on where the rotor actually is. Stepper motor systems must thus generally be over engineered, especially if the load inertia is high, or there is widely varying load, so that there is no possibility that the motor will lose steps. This has often caused the system designer to consider the trade-offs between a closely sized but expensive servomechanism system and an oversized but relatively cheap stepper.
A new development in stepper control is to incorporate a rotor position feedback (eg. an encoder or resolver), so that the commutation can be made optimal for torque generation according to actual rotor position. This turns the stepper motor into a high pole count brushless servo motor, with exceptional low speed torque and position resolution. An advance on this technique is to normally run the motor in open loop mode, and only enter closed loop mode if the rotor position error becomes too large -- this will allow the system to avoid hunting or oscillating, a common servo problem.
There are three main types of stepper motors:
Permanent Magnet Stepper
Hybrid Synchronous Stepper
Variable Reluctance Stepper
Permanent magnet motors use a permanent magnet (PM) in the rotor and operate on the attraction or repulsion between the rotor PM and the stator electromagnets. Variable reluctance (VR) motors have a plain iron rotor and operate based on the principle of that minimum reluctance occurs with minimum gap, hence the rotor points are attracted toward the stator magnet poles. Hybrid stepper motors are named because they use use a combination of PM and VR techniques to achieve maximum power in a small package size.
Two-phase stepper motors
There are two basic winding arrangements for the electromagnetic coils in a two phase stepper motor: bipolar and unipolar.
A unipolar stepper motor has two windings per phase, one for each direction of magnetic field. Since in this arrangement a magnetic pole can be reversed without switching the direction of current, the commutation circuit can be made very simple (eg. a single transistor) for each winding. Typically, given a phase, one end of each winding is made common: giving three leads per phase and six leads for a typical two phase motor. Often, these two phase commons are internally joined, so the motor has only five leads.
A microcontroller or stepper motor controller can be used to activate the drive transistors in the right order, and this ease of operation makes unipolar motors popular with hobbyists; they are probably the cheapest way to get precise angular movements.
Unipolar stepper motor coils
(For the experimenter, one way to distinguish common wire from a coil-end wire is by measuring the resistance. Resistance between common wire and coil-end wire is always half of what it is between coil-end and coil-end wires. This is due to the fact that there is actually twice the length of coil between the ends and only half from center (common wire) to the end.) A quick way to determine if the stepper motor is working is to short circuit every two pairs and try turning the shaft, whenever a higher than normal resistance is felt, it indicates that the circuit to the particular winding is closed and that the phase is working.
Bipolar motors have a single winding per phase. The current in a winding needs to be reversed in order to reverse a magnetic pole, so the driving circuit must be more complicated, typically with an H-bridge arrangement. There are two leads per phase, none are common.
Static friction effects using an H-bridge have been observed with certain drive topologies Because windings are better utilised, they are more powerful than a unipolar motor of the same weight.
An 8 lead stepper is wound like a unipolar stepper, but the leads are not joined to common internally to the motor. This kind of motor can be wired in several configurations:
Bipolar with series windings. This gives higher inductance but lower current per winding.
Bipolar with parallel windings. This requires higher current but can perform better as the winding inductance is reduced.
Bipolar with a single winding per phase. This method will run the motor on only half the available windings, which will reduce the available low speed torque but require less current.
Higher-phase count stepper motors
Multi-phase stepper motors with many phases tend to have much lower levels of vibration, although the cost of manufacture is higher.
Stepper motor drive circuits
Stepper motor performance is strongly dependent on the drive circuit. Torque curves may be extended to greater speeds if the stator poles can be reversed more quickly, the limiting factor being the winding inductance. To overcome the inductance and switch the windings quickly, one must increase the drive voltage. This leads further to the necessity of limiting the current that these high voltages may otherwise induce.
L/R drive circuits
L/R drive circuits are also referred to as constant voltage drives because a constant positive or negative voltage is applied to each winding to set the step positions. However, it is winding current, not voltage that applies torque to the stepper motor shaft. The current I in each winding is related to the applied voltage V by the winding inductance L and the winding resistance R. The resistance R determines the maximum current according to Ohm's law I=V/R. The inductance L determines the maximum rate of change of the current in the winding according to the formula for an Inductor dI/dt = V/L. Thus when controlled by an L/R drive, the maximum speed of a stepper motor is limited by its inductance since at some speed, the voltage V will be changing faster than the current I can keep up.
With an L/R drive it is possible to control a low voltage resistive motor with a higher voltage drive simply by adding an external resistor in series with each winding. This will waste power in the resistors, and generate heat. It is therefore considered a low performing option, albeit simple and cheap.
Chopper drive circuits
Chopper drive circuits are also referred to as constant current drives because they generate a somewhat constant current in each winding rather than applying a constant voltage. On each new step, a very high voltage is applied to the winding initially. This causes the current in the winding to rise quickly since dI/dt = V/L where V is very large. The current in each winding is monitored by the controller, usually by measuring the voltage across a small sense resistor in series with each winding. When the current exceeds a specified current limit, the voltage is turned off or "chopped", typically using power transistors. When the winding current drops below the specified limit, the voltage is turned on again. In this way, the current is held relatively constant for a particular step position. This requires additional electronics to sense winding currents, and control the switching, but it allows stepper motors to be driven with higher torque at higher speeds than L/R drives. Integrated electronics for this purpose are widely available.
Phase current waveforms
A stepper motor is a polyphase AC synchronous motor (see Theory below), and it is ideally driven by sinusoidal current. A full step waveform is a gross approximation of a sinusoid, and is the reason why the motor exhibits so much vibration. Various drive techniques have been developed to better approximate a sinusoidal drive waveform: these are half stepping and microstepping.
Full step drive (two phases on)
This is the usual method for full step driving the motor. Both phases are always on. The motor will have full rated torque.
In this drive method only a single phase is activated at a time. It has the same number of steps as the full step drive, but the motor will have significantly less than rated torque. It is rarely used.
When half stepping, the drive alternates between two phases on and a single phase on. This increases the angular resolution, but the motor also has less torque at the half step position (where only a single phase is on). This may be mitigated by increasing the current in the active winding to compensate. The advantage of half stepping is that the drive electronics need not change to support it.
What is commonly referred to as microstepping is actual "sine cosine microstepping" in which the winding current approximates a sinusoidal AC waveform. Sine cosine microstepping is the most common form, but other waveforms are used. Regardless of the waveform used, as the microsteps become smaller, motor operation becomes more smooth, thereby greatly reducing resonance in any parts the motor may be connected to, as well as the motor itself. It should be noted that while microstepping appears to make running at very high resolution possible, this resolution is rarely achievable in practice regardless of the controller, due to mechanical stiction and other sources of error between the specified and actual positions. In professional equipment gearheads are the preferred way to increase angular resolution.
Step size repeatability is an important step motor feature and a fundamental reason for their use in positioning. Example: many modern hybrid step motors are rated such that the travel of every Full step (example 1.8 Degrees per Full step or 200 Full steps per revolution) will be within 3% or 5% of the travel of every other Full step; as long as the motor is operated with in its specified operating ranges. Several manufacturers show that their motors can easily maintain the 3% or 5% equality of step travel size as step size is reduced from Full stepping down to 1/10th stepping. Then, as the microstepping divisor number grows, step size repeatability degrades. At large step size reductions it is possible to issue many microstep commands before any motion occurs at all and then the motion can be a "jump" to a new position.
A step motor can be viewed as a synchronous AC motor with the number of poles (on both rotor and stator) increased, taking care that they have no common denominator. Additionally, soft magnetic material with many teeth on the rotor and stator cheaply multiplies the number of poles (reluctance motor). Modern steppers are of hybrid design, having both permanent magnets and soft iron cores.
To achieve full rated torque, the coils in a stepper motor must reach their full rated current during each step. Winding inductance and reverse EMF generated by a moving rotor tend to resist changes in drive current, so that as the motor speeds up, less and less time is spent at full current -- thus reducing motor torque. As speeds further increase, the current will not reach the rated value, and eventually the motor will cease to produce torque.
This is the measure of the torque produced by a stepper motor when it is operated without an acceleration state. At low speeds the stepper motor can synchronise itself with an applied step frequency, and this Pull-In torque must overcome friction and inertia.
The stepper motor pull-out torque is measured by accelerating the motor to the desired speed and then increasing the torque loading until the motor stalls or "pulls out of synchronism" with the step frequency. This measurement is taken across a wide range of speeds and the results are used to generate the stepper motor's dynamic performance curve. As noted below this curve is affected by drive voltage, drive current and current switching techniques. It is normally recommended to use a safety factor of between 50% and 100% when comparing your desired torque output to the published "pull-Out" torque performance curve of a step motor.
Synchronous electric motors using permanent magnets have a remnant position holding torque (called detent torque, and sometimes included in the specifications) when not driven electrically. Soft iron reluctance cores do not exhibit this behavior.
Stepper motor ratings and specifications
Stepper motors nameplates typically give only the winding current and occasionally the voltage and winding resistance. The rated voltage will produce the rated winding current at DC: but this is mostly a meaningless rating, as all modern drivers are current limiting and the drive voltages greatly exceed the motor rated voltage.
A stepper's low speed torque will vary directly with current. How quickly the torque falls off at faster speeds depends on the winding inductance and the drive circuitry it is attached to, especially the driving voltage.
Steppers should be sized according to published torque curve, which is specified by the manufacturer at particular drive voltages and/or using their own drive circuitry. It is not guaranteed that you will achieve the same performance given different drive circuitry, so the pair should be chosen with great care.
Computer-controlled stepper motors are one of the most versatile forms of positioning systems. They are typically digitally controlled as part of an open loop system, and are simpler and more rugged than closed loop servo systems.
Industrial applications are in high speed pick and place equipment and multi-axis machine CNC machines often directly driving lead screws or ballscrews. In the field of lasers and optics they are frequently used in precision positioning equipment such as linear actuators, linear stages, rotation stages, goniometers, and mirror mounts. Other uses are in packaging machinery, and positioning of valve pilot stages for fluid control systems.
Commercially, stepper motors are used in floppy disk drives, flatbed scanners, computer printers, plotters, slot machines, and many more devices.
Time Operated Solar Tracking System