42
Prepaid Energy System Group 21 Sponsored by: Youssef Ojeil (EE) Michael Cuervo (EE) MD.S. Rahaman (EE) Sahin Okur (EE) Supervised by Dr. Chung-Yong Chan

Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

PrepaidEnergySystemGroup21Sponsoredby:

◦ YoussefOjeil (EE)◦MichaelCuervo (EE)◦MD.S.Rahaman (EE)◦ Sahin Okur (EE)

SupervisedbyDr.Chung-YongChan

Page 2: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

GoalsandObjectives• Alternativepre-paid solutiontoconventionalutilitybilling• RFID/NFC technologyallowsforquick payment• EnablestheInternetofThings(IoT)sotheusercanalwaysbeconnectedto

thesystem• Androidapplicationprovidestheuserwithreal-timedatain thepalmof

theirhands• Easy accesstostatisticsgivestheuser moreawarenessandcontrol ofusage• Automaticconnect/disconnectcapabilityrelievestheburdenfromthe

utilityproviders

Page 3: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

Requirements• MustfacilitatemobilepaymentviaRFID/NFC

• IncorporatingTexasInstrument's3PhasePowerMeter

• Datausageaccessible throughWi-Fi

• FriendlyUserInterface(AndroidApplication)

Page 4: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

RelevantStandards• Wi-Fi

o IEEE802.11b/g/n

o WPA/WPA2/WEP

• RFID/NFC

o ISO-14443A

o ISO-14443B

o ISO-15693

o FeliCa

Page 5: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

BlockDiagramPower SupplyAC Main

MCU

RFID Chip

Comparator

Power Meter

Circuit Breaker Load

3.3 V

3.3 V

12 V

Page 6: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

DesignandImplementation

Page 7: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

PowerMeterPower SupplyAC Main

MCU

RFID Chip

Comparator

Power Meter

Circuit Breaker Load

3.3 V

3.3 V

12 V

Page 8: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

EVM430-F6779 - 3PhaseElectronicPowerMeter• Runreal-timeelectricitymeteringapplications

• ProvideACpowermeasurementsforupto3phase

• GUIforcalibration,measurementdisplay,etc

• RS-232interfaceforexternalcommunication

• 160segmentLCDdisplay

• SupportsWi-FiandZigBee

Page 9: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

SolidStateRelay• Loadcurrent75A

• Input:• InputDCcontrol3-32V• Triggercurrent7.5mA/12V

• Output:• Operatingvoltage90-480V• Weight:125g

Page 10: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

ComparatorTL084• MCUOutputvoltage3.3

• Raisethevoltageto12V.

• Usingasalogiccircuiteither0to12voltoutput.

Page 11: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

[email protected] @0VINPUTOUTPUT12V

Page 12: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

RFIDPower SupplyAC Main

MCU

RFID Chip

Comparator

Power Meter

Circuit Breaker Load

3.3 V

3.3 V

12 V

Page 13: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

RFID• NFCischosensincenearfieldcommunicationismoresecure

•Operatesat13.56MHz

• Containstwoseparateparts:theHostandtheTag• Usedforpayments

Page 14: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

RFIDTransceiver- TRF7970A• RFID/NFC Reader,NFCPeer,orinCardEmulationmode

• RFFieldDetectorforNFCPhysicalCollisionAvoidance•13.56MHz HFRFIDReader/Writer

• SupportsISO15693,18000-3,14443A/B,andFeliCa•OperableatFullPowerorHalfPower(5or3.3V)• UltraLow-PowerSystemDesign(PowerDown<1µA)

• ParallelorSPIInterface

Page 15: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

RFIDBoosterPack- TRF7970ABP• CompatiblewithNFCLink Library

• CompatiblewithCC3200LaunchPad

• SupplyVoltage2.7– 5.5V• 127byteFIFObuffer• 0.5uA PowerDown

• 2mAStandbyMode

•On-boardAntenna•OperationalPowerSuppliedbyLaunchPad

Page 16: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

TRF7970AOperableModesReader/Writer CardEmulation P2P

Technology Bitrate(kbps)

Technology Bitrate(kbps)

Technology Bitrate(kbps)

NFC-A/B(ISO14443A/B)

106,212,424, 848

NFC-A/B 106 NFC-A 106

NFC-F (JIS:X6319-4)

212 , 424 N/A N/A NFC-F 212, 424

Page 17: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

RFID &MCUBlockDiagram

Page 18: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

PhoneSelection• Android– OpenSource&NFCsince2008• NexusS&Nexus4• NexusSwasinitiallyusedbecauseitwascheap• Nexus4usedbecauseofAndroid4.4• BroadcomNFCchip,whichemulatesaTag4TypeISO14443A• Android4.4wastheminimumOSforimplementingHostCardEmulationwhichusestheNDEFprotocol

Page 19: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

NDEF• NFCForumDataExchangeFormatisalightweightbinarymessagecommunicationprotocol

• NDEFMessagesarethebasic"transportation"mechanismforNDEFrecords.Eachmessagecancontainoneormorerecords.

• NDEFRecordscontainaspecificpayload,andfollowaspecificstructurethatidentifiesthecontentsandsizeoftherecord.

