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 OverviewS.C.A.D.A. systemManna Energy Foundation , RwandaWater PurificationProject ObjectiveRemotely determine system healthPerform control operations based on use (autonomous and supervisory)Report and recordFeaturesFeaturesThis design goal:32 External ADC’s 6 Relay/Valve controls4 Bus Power3 Bus DataGSM communicationMemory SD cardDemo 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 converterconverterUses LM3100 ChipSame as 5V and 10V buckSupplies max currents of 1.5 APredicted 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 ampsPredicted Max current < 1.5 AmpsSchematic for 24V BoostSchematic for 24V BoostUses LM3488Max current of 3.4 AmpsPredicted max value <1 AmpProgressProgressConverters and PCB are designed and orderedNo 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 – ATxmega64A1Calibration of internal 32 MHz RC DFLL oscillatorInitialize and use communication modulesSPII2CUARTSample sensors with timer interruptLog data to SD CardParse and execute commands from cell module and base-stationMonitor 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 AlgorithmAlgorithmCondition 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 CardUse 512-byte block sizeMicrocontroller allocates 512-byte buffer that can be read or written toSPI at 4MHzHash 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 CellularAVR-GSMCalling cardEmbedded antennaDirect interface for USB terminal communicationOff 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/ATMega32I2C with defined commands‘Get’ and ‘Set’2 BuffersData Transmit (~160 byte)Data Receive (~160 byte)100Khz ~ 400KhzExternal connections12V, GND, SCL, SDAISP programmerUART commands‘AT’ ASCII commands2 BuffersUART RX 256 bytesUART TX 256 bytes3x30 SIM300 BuffersStatus buffer/byte115K2 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 StationTwo ways of communication:Serial to Microcontroller (and ADC)Serial to GSM moduleTwo drivers on
View Full Document