t15- marketing spy system modeling document id: t15_mod_sys_v1.0 version: 1.0 date: 10/17/2014...
TRANSCRIPT
T15- MARKETING SPYSYSTEM MODELING
Document ID: T15_MOD_SYS_V1.0
Version: 1.0
Date: 10/17/2014
Location: https://projects.cecs.pdx.edu/projects/golriz-ece411/wiki
Marketing Spy: level 0
Module Marketing SpyInputs Analog input from the costumers (Picking up the device by
specific distance)
outputs Digital outputs (decimal number on LCD)
Functionality Counts how many times the device has been picked up and calculates the average time
Marketing spyPower, 9V DC
Analog input
Decimal number
Marketing Spy Level 1
Power supply: level 0
Module Power supply
inputs Power:+9V DC (analog)
outputs Power: +5V DC (analog)Maximum current: 1.5A
functionality Convert 9V DC battery Voltage to 5V DC Voltage
power9V DC
Power supply 5V DC
Sensor: level 0
Module Sensor ( infrared )
inputs Operating voltage 5VAnalog input provided by the costumer when they pick up the device from a certain distance (detecting height range 0-50mm)
outputs Digital signal to the microcontroller (when it detects an obstacle and induced voltage above the threshold outputs a high level (3.3V-5V), when no obstacle and induced voltage below the threshold, it outputs 0V.
functionality Every time a costumer picks up the device by a specific distance ( distance is adjustable by potentiometer) the sensor will activate and send a digital signal to the microcontroller
Sensoranalog digital
Microcontroller: level 0
microcontroller Active low signalPower, 5V DC
Cloc
k
sign
al
Increment one
Microcontroller Level 0 Description Table Module microcontrollerInput Operating voltage 1.8V-5.5V
Operating frequency 16 MHz8-bit AVR CPUDigital signal input from sensor to PB0 (timer/counter 1)ISP interface using Atmel Studio 6.2 environment
Outputs Maximum of 200 mW 4-bit digital number of counts4-bit average time
Functionality When microcontroller receives digital signal from the sensor and clock signal it will increment the counter by one and compute the average time and display on LCD
LCD Display Level 0
Module LCD DisplayInput Digital signal from the microcontroller
Maximum current 20 mA Operating voltage 5V DC
Output Digital output, on/off state of segments representing decimal number.
Functionality Control signals from microcontroller drive the segments based on the microcontroller output signals and display the number of count and average time
LCD
Digital signal form microcontroller
Power 5V DCDecimal number
Marketing Spy Flowchart Representation
Activity DiagramGive a alert signal on LCD if t>= 3hour
Invalid time frame
Timer activatedThe sample is picked up
Customer
Count: count up 1. Updates cumulative time then divides by count
Display count and average time on LCD
Ignore the case, keep the previous information on LCD if t < 15s
Valid time frame
Store staff
Present Input
Verify time frame
Error alert
Calculate count and
average time
!pick up
Pick upDrop within 15s
!Drop within 3hrs
Good time frame
Sample back to place
Sate Machine View
Display information