1 / 26

Smart-grid Interface with Photovoltaic Installation – Phase 2 PP-01

Smart-grid Interface with Photovoltaic Installation – Phase 2 PP-01. Team members: Matt Koresh Ivan Mills Matt Martin Advisor: Dr. Aliprantis.

solana
Download Presentation

Smart-grid Interface with Photovoltaic Installation – Phase 2 PP-01

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Smart-grid Interface with Photovoltaic Installation – Phase 2PP-01 Team members: Matt Koresh Ivan Mills Matt Martin Advisor: Dr. Aliprantis

  2. Our group is tasked with the completion of previous work on a PV panel. The panel must be installed on top of Coover Hall and must incorporate smart grid technology. Our client has expressed a need for a wireless device to send power data between a solar inverter and a computer interface. Our client has expressed using new Zigbee technology to be incorporated in our design. Problem Statement

  3. We built upon small amounts of previous work laid out by the previous group and began a design for the installation We designed a current measuring circuit and incorporated a wireless Zigbee device in order to transmit data to a computer. Solution

  4. Documentation on PV panel • PV panel and cables • Due to lack of testing and documentation reverse engineering the inverter could prove futile. Previous Phase

  5. System Diagram

  6. Current will be measured from Inverter output • Power will be calculated from known grid Voltage and Current measurements • Data measurements will be sent over Zigbee network to computer with Software interface to display results Measurements and Data transfer

  7. Schematic of Final Board

  8. -10-Bit A/D Converter (up to 13 channels) -Internal Oscillator -USART interface -ICSP (In-Circuit Serial Program) -ICD (In-Circuit Debug) Microcontroller: PIC18F4620

  9. MPLAB from Microchip used to program • Assembly Code Utilized • 3 basic functions: • Analog to Digital Conversion of input voltage signal • Serial Communication Interface • 30 second timer to repeat main functions PIC Programming

  10. List P = PIC18F4620 #include<P18F4620.INC> ;-------------------------------------------------------------------------------; ;------ This program is implementing USART on a PIC18F4620 ---------------------; ;------ OSC = INT RC-Port on RA6, Port on RA7-----------------------------------; ;------ Fosc = 8MHz (internal)--------------------------------------------------; ;------Initialization Routine----------------------------------------------------; Init: ;----------Set Oscillator----------; banksel OSCCON movlw b'01110000' ;set frequency to 8MHz movwf OSCCON ;------Configure Input/Output------; ;Clear PORTA banksel PORTA ;Select the bank that PORTA is located clrf PORTA ;Clear the Port just in case erroneous ;Configures Pin AN0 as an A/D input banksel TRISA ;Select the bank that TRISA is located MOVLW b'00000001' ;move binery number to w-register MOVWF TRISA ;move value from w-reg to TRISA - this makes pin AN0 an input for ADC later ;------ADC Init------; ;ADCON0: Controls operation of A/D module banksel ADCON0 ;Select the bank that ADCON0 is located movlw b'00000001' ;bit selects AN0 as A/D channel, A/D module enabled, A/D conversion to idle movwf ADCON0 ;ADCON1: Configures functions of port pins banksel ADCON1 ;Select the bank that ADCON1 is located movlw b'00000000' ;sets Vref- to Vss, Vref+ to Vdd and AN0 as analog input movwf ADCON1 ;ADCON2: Configures A/D clock source, programmed acquisition time and justification banksel ADCON2 ;Select the bank that ADCON2 is located movlw b'10101000' ;A/D Result right-justified movwf ADCON2 ;------Configure USART Communication------; banksel TRISC ;select bank holding TRISC movlw b'11000000' ;Program RC7/RX pin and RC6/TX pin as directed by datasheet (pg 201) movwf TRISC ; banksel SPBRG ;Select bank holding SPBRG movlw b'00001100' ;decimal value of 12 (binary 00001100) is required value for 9600 baud rate movwf SPBRG ; PIC Programming

  11. banksel RCSTA ;select bank holding RCSTA movlw b'10000000' ;Enabled transmission, 8 data bits. SPEN bit (RCSTA<7>=1) movwf RCSTA ;USART ready to transmit and recieve data banksel TXSTA ;select bank holding TXSTA movlw b'10000000' ;Transmit enabeled bit TXEN(TXSTA<5>) set low(disabled) for now, Asynchronous mode low speed(BRGH=0) movwf TXSTA ; goto Main ;force program to go to Main loop after initialization ;--------------------------------------------------------------------------------; ;--------------------------------------------------------------------------------; ; ;------Main Routine--------------------------------------------------------------; Main: ;------ADC------;\ ;Clear ADC Output registers first to ensure correct measurement banksel ADRESH ;Select the bank that ADRESH is located clrf ADRESH ;clear output high banksel ADRESL ;Select the bank that ADRESL is located clrf ADRESL ;clear output low ;Actually Perform ADC banksel ADCON0 ;Select the bank that ADCON0 is located bsf ADCON0, GO_DONE ;sets GO_DONE bit high enabling ADC btfsc ADCON0, GO_DONE ;checks GO_DONE, if low the next line is skipped goto $-1 ;this is a loop, if GO_DONE is low (ie. ADC is complete) program returns to previous line ;------Send data in A/D registers to Serial------; ;---Note:Data to transmit must be in W register--; TXDATA: ;---Send ADRESH-----; banksel TXSTA bsf TXSTA,TXEN ;Transmit enabled bit TXEN(TXSTA<5>) set, this enables transmission banksel ADRESH movf ADRESH, W ;put data located in ADRESH into working registry banksel TXREG movwf TXREG ;Store ADRESH data in TXREG initializing transmission PIC Programming (cont)

  12. movlw b'10101010' ;waste time in order to allow TRMT (status bit) to change so we can pole it movlw b'11010101' ;waste more time WaitHerebtfss TXSTA,TRMT ;transmit complete if bit TRMT(TXSTA<1>) is high gotoWaitHere ;sending not done, go back through loop banksel TXSTA bcf TXSTA,TXEN ;clear transmit enabled bit when finished ;---Send ADRESL-----; banksel TXSTA bsf TXSTA,TXEN ;Transmit enabled bit TXEN(TXSTA<5>) set, this enables transmission banksel ADRESL movf ADRESL, W ;put data located in ADRESL into working registry banksel TXREG movwf TXREG ;Store ADRESL data in TXREG initializing transmission movlw b'10101010' ;waste time in order to allow TRMT (status bit) to change so we can pole it movlw b'11010101' ;waste more time WaitHere2 btfss TXSTA,TRMT ;transmit complete if bit TRMT(TXSTA<1>) is high goto WaitHere2 ;sending not done, go back through loop banksel TXSTA bcf TXSTA,TXEN ;clear transmit enabled bit when finished ;------Wait 30's to take another measurement and send data------; ;---------------------------Delay Loop--------------------------; ;-------Instructions occure every 1/f --------------------------; ;This code segment defines how many times to run the delay loop movlw 0xFF ;Put the value of 85h in the working register (85h is a value) movwf 09h ;Move this value to the 09h register (09h is a register) COUNT2 equ 09h ;09h defines how many times to run COUNT1 delay loop movlw 0xFF ;Put the value of 85h in the working register (85h is a value) movwf 07h ;Move this value to the 09h register (09h is a register) COUNT3 equ 07h ;09h defines how many times to run COUNT1 delay loop PIC Programming (cont)

  13. LABEL3: movlw 0xFF ;Put the value of FFh (255) in the working register (FFh is a value) movwf 08h ;Move this value to the 08h register (08h is a register) COUNT1 equ 08h ;Now COUNT will equal the value 85h LABEL DECFSZ COUNT1,1;Decrease COUNT1 by 1 from 255, if COUNT1=0 skip next line and continue goto LABEL ;COUNT1 is not 1 therefore go to LABEL DECFSZ COUNT2,1 ;Decrease COUNT2 by 1 from 09h, if COUNT2=0 skip next line and continue goto LABEL3 ;if COUNT2 is not 0 therefore re-run delay loop another time DECFSZ COUNT3,1 ;Decrease COUNT2 by 1 from 09h, if COUNT2=0 skip next line and continue goto LABEL3 ;if COUNT2 is not 0 therefore re-run delay loop another time goto Main ;--------------------------------------------------------------------------------; end PIC Programming (cont)

  14. Wireless communication utilizes Zigbee protocol • Zigbee: • Was a design requirement • Requires minimal power • Easy to use • Is becoming a standard Wireless Communication

  15. Includes MAC address • Straight-forward interface • More standardized than other modules Zigbee Module

  16. Due to low power of Zigbee modules a mesh network is utilized to increase reach of our network • We are planning ahead for an increased number of devices in the future • Zigbee modules work with other device brands Network Topology

  17. Installation Location

  18. Equipment • Standards • Expandability Installation (cont)

  19. Built in Java • Event Driven • USB to Serial Serial Communications

  20. Communications Check Testing Communications • Modem Configuration • PC Settings

  21. Relay data to a MySQL database • Programs Needed • PHP/Script Interaction • Expandability Data Storage

  22. Google API • Select and Zoom Feature Visualization

  23. Prototype Final Product Project Evolution

  24. Prototype Final Product Project Evolution

  25. http://www.wirelessnetdesignline.com/173500576 • http://www.microchip.com • http://www.digi.com • http://www.microwatt.co.uk/images/zigbee_topology.png Sources

  26. Questions?

More Related