Friday 24 February 2012

BASIC VISUAL BASIC

WEEK 6, WEEK 7, AND WEEK 8


Objective:

  • To know about started with Visual Basic
  • To know the command for Visual Basic
Content:
  • Method to save the programming in desktop
  • Shortcut keys

Analysis

  • Run of  the Visual Basic 6 environment from the Start Menu, the exact path to the menu command depends on whether you have installed Visual Basic.When Visual Basic is installed, it registers the .vbp, .frm, .bas, and a few other extensions with the operating system. Therefore, you can run the environment by double-clicking on any Visual Basic file.
  • Run the Visual Basic IDE, you're asked to select the type of project you want to create. We're going to create Standard EXE projects as in below Figure.


Shortcut Keys for Using Visual Basic 6:
Key(s)
What the shortcut does
Alt + Q
Exits out of Visual Basic
Ctrl + N
Creates a new project
Ctrl + O
Opens an existing project
Ctrl + P
Prints a project
Ctrl + S
Saves a file
F7
Displays the code window for the currently selected object
Shift + F7
Displays the object for a particular event procedure.
Shift + F2
Jumps to the definition of the word identified by the cursor.
F2
Displays the Object Browser window
Ctrl + R
Displays the Project Explorer window
F4
Displays the properties window
Ctrl + E
Displays the menu editor window
Ctrl + D
Adds a file to a Visual Basic project
F5
Runs a Visual Basic Project

Wednesday 15 February 2012

LEARN ABOUT VISUAL BASIC 6(VB6)


WEEK 5

Objective: 

  • To get knowledge for visual basic


Contents:   

  • Discuss with my partner and search basic program using visual basic 6
  • Download of the software


                                                                 software Visual Basic 6

Introducing Visual Basic 6.0
Microsoft Visual Basic, the fastest and easiest way to create applications for Microsoft Windows. Whether you are an experienced professional or brand new to Windows programming, Visual Basic provides you with a complete set of tools to simplify rapid application development.
The "Visual" part refers to the method used to create the graphical user interface (GUI). Rather than writing numerous lines of code to describe the appearance and location of interface elements, you simply add prebuilt objects into place on screen. If you've ever used a drawing program such as Paint, you already have most of the skills necessary to create an effective user interface.
The BASIC (Beginners All-Purpose Symbolic Instruction Code) language, a language used by more programmers than any other language in the history of computing.
Visual Basic has evolved from the original BASIC language and now contains several hundred statements, functions, and keywords, many of which relate directly to the Windows GUI. Beginners can create useful applications by learning just a few of the keywords, yet the power of the language allows professionals to accomplish anything that can be accomplished using any other Windows programming language.
There are three main steps to creating an application in Visual Basic:
1. Create the interface.
2. Set properties.
3. Write code.

A Brief History of Visual Basic

Before Visual Basic 1.0 was introduced to the world in 1991, developers had to be well versed in C++ programming, as well as the rudimentary building blocks (Windows API) of the Windows system itself. This complexity meant that only the dedicated and properly trained were capable of turning out software that could run on Windows. Visual Basic changed all of that, and it has been estimated that there are now as many lines of production code written in Visual Basic as in any other language.
Visual Basic changed the face of Windows programming by removing the complex burden of writing code for the user interface (UI). By allowing programmers to draw their own UI, it freed them to concentrate on the business problems they were trying to solve. Once the UI is drawn, the programmer can then add code to react to events.
Visual Basic has also been extensible from the very beginning. Third-party vendors quickly saw the market for reusable modules to aid developers. These modules, or controls, were original referred to as VBXs (named after their file extension). If you didn't like the way a button behaved you could either buy or create your own. However, these controls had to be written in C or C++. Database access utilities were some of the first controls available.
When Microsoft introduced Visual Basic 3.0, the programming world changed again. Now you could build database applications directly accessible to users (so called front-end applications) completely with Visual Basic. There was no need to rely on third-party controls. Microsoft accomplished this task with the introduction of the Data Access Objects (DAO), which allowed programmers to manipulate data with the same ease as manipulating the user interface.


Sunday 12 February 2012

RESEARCH FOR BLOCK DIAGRAM


WEEK 4



Objectives
There are some objectives in order to complete this Development of Solar Photovoltaic Remote Monitoring System.

  •  To use solar photovoltaic as a supply the energy
  •  To use GSM as a modem to send and receive SMS via mobile phone for user
  • To receive the parameters reading of the photovoltaic at 7:00pm automatically
  • To know the performance of photovoltaic by sending SMS via mobile phone from 9:00am to 7:00pm


                To use visual basic as a programming to display the performance of photovoltaic in laptop
Solar PV remote monitoring system block diagram



The figure show the overall overview which is consist  of the solar panel as the input to current interfacing card board (CICB) as interfacing medium to output which is main computer to display and monitoring the current and voltage  of solar panel performance by using visual basic software. After that the data will be uploading to the GSM as a input and GSM modem will be transfer the data to the mobile when the signal form mobile is trigger.


CICB Block Diagram
 
                   The diagram show the CICB Block diagram divided to four parts, which is power supply, input, microcontroller and output.


Block
Explain
Power supply
Provide +12v +5v -12v -5v and ground power supply to CICB board
Current transducer
to measure current from PV array
Op amp circuit
The operation amplifier circuit act as amplify the signal voltage from current transducer to ADC port PIC 16F877A microcontroller.
PIC 16F877A
Microcontroller will process analog voltage signal from op amp circuit transmit the data to laptop through RS232 circuit and display current and voltage value.
RS232
Interface circuit from microcontroller to laptop
Relay/LED

