track user tracker t.u.t. chris orchard fevri tokouete michael tullbane group 2 senior design fall...
Post on 20-Dec-2015
217 views
TRANSCRIPT
Track User Tracker T.U.T.
Chris OrchardFevri Tokouete
Michael Tullbane
Group 2 Senior Design Fall 2011
The TUT
A complete system used to “prescribe” and record exercise regimens pertaining to an indoor athletic track.
Transmitter
Radiation Patterns
Track Section Track Section
WBT
Distance error
Distanceerror
Doctor
Internet
Patient (at physical therapy)
Patient (at home)
Communication with WBT via
VCP
Configuration of Transmitter
Nodes via VCP
Project OverviewHardware:Record and display a user’s performance during a track session.Loaded with an individual’s prescribed exercise regimen or desired goal(s).Prompts user during session, I.E. slow down, speed up, rest.Displays and/or records speed, distance, elapsed time, and time/distance remaining.Interface to upload recorded sessions.
Project Overview
USB Interface to Hardware
Auxiliary Interface to Hardware
Doctor
Internet
Patient (at physical therapy)
Patient (at home)
Communication with WBT via
VCP
Configuration of Transmitter
Nodes via VCP
Software:Allows health care professionals to prescribe and monitor exercise regimens via a website for their patients.Permits self-prescribed use of the system.Maintains a private exercise diary accessible by both prescribers and users.
System Use Flow
User LoginHost computer
(At track facility)
Host Retrieves Prescription Data
from Website
Prescription downloads via USB to portable electronics
device(Wrist Band Tracker WBT)
WBT detaches from USB
Issued to user
WBT records session.
Prompts user to meet prescription
goals.
End of session.WBT reattached
to host.Session data
uploaded
User Exercise Diary in
database updated
Hardware Components
Narrowly focused signal
Tx
Tx
Tx
Tx
Tx
TxTx
Tx
Transmitter
Direction of travel
User wearing WBT
WBT-Wrist Band Track Large wrist watch sized device. Determines speed and distance by
detecting transitions through E field thresholds of a transmitter node.
Records and displays session data. Displays new data only when new data
is acquired.
Transmitter Nodes Provides a narrow beam RF
signal used by the WBT to determine position and speed data.
Designed for ease of installation. Self powered, wireless, position placement flexible.
Overhead View of Indoor Track-Distance around 0.8 miles
WBT Simplified Block Diagram
SPI/USB
MSP430F2274 µController
CC2500 Transceiver
2.4GHZ Quasi-
SimpliTI©Network
B USCSPI
Master Mode
GPIO Port 4SPI AddressingControl
OLED Graphics Display
96xRGBx64
A USCSPI-ModeUART-Mode
Timer A1 SecondInterrupt
32.768KHzWatch Crystal
FT232RQ
Mini-USBconnector
GPIO Port 1Switch Input
GPIO Port 2
4 UserInput
Switches
Interrupt
Control Signal
Serial Data
WBT Design FeaturesTexas Instruments MSP430F2274 µcontroller 2 serial controllers used as SPI (One
reconfigured as UART for a USB interface. Timer A-Generated from external 32.768KHz
crystal.
32k bytes of Flash – bitmaps for the display. 1k bytes of SRAM.
T.I. CC2500 Radio IC ZigBee Protocol-2.4GHz.
Crystalfontz OLED Display Low power consumption 160 º view angle 96xRGBx64 dot resolution. GDDRAM-96x16x64 ⇒ 64k color spectrum
WBT Prototype Schematic
TRANSMITTER NODE
BASIC FUNCTIONS OF THE TRANSMITTER NODE
- Transmit reference signal to the WBT - Shut down the system at the end of the day- Be able to transmit signal within 160
meters range
BLOCK DIAGRAM OF THE TRANSMITTER
COMPONENTS OF THE TRANSMITTER
PATCH ANTENNABASIC FUNCTIONS: Transmit
signal to the WBT FEATURES- 2.4 GHz frequency- Low cost- High gain (10db)- very narrow bandwidth- small size (~4 cubic
inches)- superior performance
PATCH ANTENNA
Power received (Pr) using the Friis transmission equation
Pr = Pt*Gt*Gr*[1/(4*П*(R/λ))]^2
Pt = 1.3mW
Gt = Patch antenna’s gain= 10dBi
Gr = 0.5dBi = receiver’s antenna gain
R = Range = 2 meters λ = 3*10^8/ 2.4*10^9 λ = 12.5 Cm = 0.125
meters = transmitter’s antenna wavelength
Pr = 36uW
PATCH ANTENNA’S RADIATION PATERN
RF TRANSCEIVER (CC2500)
BASIC FUNCTION: Transmits signal to WBT via the patch antenna
Reasons for choosing the CC2500
- Low supply voltage - 2.4 GHz frequency - Short range - Ultra low power
1.3mW - Low cost - Free sample available
with Texas Instruments
RF TRANSCEIVER SCHEMATIC
MICROCONTROLLER (MSP430F2274)
MAIN FUNCTION: program transmitter in saving power mode, transmit signal to the WBT, and monitors the supply voltage.
FEATURES: - LOW SUPPLY VOLTAGE 1.8
to 3.6 V - Ultra-Low power
consumption- Two-built-in 16- bit timer- 1 SPI- 40 I/O pins- 10 bits A/D converter with
data transfer controller
TRANSMITTER NODE SCHEMATICS
Software System Design
• Commercial off the shelf (COTS) packages available?• Medical records systems• Web hosting services• Commercial database systems
• Write our own software• Software lifecycle model• Operating System• Language / Languages• Development tools
Software Lifecycle Model•Waterfall Model? - Inflexible to changing requirements ↓•Agile Methods? – Flexible, minimal documentation, too much consultation with customer, rush to final product ↓•Prototyping Model? – Produce prototypes at different stages to verify functionality and revise as necessary ↑
TUThost Software Design
• GUI capability, previous experience with the language, ability to interface with the other TUT software subsystems
• “C” – Have the most programming experience in “C”– “C” is very fast and efficient, but it is not a good language for designing
a GUI ↓• “C++”
– Versatile language with object oriented programming capabilities– Good set of graphical development libraries available– Do not have experience in graphical programming with “C++” ↓
• “Java”– Have quite a bit of experience in Java– Very well suited for graphical development– Many tools available for GUI programming in Java which would reduce
the development time for producing a functional prototype. ↑
TUT Login Screen
Patient Main GUI
Patient Email Exercise Log
Casual User Main GUI
Casual Email Exercise Log
Admin Main GUI
Add New Casual User
TUT Database Design
• Firebird– Free, Stable, Supports SQL, Scalable– Support for languages such as C/C++, PHP, and Python, but the current
release does not support access from Java. ↓• PostGreSQL
– Free and open-source, Supports SQL, Scalable with extra features such as support for creating your own custom data types.
– It has been around longer than Firebird, but also does not natively support access from Java. ↓
• MySQL– Commercial and Free versions– Many free development tools available from MySQL– Free graphical database management suite called MySQL Workbench
that is available from the MySQL website and was written by MySQL AB.– Native support for access from Java– Support for multi-user access, web-server access with PHP and Python– Known as one of the most popular open-source databases ↑
TUT Database
Web Server Design Considerations• Apache
– Most used free web server software– Free with an extensive set of software packages– No previous programming experience– Many extra features that we do not need for our system ↓
• Django + Python– Python is an interpreted language and it supports object oriented programming– One of the goals of the Python language is rapid development and deployment which makes
it very suitable for our prototype development– Django works with Python to quickly design and implement a complex web server using
native Python code– Web server development with Django focuses on a database driven design which is perfect
for our prototype since database access will be the primary function of our TUT web site ↓• Information Interchange Service (IIS)
– The next most used free web server software– Included with newer windows server packages as well as XP Pro service pack 2, Vista, and
Windows 7– IIS has many advantages over Apache in that it is easily integrated with other Microsoft
products– Highly scalable and would be a very good option for a future commercial release of the TUT
system– Quicker and easier to use than Django / Python -> We will use IIS ↑
Physician Main GUI
Add New Patient
Write Prescription
Budget
Cost Summary
Item Description Costs
Development Costs $177.95
WBT Prototype $120.00
2 Transmitter Nodes $220.00
Administrative-Shipping-Coffee $75.00
Total $592.95
• Initial budget estimate was $200 per team member• Each team member itemized their costs• So far we are still below budget
Questions?