• SinceweareemulatingType4tags,APDUcommands(likeREADBINARYandSTOREBINARY)areusedtoreadandstoreNDEFdatatocompletethecommunicationbetweenthereaderandthephone.

•Awaittimeextensionrequestwasbeingsentoutbythephone.ThishadtobeechoedbytheRFIDreader.

Page 20: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

AndroidApplication

• UserInterface•Mobileappwillhavealertsystem• Emulatingatransponder tagusingHCE• EmulateAndroidPay• RetrieveDatathroughWi-Fi

Page 21: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

MCUPower SupplyAC Main

MCU

RFID Chip

Comparator

Power Meter

Circuit Breaker Load

3.3 V

3.3 V

12 V

Page 22: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

WirelessCommunication

Parameter Bluetooth ZigBee Wi-Fi

Frequency 2.4GHz 800-900MHz,2.4GHz 2.4GHz,5GHz

Range 10m 10- 100m Upto100m

DataRate 1Mbps 250kbps 54Mbps

PowerConsumption Medium Low High

ImplementationComplexity Easy Moderate Difficult

Page 23: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

MicrocontrollerUnit•CC3200WirelessMCU◦ ARMCortex-M4CPUat80MHz◦ IntegratedNetworkProcessor◦ SimpleLink Library◦ 4Low-PowerModes

9mmx9mm

Page 24: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

MicrocontrollerUnit:PrototypingCC3200LaunchPad◦ On-boardAntenna◦ BoosterPackHeaders◦ PoweredFromUSB◦ JTAG/FTDI

Page 25: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

ProcessFlowDiagramINIT APProvisioning SaveConfigTo

Flash

ConnecttoNetwork AdvertisemDNS

NFCReaderActive

(EnterIdleState)

Retrieve/ProcessDataFromPower

Meter

PaymentAcquired?

No

Yes

ProcessandSendEmail

Confirmation

If$$Low,SendSMS

Check$$AndTurnPowerON/

OFF

Page 26: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

ProcessFlowDiagramINIT APProvisioning SaveConfigTo

Flash

ConnecttoNetwork AdvertisemDNS

NFCReaderActive

(EnterIdleState)

Retrieve/ProcessDataFromPower

Meter

PaymentAcquired?

No

Yes

ProcessandSendEmail

Confirmation

If$$Low,SendSMS

Check$$AndTurnPowerON/

OFF

Page 27: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

Wi-Fi:PowerMeter• CC3100onpowermeterhostsHTTPwebserver

• CC3200actsasHTTPClient

Page 28: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

Wi-Fi:Phone•mDNS broadcaststophone

• Sendspaymentconfirmationandalerttoemailandphone

Page 29: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

PCB

Page 30: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

PowerSupplyUnitPower SupplyAC Main

MCU

RFID Chip

Comparator

Power Meter

Circuit Breaker Load

3.3 V

3.3 V

12 V

Page 31: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

PowerSupplyDesign

Page 32: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

120VACto12VDC(Stage1)Design:PMP8764

VinMin =110.0VVinMax =130.0VVout =12.0VIout =1.0ADevice=PMP8764Topology=FlybackBOMCount=35TotalPd =1.25W

Page 33: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

12 VDCto3.3 VDC(Stage2)

Design:4550765/86TPS54425PWPR

VinMin =11.5VVinMax =12.5VVout =3.3VIout =1.0ADevice=TPS54425PWPRTopology=BuckBOMCost=$2.21BOMCount=12TotalPd =0.21W

Page 34: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

Stage1Stage2

Page 35: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

PCB

Page 36: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

PCBDCtoDC

Page 37: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

AdministrativeContent

Page 38: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

ResponsibilitiesYoussefOjeil Michael Cuervo Sahin Okur MD. Rahaman

Android Application Power Supply Microcontroller PowerMeter

RFID PCB Design Wi-Fi Communication Relay

Page 39: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

FacilitiesandEquipment• UniversityofCentralFlorida(UCF)SmartLab

• UCFSeniorDesignLab

• TexasInstrumentsInnovationLab

• Three-phasepoweroutletfoundinEngineering1,Room456

Page 40: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

BudgetPart Supplier Quantity CostCC3200LaunchPad Texas Instruments 1 $29.99*TRF7970ABoosterPack Texas Instruments 2 $25.00*CC3100BoosterPack Texas Instruments 2 $19.99*EVM430-F6779 Texas Instruments 1 $299.00*SSR-75DAH Fotek 1 $10.00

Nexus4 LG 1 $80.00SeniorDesignPaper The SPOT 1 $13.00PCB OSHPark 3 $140.00

PowerSupply PCB OSHPark 6 $234.00

Miscellaneous $100.00

Total

*Partsprovided freeofchargebysponsor

Page 41: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

Limitations• Currentlysupportsonlysinglephasemeasurements

• Noauthenticationmethodforcardpayments

• UsermustbeconnectedtoWi-Finetworktoaccessdata

• SystemdoesnotsupportallmodesofNFC

• MobileAppdoesnotsupportofficialmerchant/buyersystem.CanfurtherbeimprovedbyusingAndroidPayAPIs.

Page 42: Prepaid Energy System - UCF Department of EECS · 2016. 5. 2. · Integrated Network Processor SimpleLink Library 4 Low-Power Modes 9mm x 9mm. Microcontroller Unit: Prototyping

Questions?