Unformatted text preview:

Slide 1Project OverviewFeaturesStructural SetupSlide 5LayoutSlide 7PCB Layout – Power ConvertersSchematic for 3.3V buck converterSchematic for 12 V Buck-BoostSchematic for 24V BoostProgressSlide 13Sensors ProgressAnalog/Digital ConverterSensorsSlide 17Current SystemSlide 19Our SystemExpo Demo SetupSlide 22Microcontroller – ATxmega64A1Slide 24Code FlowMonitor and Control AlgorithmSlide 27Memory – SD CardSlide 29Slide 30Memory: Prototype Setup and Timing DiagramsSlide 32GSM CellularFBD: GSM ModuleSlide 35Slide 36GSM Cellular - ProgressSlide 38Slide 39Base StationGSM CommunicationMCU CommunicationInterface CommandsSlide 44DAQFactory User InterfaceDivision of LaborBudgetMilestone 1Milestone 2Questions?Jake BaldwinKrista HaslingMaryam Moghaddam-ZadehJack OakesScott WisdomProject OverviewProject OverviewS.C.A.D.A. systemManna Energy Foundation , RwandaWater PurificationProject ObjectiveRemotely determine system healthPerform control operations based on use (autonomous and supervisory)Report and recordFeaturesFeaturesThis design goal:32 External ADC’s 6 Relay/Valve controls4 Bus Power3 Bus DataGSM communicationMemory SD cardDemo will not include max number of sensorsStructural SetupStructural SetupSystem Block DiagramSystem Block DiagramSystem Block DiagramSystem Block DiagramSchematic for 3.3V buck Schematic for 3.3V buck converterconverterUses LM3100 ChipSame as 5V and 10V buckSupplies max currents of 1.5 APredicted max current needed is <1 ASchematic for 12 V Buck-BoostSchematic for 12 V Buck-Boost Uses LM5118 Converter can supply a max current of 3.5 ampsPredicted Max current < 1.5 AmpsSchematic for 24V BoostSchematic for 24V BoostUses LM3488Max current of 3.4 AmpsPredicted max value <1 AmpProgressProgressConverters and PCB are designed and orderedNo implemented circuit protection yet….Separating headers on current PCB will be removed for finished projectSystem Block DiagramSystem Block DiagramPressure Meter 1Pressure Meter 2Flow MeterUV lightValve12 Vdc5 Vdc5 Vdc24 Vdc240 VacADCADS7828MCATxmega64A1I2C0- 5 Vdc2- 40 mA0- 12 Vdc0- 5 Vdc3.3 Vdc0- 12 VdcAnalog/Digital ConverterAnalog/Digital ConverterSensorsSensorsFlow Meter•Signet 2551•No device due to cost ($1500 each)•Using a direct current output to act as device in testing•2 devices per system•Output: 4 to 20 mA•Temperature: -20° to 70° CPressure Meter•Omega 209•2 devices for testing•6 devices per system•Output: 0 to 5 V at .0125 V/division•Temperature: -20° to 80° CSensorsSensorsTerminal Block•PT 1935006•PCB attachment for ADC to sensors•16 connectionsBrass Actuated Ball Valve•DynaMatic AP20DA•1 device for testing•Temperature: -15° to 300 ° CUV lights•Sterilight with ICE controller•1 device for testing•Water temperature: 2° to 40° C•UV wavelength: 254 nm•SP100-HO: 11 gpm•9000 hours of useWater Collection TankWater Storage TankFilter 1UV light 1UV light 2Pressure PressureFlow*No Flow Meter due to costPressurePressureUV lightValve“Flow”PumpSystem Block DiagramSystem Block DiagramMicrocontroller – ATxmega64A1Microcontroller – ATxmega64A1Calibration of internal 32 MHz RC DFLL oscillatorInitialize and use communication modulesSPII2CUARTSample sensors with timer interruptLog data to SD CardParse and execute commands from cell module and base-stationMonitor and control using programmed algorithmImage source: http://www.atmel.com/dyn/resources/prod_documents/doc8067.pdfSD CardRS-232DebugPortADCPDIPortSPIUARTUARTDMAI2CI2CBuses and ConnectionsBuses and Connections32kHzXTALSerial-to-USB IC(to base-station)CellModuleATmega32Code FlowCode FlowInitializemodulesPower onIdleSamplesensorsTimer 1 interruptWritemeasurementto SD Cardover DMAReadmeasurementfrom SD CardSendMeasurementOver CellMeasurementssatisfy algorithmconditions?Performalgorithmresults ofsatisfied conditionsYesREADParse commandReturn to IdleNoCommand from base-station or cellOtherbase-station/cell commands...WRITEXXXXMonitor and Control Monitor and Control AlgorithmAlgorithmStructure of one software algorithm block…With additional blocks, control is a “sum of products”Condition 1Condition 2Condition n&& …Result 1Result 2Result n&& …Monitor and Control Monitor and Control AlgorithmAlgorithmCondition types:Threshold(Value, Above/Below, SensorID)True/False(Condition)Result types:ChangeValve(Closed/Open)ChangeRelay(On/Off)SendAlert(AlertType, Method, Value)Memory – SD CardMemory – SD CardUse 512-byte block sizeMicrocontroller allocates 512-byte buffer that can be read or written toSPI at 4MHzHash table between time stamps and block addresses (grouped by day and hour)Memory: SchematicMemory: SchematicMemory: Process Flows for Memory: Process Flows for SD CardSD CardSD Card Initialization:SD Card Read Cycle:SD Card Write Cycle:GO_IDLE_STATE traceSEND_OP_CONDtraceSystem Block DiagramSystem Block DiagramGSM CellularGSM CellularAVR-GSMCalling cardEmbedded antennaDirect interface for USB terminal communicationOff board connectors for power and busesFBD: GSM ModuleFBD: GSM ModuleSerial InterfaceSerial InterfaceSIM300DFTDISERIAL-USBATMEGA32I2CXMegaLaptop12Volt DCPrototype Components2 PIN PowerEXT I/OUSB PORT6 pin ISP26 Pin IOI2C-DAQFactory-Real Term-Prototype power-’Wall’ powerGSM CellularGSM CellularATxmega64 /ATMega32SIM300 Bus/ATMega32I2C with defined commands‘Get’ and ‘Set’2 BuffersData Transmit (~160 byte)Data Receive (~160 byte)100Khz ~ 400KhzExternal connections12V, GND, SCL, SDAISP programmerUART commands‘AT’ ASCII commands2 BuffersUART RX 256 bytesUART TX 256 bytes3x30 SIM300 BuffersStatus buffer/byte115K2 desiredCode FlowCode FlowPeripheral Init (UART, I2C)Status ByteCellular InitMonitor TrafficUpdate StatusGSM Data ReceivedUpdate StatusNo DataYesMCU Data RequestForwardNoData AvailableMCU CommandBack to Monitor TrafficMCU Send DataGSM Cellular - ProgressGSM Cellular - Progress+Text messaging works (AT&T)+Uart for ATmega32 works (interrupt)+I2C master configured for ATMega32 (interrupt)-Needs to be slave+Fully defined status byte, bus protocol-Perform simple Uart/I2C test via terminalSystem Block DiagramSystem Block DiagramBaseBase StationStationBase StationBase StationTwo ways of communication:Serial to Microcontroller (and ADC)Serial to GSM moduleTwo drivers on


View Full Document

CU-Boulder ECEN 4610 - Team Amazi

Download Team Amazi
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Team Amazi and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Team Amazi 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?