Design Document

Advanced Restaurant Pager System
Project Design Report
Design Team 08
Nicholas Rochford
Michael Seppanen
Steven Talarcek
Amanda Vespoint
Dr. Sastry
November 29, 2011
Table of Contents
List of Figures ..................................................................................................................... ii List of Tables ..................................................................................................................... iii Abstract ............................................................................................................................... 1 1. Problem Statement ........................................................................................................ 1 Need .......................................................................................................................... 1 Objective ................................................................................................................... 1 Research Survey ........................................................................................................ 1 Marketing Requirements ........................................................................................... 2 Objective Tree ........................................................................................................... 3 2. Design Requirements Specification .............................................................................. 3 3. Accepted Technical Design .......................................................................................... 6 A. Hardware Modules .................................................................................................. 6 B. Hardware Calculations .......................................................................................... 16 C. Schematics ............................................................................................................ 18 D. Parts List ............................................................................................................... 26 E. Software Modules ................................................................................................. 28 F. Software Calculations ........................................................................................... 47 G. Mechanical Drawings ........................................................................................... 47 4. Budget ......................................................................................................................... 49 5. Project Schedule.......................................................................................................... 51 Final Design Gantt .................................................................................................. 51 Proposed Implementation Gantt .............................................................................. 55 6. Design Team Information ........................................................................................... 56 7. Conclusion .................................................................................................................. 56 8. References ................................................................................................................... 56 9. Appendix: Data Sheets................................................................................................ 57 i
List of Figures
Figure 1: Objective Tree ..................................................................................................... 3 Figure 2: Hardware Level 0 Modules ................................................................................. 6 Figure 3: Hardware Level 1 Advanced Pager Modules ...................................................... 7 Figure 4: Hardware Level 1 Base Station Modules ............................................................ 9 Figure 5: Hardware Level 2 Advanced Pager Modules .................................................... 10 Figure 6: Hardware Level 2 Base Station Modules .......................................................... 14 Figure 7: Simulation of 20V boost supply ........................................................................ 17 Figure 8: Main PIC24F in Pager ....................................................................................... 18 Figure 9: Second PIC24 in Pager ...................................................................................... 19 Figure 10: Accelerometer in Pager ................................................................................... 19 Figure 11: Vibrator Motor Circuit .................................................................................... 20 Figure 12: Light Photo Sensor for Pager .......................................................................... 20 Figure 13: Piezo Buzzer for Pager .................................................................................... 20 Figure 14: LCD Connector in Pager and Base Station ..................................................... 21 Figure 15: Keypad and External Memory ........................................................................ 21 Figure 16: Wireless Radio for Pager and Base Station ..................................................... 22 Figure 17: Ethernet Controller in Base Station ................................................................. 22 Figure 18: PIC24 on Base Station..................................................................................... 23 Figure 19: LiPo charger in pager ...................................................................................... 24 Figure 20: LiPo Fuel Gauge.............................................................................................. 24 Figure 21: DC-DC Buck Converter Circuit ...................................................................... 25 Figure 22: DC-DC Boost Converter Circuit ..................................................................... 25 Figure 23: Software Level 0 Modules .............................................................................. 28 Figure 24: Software Level 1 Diagram for Pager ............................................................... 29 Figure 25: Software Level 1 Diagram for Base Station .................................................... 31 Figure 26: Level 2 Software Diagram .............................................................................. 32 Figure 27: Level 2 Software Diagram for Wireless Communication ............................... 35 Figure 28: Pager Hardware and Software Interaction....................................................... 36 Figure 29: Software Diagram for Backlight Control ........................................................ 39 Figure 30: Software Diagram for Charging ...................................................................... 40 Figure 31: Base Station Hardware and Software Interaction............................................ 41 Figure 32: Pager Initiation Screens ................................................................................... 43 Figure 33: Pager Food Menu ............................................................................................ 44 Figure 34: Drink Menu ..................................................................................................... 45 Figure 35: Base Station Display ....................................................................................... 46 Figure 36: Pager Mechanical Layout ................................................................................ 47 Figure 37: Base Station Mechanical Layout ..................................................................... 48 ii
List of Tables
Table 1: ARPS Requirement Specification......................................................................... 4 Table 2: Hardware Level 0 Descriptions ............................................................................ 6 Table 3: Hardware Level 1 Advanced Pager Descriptions ................................................. 7 Table 4: Hardware Level 1 Base Station Descriptions ....................................................... 9 Table 5: Hardware Level 2 Advanced Pager Descriptions ............................................... 11 Table 6: Hardware Level 2 Base Station Descriptions ..................................................... 14 Table 7: Estimated Power Requirements for Pager .......................................................... 16 Table 8: Estimated Power Requirements for Base Station ............................................... 17 Table 9: Parts List ............................................................................................................. 26 Table 10: Software Level 0 Descriptions.......................................................................... 28 Table 11: Level 1 Software Descriptions for Pager .......................................................... 30 Table 12: Level 1 Software Descriptions for Base Station ............................................... 31 Table 13: Level 2 Software Descriptions.......................................................................... 32 Table 14: Level 2 Software Description for Wireless Communication ............................ 36 Table 15: Pager Hardware and Software Interaction Description .................................... 37 Table 16: Software Description for Backlight Control ..................................................... 39 Table 17: Software Description for Charging ................................................................... 40 Table 18: Base Station Hardware and Software Interaction Description ......................... 41 Table 19: Parts List with Cost........................................................................................... 49 Table 20: Final Design Gantt ............................................................................................ 51 Table 21: Proposed Implementation Gantt ....................................................................... 55 iii
Abstract
This project involves creating a more advanced design for paging systems used in
the restaurant industry. The design of the Advanced Restaurant Pager System (ARPS)
will enhance the dining experience of patrons who are waiting to be seated. This device
will decrease the overhead an establishment needs managing the host’s-stand by
streamlining the process for assigning pagers, tables, and ordering appetizers. The
paging systems currently in use serve only one function, to notify customers when they
are able to be seated, which is not cost effective. The ARPS will rectify having this lone
function system by allowing guests to view the menu, as well as inform them that their
table is ready. It will be a multifaceted device capable of informing, enhancing and
streamlining the restaurant experience for visitors.
[DT08]
Key Features Include:
•
•
•
•
Wireless communication
Portability
Inform guests of available menu options and specials
Be easy to use
1. Problem Statement
Need
A system needs to be developed that would help inform guests at a restaurant of
what is offered and will keep customers entertained while waiting to be seated during
peak hours, allowing patrons to tolerate longer wait times. The current limitation of the
pagers on the market is that they only serve one purpose: vibrate and produce light via
light emitting diodes (LEDs) when a table is ready for the guest. The current method is
inefficient because it does not keep guests entertained while they wait for their table nor
inform them of available menu items. Comparing ordering processes of getting a menu at
the table verses guests being able to choose the food they want before they get to the
table would reduce delays associated with customers not knowing what is offered. This
reduction in lost time would result in shorter turnovers, which means more profit for the
restaurant.
[DT08]
Objective
The objective of this project is to design a restaurant paging system that keeps the
guest from leaving due to long wait times. This system will incorporate wireless
communication and a touch sensitive screen allowing guests to view the menu, order an
appetizer, and alert them when their table is ready. As a result, this paging system will
inform the patron what the restaurant offers through the touch screen menu while keeping
them entertained.
[DT08]
Research Survey
Current restaurant notification systems vibrate and utilize LEDs to inform guests
that their table is ready. More ornate systems come in different shapes and sizes such as
lobsters, pizzas, and drink coasters. There is also a notification system called the “Paddle
Pager,” which holds two business cards, displaying advertisements or other public service
announcements to occupy customers while they wait. The main limitations the current
1
paging system has are that it does not provide any information about the menu or
entertain the user while waiting for a table.
[DT08]
Marketing Requirements
1.
2.
3.
4.
5.
6.
7.
Easy to use
Inform guest of available food
Allow customer to put in drink/appetizer order ahead of being seated
Improve hearing impaired communication
Keep guests occupied and informed of wait times which limits staff interruptions
Notify customer table is available for seating
Remove human error by reducing hosts tasks: not taking names, only giving out
pagers
8. Become a more technically advanced restaurant
9. Minimize number of hosting staff required
10. Allow customer to move around the restaurant with the device
[DT08]
2
Objective Tree
The objective tree for the Advanced Restaurant Paging System expresses three
main areas that are significant to the system. The system must be consumer friendly, easy
to use and portable/durable.
[MJS]
Figure 1: Objective Tree
2. Design Requirements Specification
The design requirements for the Advanced Restaurant Paging System originate
from the marketing requirements listed above. These design requirements will provide a
foundation on which a technical design of the pager system can be based.
[DT08]
3
Table 1: ARPS Requirement Specification
Marketing
Engineering Requirements
Requirements
1, 6, 8
The system response time to a user
input, a button press, must be less
than 1 second.
5, 6, 7, 8
The radio receiver/transmitter
range will cover a 200 foot radius.
1, 6, 7, 9
The battery should have a capacity
life of 4 hours.
4, 6, 7, 8, 9
The pager will provide constant
notification of the guest’s table
being ready until the pager is
returned to the base station.
The pager dimensions should be
within 130mm x 80 mm x 20 mm.
1, 10
1, 2, 3, 4, 8
1, 6, 7, 8, 9
1, 2, 3, 4, 5, 6,
7, 8, 10
6
2, 4, 5, 8, 9, 10
7, 9
The system will be able to update
menus and specials via wireless
communication from base station.
The pager number will be
automatically assigned via wireless
communication with the base
station.
The system will include a 4.3”
touch screen with a resolution of
480x272 pixels.
The system must be able to
withstand the vibrations generated
by the vibrating motor.
The memory in the pager system
must be large enough to hold 100
menu items and pictures.
The system will initially have the
capacity to charge three pagers
with the ability to expand up to 100
pagers in the future.
4
Justification
This requirement is based upon
the normal expected reaction a
human would see to an action.
This range should be suitable
for most establishments with a
125 person capacity.
The pager must be able to
remain on and functioning for
an extended period of time
before needing to be recharged.
Based on the purpose of the
pager the system will vibrate
and display text, when their
table is available.
The pager must be able to be
transported around the
restaurant and fit in a user’s
hand.
This allows one operator to
update all pagers at the same
time from a single location.
This feature would ensure there
are no double booking of pager
numbers and removes human
error.
This feature will allow the
guests to clearly view the menu
items.
This feature would ensure that
the pager electronics are not
damaged when the vibrator
motor is activated.
The system must be able to hold
a description of the menu and
item pictures for guests to view
while waiting.
Due to cost restraints the system
is limited to three pagers and
one base station; however,
calculations can be done to
prove the expandability.
Marketing Requirements
1. Easy to use
2. Inform guest of available food
3. Allow customer to put in drink/appetizer order ahead of being seated
4. Improve hearing impaired communication
5. Keep guests occupied and informed of wait times which limits staff interruptions
6. Notify customer table is available for seating
7. Remove human error by reducing hosts tasks: not taking names, only giving out
pagers
8. Become a more technically advanced restaurant
9. Minimize number of hosting staff required
10. Allow customer to move around the restaurant with the device
5
3. Accepted Technical Design
A. Hardware Modules
The hardware level 0 module displays the Advanced Restaurant Pager and the
Advanced Restaurant Base Station. This model demonstrates the interactions between
root level inputs and outputs of the pager and base station, as well as user interfaces and
environmental connections.
[ST]
Figure 2: Hardware Level 0 Modules
Table 2: Hardware Level 0 Descriptions
Module:
Advanced Restaurant Pager
Inputs:
Customer selections- appetizers and drinks choices
Power- energy to charge pager
Data transfer- table available signals and menu updates
Outputs:
Data transfer-menu order signals
LCD graphics- menu items, specials
Indicator –pager vibration
Functionality: The advanced pager allows users to place orders, and be informed of table
availability.
Module:
Inputs:
Advanced Restaurant Base Station
Data transfer- receive order
Power-energy to operate and change pagers
Outputs:
Data transfer-table available signal and menu updates
Restaurant interface signal- data to update menus and transfer orders
Functionality: The advanced base station sends a signal when a table is available,
receives orders, and sends menu updates.
6
The Level 1 Hardware diagram depicts a more in-depth view of the components
needed for the advanced pager system. This diagram illustrates the connections between
components and the different elements needed so a customer can order an appetizer or
drink.
[ST]
Figure 3: Hardware Level 1 Advanced Pager Modules
Table 3: Hardware Level 1 Advanced Pager Descriptions
Module:
Power Supply
Inputs:
Power- Energy to operate pager during undocked state
Outputs:
DC energy to the pager components
Functionality: The power supply will allow for energy to be transferred, when docked, to
the pager and stored for later use. The power supply will convert the
incoming energy into the required DC levels needed by the elements of the
advanced pager.
Module:
Inputs:
LCD/Touch Screen
Display commands from the microprocessor
Power to operate the display
Customer selections
Outputs:
Selections made by the customer to the microprocessor
Graphical display information for the customer
Functionality: The LCD/touch screen will allow a patron to view the menu, make
selections for their order, be informed of specials, and be alerted when
their table is available.
7
Module:
Inputs:
Microprocessor
Selections made by guests from the LCD/touch screen
Power to operate
Received signals from the radio Tx/Rx
Outputs:
Transmitted signals to the radio Tx/Rx
Vibrate command to the vibrator motor
Display commands to the LCD touch screen
Functionality: The microprocessor will handle all incoming/outgoing data and control all
devices in the pager.
Module:
Inputs:
Outputs:
Functionality:
Vibration Motor
Commands from the microprocessor
Vibrate
The vibration motor will vibrate with variable duration and intensity
depending on the incoming command to notify a customer.
Module:
Inputs:
Radio Tx/Rx
Commands and data, orders, from the microprocessor
Receive data from the base station
Outputs:
Transmit data to the base station
Send commands and data received to the microprocessor
Functionality: The radio Tx/Rx will transmit and receive data between the base station
and the pager.
8
Figure 4: Hardware Level 1 Base Station Modules
Table 4: Hardware Level 1 Base Station Descriptions
Module:
Power Supply
Inputs:
Power- Energy to operate and charge pager during docked state
Outputs:
DC energy to the pager components
Functionality: The power supply will allow for energy to be transferred, when docked, to
the pager and stored for later use. The power supply will convert the
incoming energy into the required DC levels needed by the elements of the
base station.
Module:
Inputs:
LCD/Touch Pad
Display commands from the microprocessor
Power to operate the display
Employee selections
Outputs:
Selections made by the employee to the microprocessor
Graphical display information for the employee
Functionality: The LCD/touch pad will allow employee to make changes to an order,
assign an order to a table, and send a command that a table is ready
9
Module:
Inputs:
Microprocessor
Selections made by employee from the LCD/touch screen
Power to operate
Data from memory
Received signals from the wireless
Outputs:
Transmitted signals to the wireless
Data to memory
Commands and data to the LCD/touch pad
Functionality: The microprocessor will handle all incoming/outgoing data and control all
devices in the base station.
Module:
Inputs:
Radio Tx/Rx
Commands and data, orders, from the microprocessor
Receive data from the pager
Outputs:
Transmit data to the pager
Send commands and data received to the microprocessor
Functionality: The radio Tx/Rx will transmit and receive data between the base station
and the pager.
The hardware level 2 block diagram further expands the function blocks and
begins to break them into component blocks responsible for different tasks within the
paging system.
[ST]
Figure 5: Hardware Level 2 Advanced Pager Modules
10
Table 5: Hardware Level 2 Advanced Pager Descriptions
Module:
Buck Circuit
Inputs:
Power- Energy from the battery
Outputs:
Regulated 3.3V DC
Functionality: The buck circuit will convert the incoming energy into the required DC
level needed by the elements of the pager.
Designers:
Steven Talarcek
Module:
Inputs:
Outputs:
Functionality:
Designers:
Module:
Inputs:
Outputs:
Functionality:
Designers:
Module:
Inputs:
Outputs:
Functionality:
Designers:
Boost Circuit
Power- Energy from the battery
Regulated 20V DC
The boost circuit will provide a regulated output voltage level for the LCD
display.
Steven Talarcek
LiPo Battery
Power- Energy from the battery charger circuit
Regulated (3.3-4.2)V DC energy
The LiPo battery will store energy and allow the pager to operate when
undocked.
Michael Seppanen
Battery Charger
Power- Energy from the base station
Regulated 5V DC
The battery charger circuit will provide a regulated output voltage level
for charging the pagers when docked
Michael Seppanen
Module:
Inputs:
LCD/Touch Screen
Display commands from the microprocessor
Intensity commands from the backlight driver
Customer selections
Outputs:
Selections made by the customer to the microprocessor
Graphical display information for the customer
Functionality: The LCD/touch screen will allow a patron to view the menu, make
selections for their order, be informed of specials, and be alerted when
their table is available.
Designers:
Michael Seppanen
11
Module:
Inputs:
Backlight Driver
Intensity level commands from the microprocessor
Power from the boost circuit
Outputs:
A voltage to indicate the level of “brightness” the LCD should display at
Functionality: The backlight driver circuit will use a command from the microprocessor
to vary the power going to the LCD screen.
Designers:
Nicholas Rochford
Module:
Inputs:
Microprocessor #1
Selections made by guests from the LCD/touch screen
Power to operate from the buck circuit
Data from memory
Received signals from the radio Tx/Rx
Data from the secondary microprocessor
Outputs:
Transmitted signals to the radio Tx/Rx
Data to memory
Commands to the secondary microprocessor
Functionality: The main microprocessor will handle all incoming/outgoing data and
control all devices in the pager, while sending commands for subroutines
to the secondary pager.
Designers:
Michael Seppanen
Module:
Inputs:
Microprocessor #2
Commands from the main microprocessor
Power to operate from the buck circuit
Signal from the accelerometer
Signal from the light sensor
Outputs:
Data to the main microprocessor
Intensity commands to the backlight driver
Vibrate command to the vibration driver
Annunciate to the annunciator
Functionality: The secondary microprocessor will handle additional I/O signals including
accelerometer, back light circuit and vibration motor circuit.
Designers:
Michael Seppanen
Module:
Inputs:
Vibration Driver
Vibrate command from the microprocessor
Power to operate from the buck circuit
Outputs:
Command to the vibration Motor to vibrate
Functionality: The vibration driver will control the vibration motor including when it is
activated, duration, and intensity.
Designers:
Steven Talarcek and Nicholas Rochford
12
Module:
Inputs:
Outputs:
Functionality:
Designers:
Module:
Inputs:
Outputs:
Functionality:
Designers:
Module:
Inputs:
Outputs:
Functionality:
Designers:
Module:
Inputs:
Outputs:
Functionality:
Designers:
Module:
Inputs:
Outputs:
Functionality:
Designers:
Module:
Inputs:
Outputs:
Vibration Motor
Commands from the vibration driver
Vibrate
The vibration motor will vibrate with variable duration and intensity
depending on the incoming command to notify a customer.
Steven Talarcek and Amanda Vespoint
Memory
Data from the microprocessor
Data to the microprocessor
The memory will store all data not able to fit in the memory of the
microprocessor
Nicholas Rochford
Annunciator
Signal from the microprocessor
Audible buzzing
The annunciator will help to inform guest of an available table, and work
as a theft deterrent
Amanda Vespoint
Accelerometer
Change in acceleration
Variable voltage
The accelerometer will send a variable signal to the microprocessor
indicating the rotation of the pager
Michael Seppanen
Light Sensor
Ambient Light
Variable resistance
The light sensor will allow the microprocessor to vary the intensity of the
LCD screen based on the amount of ambient light the sensor detects.
Amanda Vespoint
Radio Tx/Rx
Commands and data from the pager microprocessor
Received data from the base station
Transmit data to the base station
Send commands and data received to the pager microprocessor
13
Functionality: The radio Tx/Rx will transmit and receive data between the base station
and the pager.
Designers:
Amanda Vespoint
Figure 6: Hardware Level 2 Base Station Modules
Table 6: Hardware Level 2 Base Station Descriptions
Module:
Buck Circuit
Inputs:
DC Power- Energy
Outputs:
Regulated 3.3V DC energy
Functionality: The buck circuit will convert the incoming energy into the required DC
level needed by the elements of the base station.
Designers:
Steve Talarcek
Module:
Inputs:
Outputs:
Functionality:
Designers:
Boost Circuit
DC Power- Energy
Regulated 5V DC
The boost circuit will provide a regulated output voltage level for charging
the pagers when docked
Steven Talarcek
14
Module:
Inputs:
LCD
Display commands from the microprocessor
Power to operate the display
Outputs:
Graphical display information for the employee
Functionality: The LCD will allow employee to see changes made to a pager and see
assignments of tables to pagers.
Designers:
Michael Seppanen
Module:
Inputs:
Outputs:
Functionality:
Designers:
Key Pad
Employee selections on the pad
Selections made by the employee to the microprocessor
The key pad will allow employees to call pagers when tables are ready and
assign an order to a table
Nicholas Rochford
Module:
Inputs:
Microprocessor
Selections made by employee from the key pad
Power to operate
Data from memory
Received signals from the radio Tx/Rx
Outputs:
Signals to be transmitted by radio Tx/Rx
Data to memory
Commands and data to the LCD screen
Signals and data to the Ethernet communication
Functionality: The microprocessor will handle all incoming/outgoing data and control all
devices in the base station.
Designers:
Michael Seppanen
Module:
Inputs:
Outputs:
Functionality:
Designers:
Module:
Inputs:
Outputs:
Functionality:
Designers:
Memory
Data from the base station microprocessor
Data to the base station microprocessor
The memory will store all data not able to fit in the memory of the
microprocessor
Nicholas Rochford
Ethernet Communication
Signals and data from the restaurant
Signals and data to the restaurant
The Ethernet communication module will allow for communication
between the base station and a restaurant. It will allow for updating of the
menu and for transmitting orders.
Nicholas Rochford
15
Module:
Inputs:
Radio Tx/Rx
Commands and data from the base station microprocessor
Received data from the pager
Outputs:
Transmit data to the pager
Send commands and data received to the base station microprocessor
Functionality: The radio Tx/Rx will transmit and receive data between the base station
and the pager.
Designers:
Amanda Vespoint
B. Hardware Calculations
The amount of power necessary for the pager to function is dependent upon each
component. The approximate current draw of each of the major components was found in
their data sheets. Since all the parts of the pager will not be active the whole time a more
realistic power calculation was performed by estimating how much each part will be
active. This decreased the power required from 1300mW to 880mW as seen in Table 7.
Table 7: Estimated Power Requirements for Pager
Pager
Voltage (V) Current (mA) Power (mW) %active Power actual (mW)
Processor
3.3
20
66
100
66
Backlight
20
32
640
80
512
Accelerometer
3.3
1
3.3
100
3.3
Vibrating Motor 3.3
120
396
1
3.96
LCD
3.3
30
99
100
99
Radio
3.3
30
99
50
49.5
Total
1303.3
733.76
From the total power the required capacity of the battery can be calculated by
knowing that the battery should last four hours. Using I×hr = hr×P/V gets a value of
0.793Ahr = 0.73376W×4hr/3.7V so therefore the battery has to have a capacity of at
least 0.8Ah to last 4 hours.
The amount of power necessary for the base station to operate continuously will
be dependent upon each component that makes the base station up as well as the number
of pagers charging at any given time. With all 100 pagers charging at one time and the
pagers containing 0.85Ah batteries the total power of the system will be about 425W.
Due to this high amount of power that would only be required if every pager needed to be
charged the pagers will have a priority based charging method to limit the number of
pagers charging at any given time. This charging method will allow a 5V 5A power
supply to charge seven pagers at a time.
[NR, MJS, ST]
16
Table 8: Estimated Power Requirements for Base Station
Base Station
Voltage (V) Current (mA) Power (mW)
Radio
3.3
30
99
Ethernet
3.3
200
660
LCD
3.3
30
99
Backlight
20
32
640
Processor
3.3
20
66
Total without charging
1564
Remaining for charging with 5A supply
4.6A
A simulation of the 20V boost supply was performed in Figure 7 in order to verify
that the components chosen will produce a clean 20V supply. With an input voltage of
3.5V the startup time for the supply is about 42ms and the steady state voltage is 20.5V.
When the input voltage increases to 4.2V the startup time is reduced by a half and it still
goes to 20.5V. All of these values are acceptable in this design.
[MJS]
V(n003)
22V
20V
18V
16V
14V
12V
10V
8V
6V
4V
2V
0ms
7ms
14ms
21ms
28ms
35ms
Figure 7: Simulation of 20V boost supply
17
42ms
49ms
56ms
63ms
70ms
C. Schematics
The main microprocessor in the pager is the PIC24FJ256DA210. This
microcontroller was picked because it has a built in LCD driver, which reduces the cost
of the overall system by eliminating either having an external LCD controller or having a
smarter LCD. The connections to all of the pins of the PIC24F are shown in Figure 8 as
well as the 512KB SRAM that will be used to allow the LCD to have 16 bits per pixel of
color. Other devices that connect to this PIC are the flash, wireless radio, LiPo charger
power good status signal, and the secondary PIC24.
[MJS]
Figure 8: Main PIC24F in Pager
18
Due to the desire to have a higher color resolution the number of available pins on
the PIC24F256DA210 in the pager was limited. A second PIC24 had to be chosen that
would be able to communicate with most of the sensors and other input/outputs. The
PIC24FJ16GA002 had the required number of pins and peripherals as seen in Figure 9.
The two PIC24Fs will communicate via I2C. The devices that will connect to this PIC24F
are the accelerometer, light sensor, vibration motor driver, 20V supply enable, backlight
PWM signal, the piezo, and the LiPo fuel gauge.
[MJS]
Figure 9: Second PIC24 in Pager
The MMA8452Q, shown in Figure 10, was chosen for the accelerometer since it
is very low cost and has built in orientation detection for screen rotating. The
accelerometer will communicate with the secondary PIC24 via I2C and will share the I2C
bus with the LiPo gauge.
[MJS]
Figure 10: Accelerometer in Pager
19
A vibrator motor is used as an indication to inform guests when a table is ready
for them to be seated. The circuit to control the vibrator is shown in Figure 11. The
circuit is comprised of the vibrator motor, the driver, and capacitors. The circuit works by
applying a 3.3V signal to the driver from the microprocessor. When the driver on signal
is present, the output of the driver will be enabled applying 1.25 volts, if unity feedback,
across the motor causing it to rotate. The capacitors in this circuit are selected to reduce
the amount of output and input ripple voltage, smoothing out any distortions that could be
caused by induced noise on the system.
[ST]
Figure 11: Vibrator Motor Circuit
Figure 15 is the APDS-9004 miniature surface-mount ambient light photo sensor.
This light photo sensor will be used in the pager to determine the intensity of light
striking the screen so the LCD backlight intensity can be adjusted for easy readability.
The resistor determines the amount of current-to-voltage conversion in the circuit. [AV]
Figure 12: Light Photo Sensor for Pager
The piezoelectric buzzer, 245-PB163-ROX, can be seen in Figure 16. The sound
output level for this component is 70dBA. The piezo buzzer will be used in the pager as
an indicator for when the pager is getting beyond the range of the wireless signal.
[AV]
Figure 13: Piezo Buzzer for Pager
20
The LCD connector in Figure 14 shows the backlight driver circuit as well the
link between the LCD data lines and the microprocessor pins. The backlight driver will
be driven by a PWM output so that the brightness will be controllable. This will be the
same for both the pager and the base station. The LCD that connects to this connector is a
Newhaven 4.3” display with a resistive touch screen. This display has a 24 bit interface
which will have to be controlled in the 5-6-5 color mode in order to accommodate the 16bit interface of the microcontroller.
[MJS]
Figure 14: LCD Connector in Pager and Base Station
The 96BB2-056-F in Figure 15 is the pin output of a 16 figure keypad. The
keypad will be used by the host to call pagers. The SST25VF064C on the right side of
Figure 15 shows the external memory for both the pager and base station. This external
memory will be used for holding pictures and descriptions for the menu. The PIC24 has
limited space and will be used mostly for driving the touch screen so an external memory
is necessary. A flash memory is used for this which utilizes a serial peripheral interface
to connect to the microprocessor.
[NR]
Figure 15: Keypad and External Memory
21
The MRF24J40MA in Figure 14 is the radio that will be used in the pager and in
the base station. This component is compatible with the Microchip microcontroller that
will be used. The MRF24J40MA module will be used for wireless communication
between the pager and the base station. There is an integrated antenna in this component
that is used for the receiving and transmitting of data.
[AV]
Figure 16: Wireless Radio for Pager and Base Station
The J1011F01P in Figure 17 is a magnetic circuit already assembled to interface
with the Ethernet controlling chip.
[NR]
Figure 17: Ethernet Controller in Base Station
22
The base station will use the same LCD as the pager so the PIC24FJ256DA210
was selected again to be the microcontroller. For the base station the color resolution of
the LCD does not have to be as high so the external SRAM will be omitted so that all of
the components can connect directly to the PIC. The devices that connect to this PIC are
the LCD, Ethernet module, wireless, keypad, and flash memory.
[MJS]
Figure 18: PIC24 on Base Station
23
The MCP73871, in Figure 19, was used for the LiPo charger since it separates the
system load from the battery so that the battery can be charged while the system is
powered on. The charger also has an input power status output that will alert the pager
when it is docked and when it is picked up from the dock. There is also the ability to
enable or disable the charger so that does not always have to be charging when connected
to a supply voltage.
[MJS]
Figure 19: LiPo charger in pager
In Figure 20 a fuel gauge is shown for the LiPo battery in the pager. The fuel
gauge works by measuring the current through the fixed resistor and integrating that
value to get the charge count stored in the battery. The fuel gauge communicates with the
[ST]
microprocessor via I2C protocol transmitting the voltage level of the battery.
Figure 20: LiPo Fuel Gauge
24
The voltage that comes from the LiPo battery is not constant; it can fluctuate
between 3.3 and 4.2 volt. To manage this variable voltage a buck regulator is used to take
the larger DC value and transform it to a smaller DC value. The buck converter, shown in
Figure 21, operates by taking the variable voltage and transforming it to a regulated 3.3V
with minimal DC ripple.
[ST]
Figure 21: DC-DC Buck Converter Circuit
The boost converter in Figure 22 is used for the backlight circuit of the LCD
screen on the pager and base station. To get the 20volts the backlight circuit needs to
operate, the 3.3 volts at the input of the boost circuit must be converted to a higher DC
value.
[ST]
Figure 22: DC-DC Boost Converter Circuit
25
D. Parts List
The parts list in Table 9 contains all of the parts required to physically produce
the schematics from the previous section.
[DT08]
Table 9: Parts List
Qty.
5
5
10
14
20
5
40
5
2
5
18
3
5
50
6
5
12
1
5
3
3
14
5
4
5
3
5
5
1
1
10
4
5
2
1
8
1
Reference
C17, C108
C16, C107
C19, C20, C110, C111
C6, C13, C22, C23, C106,
C115
C9, C10, C11, C12
C18, C109
C1, C2, C3, C4, C5, C7,
C8, C14, C15, C101, C102,
C103, C104, C105, C116,
C117
C21, C112
C113, C114
R26, R110
R4, R5, R23, R27, R107,
R111, R114, R115
R9
R22, R103
R2, R7, R10, R11, R12,
R14, R16, R30, R102
R13, R15
R25, R109
R1, R3, R19, R20
R121
R21, R101
R8
R29
R6, R18, R31, R104, R105,
R106, R130
R17, R112
R117, R118, R119, R120
R24, R108
R28
L2, L102
L3, L103
L101
Q101
LED1, LED2, LED101
LED4, LED104
D1, D101
JP1, JP2, JP102
JP103
Part Num.
EEE-1VA221P
AVE107M06D16T-F
JMK212BJ476MG-T
Description
220uF 20V cap
100uF 6.3V max cap
47uF 6.3V cap
GRM21BF50J106ZE01L
CC0805ZRY5V6BB475
C2012X5R1A105K/0.85
10uF ceramic cap
4.7uF cap
1uF 10V cap
CC0805KRX7R9BB104
EMK212SD333JD-T
GQM2195C1H200JB01D
RMCF0805FT160K
0.1uF ceramic cap
33nF 6.3V cap
20pF cap
160kohm
RMCF0805FT100K
RMCF0805FT33K0
RMCF0805FT30K9
100kohm
33kohm
30.9kohm
RMCF0805FT10K0
RC0805FR-078K45L
RMCF0805FT4K99
RMCF0805FT4K70
RMCF0805FT2K32
RMCF0805FT2K00
RMCF0805FT1K69
RMCF0805FT1K00
10kohm
8.45kohm
4.99kohm
4.7kohm
2.32kohm
2kohm
1.69kohm
1kohm
RMCF0805FT330R
RMCF0805JT100R
RMCF0805FT49R9
RMCF0805FT10R0
CSR0805FKR100
SLF10145T-470M1R4-H
CDRH6D28NP-220NC
74279201
ECS-250-20-5PXDU-F-TR
598-8140-107F
EL-17-21/BHC-AN1P2/3T
MBRS120T3G
4-103783-0
22-01-2087
08-50-0114
(D)S08B-PASK-2(LF)(SN)(P)
330ohm
100ohm
49.9 ohm
10 ohm
0.1 ohm
47uH *shielded* inductor
22uH *shielded* inductor
Ferrite Bead 32ohm .5A
Oscillator
LED yellow
LED blue
Schottky diode
Header, single in-line male
8 pin female conn-keypad
.1" pins for 8 pin conn
8 pin male header
26
1
8
8
24
3
4
1
3
3
3
3
4
4
4
4
4
3
6
3
4
1
1
3
5
3
5
JP3, JP6, JP105, JP106
JP5
JP4, JP101
X101
Q3
U5
U4
U1
U16, U106
U7, U102
U6
U2, U101
U15, U105
U3
U17
U103
U13, U104
U14
Q2, Q102
PAP-08V-S
S02B-PASK-2(LF)(SN)(P)
PAP-02V-S(P)
SPHD-001T-P0.5
S2B-PH-K-S(LF)(SN)
54132-4097
J1011F01P
254-PB163-ROX
IS61WV25616BLL-10TL
PIC24FJ16GA002-I/SS
MMA8453QR1
MRF24J40MA
SST25VF064C-80-4I-SCE
MAX1749
NHD-4.3-480272MF-ATXI#-T-1
PIC24FJ256DA210-I/PT
310-010
SP6650EU-L
MCP73871-2CCI/ML
APDS-9004
ENC28J60
96BB2-056-F
63450
LT1303CS8#PBF
LTC2942CDCB#TRMPBF
MMBT2222A
27
8 pin female conn
2 pin male header
2 pin female conn
Pins for JST conn
2 pin JST PH (LiPo)
LCD connector
Pulse Jack
Piezo
512kB SRAM
Second PIC
MMA8453 (accelerometer)
Wireless
8MB Flash
Motor Driver
4.3" TFT Touchscreen LCD
PIC24 - LCD
controller/microchip
Motor
Buck
LiPo charger
Light sensor
Ethernet Controller
16 Button Keypad
LiPo battery 4.2V 850mAH
Boost
LiPo Gauge
Transistor
E. Software Modules
The software level 0 module exhibits the pager, base station and computer. This
module demonstrates the users input and output roles between each of the devices. It also
displays the wireless communication between the pager, base station and computer.
[MJS]
Figure 23: Software Level 0 Modules
Table 10: Software Level 0 Descriptions
Module Name
pager
Module type
Overall
Input arguments
Data from base station, touch screen selections
Output arguments Data to base station, LCD
Description
The pager provides graphical user interface to guest which shows
menu/specials of day that are received from the base station. It also
receives data when a table is ready.
Module Name
Module type
Input arguments
Output arguments
Description
Base station
Overall
Data from pager, hostess inputs
Data to pager, data to computer, on board LCD
The base station receives order data from the pager and sends it to the
base station for so the order can be placed with the restaurant
computer system. The base station will also send a notice to a pager
when the host enters available page number.
The base station should be able to support up to 100 pager devices.
28
Module Name
Module type
Input arguments
Output arguments
Description
Computer (Theoretical – not part of scope)
Overall
Data from base station
Data to base station
The restaurant computer enters the order data received from base
station into restaurants table management/ordering software.
The Level 1 Software diagram for the pager shows an overall view of the code to
be implemented. The pager will wait to be activated and then respond to the users touch.
After activated, the pager will then be waiting for a command indicating a table is ready.
Figure 24: Software Level 1 Diagram for Pager
29
Table 11: Level 1 Software Descriptions for Pager
Module Name
activate
Input arguments
Data from base station
Output arguments None
Description
Waits for the pager to be undocked and then displays activation
menu. After activation settings are input the pager will show the user
interface for the guest.
Module Name
Module type
Input
Output
Description
graphics
Graphics
User touch
Information on the LCD
Takes the user touch input and figures out what should be on the
screen.
Module Name
Input arguments
Output arguments
Description
ordering
User touch
Data to base station
When the user orders something the item will go into a cart that will
send the order once the pager is called.
Module Name
Input arguments
Output arguments
Description
table_ready
Data from base station
Notification to user
Receives data from wireless that the table is ready and then notifies
the user by vibrating and displaying text.
30
The Software Level 1 diagram for the base station contains two main modules,
activate and call_pager.
Figure 25: Software Level 1 Diagram for Base Station
Table 12: Level 1 Software Descriptions for Base Station
Module Name
activate
Input arguments
Pager requesting new pager number
Output arguments Sends data via wireless to pager
Description
Sends the pager number to an undocked pager and awaits the number
of guests from pager.
Module Name
Input arguments
Output arguments
Description
call_pager
Pager number to call
Sends data via wireless to the pager
Sends command to pager that the table is ready. Will need
confirmation that data is received properly.
31
The Level 2 Software diagram for the pager shows an overall view of the code in
Figure 26 and Figure 27. Refer to the sequence stated in each block for a descriptive step
by step list of the internal software flow.
[DT08]
Figure 26: Level 2 Software Diagram
Table 13: Level 2 Software Descriptions
Module Name Sequence 1: Activate Pager
Input
Pager undocks
Output
Assigns pager number, sets number of guests
Description
1. Host undocks pager
2. Pager processor interprets undocked signal by absence of external
input voltage
3. Software interprets signal and outputs assign pager command
The back light turns on
4. Pager processor requests pager number from the base station
5. Base station assigns (n+1) and sends pager number to the pager
6. Pager processor outputs signal to pager LCD for host to enter
number of guests
7. Software interprets signal and sends command to LCD for host to
enter number of guests
8. LCD displays screen and text for host to enter the number of guests
9. Host enters number of guests on LCD and hits enter
10. Signal is interpreted by software which sends a signal to processor
32
Designer
Module Name
Input
Output
Description
Designer
Module Name
Input
Output
Description
to transmit guest number to base station
11. The radio transmits data
12. Host selects guest interface button on pager LCD
13. Software interprets signal and outputs request to display menu
14. Pager processor sends command to display menu on LCD
15. Menu is displayed on LCD
Nicholas Rochford, base station; Michael Seppanen, pager
Sequence 2: Look at Menu
User touch
Images and text on the display
1. Guests press button on the GUI to call menu
2. Press goes to processor
3. Processor calls up menu
4. Screen displays menu
5. If the guest wants to order something
a. Guest will press button to order item
b. Signal will be sent to processor
c. Processor will add item to order (after checking to make sure
the order is reasonable, e.g. A group of 2 tries to order 5 drinks
and/or 4 appetizers, would be unreasonable)
Michael Seppanen
Sequence 3: Call Pager
Pager number on base station
Pager notifies guest
1. Hostess presses Page on base station → Pager Number → Enter
2. Software interprets signal and sends the pager number to base
station processor
3. Base processor sends command for radio transmitter to transmit
page signal to pager
Base processor sends signal for LCD to display pager ### has been
paged
4. Software interprets signal and sends command to base radio to
transmit to pager ###
Software interprets signal and sends command for LCD to display
pager paged
5. Base LCD displays pager ### paged
Radio transmitter transmits signal to pager
6. Pager radio transmits confirmation of page command
7. Base station prompts host for a table number
8. Host enters table number where guest will be seated → Enter
9. Pager software interprets table ready signal and sends command to
processor to vibrate and display image
10. Pager processor sends command to vibrate and display table ready
11. Software interprets signal
33
Designer
Module Name
Input
Output
Description
Designer
Module Name
Input
Output
Description
Designer
Module Name
Input
Output
Description
Designer
12. LCD displays pager ready
13. Vibrator motor vibrates
Nicholas Rochford, base station; Michael Seppanen, pager
Sequence 4: Order is sent back when called
Pager called
Order to radio transmitter
1. Pager processor sends command for radio transmitter to transmit
pager order to base station
2. Pager radio transmits order to base station
3. Base station processes the order by attaching the table number to the
order
4. Order is sent back to kitchen with table number user is being sat at
Nicholas Rochford, base station; Michael Seppanen, pager
Sequence 5: Clearing Pager
Pager called and then docked
Clears pager for next activation
1. The guest hands the pager back to the hostess
2. The hostess places the pager on the charging stack
3. The pager senses the external input voltage
4. If the pager has not finished sending the order it will finish
5. Once the order is sent and received the pager automatically clears
the settings specific for the guest and the back light turns off
Michael Seppanen
Sequence 6: Back light brightness control
Light sensor value
Screen brightness
1. If the user has stopped interacting with the screen after a period of
time (e.g. 30s)
a. The screen dims
b. Wait for touch
2. While the screen is active
a. Read light sensor (every so often)
i.
If sensor reads brighter, make the screen brighter by
increasing PWM
ii.
If sensor reads lower, make the screen dimmer by
decreasing PWM
iii.
If sensor reads the same, keep brightness the same
Michael Seppanen
34
Whenever a radio tries to communicate with another radio in the sequences from
Figure 26 the transmitting device needs to know whether or not the data was received so
wireless communication will follow the sequence of events in Figure 27.
[MJS]
Figure 27: Level 2 Software Diagram for Wireless Communication
35
Table 14: Level 2 Software Description for Wireless Communication
Module Name Wireless Communication
Input
Data to radio
Output
Transmission successful or unsuccessful
Description
Any wireless communication will keep retransmitting until it is
acknowledged that the recipient has received the data or until it has tried
a certain amount of times and then will return that the transmission has
failed.
Designer
Steven Talarcek
Figure 28 shows the relationship between the two microprocessors and attached
components to the software. Both PICs will initialize after a reset, and then either go into
a charging state or into the normal operation. The normal operation will be interrupted
when the pager is placed back onto the base station.
[MJS]
Figure 28: Pager Hardware and Software Interaction
36
Table 15: Pager Hardware and Software Interaction Description
Module Name Main PIC24 init
Input
Power up or reset
Output
Description
Sets up all peripherals, LCD screen, etc.
Designer
Michael Seppanen
Module Name
Input
Output
Description
Designer
On dock?
Power good signal from LiPo goes low via interrupt.
Goes to charging algorithm described in Figure 30.
While the pager is on the dock it will charge and wait to be removed from
the dock. The pager is in a low power state during this time and none of
the peripherals on the secondary PIC are needed all the time so it will be
able to sleep. The secondary PIC will need to be woken up occasionally
to get the status of the LiPo if there are a lot of pagers that need to be
charged.
Michael Seppanen
Module Name
Input
Output
Description
Designer
Secondary PIC24 init
Power up or reset
Module Name
Input
Output
Description
getPIC_2()
Designer
Module Name
Input
Output
Description
Designer
Module Name
Input
Output
Description
Designer
Sets up all peripherals and sensors on the secondary PIC.
Michael Seppanen
Values from second PIC attached components.
Gets readings of sensors from the secondary PIC by talking via I2C to the
second PIC. This will return the values that the main PIC has requested,
including the accelerometer and LiPo status.
Michael Seppanen
sendPIC_2()
Values to send to the secondary PIC attached components
Sends required outputs to secondary PIC. This will control components
that the PIC has requested including the status, motor, and piezo.
Michael Seppanen
wireless()
Data to wireless
Data from wireless
Sends or receives data to and from the radio transmitter. Follows Figure
26 and Figure 27 for when and how data is sent and received.
Michael Seppanen
37
Module Name
Input
Output
Description
Designer
Module Name
Input
Output
Description
Designer
Module Name
Input
Output
Description
Designer
Module Name
Input
Output
Description
Designer
Module Name
Input
Output
Description
Designer
Module Name
Input
Output
Description
Designer
flash()
The flash is used to store the menu images. The images will be stored and
recalled using a Microchip image decode library.
Michael Seppanen
screen()
Touch screen presses
Graphics
Sends data to the LCD. Receives resistive touch screen presses. This will
mostly be done using Microchip libraries. The display will respond to
touches according to the GUI layout in Figure 32, Figure 33, and Figure
34.
Michael Seppanen
getAccel()
Accelerometer reading, if the accelerometer generated an interrupt that
information will be passed along to the main PIC
Sends the required readings to the main PIC from the accelerometer.
Michael Seppanen
getLiPo()
LiPo battery status
Gets the LiPo battery status through the LiPo gauge and LiPo charger
statuses. These will allow the micro to know what the charge level is of
the battery to inform the host and to decide its priority to be charged.
Michael Seppanen
sendStatus()
Status of Main PIC, screen has been idle, etc.
Sends the various statuses of the main PIC mainly for the benefit of the
backlight controller. Also to be used as a heartbeat between the two
processors so that they know the other is still running.
Michael Seppanen
setMotor()
Motor command
Turns on or off the vibrator motor when the main PIC sends the
command to the secondary PIC which then activates the motor driver.
Michael Seppanen
38
Module Name
Input
Output
Description
Designer
setPiezo()
Piezo command
Makes the piezo operate when the main PIC sends the piezo activation
command.
Michael Seppanen
The backlight control in Figure 29 shows a diagram of Sequence 6 from Figure
26. This algorithm will be completely on the second PIC, with only the screen active
signal coming from the main PIC. If the pager has been used within 30 seconds the
ambient light reading will be read by the light sensor. This will then be compared to the
previous reading and then the backlight will be dimmed accordingly.
[MJS]
Figure 29: Software Diagram for Backlight Control
Table 16: Software Description for Backlight Control
Module Name setBackLight()
Input
PWM from output compare
Output
Description
The output compare drives the backlight transistor to control the screen
brightness. The value is set by looking at the light sensor value and
comparing it to the previous one and if the screen has been inactive.
Designer
Michael Seppanen
Module Name
Input
Output
Description
Designer
getLight()
Light sensor reading
Reads the light sensor value on the analog port
Michael Seppanen
39
The LiPo charging algorithm in Figure 30 shows an overview of how the paging
system will be able to take care of charging up to 100 pagers without having a power
supply that is rated for every battery to be charging at once. If the power supply is not at
the limit then any battery that needs to charge will be able to charge. If it is at the limit
then the pagers will have to figure out which ones have the highest priority to charge and
then only charge those. As pagers become fully charged lower priority pagers will then
be able to start charging. The main way to determine priority will be by the amount of
charge which will be found using the fuel gauge. A pager with a low remaining charge
will have a higher priority over a higher remaining charge. Another way to figure out the
priority will be through the order they were placed on the stack to charge since it would
not make sense to charge a pager on the bottom before one on the top.
[MJS]
Figure 30: Software Diagram for Charging
Table 17: Software Description for Charging
Module Name charge
Input
Output
LiPo charge enable is active low logic
Description
Signal to enable or disable charging of the battery.
Designer
Michael Seppanen
Module Name
Input
Output
Description
Designer
Evaluate Priority
Priority of charging
To figure out if a certain pager should be charged or not the micro will
run through an algorithm to determine its priority
Michael Seppanen
40
Figure 31 shows the relationship between the various devices in the base station
to the software that runs the base station. After initialization the base station will fall into
a loop that runs through its five main areas: Ethernet, wireless, flash, keypad, and the
LCD.
[MJS]
Figure 31: Base Station Hardware and Software Interaction
Table 18: Base Station Hardware and Software Interaction Description
Module Name ethernet()
Input
Data to Ethernet
Output
Data from Ethernet
Description
This will take care of sending data to the restaurant network. Most of the
Ethernet protocol will be implemented using Microchip libraries.
Designer
Nicholas Rochford
Module Name
Input
Output
Description
Designer
Module Name
Input
Output
Description
Designer
wireless()
Data to wireless
Data from wireless
Sends or receives data to and from the radio transmitter. Follows Figure
26 and Figure 27 for when and how data is sent and received.
Steven Talarcek
flash()
The flash is used to store the menu images. The images will be stored and
recalled using a Microchip image decode library.
Nicholas Rochford
41
Module Name
Input
Output
Description
Designer
Module Name
Input
Output
Description
Designer
keypad()
Key presses
The keypad will be polled by constantly cycling through the 4 columns of
buttons in order to detect a press.
Nicholas Rochford
screen()
Graphics
Sends data to the LCD. This will mostly be done using Microchip
libraries. The display will follow the GUI layout in Figure 35.
Nicholas Rochford
42
Figure 32 displays the main screens of the paging system. The initial charging
screen will just be a black screen until the pager is removed from the charging circuit.
Once the pager is removed by the host it will prompt the host to enter the number of
guests. Once the number of guests is entered the pager screen will go to the welcome
screen that will display the feature of the day and the other main screen options. Also
displayed is the calling sequence. The calling sequence is started by an interrupt signal to
inform the guest that they need to finish ordering and their table will be called
momentarily. The last display is that the table is ready.
[NR]
Figure 32: Pager Initiation Screens
43
Figure 33 displays the pager screens as the user goes through the menu and makes
a selection. Items in blue text are available to be selected and will call up different
screens. In Figure 33 an example of a sandwich order and meal are displayed. Each item
will have check boxes for people with preferences and options to change the default
toppings.
[NR]
Figure 33: Pager Food Menu
44
The drink menu is displayed in Figure 34. This shows the different drink options
offered at common restaurants. Selecting a check box would be choosing a drink and
once options are picked pressing the order button will go to the order confirmation
screen. Alcoholic drinks will not be offered through the paging system, but if the
restaurant would choose to offer alcohol, they can be ordered at the table. The choices of
alcohol will still be displayed.
[NR]
Figure 34: Drink Menu
45
Figure 35 displays the screens the base station will display as more guests are
added and tables are called. When the screen is full a display on the bottom will appear
informing the host that there are more tables than can be displayed on the screen and they
will have to scroll down to see the extra tables. The base station will be a place to tell the
restaurant the pager numbers that are out, the number of guests for each pager, verify that
the pager activated properly and that the pager is continuing to function, as well as where
the guest was seat, and if they had ordered food while waiting.
[NR]
Figure 35: Base Station Display
46
F. Software Calculations
A conservative estimation of an average picture size is 70KB per picture. For this
design it requires 100 pictures. Therefore 70KB ×100 = 7000KB which requires the
memory size to be at least 7MB.
The amount of time necessary to update a menu of 100 items or pictures will take
the amount of memory (7MB) and divide it by the upload rate of Kb/seconds therefore
the amount of time it takes to update a menu is equal to
5.6× 10! !!"#$$!
= 486.1 seconds. Converting the seconds into minutes the time will
!"#$%&!
!"#$%&!
be 486.1 !" !"#$%&! = 8 minutes.
[NR, MJS]
!"#$%&
G. Mechanical Drawings
A mockup of the proposed arrangement of components is found in Figure 36. The
enclosure will contain all of these parts while having an opening for the screen. The
charging pads and alignment pads will make it so the pagers will fall into place when
placed in a stack to ensure a good connection.
[MJS]
Figure 36: Pager Mechanical Layout
47
A mockup of the base station is shown in Figure 37. When the pager is placed on
the charging base the pads will provide 5V to the first pager which will then pass the 5V
to the next pager and so on for every pager that is in the stack. The keypad will be the
main form of user input to make it easier for the host by providing instant tactile feedback
for whether the button was pressed or not. The screen located above the keypad will then
display information for the host.
[MJS]
Figure 37: Base Station Mechanical Layout
48
4. Budget
The following table shows all of the electrical components that will have to be
purchased in order to build three pagers and a base station. There will also have to be
circuit boards manufactured which will add an estimated $65 to the cost (13in2 total area
through http://dorkbotpdx.org/wiki/pcb_order). These two bring the total cost of the
system to $487.41 which is below the design team’s $500 limit.
[DT08]
Table 19: Parts List with Cost
Qty.
5
5
10
14
20
5
40
5
2
5
18
3
5
50
6
5
12
1
5
3
3
14
5
4
5
3
5
5
1
1
10
4
5
2
1
8
1
1
Part Num.
EEE-1VA221P
AVE107M06D16T-F
JMK212BJ476MG-T
GRM21BF50J106ZE01L
CC0805ZRY5V6BB475
C2012X5R1A105K/0.85
CC0805KRX7R9BB104
EMK212SD333JD-T
GQM2195C1H200JB01D
RMCF0805FT160K
RMCF0805FT100K
RMCF0805FT33K0
RMCF0805FT30K9
RMCF0805FT10K0
RC0805FR-078K45L
RMCF0805FT4K99
RMCF0805FT4K70
RMCF0805FT2K32
RMCF0805FT2K00
RMCF0805FT1K69
RMCF0805FT1K00
RMCF0805FT330R
RMCF0805JT100R
RMCF0805FT49R9
RMCF0805FT10R0
CSR0805FKR100
SLF10145T-470M1R4-H
CDRH6D28NP-220NC
74279201
ECS-250-20-5PXDU-F-TR
598-8140-107F
EL-17-21/BHC-AN1P2/3T
MBRS120T3G
4-103783-0
22-01-2087
08-50-0114
(D)S08B-PASK-2(LF)(SN)(P)
PAP-08V-S
Description
220uF 20V cap
100uF 6.3V max cap
47uF 6.3V cap
10uF ceramic cap
4.7uF cap
1uF 10V cap
0.1uF ceramic cap
33nF 6.3V cap
20pF cap
160kohm
100kohm
33kohm
30.9kohm
10kohm
8.45kohm
4.99kohm
4.7kohm
2.32kohm
2kohm
1.69kohm
1kohm
330ohm
100ohm
49.9 ohm
10 ohm
0.1 ohm
47uH *shielded* inductor
22uH *shielded* inductor
Ferrite Bead 32ohm .5A
Oscillator
LED yellow
LED blue
Schottky diode
Header, single in-line male
8 pin female conn-keypad
.1" pins for 8 pin conn
8 pin male header
8 pin female conn
49
Unit
Cost
$0.88
0.45
0.88
0.17
0.11
0.27
0.06
0.53
0.90
0.04
0.03
0.04
0.04
0.02
0.02
0.04
0.03
0.04
0.04
0.04
0.04
0.03
0.03
0.04
0.04
0.56
1.28
1.03
0.19
1.46
0.09
0.20
0.33
0.66
0.61
0.14
Total
Cost
$4.40
2.25
8.80
2.38
2.12
1.35
2.52
2.65
1.80
0.20
0.52
0.12
0.20
0.81
0.13
0.20
0.35
0.04
0.20
0.12
0.12
0.41
0.15
0.16
0.20
1.68
6.40
5.15
0.19
1.46
0.90
0.80
1.65
ECE
0.66
ECE
0.61
0.14
8
8
24
3
4
1
3
3
3
3
4
4
4
4
4
3
6
3
4
1
1
3
5
3
5
1
1
S02B-PASK-2(LF)(SN)(P)
PAP-02V-S(P)
SPHD-001T-P0.5
S2B-PH-K-S(LF)(SN)
54132-4097
J1011F01P
254-PB163-ROX
IS61WV25616BLL-10TL
PIC24FJ16GA002-I/SS
MMA8453QR1
MRF24J40MA
SST25VF064C-80-4I-SCE
MAX1749
NHD-4.3-480272MF-ATXI#-T-1
PIC24FJ256DA210-I/PT
310-010
SP6650EU-L
MCP73871-2CCI/ML
APDS-9004
ENC28J60
96BB2-056-F
63450
LT1303CS8#PBF
LTC2942CDCB#TRMPBF
MMBT2222A
9081
9161
2 pin male header
2 pin female conn
Pins for JST conn
2 pin JST PH (LiPo)
LCD connector
Pulse Jack
Piezo
512kB SRAM
Second PIC
MMA8453 (accelerometer)
Wireless
8MB Flash
Motor Driver
4.3" TFT Touchscreen LCD
PIC24 - LCD controller/microchip
Motor
Buck
LiPo charger
Light sensor
Ethernet Controller
16 Button Keypad
LiPo battery 4.2V 850mAH
Boost
LiPo Gauge
Transistor
SMD Proto 'Surf' Board
SMD Proto 'Surf' Board
50
0.25
$0.10
0.03
0.11
3.26
9.85
3.11
4.40
1.37
9.95
3.38
38.00
4.95
1.66
1.18
15.06
8.95
4.75
3.70
0.39
1.60
2.04
Total
2.00
$0.80
0.72
0.33
13.04
9.85
9.33
13.20
Sample
4.11
39.80
Sample
13.52
152.00
Sample
14.85
9.96
Sample
4.72
Sample
15.06
26.85
23.75
11.10
1.95
1.60
2.04
422.41
5. Project Schedule
Final Design Gantt
The Final Design Gantt chart states the task name, duration, the start/finish dates,
and the person responsible. This chart is an important organizational tool in designing the
pager and remaining on task.
[NR]
Table 20: Final Design Gantt
Task Name Duration Advanced
Restaurant
Paging
System
(ARPS)
71
Fri 8/26/11 Fri 12/2/11
days?
Preliminary
Report
Preliminary
Design
Presentation
Midterm
Report
Abstract
Design
Requirements
Specifications
31 days Fri 8/26/11
0 days
Memory Size Needed Power supply
needed
Design Calcs
Mechanical
Needed vibration
to sense
Durability
Considerations
Level 1 Block
Diagrams
Software
Modules
Fri 9/9/11
Finish Predec
essors Fri 10/7/11
DT08
Fri 9/9/11
Resource Names DT08
21 days
Fri 9/9/11
Fri 10/7/11
21 days
Fri 9/9/11
Fri 10/7/11
DT08
21 days
Fri 9/9/11
Fri 10/7/11
DT08
Fri 9/9/11 Fri 10/7/11 Fri 9/9/11 Fri 10/7/11 21 days
Fri 9/9/11
Fri 10/7/11
DT08
21 days
Fri 9/9/11
Fri 10/7/11
Michael Seppanen
21 days
Fri 9/9/11
Fri 10/7/11
Steven Talarcek
21 days Fri 9/9/11 Fri 10/7/11 21 days
Fri 9/9/11
Fri 10/7/11
DT08
21 days
Fri 9/9/11
Fri 10/7/11
DT08
21 days
Fri 9/9/11
Fri 10/7/11
Michael Seppanen
21 days
Fri 9/9/11
Fri 10/7/11
DT08
21 days
Fri 9/9/11
Fri 10/7/11
DT08
21 days
Fri 9/9/11
Fri 10/7/11
Michael Seppanen, Nicholas Rochford
Midterm Design 21 days Gantt Chart Design 21 days Calculations Design Calcs
Electrical
Battery Life
Wireless Range
needed
Start 51
DT08
DT08 DT08 Nicholas Rochford Software
Functional
Requirement
Hardware
Modules
Hardware
Functional
Requirements
Level 2 Block
Diagrams
Software
Modules
Sequence 0: Overall Pager Timeline Sequence 1: Activate Pager Sequence 2: Look at Menu Sequence 3: Call Pager Sequence 4: Order is Sent Back When Called Sequence 5: Clearing Pager Sequence 6: Back Light Brightness Control Sequence 7: Battery Charging Software
Functional
Requirement
Hardware
Modules
Memory Power Base Station Buck Circuit/ Regulator Microprocessor Ethernet Boost Circuit LCD Screen 21 days
Fri 9/9/11
Fri 10/7/11
Michael Seppanen, Nicholas Rochford
21 days
Fri 9/9/11
Fri 10/7/11
Amanda Vespoint, Steven Talarcek
21 days
Fri 9/9/11
Fri 10/7/11
Amanda Vespoint, Steven Talarcek
21 days
Fri 9/9/11
Fri 10/7/11
DT08
21 days
Fri 9/9/11
Fri 10/7/11
Michael Seppanen, Nicholas
Rochford
21 days Fri 9/9/11 Fri 10/7/11 21 days Fri 9/9/11 Fri 10/7/11 21 days Fri 9/9/11 Fri 10/7/11 21 days Fri 9/9/11 Fri 10/7/11 21 days Fri 9/9/11 Fri 10/7/11 21 days Fri 9/9/11 Fri 10/7/11 21 days Fri 9/9/11 Fri 10/7/11 21 days Fri 9/9/11 Fri 10/7/11 21 days
Fri 9/9/11
Fri 10/7/11
Michael Seppanen, Nicholas Rochford
21 days
Fri 9/9/11
Fri 10/7/11
Amanda Vespoint, Steven Talarcek
21 days 21 days 21 days Fri 9/9/11 Fri 9/9/11 Fri 9/9/11 Fri 10/7/11 Fri 10/7/11 Fri 10/7/11 21 days Fri 9/9/11 Fri 10/7/11 21 days 21 days 21 days 21 days Fri 9/9/11 Fri 9/9/11 Fri 9/9/11 Fri 9/9/11 Fri 10/7/11 Fri 10/7/11 Fri 10/7/11 Fri 10/7/11 52
DT08 DT08 DT08 DT08 DT08 DT08 DT08 DT08 DT08 DT08 DT08 DT08 DT08 DT08 DT08 DT08 Key Pad Memory Radio Tx/Rx Pager Battery Charging Battery Buck Circuit/ Regulator Boost Circuit/Regulator Microprocessor LCD/ Touch Screen Backlight Driver Radio Tx/Rx Vibration Driver and Motor Annunciator Light Sensor Hardware
Functional
Requirements
Project
Midterm
Presentation
21 days 21 days 21 days 21 days 21 days 21 days Fri 9/9/11 Fri 9/9/11 Fri 9/9/11 Fri 9/9/11 Fri 9/9/11 Fri 9/9/11 Fri 10/7/11 Fri 10/7/11 Fri 10/7/11 Fri 10/7/11 Fri 10/7/11 Fri 10/7/11 21 days Fri 9/9/11 Fri 10/7/11 21 days Fri 9/9/11 Fri 10/7/11 21 days Fri 9/9/11 Fri 10/7/11 21 days Fri 9/9/11 Fri 10/7/11 21 days 21 days Fri 9/9/11 Fri 9/9/11 Fri 10/7/11 Fri 10/7/11 21 days Fri 9/9/11 Fri 10/7/11 21 days 21 days Fri 9/9/11 Fri 9/9/11 Fri 10/7/11 Fri 10/7/11 21 days
Fri 9/9/11
Fri 10/7/11
1 day?
Sun 9/18/11
Sun 9/18/11
5 days
Mon
10/10/11
Fri 10/14/11
DT08 DT08 DT08 DT08 DT08 DT08 DT08 DT08 DT08 DT08 DT08 DT08 DT08 DT08 DT08 DT08
72
DT08
Rehearsal
Meet with
Professor Sastry
0 days
Wed 10/12/11 Wed 10/12/11
DT08
0 days
Thu 10/13/11 Thu 10/13/11
DT08
Project
Poster
11 days
Mon 10/10/11
Mon 10/24/11
11 days
Mon 10/10/11
Mon 10/24/11
Steven Talarcek
11 days
Mon 10/10/11
Mon 10/24/11
Amanda Vespoint, Steven Talarcek
11 days
Mon 10/10/11
Mon 10/24/11
Amanda Vespoint
Include Level 1
Block Diagrams
Include Abstract
Include Marketing
Requirements
Final Design
Report
28 days Fri 10/14/11 Tue 11/22/11
Software
Design
28 days
Fri 10/14/11
Tue 11/22/11
Modules 0 to 7
28 days
Fri 10/14/11
Tue 11/22/11
22 days Mon 10/24/11 Tue 11/22/11 7 days Mon 10/24/11 Tue 11/1/11 Sequence 0: Overall Pager Timeline Sequence 1: Activate Pager 53
76 74
Amanda Vespoint
DT08
Michael Seppanen, Nicholas
Rochford
Michael Seppanen, Nicholas
Rochford
Michael Seppanen, Nicholas Rochford Michael Seppanen, Nicholas Rochford Sequence 2: Look at Menu Sequence 3: Call Pager Sequence 4: Order is Sent Back When Called Sequence 5: Clearing Pager Sequence 6: Back Light Brightness Control Sequence 7: Battery Charging Sequence Radio Tx/Rx Hardware
Design
Battery
Simulations
Battery
Chargers
Schematics
Wireless
Schematics
7 days Fri 10/14/11 Mon 10/24/11 7 days Wed 11/9/11 Thu 11/17/11 6 days Tue 11/15/11 Tue 11/22/11 1 day Fri 10/14/11 Fri 10/14/11 1 day Fri 10/14/11 Fri 10/14/11 1 day 7 days Mon 10/31/11 Mon 10/24/11 Mon 10/31/11 Tue 11/1/11 Michael Seppanen, Nicholas Rochford Nicholas Rochford, Michael Seppanen Michael Seppanen Michael Seppanen Nicholas Rochford Steven Talarcek 28 days
Fri 10/14/11
7 days
7 days
Fri 10/14/11 Mon 10/24/11
Fri 10/14/11 Mon 10/24/11
Steven Talarcek
Steven Talarcek
7 days
Fri 10/14/11 Mon 10/24/11
Steven Talarcek
7 days
7 days
7 days
Fri 10/14/11 Mon 10/24/11
Fri 10/14/11 Mon 10/24/11
Fri 10/14/11 Mon 10/24/11
Steven Talarcek
Amanda Vespoint
Amanda Vespoint
Power 7 days Fri 10/14/11 Mon 10/24/11 Simulations
Schematics
Parts Request
Form
Budget
(Estimated)
Implementation
Gantt Chart
7 days
7 days
Fri 10/14/11
Fri 10/14/11
Mon 10/24/11
Mon 10/24/11
28 days
Fri 10/14/11
Tue 11/22/11
DT08
28 days
Fri 10/14/11
Tue 11/22/11
DT08
28 days
Fri 10/14/11
Tue 11/22/11
Nicholas Rochford
Mon
11/28/11
Fri 12/2/11
Final Design
Presentation
Rehearsal
Meet with
Professor Sastry
5 days
Tue 11/22/11
Michael Seppanen Amanda Vespoint, Steven Talarcek
107
Steven Talarcek
Steven Talarcek
DT08
0 days
Mon 11/28/11 Mon 11/28/11
DT08
0 days
Mon 11/28/11 Mon 11/28/11
DT08
54
Proposed Implementation Gantt
The Proposed Implementation Gantt chart states the task names, estimated
durations, the start/finish dates, and the person responsible for the items to be completed
in the spring semester.
[NR]
Table 21: Proposed Implementation Gantt
Task Name
Revise Gantt Chart
Implement Project Design
Hardware Implementation
Layout and Generate PCB(s)
Assemble Pager
Assemble Base Station
Test Hardware
Revise Hardware
MIDTERM: Demonstrate
Hardware
SDC & FA Hardware Approval
Software Implementation
Activate Pager (Pager)
Activate Pager (Base)
Touch Screen (Pager Only)
Call Pager (Pager)
Call Pager (Base)
Send Order (Pager)
Receive Order (Base)
Clear Pager Memory (Pager)
Screen Backlight
Radio Communication
Test Software
Revise Software
MIDTERM: Demonstrate Software
SDC & FA Software Approval
System Integration
Assemble Complete System
Test Complete System
Revise Complete System
Demonstration of Complete
System
Develop Final Report
Write Final Report
Submit Final Report
Martin Luther King Day - University
closed
Spring Recess
Project Demonstration and
Presentation
Faraday Banquet
Senior Design Expo
Duration
Start
7 days Mon 1/9/12
70 days Mon 1/16/12
49 days Mon 1/16/12
14 days Mon 1/16/12
7 days Mon 1/30/12
7 days Mon 2/6/12
14 days Mon 2/13/12
7 days Mon 2/6/12
Finish
Predecessors Week Resource Names
Mon 1/16/12
1
Mon 3/26/12
Mon 3/5/12
Mon 1/30/12
3
Mon 2/6/12 4
5 Steven Talarcek
Mon 2/13/12 5
Amanda Vespoint
Mon 2/27/12 6
6 Mike Seppanen
Mon 2/13/12 5
DT08
7 days Mon 2/27/12 Mon 3/5/12 7,8
0 days Mon 3/5/12
56.5 days Mon 1/16/12
7.5 days Mon 1/16/12
7.5 days Mon 1/16/12
14 days Mon 1/23/12
14 days Mon 2/6/12
14 days Mon 1/23/12
12 days Mon 2/20/12
14 days Mon 2/6/12
7 days Mon 1/16/12
7 days Mon 1/16/12
41.5 days Tue 1/17/12
7 days Mon 2/27/12
7 days Mon 3/5/12
7 days Mon 2/27/12
0 days Mon 3/5/12
32 days Mon 3/12/12
7 days Mon 3/12/12
Mon 3/5/12 9
Mon 3/12/12
Mon 1/23/12
Mon 1/23/12
Mon 2/6/12 12
Mon 2/20/12 14
Mon 2/6/12 13
Sat 3/3/12 15
Mon 2/20/12 16
Mon 1/23/12
Mon 1/23/12
Mon 2/27/12
Mon 3/5/12 21
Mon 3/12/12 22
Mon 3/5/12
Mon 3/5/12 24
Fri 4/13/12 24,10
Mon 3/19/12
8 DT08
9 DT08
Mike Seppanen
Nicholas Rochford
Mike Seppanen
Mike Seppanen
Nicholas Rochford
Mike Seppanen
Nicholas Rochford
Mike Seppanen
Mike Seppanen
Steven Talarcek
5 Amanda Vespoint
Mike Seppanen,
7
Nicholas Rochford
8 DT08
9 DT08
6 days Thu 4/5/12
Wed 4/11/12 28
DT08
Amanda Vespoint,
10
Nicholas Rochford
DT08
0 days Fri 4/13/12
Fri 4/13/12
13 DT08
2 days Mon 3/19/12 Wed 3/21/12 27
29
88 days Mon 1/9/12 Fri 4/6/12
98 days Mon 1/9/12 Mon 4/16/12
0 days Mon 4/16/12 Mon 4/16/12 33
DT08
15 Amanda Vespoint
0 days Mon 1/16/12 Mon 1/16/12
DT08
5 days Mon 3/12/12 Sat 3/17/12
DT08
0 days Fri 4/13/12
Fri 4/13/12
0 days Fri 4/27/12
Fri 4/27/12
0 days Wed 4/25/12 Wed 4/25/12
55
13 DT08
15
15 DT08
6. Design Team Information
Nicholas Rochford, Electrical Engineering, Project Leader
Michael Seppanen, Electrical Engineering, Software Manager
Steven Talarcek, Electrical Engineering & Applied Mathematics, Hardware Manager
Amanda Vespoint, Electrical Engineering, Archivist
7. Conclusion
The Advanced Restaurant Paging System provides realistic requirements that will
meet specific needs to surpass current limitations in the restaurant industry. The block
diagrams as well as the functional requirements provide an overview of the process that is
to be implemented. The sequence diagrams assist in the development of how the overall
pager will be interpreted by a user. It is important to understand how the user will interact
with this device when picking parts and arranging sequences. All of the parts chosen and
the software design contributed in meeting the design requirements. This paging system
and the base station will work collectively to meet the original requirements.
[AV]
8. References
1.) (n.d.). Retrieved March 2011, from Long Range Systems:
http://www.pager.net/Long-Range-Systems/Restaurant-Pagers.html
2.) Livingston, J., Blink, R. P., & Lovegreen, K. J. (2004). Patent No. 6,783,066.
United States.
3.) Quatro, C. (2007). Patent No. US 2007/0040652. United States.
Wireless Paging Systems. (n.d.). Retrieved March 2011, from HME Wireless:
http://www.hmewireless.com/
4.) Ida, Nathan. Engineering Electromagnetics. New York, New York: SpringerVerlag, 2004. Book
56
9. Appendix: Data Sheets
•
•
•
•
•
•
•
•
•
•
•
•
•
•
Main PIC: PIC24FJ256DA210
http://ww1.microchip.com/downloads/en/DeviceDoc/39969b.pdf
Secondary PIC: PIC24FJ16GA002
http://ww1.microchip.com/downloads/en/DeviceDoc/39881D.pdf
Newhaven 4.3” Touchscreen: NHD-4.3-480272MF-ATXI#-T-1
http://www.newhavendisplay.com/specs/NHD-4.3-480272MF-ATXI-T-1.pdf
512kB SRAM: IS61WV25616BLL-10TL
http://www.issi.com/pdf/61WV25616.pdf
Accelerometer: MMA8453QR1
http://cache.freescale.com/files/sensors/doc/data_sheet/MMA8453Q.pdf
Wireless radio: MRF24J40MA
http://ww1.microchip.com/downloads/en/DeviceDoc/70329b.pdf
8MB Flash: SST25VF064C-80-4I-SCE-ND
http://ww1.microchip.com/downloads/en/DeviceDoc/25036A.pdf
Vibrator Motor Drive: MAX1749
http://datasheets.maxim-ic.com/en/ds/MAX1749.pdf
Buck Chip: SP6650EU-L
http://www.exar.com/Common/Content/Document.ashx?id=707
Boost Chip: LT1303CS8#PBF
http://cds.linear.com/docs/Datasheet/lt1303.pdf
Battery Fuel Gauge: LTC2942CDCB#TRMPBF
http://cds.linear.com/docs/Datasheet/2942fa.pdf
LiPo Battery Charger: MCP73871-2CCI/ML
http://ww1.microchip.com/downloads/en/DeviceDoc/22090a.pdf
Ethernet: ENC28J60
http://ww1.microchip.com/downloads/en/DeviceDoc/39662c.pdf
Keypad: 96BB2-056-F
http://media.digikey.com/pdf/Data%20Sheets/Grayhill%20PDFs/96%20Series.pdf
57