4.2 MB PowerPoint

advertisement
A
Project
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
Wild Thingz Monitoring System
Vision
Rifaah
Functional Decomposition
Level Zero
Environmental
Conditions
Photograph
User Input
Motion signal
Power; AAA,
PV cells,
5V DC
Rifaah
Wild Thingz Monitoring system
Light
Intensity
Temp &
Humidity
GPS location
Functional Decomposition
Level One
User Control
Motion
detection,
Environmental
Conditions
Sensor Unit
Motherboard
Power
Supply
Rifaah
Data
Management
Processed
Sensory unit
data
Functional Decomposition
Level 2 : Sensory unit
Microcontroller
Motion
detection
input
Motion
Camera
Light
Temp &
Humidity
Power Supply
Rifaah
Sensors reading
output &
request data
input
GPS
Radio
Functional Decomposition
Level 2 : Motherboard
Sensory unit
data and
request
signals from
Motherboard
Radio
Microcontroller
Power Supply
Christopher
UART
Acquired data
and request
signals from
User
Functional Decomposition
Level 2 : Data Management
Acquired data
and request
signals from
User
Network
Image
Processing
Christopher
Sensor data
MATLAB
Environmental
conditional
averaging
Data
presentation
Behavior
modification
Functional Decomposition
Level 2 : Power Supply
Motherboard
120 Vrms AC
Wall outlet
AC to DC
converter
5V DC
Sensor Unit
Solar rays
Christopher
PV Cells
Buck
Converter
AAA
Rechargeable
Batteries
~3.3V DC
Wild Thingz Sensor Prototype Board #1
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 Output
Example
Voltage on DIO pin
1 0 0 1 1 0 1 0 0 1 1 1 1
Blowing grass – don’t take a picture
Time
Voltage on DIO pin
1 1 1 1 1 0 1 0 1 1 1 1 1
Squirrel – take a picture!!!!
Time
Shamlan
Wild Thingz Sensor Prototype Board #1
Software Interface #1
1.
2.
3.
4.
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
Doug
Download binary
file into flash
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
1.
2.
3.
4.
5.
Doug
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
1. Use for prototyping
For demo – GUI that allows user to view network
data and change the behavior of the network
Specific MATLAB functionality
1. Averaging of data from network
1. Store most recent data
2. Average older data
2. Image processing
1. Conversion of data to .JPG
3. Display of network data
4. Communication link between user and
network
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
First Milestone
•
Initial prototype
–
–
–
–
Motherboard
Sensor unit
Data processing and
human interface via
MATLAB
Wireless
communication
Demo
Second Milestone
•
Final units
– Testing and
debugging
– Fully functional
sensor units (2) and
motherboard
•
•
•
Rifaah
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
Gantt Chart
Up-to-date Schedule
Rifaah
Division of Labor
Task
Programming:
-Microcontroller
-Camera
-Motion detector
-Sensors
-Matlab
Hardware
Development:
-Altium Design Circuit board
layout
-Purchasing miscellaneous
components
-PCB’s and populating
Data Processing:
-Data algorithms
-Classification
-Image Processing
-Data Filtering
Testing and Debugging
-Power consumption
evaluation
-Troubleshooting
Christopher
Primary
Secondary
PARTS LIST
Description
Manufacturer
JN5139 Wireless Module
JN5139-001NXP Semiconductors M/00R1T
Digikey
616-1035-1ND
LinkSprite JPEG Camera
LinkSprite
Motion Sensor
Parallax Inc
555-28027
Digikey
Temp and Humidity Sensor
Sensirion
SHT11
Newark
Light Sensor
TAOS
Mouser
3V Li Ion Battery
Seiko Instruments
TSL2550D
MS920SEFL27E
Male Headers
Tyco
4-103741-0
Digikey
Push Button Switch
MULTICOMP
LED
L-934LGD
Christopher
MFPN
Supplier SPN
Sparkfun
26M1122
Digikey
Newark
Farnell
KINGBRIGHT InOne
Quantit
y
Cost
28.22
1
SEN-10061
555-28027ND
49.95
1
9.99
1
69C4848
856TSL2550D
728-1058ND
A26509-40ND
25.19
1
3.49
1
2.05
1
1.6
1
MCDTS6-1N
0.13
4
114-2509
0.25
2
Questions?
Download