Showing posts with label Renewable Energy Resources and Other. Show all posts
Showing posts with label Renewable Energy Resources and Other. Show all posts

Proposal for The Solar Cell in IEEEP

This Saturday,  I had a meeting with Voice President Engr. Suleman Najib Khan of  IEEEP and other prestigious members including Engr Shahid Asalm (NESPAK) and some others. I presented them this document for the proposal of Solar Cell in IEEEP.


[Abstract]

In our last meeting of IEEEP held at Lahore Office, it was decided to take the idea of The Solar Cell to the real level. Several options were considered and it was concluded that solar  has a great potential and it is future of Pakistan. Among the renewable, it is most suitable for the country especially for off-grid distributed generation applications for smaller customers as of its ease of installation and lower costs. But it was noticed that Pakistanis don't have required literacy about this important renewable resource and they are still being robbed by amateur dealers. So IEEEP decided to step forward and start a cell  both for literacy of solar and Design of small systems. It was decided that This solar cell will not only propagate knowledge about solar but also it will also help people design and install durable solar systems. In the light of the meeting, following is the proposal of our roadmap.

[The Solar Cell]

The Solar Cell will work under IEEEP and it will have following priorities. 
  • To literate people about solar with common, layman language.
  • Help people design robust and durable solar system for their homes.
  • Survey Local markets for solar related products and make a general list of equipment that is available locally.
  • Survey requirement of people and try to do make cell activities as people friendly as possible.

[Literacy]

It is one of the most important things that we should realize people about the potential and benefits of using renewable energy resources. Environmental issues and load-shedding are two most crucial issues for our country and both have sub-solution via using distributed, home scale, environment-friendly renewable energy resources. This can only happen if we literate people about these resources and their long-term impacts as well as short term benefits. It is also necessary to educate them in easy layman language. So following are some steps that can be taken to do this.
  • Making a website dedicated for The Solar cell. It could be a sub-domain of already available IEEEP site. 
  • The website will contain all the literature in both Urdu and English Languages.
  • Literature will include both technical things like how to install, basics of solar etc and why to use solar and how will it impact long term.
  • A news section will have important news of solar from all over the world. This may contain links to the news from different websites and also some from the cell.

[Design]

One of the major problem faced by common Pakistanis is lack of  professionals that can educate them the real situation of solar. This void can be filled with a solar cell consisting of experienced and young blood eager to work in the field. Following are some points to highlight it.
  • Solar Cell will first design a template that will be used further for specific designs of systems required for people.
  • The team will design both DC and AC system design templates.
  • It will also design a simple pre-design template that will help people decide what type of system they want. This template may contain a calculated guess of expenses and output. Kind of a requirement document.
  • All the designs will be supervised by experts. 
  • The team will be divided into sub-categories according to work.
  • All the design will use local equipment easily available.

[Surveys]

Surveys of both local markets for available equipment and installed system will be done on regularly basis as they are necessary to get a know how of what is going on and also to update yourself. These surveys will be arranged by prestigious members of IEEEP. 

Better Back Up Your Work

Losing your data and starting again from point blank in a new hard disk or Laptop. If you use your laptop to save your important data, you may have came across this problem a couple of times. In fact a lot of people, including my self have face this problem in one way or the other. Reasons are different, may be your hard disk blown up or your laptop was stolen or something else but end result is same, a lot of tension and doing again all the work you have done already . Also starting from point blank where you don't have anything you used to help yourself is itself a big problem, isn't it?
Losing your data means all those hours you have spend working on a project or thesis or probably on an office assignment has gone into waste. And also all your important files from pervious assignments or your books or your collection of movies are just gone. You have to do that all again.
In cause of movies or some publicly available data, you may be able to download it but what if it is your thesis or your research work or anything that is private? It means you have lost it and you will have to do it again.
A famous post  that hits the social media  last days with a lot of people sympathizing  with the victim also state a similar problem. Apparently some woman scholar from Punjab University lost her five years of research 'cause of her laptop misplacing.
Now the question is what is solution of this sort of problems? You have to backup your data in order to avoid these kind of incidents. There are actually two ways you can backup your data. Either use a cloud service like Google Drive  or buy an extra portable hard disk often called passport and backup your data regularly.

