Professional Documents
Culture Documents
INTRODUCTION
The use of renewable energy increased greatly just after the first big oil crisis in the late
seventies. At that time, economic issues were the most important factors, hence interest in such
processes decreased when oil prices fell. The current resurgence of interest in the use of
renewable energy is driven by the need to reduce the high environmental impact of fossil-based
energy systems. Harvesting energy on a large scale is undoubtedly one of the main challenges of
our time. Future energy sustainability depends heavily on how the renewable energy problem is
addressed in the next few decades. Although in most power generating systems, the main source
of energy (the fuel) can be manipulated, this is not true for solar and wind energies. The main
problems with these energy sources are cost and availability: wind and solar power are not
always available where and when needed. Unlike conventional sources of electric power, these
renewable sources are not dispatch ablethe power output cannot be controlled. Daily and
seasonal effects and limited predictability result in intermittent generation. Smart grids promise
to facilitate the integration of renewable energy and will provide other benefits as well. Industry
must overcome a number of technical issues to deliver renewable energy in significant quantities.
Control is one of the key enabling technologies for the deployment of renewable energy systems.
Solar and wind power require effective use of advanced control techniques. In addition, smart
grids cannot be achieved without extensive use of control technologies at all levels. This section
of the report will concentrate on two forms of renewable energywind and solarand on the
role of smart grids in addressing the problems associated with the efficient and reliable delivery
and use of electricity and with the integration of renewable sources. Solar and wind power plants
exhibit changing dynamics, nonlinearities, and uncertaintieschallenges that require advanced
control strategies to solve effectively. The use of more efficient control strategies would not only
increase the performance of these systems, but would increase the number of operational hours
of solar and wind plants and thus reduce the cost per kilowatt-hour (KWh) produced. Both wind
and solar have tremendous potential for fulfilling the worlds energy needs. In the case of wind,
if conventional onshore wind turbines with 80-m towers were installed on 13% of the earths
surface, the estimated wind power that could be commercially viable is 72 terawatt (TW). That
amounts to almost five times the global power consumption in all forms, which currently
averages about 15 TW. With capacity that has tripled in the last five years, wind energy is the
fastest growing energy source in the world. Although wind energy is a clean and renewable
source of electric power, many challenges must be addressed. Wind turbines are complex
machines, with large flexible structures working under turbulent and unpredictable
environmental conditions, and are connected to a constantly varying electrical grid with
changing voltages, frequency, power flow, and the like. Wind turbines have to adapt to those
variations, so their efficiency and reliability depend heavily on the control strategy applied. The
primary purpose of concentrating solar energy is to produce high temperatures and therefore high
thermodynamic efficiencies.
Hybrid models have been an effective means of producing generating electricity
throughout the world. Lots of research work has been done and continuing the
accommodate new advances in this system. This method reports the probabilistic
performance assessment of a wind, Solar Photo Voltaic (SPV) Hybrid Energy
System. In addition to this solar/wind system with backup storage batteries were
designed, integrated and optimized to predict the behavior of generating system.
Uncertainty about future costs and operating attributes of electric drive vehicles (EVs and HEVs)
has contributed to considerable debate regarding the market viability of such vehicles. One way
to deal with such uncertainty, common to most emerging technologies, is to pool the judgments
of experts in the field. Data from a two-stage Delphi study are used to project the future costs
and operating characteristics of electric drive vehicles. The experts projected basic vehicle
characteristics for EVs and HEVs for the period 2000-2020. They projected the mean EV range
at 179 km in 2000, 270 km in 2010, and 358 km in 2020. The mean HEV range on battery power
was projected as 145 km in 2000, 212 km in 2010, and 244 km in 2020. Experts` opinions on 10
battery technologies are analyzed and characteristics of initial battery packs for the mean power
requirements are presented. A procedure to compute the cost of replacement battery packs is
described, and the resulting replacement costs are presented. Projected vehicle purchase prices
and fuel and maintenance costs are also presented. The vehicle purchase price and curb weight
predictions would be difficult to achieve with the mean battery characteristics. With the battery
replacement costs added to the fuel and maintenance costs, the conventional ICE vehicle is
projected to have a clear advantage over electric drive vehicles through the projection period.
Concern for the environment and energy security is changing the way we
think about energy. Grid-enabled passenger vehicles, like electric vehicles
(EV) and plug-in hybrid electric vehicles (PHEV) can help address
environmental and energy issues. Automakers have recognized that electric
drive vehicles are critical to the future of the industry. However, some
challenges exist to greater adoption: the perception of cost, EV range, access
to charging, potential impacts to the grid, and lack of public awareness about
the availability and practicality of these vehicles. Although the current initial
price for EV's is higher, their operating costs are lower. Policies that reduce
the total cost of ownership of EVs and PHEVs, compared to conventional
internal combustion engine (ICE) vehicles, will lead to faster market
penetration. Greater access to charging infrastructure will also accelerate
public adoption. Smart grid technology will optimize the vehicle integration
with the grid, allowing intelligent and efficient use of energy. By coordinating
efforts and using a systems perspective, the advantages of EVs and PHEVs
can be achieved using the least resources. This paper analyzes these factors,
their rate of acceleration and how they may synergistically align for the
electrification of vehicles.
CHAPTER 2
EXISTING METHODS
Few years back the trains are run with fuels like that diesel. Now a days the
trains are run with electrical power like that coal, water or fissile nuclear material
as the primary fuel source. In future it is not sufficient to use in train. To
compensate this problem we can introduces the alternate method of hybrid system
based on power generation, It is renewable energy source. With increasing concern
of global warming and the depletion of fossil fuel reserves, many are looking at
sustainable energy solutions to preserve the earth for the future generations. When
a source is unavailable or insufficient in meeting the load demands, the other
energy source can compensate for the difference.
The track condition and monitoring railway roads. If any problems occur in
the track between 100m the sensor immediately indicate and display the control
room. The major problem will be avoid by using this kind of system.
2.2 Disadvantages
PROPOSED METHOD
This system gives the efficient way of automating trains using PIC
Microcontroller along with other modules to reduce human operational errors,
power consumption, high reliability, and fast operation without delay. It consists of
hardware and software modules to execute the train operations.
The Fire Safety system using automation techniques. In this techniques the
train engine wants to be fully automated, so it can called (ATE) Automated train
engine. In this concept ATE is fully automated and connected to all the coaches
from engine. In all the compartments are want to fix the temperature sensor and
alarm, whenever the temperature exceeds in the coaches the temperature sensor
will sense and it will send the message to the engine through ELE. At the same
time (ECU) Engine control unit is fixed with Alarm & LED. So the signal will be
received from coaches, the alarm will blinks and at the simultaneously time the
LED will shows which compartment is having the fire.
Advantages
PIC Microcontroller
Solar panel
Windmill
Battery
Dc motor
Chase
GSM Modem
Temperature sensor
LCD display
Relay
Software Requirement
Embedded c
CHAPTER 4
BLOCK DIAGRAM
4.1 Introduction
Hybrid power intelligent train system is one of the interesting topics in embedded
systems industry. By using this method can able to operate the train using solar
panel and wind energy will use without fuels.
The fire is sensed by fire sensor, in case fire will occurred means the
microcontroller suddenly can take the decision and the SMS is send through the
particular in charges with the help of GSM modem the relay immediately trip
motor operation same time electric supply are cut by the relay and water will pass
through the coach.
Advantages
4.4.1 Introduction
Solar panels use light energy (photons) from the sun to generate electricity
through the photovoltaic effect. The structural (load carrying) member of a module
can either be the top layer or the back layer. The majority of modules use wafer-
based crystalline silicon cells or thin-film cells based on cadmium telluride or
silicon. The conducting wires that take the current off the panels may contain
silver, copper or other conductive (but generally not magnetic) transition metals.
The cells must be connected electrically to one another and to the rest of the
system. Cells must also be protected from mechanical damage and moisture. Most
solar panels are rigid, but semi-flexible ones are available, based on thin-film cells.
Electrical connections are made in series to achieve a desired output voltage and/or
in parallel to provide a desired current capability.
Typical modules are rectangular and are available in a variety of sizes and
configurations. Small modules (the kind used in hand-held calculators) output less
than a single watt of power, while a typical residential module produces around
200 watts of power, more or less.
Monocrystalline
Polycrystalline (or Multicrystalline)
Amorphous
4.4.5 Solar Panel Details
4.5.1 Introduction
To convert the wind energy into mechanical energy, a wind turbine is used.
The system is effective in turning the kinetic energy found in the wind into
electrical energy or mechanical energy. The mechanical energy is usually applied
in pumping water especially in remote locations but it is also applied in other
activities. The turbines also help to generate electricity for businesses and homes.
The wind turbine on itself also plays a very significant role in making the
generation process a success. Usually the turbine is on a firm foundation to prevent
it from uprooting. This way the turbine is protected from any strong force that may
make the turbine anticlockwise mechanism crumble.
Wind energy is definitely a better alternative to the use of fossil fuels because it is
clean, safe and the operating costs are minimal. There is a move towards
environmentally friendly sources of energy and this type of energy is a suitable
option. That the only reason to usage of wind mill is increasing in every year.
4.5.7 Wind mill Details
Voltage - 12 volt
Amps - 5 amps
The present chapter introduces the operation of power supply circuits built
using filters, rectifiers, and then voltage regulators. Starting with an AC voltage, a
steady DC voltage is obtained by rectifying the AC voltage, then filtering to a DC
level, and finally, regulating to obtain a desired fixed DC voltage. The regulation is
usually obtained from an IC voltage regulator unit, which takes a DC voltage and
provides a somewhat lower DCvoltage, which remains the same even if the input
DC voltage varies, or the output load connected to the DC voltage changes.
While the input voltage may vary over some permissible voltage range, and
the output load may vary over some acceptable range, the output voltage remains
constant within specified voltage variation limits. These limitations are spelled out
in the manufacturers specification sheets.
4.6.2 Transformer
The potential transformer will step down the power supply voltage (0-230V)
to (0-6V) level. Then the secondary of the potential transformer will be connected
to the precision rectifier, which is constructed with the help of opamp. The
advantages of using a precision rectifier are it will give a peak voltage output as
DC, the rest of the circuits will give only RMS output.
The potential transformer will step down the power supply voltage (0-230V)
to (0-6V) level. Then the secondary of the potential transformer will be connected
to the precision rectifier, which is constructed with the help of op-amp. The
advantages of using precision rectifier are it will give peak voltage output as DC;
rest of the circuits will give only RMS output.
4.6.3 Rectifier
A rectifier is an electrical device that converts alternating current to direct
current or at least to current with only positive value, a process known as
rectification. Rectifiers are used as components of power supplies and as detectors
of radio signals.
4.7 Relay
The coil of a relay passes a relatively large current, typically 30mA for a
12V relay, but it can be as much as 100mA for relays designed to operate from
lower voltages. Most ICs (chips) cannot provide this current and a transistor is
usually used to amplify the small IC current to the larger value required for the
relay coil. The maximum output current for the popular 555 timer IC is 200mA so
these devices can supply relay coils directly without amplification.
Relays are usually SPDT or DPDT but they can have many more sets of
switch contacts, for example relays with 4 sets of changeover contacts are readily
available. For further information about switch contacts and the terms used to
describe them please see the page on switches.
The coil of a relay passes a relatively large current, typically 30mA for a
12V relay, but it can be as much as 100mA for relays designed to operate from
lower voltages. Most ICs (chips) cannot provide this current and a transistor is
usually used to amplify the small IC current to the larger value required for the
relay coil. The maximum output current for the popular 555 timer IC is 200mA so
these devices can supply relay coils directly without amplification.
Relays are usually SPDT or DPDT but they can have many more sets of switch
contacts, for example relays with 4 sets of changeover contacts are readily
available. For further information about switch contacts and the terms used to
describe them please see the page on switches.
The supplier's catalogue should show you the relay's connections. The coil
will be obvious and it may be connected either way round. Relay coils produce
brief high voltage 'spikes' when they are switched off and this can destroy
transistors and ICs in the circuit. To prevent damage you must connect a protection
diode across the relay coil.
Relays can switch AC and DC, transistors can only switch DC.
4.7.6 Disadvantages
Relays cannot switch rapidly (except reed relays), transistors can switch
many times per second.
Introduction
LEDs (seven segment LEDs or other multi segment LEDs) because of the
following reasons:
LCD screen consists of two lines with 16 characters each. Each character
consists of 5x7 dot matrix. Contrast on display depends on the power supply
voltage and whether messages are displayed in one or two lines. For that reason,
variable voltage 0-Vdd is applied on pin marked. Trimmer potentiometer is usually
used for that purpose. Some versions of displays have built in backlight (blue or
green diodes). When used during operating, a resistor for current limitation should
be used (like with any LE diode).
LCD Connection
LCD (data mainly are transferred from microcontroller to LCD) one more
I/O pin may be saved by simple connecting R/W pin to the Ground. Such saving
has its price. Even though message displaying will be normally performed, it will
not be possible to read from busy flag since it is not possible to read from display.
Address code
PIC16F778A
The PIC16F887 is one of the latest products from Microchip. It features all
the components which modern microcontrollers normally have. For its low price,
wide range of application, high quality and easy availability, it is an ideal solution
in applications such as: the control of different processes in industry, machine
control devices, measurement of different values etc. Some of its main features are
listed below.
All single-cycle instructions except for program branches, which are two-cycle
Timer1: 16-bit timer/counter with prescaler, can be incremented during Sleep via
external crystal/clock
Timer2: 8-bit timer/counter with 8-bit period register, prescaler and postscaler
Synchronous Serial Port (SSP) with SPI (Master mode) and I2C
(Master/Slave)
Universal Synchronous Asynchronous Receiver Transmitter (USART/SCI) with
9-bit address detection
Parallel Slave Port (PSP) 8 bits wide with external RD, WR and CS controls
(40/44-pin only)
ANALOG FEATURES:
CMOS TECHNOLOGY
Low-power consumption
The PIC16F873A and PIC16F874A have one-half of the total on-chip memory of
the PIC16F876A and PIC16F877A
The 28-pin devices have three I/O ports, while the 40/44-pin devices have five
The 28-pin devices have fourteen interrupts, while the 40/44-pin devices have
fifteen
The 28-pin devices have five A/D input channels, while the 40/44-pin devices
have eight
PIN DIAGRAM
Fig. 1-1 PIC16F887 PDIP 40 Microcontroller
Pin Description
As seen in Fig. 1-1 above, the most pins are multi-functional. For example,
designator RA3/AN3/Vref+/C1IN+ for the fifth pin specifies the following
functions:
This small trick is often used because it makes the microcontroller package more
compact without affecting its functionality. These various pin functions cannot be
used simultaneously, but can be changed at any point during operation.The
following tables, refer to the PDIP 40 microcontroller.
Table 1-1 Pin Assignment
Table 1-1 cont. Pin Assignment
Table 1-1 cont. Pin Assignment
CENTRAL PROCESSOR UNIT (CPU)
RISC Reduced Instruction Set Computer gives the PIC16F887 two great
advantages:
The CPU can recognize only 35 simple instructions (In order to program
some other microcontrollers it is necessary to know more than 200 instructions
by heart).
The execution time is the same for all instructions except two and lasts 4
clock cycles (oscillator frequency is stabilized by a quartz crystal). The Jump
and Branch instructions execution time is 2 clock cycles. It means that if the
microcontrollers operating speed is 20MHz, execution time of each instruction
will be 200nS, i.e. the program will be executed at the speed of 5 million
instructions per second.
Fig. 1-4 CPU Memory
Memory
ROM Memory
ROM memory is used to permanently save the program being executed. This
is why it is often called program memory. The PIC16F887 has 8Kb of
ROM (in total of 8192 locations). Since this ROM is made with FLASH
technology, its contents can be changed by providing a special programming
voltage (13V).
EEPROM Memory
RAM Memory
This is the third and the most complex part of microcontroller memory. In
this case, it consists of two parts: general-purpose registers and special-function
registers (SFR).Even though both groups of registers are cleared when power goes
off and even though they are manufactured in the same way and act in the similar
way, their functions do not have many things in common.
General-Purpose Registers
General-Purpose registers are used for storing temporary data and results
created during operation. For example, if the program performs a counting (for
example, counting products on the assembly line), it is necessary to have a register
which stands for what we in everyday life call sum. Since the microcontroller is
not creative at all, it is necessary to specify the address of some general purpose
register and assign it a new function. A simple program to increment the value of
this register by 1, after each product passes through a sensor, should be created.
SFR Registers
The data memory is partitioned into four banks. Prior to accessing some
register during program writing (in order to read or change its contents), it is
necessary to select the bank which contains that register. Two bits of the STATUS
register are used for bank selecting, which will be discussed later. In order to
facilitate operation, the most commonly used SFRs have the same address in all
banks which enables them to be easily accessed.
Table 1-2 Address Banks
STACK
A part of the RAM used for the stack consists of eight 13-bit registers.
Before the microcontroller starts to execute a subroutine (CALL instruction) or
when an interrupt occurs, the address of first next instruction being currently
executed is pushed onto the stack, i.e. onto one of its registers. In that way, upon
subroutine or interrupt execution, the microcontroller knows from where to
continue regular program execution. This address is cleared upon return to the
main program because there is no need to save it any longer, and one location of
the stack is automatically available for further use.
It is important to understand that data is always circularly pushed onto the stack. It
means that after the stack has been pushed eight times, the ninth push overwrites
the value that was stored with the first push. The tenth push overwrites the second
push and so on. Data overwritten in this way is not recoverable. In addition, the
programmer cannot access these registers for write or read and there is no Status
bit to indicate stack overflow or stack underflow conditions. For that reason, one
should take special care of it during program writing.
Interrupt System
The first thing that the microcontroller does when an interrupt request
arrives is to execute the current instruction and then stop regular program
execution. Immediately after that, the current program memory address is
automatically pushed onto the stack and the default address (predefined by the
manufacturer) is written to the program counter. That location from where the
program continues execution is called the interrupt vector. For the PIC16F887
microcontroller, this address is 0004h. As seen in Fig. 1-7 below, the location
containing interrupt vector is passed over during regular program execution.
Part of the program being activated when an interrupt request arrives is
called the interrupt routine. Its first instruction is located at the interrupt vector.
How long this subroutine will be and what it will be like depends on the skills of
the programmer as well as the interrupt source itself.
GSM Modem
4.12.1 Introduction
This method describes the hardware interface of the sim300 module that
connects to
the specific application and the air interface. As sim300 can be integrated with a
wide range of applications, all functional components of sim300 are described in
great detail.
This document can help you quickly understand sim300 interface
specifications, electrical and mechanical details. With the help of this document
and other sim300 application notes, user guide, you can use sim300 module to
design and set-up mobile applications quickly.
CHAPTER 6
APPENDIX
6.1SOFTWARE ANALYSIS
Introduction to AVR compiler
Keil IDE:
Keil Vision is what the software we are using for the programming. In this
software editor we are writing the program in any of the languages like ASM or
Embedded C.
-vision overview
Advanced GDI interface for software debugging in the target hardware and
for connection to Keil ULINK.
The Vision3 Simulator is the only debugger that completely simulates all
on-chip peripherals
Benefits
Advantages
Embedded C
PROGRAM
#include <EEPROM.h>
#include <SoftwareSerial.h>
// include the library code:
#include <LiquidCrystal.h>
#include<stdio.h>
#include<String.h>
char phone_index ;
//bit send_fail;
char display(int index,int count);
void edit_num ( );
void edit_bal(int pos_dig);
void edit_number(int pos_dig);
int stringtoint(char * string);
void retrieve_phone_num();
void save_phone_num();
char get_key (char flag );
int ledd;
int buttonState , buttonState1 , buttonState2 , buttonState3,buttonState4;
char phone_num[8][11]={
"7092678326",
"8883067199",
"9626070094",
};
int z;
int fire = 2;
int fire_state = 0;
int ir = 3;
int ir_state = 0;
int count = 0;
int x = 0;
int w=0;
int star_state=0;
pinMode(A0,INPUT);
pinMode(A2,OUTPUT);
digitalWrite(A2,HIGH);
pinMode(A1,OUTPUT);
pinMode(A5,OUTPUT);
pinMode(A4,OUTPUT);
digitalWrite(A0,HIGH);
digitalWrite(A1,HIGH);
digitalWrite(A5,LOW);
digitalWrite(A4,HIGH);
pinMode(A3,OUTPUT);
digitalWrite(A3,HIGH);
digitalWrite(buttonPin,HIGH);
digitalWrite(buttonPin1,HIGH);
digitalWrite(buttonPin2,HIGH);
digitalWrite(buttonPin3,HIGH);
lcd.begin(16, 2);
Serial.begin(9600);
// disp_mainscreen();
for(int i=0;i<35;i++){
lcd.setCursor(0,0);
// _lcd_ready();
lcd.scrollDisplayLeft();
lcd.print( "INTELLIGNET AUTOMATION " ) ;
lcd.setCursor(0,1);
// _lcd_ready();
lcd.print( " SYSTEM IN TRAIN " ) ;
delay(350);
}
lcd.clear();
//save_phone_num();
lcd.setCursor(0,0);
// _lcd_ready();
lcd.print( "INITIALIZE MODEM" ) ;
// sprintf( buffer,"ATE0%c%c" , 0x0D , 0x0A ) ;
Serial.print("ATE0");
delay ( 500 ) ;
Serial.print("\r\n");
delay ( 500 ) ;
// sprintf( buffer, "AT+CMGF=1%c%c" , 0x0D , 0x0A ) ; Serial.print(buffer);
Serial.print("AT+CMGF=1");
Serial.print("\r\n");
delay ( 500 ) ;
// sprintf( buffer, "at+cnmi=2,2,0,0,0%c%c" , 0x0D , 0x0A ) ;
Serial.print(buffer);
Serial.print("at+cnmi=2,2,0,0,0");
Serial.print("\r\n");
delay ( 500 ) ;
lcd.setCursor(0,0);
// _lcd_ready();
for ( z = 0 ; z <3 ; z++ )
{
delay( 5 ) ;
save_phone_num();
//retrieve_phone_num();
}
char getchar1()
{
char data;
int counter = 2;
while ( Serial.available()<=0 )
{
delay( 10 ) ;
counter-- ;
if ( counter == 0 )
return 0 ;
}
data = Serial.read();
return data;
}
void loop()
{
Serial.flush();
lcd.clear();
while(1)
{
if (Serial.available())
{
lcd.clear();
lcd.setCursor(0,0);
lcd.print(" PROCESSING ");
delay(1000);
while (Serial.available() > 0)
{
for(int r=0;r<8;r++)
{
card_id[r] = getchar1();
delay(100);
}
Serial.flush();
tst_strcmp();Serial.flush();
}
else
{
buttonState = digitalRead(buttonPin);
if(buttonState==LOW)
{
for ( temp = 0 ; temp<4 ; temp++ )
{
if (display(temp,1)==0)
display(temp,0);
edit_num();
}
}
}
else
{
fire_state = digitalRead(fire);
ir_state = digitalRead(ir);
}
CHAPTER 5
CONCLUSION
With increasing concern of global warming and the depletion of fossil fuel
reserves, many are looking at sustainable energy solutions to preserve the earth for
the future generations. Other than hydro power, wind and photovoltaic, fuel cells
energy holds the most potential to meet our energy demands. This work is
concentrated on predicting the major cause of railway accidents that is collision on
the same track. .It is expected that if this system is implemented widely, train
collisions and accidents can be avoided.
CHAPTER 7
BIBLIOGRAPHY
1.An integrated hybrid power supply for distributed generation applications fed by
nonconventional energy sources. sachin jain and vivek agarwal, senior member
ieee vol. 23, no. 2, june 2008
2.control strategy for a variable-speed wind turbine using dc bus measurements,
sisy 2010, ieee 8th international symposium on intelligent systems and informatics
september 10-11, 2010 by c. koch- ciobotaru, R. Boraci, I. Filip, C. Vasar, G.
Prostean.
3.ATMEGA microcontroller and Embedded Systems: Using Assembly and C for
ATMEGA 16 by Muhammad Ali Mazidi, Rolin D. McKinlay, Danny Causey .
4.Microcontroller Project Book For PIC Basic and PIC Basic Pro Compliers by
JOHN IOVINE.
5.The ATMEGA Microcontroller Your Personal Introductory Course by JOHN
MORTON.
6.2 Hardware Result