270 likes | 414 Views
A Project. WILD THINGZ. Team Members: Shamlan Albahar Rifaah Alkhamis Doug Bloomquist Chris Deboer. What?. Widlife monitoring system Use wireless sensor network to gather data about wildlife behavior and patterns. Christopher. Why?. Wild life research
E N D
A Project WILD THINGZ Team Members: Shamlan Albahar Rifaah Alkhamis Doug Bloomquist Chris Deboer
What? • Widlife monitoring system • Use wireless sensor network to gather data about wildlife behavior and patterns Christopher
Why? • Wild life research • Reduces cost • Better results • Less risky • Environmental Impact studies • Development projects • Construction Christopher
How? • Movement/Motion • Take photographs • Temperature • Humidity • Light • GPS, wind • Perform simple data manipulation and interpretation. Christopher
Functional Decomposition Level Zero Wild Thingz Monitoring system Environmental Conditions Photograph User Input Light Intensity Temp & Humidity Motion signal GPS location Power; AAA, PV cells, 5V DC Rifaah
Functional Decomposition Level One User Control Motion detection, Environmental Conditions Processed Sensory unit data Sensor Unit Motherboard Data Management Power Supply Rifaah
Functional Decomposition Level 2 : Sensory unit Micro-controller Sensors reading output & request data input Motion detection input Radio GPS Motion Camera Light Temp & Humidity Power Supply Rifaah
Functional Decomposition Level 2 : Motherboard Sensory unit data and request signals from Motherboard Acquired data and request signals from User Radio Microcontroller UART Power Supply Christopher
Functional Decomposition Level 2 : Data Management Acquired data and request signals from User Sensor data Network MATLAB Behavior modification Environmental conditional averaging Data presentation Image Processing Christopher
Functional Decomposition Level 2 : Power Supply 120 Vrms AC Wall outlet AC to DC converter Motherboard 5V DC PV Cells Buck Converter AAA Rechargeable Batteries Solar rays ~3.3V DC Sensor Unit Christopher
Camera • Connected to one of the UART's @ 38,400 BPS. • No send/receive data acknowledgments
Light Sensor • Not connected to a channel of the A/D converter. • On board 12 bit A/D converter. • Connected to DIO pins of MCU, get a clock signal from MCU. • The 12 bit digital output represents light intensity.
Temperature and humidity sensor • Works like the light sensor. • Onboard 14 bit A/D converter. • The 14 bit digital output represents temperature and humidity levels.
Motion sensor • Output of the sensor is a square wave. • Take photos only when animal’s motion has been detected. • MCU samples DIO pin connected to motion sensor at frequent and regular intervals. • Code algorithms after testing • Reduce the possibility of taking false photos • Less data processing • Reduce power consumption
Motion Sensor OutputExample 1 0 0 1 1 0 1 0 0 1 1 1 1 Blowing grass – don’t take a picture Voltage on DIO pin Time 1 1 1 1 1 0 1 0 1 1 1 1 1 Squirrel – take a picture!!!! Voltage on DIO pin Time Shamlan
Software Interface #1 Programming the boards • CodeBlocks IDE that utilizes JN5139 compiler to build a binary file • Jennic Libraries • Flash programming GUI to get binary file on board • USB to serial cable Write Program Build Binary File Connect to camera via VCP Erase Flash Download binary file into flash Doug
Code Layout vJenie_CbInit Set up or connect to the wireless network vJenie_CbMain Basically an infinite for loop vJenie_CbStackMgmtEvent Called when state of network has changed vJenie_CbStackDataEvent Called when data event has occurred vJenie_CbHwEvent Called when on board hardware event has occurred Doug
Software Interface #2 Working with the network • MATLAB will receive, process and send user data to the network. • USB to serial cable using a VCP driver • MATLAB provides simple serial functions • Use for prototyping • For demo – GUI that allows user to view network data and change the behavior of the network • Specific MATLAB functionality • Averaging of data from network • Store most recent data • Average older data • Image processing • Conversion of data to .JPG • Display of network data • Communication link between user and network Doug
MATLAB Script Example s = serial('COM3') %s is the object (Jennic 5139) s.BaudRate = 19200 %set s to the correct baud rate fopen(s) i = 5 j = 1 while (j > 0) out = fscanf(s) if(out == 'Z') j = 10 break end end while (i > 3) data = fscanf(s) if(data == 'Z') break end end Doug
Milestones Demo First Milestone Second Milestone Final units Testing and debugging Fully functional sensor units (2) and motherboard • Fully functional wireless sensor network • 2 sensor boards and 1 motherboard • GUI for human interaction with network • Data display and ability for user to modify network behavior • Environmental model in lab • Demonstrates network functionality • Initial prototype • Motherboard • Sensor unit • Data processing and human interface via MATLAB • Wireless communication Rifaah
PARTS LIST Christopher