Cloud services like Google Drive:


Google drive is a cloud service provided by google. It offers 15 Gbs of free storage and you can but unto tera bytes of storage for external use as well. There are two options to back up your data, either using manually uploading or using google drive software. Later is rather an efficient way of backing up your data as it automatically backs up all the files that are in a spefic folder. There are couple of other cloud services as well that can be used to do that. For further details about google drive..

Portable Hard Drive or Passport:


This is a better option if you are not connected with internet  most of the time or if you have slow internet connection. Portable hard drive is available in market for up to eight thousand rupees. Or you can also shop it online from Amazon or some other local online store like

Intellgent Solar Charge Controller using ARM Cortex M3 board

Abstract—Due to the energy crisis in Pakistan, the demand for alternative energy sources has increased. The Battery is a component of primary importance in these applications. This paper presents the design of PWM based Solar charge controller that prevents battery from damage. It control flow of charges to battery and load such that prevents battery from over charging, under charging and overvoltage meanwhile providing power to the load when required. It also prevents the system from abnormal conditions i.e. over current. It uses PWM to control the flow of power. It also displays state of battery on LCD and two LEDs are used to indicate the position of the system. Furthermore, a data acquisition system is also built to view data on a computer.
 
Keywords—Charge Controller; Cortex M3; Microcontroller; Battery;
Introduction
Due to the energy crisis in Pakistan, use of alternate energy sources like solar has increased to an extent. The battery in one of the main component used in these systems to store energy for later use. Every battery has a certain capacity to store the electricity. Also over charging, over voltage , over current and other conditions can reduce the lifetime of the battery and even cause damage. As a battery is one of the most expensive components of the system so its protection is important. So in this paper, we present a charge controller that regulates the voltage of battery and source and prevents it from unwanted conditions. A charge controller is a device that regulates the condition of a battery and prevents it from damage.













Figure 1: A typical stand alone solar system with charge controller[1]

It prevents overcharging and may protect against overvoltage, which can reduce battery performance or lifespan, and may pose a safety risk. It may also prevent completely draining ("deep discharging") a battery, or perform controlled discharges, depending on the battery technology, to protect battery life[2].
The battery storage in a PV system should be properly controlled to avoid catastrophic operating conditions like overcharging or frequent deep discharging. Storage batteries account for most PV system failures and contribute significantly to both the initial and the eventual replacement costs. Charge controllers regulate the charge transfer and prevent the battery from being excessively charged and discharged.[3]
The output of the solar panel is firstly checked for over voltage and over current condition for protection purpose. The voltage is then given to microcontroller.  The controller keeps the battery fully charged without over-charging it. When the load is drawing power, the controller allows the charge to flow from the generation source into the battery, the load, or both using PWM and switch. When the controller senses that the battery is fully (or nearly fully) charged, it reduces or stops the flow of electricity from the generation source to the battery. It allows the load to connect with battery only when a source is not generating enough energy. It automatically disconnects the system once a battery is in the deep discharge position.  An LCD and two LEDs are used to display the condition of the system as shown in Figure 2.





Figure 2: Block Diagram of the Intelligent solar charge controller

Protection is provided with Zener diode and fuse. A diode was used to prevent reverse current. The load is on off using switch and battery is charged with PWM.

     I.     System Design

A.    Protection

First of all input of solar is passed through a protection block which consists of a Zener, a diode, and a capacitor. Rating for the fuse is 3A so it will protect for over current. All the components used in the further circuit is of rating above 3A. A Zener is used in reverse to protect the circuit from over voltage and its rating is 15V. So any voltage above 15V will cause the system to shutdown. A diode is used to block reverse current and capacitor is used to protect the system from ripples that can cause damage to battery and microcontroller as well.
















Figure 3: Protection Circuit for Charge controller

B.    Voltage divider for Sampling of Voltage

Voltages are sampled by controller in two places of circuit for making decision. First it sampled input from solar panel, second it was sampled from battery. TM4C123 can bare <5V and it's a good practice to fed voltages less than 3.3V so we designed a voltage divider with 10k and 4.7k ohm resistance which is placed near battery and solar panel in parallel fashion.