Relay is use to control the high voltage 240V by microcontroller and the LED as a indicator for the relay on/off
LCD
Display data current and voltage
Buzzer
Alarm warning






Conclusion

Based on the explanation proposal above, we expected that the project will come out with true experience on hands skill assemble, find out fault finding software and hardware decision. . The proposed techniques will be useful in determining some important reliability parameters of the solar photovoltaic systems and will provide information using the GSM. The GSM is one of device can submit message to user to control and easy to monitoring the system for example is agro-tech industry is applied. The combination between hardware and software will be producing the output result as a planning. The application of photovoltaic monitoring system center can be apply in solar Generation power plant or Building Integrated Photovoltaic (BIPV) to provide current and voltage real time reading and daily data logger performance to photovoltaic researcher. This project also can apply to Supervisory Control and Data Acquisition (SCADA) system on Photovoltaic Grid Tie System to control load consumption. The project also can be use as maximum power device controller to maximize the use of power generated to load power consumption using concept power maximum theorem. 
Besides that, this project based from solar panel as a device to generated energy. The student will gain the knowledge about the photovoltaic system. The photovoltaic system is commonly used in our country which is Malaysia and it is good to learn how the solar panel works and can use in working environment. This project is related where student in electrical engineering background. In the future the photovoltaic system will become one of important the energy sources in the future and will replace the energy that use gas and coal. The government also encourages the student to learn or do research of photovoltaic system.
This project also will help the developer or the energy researcher to find out the strategic location for build solar power station or in solar. The works to know the performance of solar will become more easily and can handle in the office. It will save the time. In addition, this project hopefully can be useful since it can be upgraded and applied for any type of power plant.





Friday 3 February 2012

PROPOSAL

WEEK 3


Abstracts




The general purpose of the development of solar photovoltaic remote monitoring system is to monitor the solar photovoltaic system by using visual basic. The photovoltaic system will be integrated with the visual basic. The data of the solar photovoltaic system can be configured and saved through the visual basic.
Solar energy is one of the renewable energy widely used in Europe, America, and Japan to generate electric power by using large arranges solar panel. In Malaysia, fuel/petroleum gas used as the main energy source to generate electric power where solar energy can be alternative to replace fuel/petroleum gas by using solar panel/photovoltaic which convert solar energy to electrical power.
Solar panels will be placed at one place to get the solar radiation that comes from the sunlight. The more optimum sunlight will give the more power generated by the solar panel. But how the user or researcher know, how optimum the power generated? This final year project has the answer. The “Development of Solar Photovoltaic Monitoring System using Visual Basic”.
The data collected from the Solar Generation Power Plant or PV House must be monitored in one monitoring station or room. The value of the current and voltage must be read by using current or voltage transducer. Reading measured data, storage data, control the system derive by microcontroller board and to interfacing the microcontroller board through main computer the project use serial port. This project will be the solution for Solar researcher to get the optimum of solar radiation in order to have optimum power generation.

Introduction

The “Develop Photovoltaic Monitoring System Using Visual Basic” is a data logger system provides the real time monitoring system center from Solar Generation Plant/Field, which the main objective of this project is to analysis the performance of Solar panels based on the information display output. The data and information also can be store in the computer for research and to do analysis about solar performance. By applying this project to any Solar Generation Plant it will be much more convenient to users out there to monitor the performance of the Solar. The monitoring system center also is part of Supervisory Control and Data Acquisition (SCADA) system.
Solar Generation doesn’t know where the best place to get the best performance of the sunlight due to Solar is based on the radiation from the sun. Therefore, there must be equipment that can measure the value of the current and voltage generated by the solar panel. Since there this project comes out and the development of the project started. This project use PIC as microcontroller which is more efficient in term of size required, cost to develop and easy to maintain and handle.
The project also will display the real time of the current and voltage that be measured. The development can allow the customer or user to monitor the performance of the solar panel with their mobile phone.

Literature Review

The idea of this project is to development of embedded GSM system to control and monitoring for agro-tech industry Development Solar Photovoltaic Monitoring System. The concept and the flow and the methods that shall be used are from experience, guidance from supervisor and knowledge gain from the subjects learned at UniKL – BMI.
Photovoltaic power systems are generally classified according to their functional and operational requirements, their components configurations and how the equipment is connected to other power sources and electrical loads. The three principal classifications are grid connected or utility interactive systems, photovoltaic hybrid system and PV stand alone systems. Photovoltaic system can be design to provide DC and AC power service, can operate interconnected with or independent of the utility grid and can be connected with other energy source and energy storage system.
The combination of Visual Basic programming and PIC made the ‘brain’ of the system. The program includes the interfacing programming which use the serial programming, device controller and also the graphically user interface (GUI) for the back end programming.
The visual basic programming handled the flow of data in transmitting and receiving all the data from PIC. For the interfacing programming, we are used the Serial communications that interface visual basic 6 and the RS 232 (3-wires, TX, RX and GND), Half duplex, No handshaking. The Baud rate is 9600 bps/115,200bps, 8 bits of data according to the interface protocol that suitable for the program.
Visual Basic (VB) is a third-generation event driven programming language and associated development environment from Microsoft for its COM programming model. Visual Basic was derived from BASIC and enables the rapid application development (RAD) of graphical user interface (GUI) applications, access to databases using DAO, RDO, or ADO, and creation of ActiveX controls and objects. Scripting languages such as VBA and VBScript are syntactically similar to Visual Basic, but perform differently.