Figure 4: Voltage divider for sampling

In this voltages for controller will be
.  
  

                          (1)



As our R1=4.7K,  R2=10K so our voltage dividing ratio is 0.3197. So maximum voltage that can appear in MCU analog pin is
Vout= 8.2*0 .3197
        =2.62154V
And in cause of some fault in our protection system, our MCU will be safe for voltage upto15.6396 V.
Power used by this circuit is very small due to high resistance.

 P  =  V2/R                       (2)
 P  =  8.22/14.7k  =  0.00457W which is negligible.

C.  Switching

There are two spots in the circuit where switching is used, one is battery and second is load. Battery and load are in series so battery is charged by PWM so that power can be provided to load by battery when solar power is not available. MOSFET are used for switching. N channel MOSFET is used for switching of load namely IRF540  and P-Channel MOSFET is used for  battery namely IRF5430.
Load is simply switched on or off while battery needs PWM based charging. Duty cycle of is controlled by Microcontroller based on charging state of battery.




















Figure 5: Switching Circuit for battery

MOSFET driver is used here with Mosfet reason to used this is MOSFETs have a large stray capacitance between the gate and the other terminals, which must be charged or discharged each time the MOSFET is switched on or off. As a transistor requires a particular gate voltage in order to switch on, the gate capacitor must be charged to at least the required gate voltage for the transistor to be switched on. Similarly, to switch the transistor off, this charge must be dissipated, i.e. the gate capacitor must be discharged.

   II.    Circuit Design

The complete circuit is first simulated on proteus. As proteus don't have TM4C123 so instead another controller is used for the simulation purposes. Solar panel was also simulated as battery for simulation purpose only. Simulation
Input of solar panel is first passed through some protection block which checks for over voltage, over current and reverse current flow as discussed earlier.  Then this is sampled with a voltage divider connected in parallel. This is for voltage of solar panel. This voltage value is used in software to make some decisions that will be discussed in software design. Then there is switching driver for battery charging. This uses a mosfet and transistor. PWM is generated on the terminals of the transistor which then charges battery according to duty cycle of the PWM. Battery voltage is also sampled to see the present condition of the battery. Then load is connected in series with battery. Another driver is used to switch on or off the load. Theses decisions are made on based of software. Two Leds are used to indicate system condition. When Red is on means battery is fully discharged (<10%). Green led blinking means charging of battery and green led on means battery is fully charged. LCD shows percentage charging of the battery and voltages of panel and battery. Serial communication is also used to communicate with computer if needed.
Figure 6: Complete Circuit of charge controller.

    III.   Software Design

This is heart of the project where all the logic is applied. Voltage is sampled from solar panel and battery and based on these two inputs, all the logic is applied. Main work of software is to decide charging of battery, on and off situation of load. Display, leds and serial communication is also done by this software.

A.    Battery and Solar Panle Voltages

Battery and solar voltages are two inputs of the system that decides situation of the system. For this system following logic was used

a)       if Solar Voltage > Battery Voltage and also battery Voltage is less than 6.96 then it means battery is not chareged so battery need to be charged at 95% PWMb)       if Solar Voltage > Battery Voltage and also battery Voltage is between 6.96 and 7.2 then it means battery is > 80% chareged so battery need to be charged at 10 % PWM
c)       if Battery Voltage is >= 7.2 or Solar Voltage is less than Battery voltage it means battery can't be charged as >7.2 Voltage means battery is fully charged and Solar voltage is less than battery voltage means it cannot be charged by panel.
d)       if Battery voltage is less than 6 it means battery is dead. Red light will be on and Display and serial communication will show alarming situation.
e)       If Solar Voltage is less than 3 and battery Voltage is 6.2 which means battery is charged and solar light is not enough to produce power, so load will switched to battery.
f)        Battery voltage between 6 and 6.2 shows that battery is fully discharged.

B.    ADC Sampling

TM4C123 have two ADC modules with 12 bit resolution. In this application we used software triggered conversion with busy wait synchronization. As speed of conversion doesn't matter much in this application so we used lowest sampling rate of 125k samples/second. Output of ADC is in bits which is then converted to voltage level using following formula.

V Measure = (ADC reading/ Resolution of ADC)*V System     (3)

C.    PWM generation

There are three modes related to PWM.
If battery is fully charged than duty cycle will be 0%. If battery is 80% charged than PWM duty cycle will be 10%  and if battery is less than 80% charged  than PWM duty cycle is 80%.
TM4C123 has 2 specific pwm modules with 16 bit counters.
 Figure 8: 10% and 90% PWM duty cycle

    

When timer is initially start with count value of zero, immediately loaded with reload value which is proportional to  frequency of PWM. Reloading also sets output flip flop to be low as in figure 8. Now counter starts decrementing with each cycle and current value is continuously compared against duty cycle value. Initially counter value is higher than duty cycle comparator. When current value equals to duty cycle comparator value, flip flop value goes high and it resets. Count continue decrementing un till it reaches  0 and underflow occurs which causes reload so PWM cycle ends and new cycle start again. [4]
Figure 8: PWM generation in TM4C123

Two parameters are used here for PWM generation. We are using 100Hz PWM with duty cycle of 90% and 10%. Re laod value determines frequency of PWM with following relationship
V Reload = f clock/f PWM                               (4)
V reload will be 160,000, as counter is 16 bit which can have maximum value of 65,356 so pre-sclaer needed  to be used here. A pre-scaler of 16 is used so new reload value of 10,000 is used.
For duty cycle, value is subtracted from reload value. So for 90% duty cycle, duty cycle comparator will have value of 1, 000 and for 10% it will be 9,000.
PWM charge controller will increase charging efficiency, allow for rapid recharging, and maintain healthy battery life. In all, a PWM charge controller comes with the following advantages Battery Aging Adjustments,  Battery Gassing and Heating Reductions, Charge Acceptance Increase,High Battery Capacity Maintenance: Lost Battery Recovery, Self-Regulation with Drops in Voltage or Temperature.[5]

 D. Algorithm


IV.   Hardware

PCB of the circuit is made using Proteus. Circuit is designed in two different modules, one is main controlling circuit and second is LCD for display.

Figure 10: PCB of the main circuit.               

V.    Data Acquisition

Data is send using serial communication with a baud rate of 9600. A application using Labview is made to get and display this data.
Current status of the system is send using 3 values battery voltage , Solar Voltage and % charging of battery and end using e\n like 07,08,9,e\n. This is then separated using string function of Labview and converted into float value which is then displayed. In this application we use usb cable for data communication. For practical purposes, BLE or another appropriate device

VI.   Conclusion

A small voltage, low cost charge controller construction is described using ARM Cortex microcontroller. PWM is used as it is cheap to build and much better than traditional  on-off charge controller as in perspective of battery life and efficient use of energy. A data acquisition system is also built to view the data on computer.  This type of small charge controller can be used in small applications to increases battery life and efficient use of energy.

VII.  References


[1]     Power Electronics Circuits Devices and Applications, 3rd ed., Elsevier B.V.,USA,2010,pp728
[2]     Webarchive backup: Brown, David. "Technical Article: Battery Charging Options for Portable Products." (Commercial website). Analogic Tech, 2006-07-01. Retrieved on 2007-08-21.
[3]     Power Electronics Circuits Devices and Applications, 3rd ed., Elsevier B.V.,USA,2010,pp727
[4]     ARM Microprocessors Systems, Cortex-M Archtecture Programming and Interface,Dr. M. Tahir,Dr. kashif Javed,1st ed,UET Lahore,2015,ch 9
[5]     Blue light, 'Overview of PWM Charge Controller',2010, [online] Availabl:http://e-bluelight.com/article-345-Pulse+Width+Modulation +Charge+Controllers+Explained.html



In Search of Water

Imagine you are on a place with no water. What would you do? Obviously, try to find water with all resources possible 'cause its the only way for us to live. The very same principle applies for life. If you want to find life, you will always look for water. In fact water is only trace of life. Life is always present alongside water in one form or other. Why? Actually life may have never begun with out water as scientists think it was water that give essential medium for mixing of organic compounds that results in very simple, uni cellular organisms. And not only this, water also played and important role in evolution of simple life in complex multi cellular life and survival of this life.

Now if we want to discover life outside our planet, we have to stick with this basic principle of water. Mean instead of finding life directly, we search for water. That's what NASA do all the time. They are trying to find life outside the planet earth and they were trying to find water. They sent a lot of non-human missions to mars in order to find life, Yes, the little red planet.




 Recently they sent a well equipped mission named curiosity rover. A non-human, automatic rover full of chemical analytical equipment to study martian surface. And it was not the first of its kind. Actually this was second.

Selfie taken by rover on barren martian surface.
Earlier today, NASA has confirmed that a imaging spectrometer on MRO detected signature of hydrated minerals which is considered most strong evidence of flowing water yet. It was found in different location with temperature of -23 degree Celsius or less and it disappeared in cold times.



recurring slope lineae
These dark, narrow, 100 meter-long streaks called recurring slope lineae flowing downhill on Mars are inferred to have been formed by contemporary flowing water. Recently, planetary scientists detected hydrated salts on these slopes at Hale crater, corroborating their original hypothesis that the streaks are indeed formed by liquid water. The blue color seen upslope of the dark streaks are thought not to be related to their formation, but instead are from the presence of the mineral pyroxene. The image is produced by draping an orthorectified (Infrared-Red-Blue/Green(IRB)) false color image (ESP_030570_1440) on a Digital Terrain Model (DTM) of the same site produced by High Resolution Imaging Science Experiment (University of Arizona). Vertical exaggeration is 1.5.
Credits: NASA/JPL/University of Arizona



“Our quest on Mars has been to ‘follow the water,’ in our search for life in the universe, and now we have convincing science that validates what we’ve long suspected,” said John Grunsfeld, astronaut and associate administrator of NASA’s Science Mission Directorate in Washington. “This is a significant development, as it appears to confirm that water -- albeit briny -- is flowing today on the surface of Mars.”
Although it is strongest evidence but it is not first of its sort. It also found calcium perchlorate, a salt in soil which suggests water presence on Mars. This salt actually lowers temperature of water freezing and water can be found in liquid form at even -125 degree Celsius.

And also in December  last year, Curiosity found burps of methane which might show bacterial action on surface as most of methane on earth is produced by living organisms with waste.

By the way don't think it as marketing scheme for coming science fiction o mars as some people might think ;). 



Although neither water nor any kind on life is yet confirmed on mars but one thing we can say for sure is that mars is not as barren and dried as we 

Sources:

Average Monthly energy from solar Insolation for Gujranwala


Estimated Energy Delivered by a 1-kW (dc, STC) PV Array in Gujranwala, Using Average Maximum Monthly Temperatures to Compute Performance Degradation.

Monthly Temperature for Gujranwala:




It was considered that with every increase in 1C temp, dc power decreases by .5%
Month
Insolation
(kWh/m^2-day)
Avg Max
Temp(◦C)
Cell Temp .(◦C)
Array dc
Power
(kW)
Array ac
Power
(kW)
Energy
(kWh/mo)
January
2.6
19.1
52.85
0.86075
0.721377
684.58711
February
3.76
22.1
55.85
0.84575
0.708806
972.76557
March
5.05
27.4
61.15
0.81925
0.686597
1265.57
April
6.01
33.7
67.45
0.78775
0.660198
1448.2423
May
7.13
39
72.75
0.76125
0.637988
1660.3329
June
6.99
40.8
74.55
0.75225
0.630446
1608.4876
July
6.47
36.1
69.85
0.77575
0.650141
1535.3394
August
5.88
34.6
68.35
0.78325
0.656426
1408.8218
September
5.57
35
68.75
0.78125
0.65475
1331.1395
October
4.75
33
66.75
0.79125
0.663131
1149.703
November
3.65
27
60.75
0.82125
0.688273
916.95197
December
2.9
21.2
54.95
0.85025
0.712578
754.2633











Refrences:

Temperature:  http://en.wikipedia.org/wiki/Gujranwala