Home
        Final Design Review - Harding University
         Contents
1.                                                              137       138   Oi       usu u      139  RS USUI ie ING eer stesso                                                      139                       Desci pO u      goeoaasiaeeSpasuaenneasiuenbeccuenceasdlss 140                141          143  TO ji      MUN ERI MUS HU DEEP MEE 143    Page 3    Project Overview         Status           8         Storage and Dispensing Mechanism    It was clear from the construction of previous prototypes during the fall that proper  connection between all of the mechanical components would be a major issue  One of the most  important mechanical connections 1s that between the pill storage bin and the auger casing  mechanism  Previously  the pill storage bin and the auger casing mechanism were designed as  separate units  This design 15 shown in Figures   and 2  This 1     suboptimal design because this  design requires the extra work of accurately attaching each pair of these components  A  preferable design 1s shown in Figure 3  In this design  the pill storage bin and the auger casing  mechanism are designed as one seamless unit  This assures that there are no obstruction to the  flow of pills between the pill storage bin and the auger casing mechanism        Figure    Previous Pill Storage Bin Design    Page 5    The Pill Storage Bin  Attached Here       Figure 2  Previous Casing Design       Figure 3  Combined Bin and Casing       Page 6    To test the design of the pill storage a
2.                    _              LL LT TIEN                  m RX      HERES  53dBm with 2Mbps          core                    8 _   IDD core  TX on   10 dBm         mA   Note 1  Sleep current is current consumed during periods of  standby  between DTIM beacons  The module will  awake 2 mS before a DTIM and turn      ils receiver  and possibly its transmitter  if data is available for it     2  100 core is current consumed by the        not including the 170 consumption of the SPI           3  Current Consumption values represent Typical Peak currents  and the measured current conditions were  done with 65  duty cycle modulated signal  Wi Fi applications typically operate at less than 65  TX duty  cycle  TX current is dependent      such criteria as transmit power setting  and transmit data rate and band   width being used  R gt  current is affected by connection distance        TABLE 4 5  RECEIVER AC CHARACTERISTICS      RA Max Input Level  Power   1Mbps  8  PER         Max Input Level  Power   2Mbps  8  PER            Note 1  Nominal conditions  25C  VDD   3 3V         2437 MHz  measurements at antenna port        TABLE 4 6  TRANSMITTER AC CHARACTERISTICS                  w   5         n     2412            w        Average Pout  transmit spectrum mask compliant                     dBm    Average Pout gain step resolution from  5 to   1  dBm         Average Pout gain step resolution from  5 to  5dbm    Note 1  Nominal conditions  25    VDD   3 3V  Flo   2437 MHz  2 Mbps  
3.          Figure 49  This shows the initial design for the control subsystem done in ultiboard    Page 41    Wi Fi Transceiver Module     This module has taken some time to prepare for testing  It does not have pins that allow it  to be inserted directly into a breadboard so a separate circuit board was required to be designed  and printed  Here 1  the first design that was made in ultiboard        Figure 50            design for the Wi Fi Transceiver     The component has finger pins that need to be soldered to the square pads shown in the PCB  design  After printing the board however  it became apparent that 1t 15 nearly 1mpossible to solder  the pins to the board by hand  Instead  the use of solder paste and the reflow oven was needed to  solder the component to the board  This worked very well and all pins formed a solid connection  with the pads  however  a connection was formed directly between VDD and GND  This  obviously was a major problem  This was probably caused by the traces that ran underneath the  component  This problem was originally ignored because it was thought that the resist left on the  traces would prevent this from happening but the reflow oven burned off all of the resist left on  the board  The board was redesigned so that any of the traces running under the component  would not cause an unwanted connection     Page 42                          MRF24WBOMA  1148M7C       Figure 51  This shows the Wi Fi transceiver component soldered onto the first PCB 
4.      2     Force Repeatability     Part to Part      6X        Typical          Dete oper tube   Specifications are dered from measurements taken at 1000 grams  and are given as one standard  positioning deviation   mean  unless  otherwise noted        Many other           o 1  Max Actuation force can be modified in custom sensors        2  Force Range can be increased      custom sensors  Interlink Electronics have designed and    manufactured sensors with operating force larger than 5OKg        www  interlinkelectronics com    INTERLIN  ELECTROM   FSR 402  Technotoat P N  3081794                  Application Information    FSRs are two wire devices with a resistance that depends on applied force     Contact Us For specific application needs please contact Interlink Electronics support team   An integration guide is also available     For a simple force to voltage conversion  the FSR device is tied to a measuring  resistor in a valtage divider configuration  see Figure 3   The output is described  by the equation          Pt  T             In the shown configuration  the output voltage increases with increasing force         and     are swapped  the output swing will decrease with increasing force     The measuring resistor  R    is chosen to maximize the desired force sensitivity    im range and to limit current  Depending on the impedance requirements of the  ee measuring circuit  the voltage divider could be followed by an op amp         family of force vs  V    curves is
5.      5V    100mA    SV    45mA    3 875 W    For the 3 3V  Pi     3 3V   150        0 50 W    The total power needed for the device to function at its worst case  motors being used at  12V  is 40 38 W  The power supply can give up to 55 W which is more than what is needed     Construction and testing    The construction still needed for the power supply is to solder wires that will go to the  wall outlet and from each voltage output to the subsystems  Each subsystem was tested before  being integrated to the power supply           kuwa Z  L L a             wear    arcum soo           EEX CIEN                     im             TTE  Average voltages fc      each output            Nie as  Figure 42  DC Voltage Outputs from Power Supply       Page 34    The DC voltage outputs from the power supply shown in Figure 42 are very steady as  time elapsed  For the 3 3V  a voltage average of 3 738V was measured  for the 5V  a voltage  average of 5 469 V was measured  and for the 12V  a voltage average of 12 60V was measured   The power supply was tested individually with each subsystem and with several subsystems at  the same time  powering all of them successfully     ower Supply     RFID Rea        Figurer 43  Power Supply with Subsystems    Figure 43 shows the power supply connected to some of the subsystems  the RFID  reader  the LCD screen  the microprocessor  the alarm  and the real time clock when they were  integrated to test their functions  Other subsystems that were integrate
6.    Mark for            Dielectric Withstand W ui to Ground  Basic   1500 VAL           2121        Input to   uput  Reinforced   The primary     test is not performed S000 VAL  on completed assemblies  4242 VIX   ut ta  Ground  Functional   500        Electromagnetic Interference FOG Part 15  Donducied  B Class  CISPRA 22 and CISPR 11  Londucted      Per ENG1000 4 2  level 3   Hicker Per ENG1000 3 3   Hadiated Susceptibil Per ENG1000 4 3  level 3  3 Vm  EFT Burst Per ENG1000 4 4  level 3  1 kV  Ingen Transient Protection Per ENG1000 4 5  3  Line to Line  1 W  Line t0 Ground  2  HF Immunity Per ENS10D0 4 6  level     3 Vm  BLP55 34XX AT 264 VAG  0 72  Environmental Specifications  PARAMETER  COMO ITIOWE DESCRIPTION        NCN        UNITS  Altitude m          1          Non Operati             Operating Temperature OCs 70   wi               Unit will start up at 0 25 70     20  G but will not meet all published spectications   Forced Air Cooling Farced air cooling of 150 LFM at 10 CAM is required for full output power    See Model Selection Table    Gonvection Cooling When unit is mounted honzontally wah free air convection  40 W   See Model Selection Table                 Coeficient      70  m 15 minute warm up         PG         1     s        Shock          hall sine 11  3                15 G  Non operating  Hall sina 11  3ms  3 a 4  Vibration Operating  Random vibration  5 500           minutes each axis   24 Grms      ating  Random vibration  5 500 Hz  10 minutes sach axi
7.   60_  Storage Temperature   40     to  65      Standard Matrix Circuit Diagram    AK 207  OUTPUT ARRANGEMENT    OUTPUT PIN NO  SYMBOL           EE ACTUATING FORCE  1807 39 GRAMS  Page 99  STROKE  2 05 9 5 mm           EDE1144 Keypad Encoder         4 x 4 Matrix Keypad Encoder         EDE1144               RS 232 Output 1   0    2400  1  9600 Baud 2  Connect to  5V 3  Connect to   5V 4   Digital Ground 5   Row 0 Output 6          1 Output 7          2 Output 8          3 Output 9       18 Beeper Output      17 Data Valid Output      16 Oscillator Conection     15 Oscillator Connection   114 Connect to  5    113 Column 3 Input  112 Column 2 Input   111 Column 1 Input   110 Column 0 Input    Functionality  amp  Feature Set       Automatic key repeat after delay     Contact debouncing     Keybeep provides tactile feedback to operator     Hlectrically quiet  reduced EMI  keypad scanning     Serial   Parallel outputs available     Data Valid output signal for interrupt activation     2400 9600 serial Baud rates     Available in 18      DIP or SOIC packages     Interfaces to any microcontroller or microprocessor    Cost effective for OEM applications    The EDE1144 Keypad Encoder IC is designed to interface a matrix type 4 row x 4 column  16 key       less  keypad to a microcontroller or other host processor     one wire serial or four wire  parallel interface returns the keypress data and can be used in conjunction with       data valid     signal for polled interrupt driven appli
8.   ADCONG   Ox1F02    ADCS 3  min TAD for 10MHz is 3 TCY 300ns   ADCON    0    Interrupt upon completion of one sample convert  ADCONI Ibits ADON   1    ADC on       int main void               10     Initialize      ADC  PORTE   0    Set all of PORTE to 0  TRISE   0x0000    make these ports set to output  int result   0    variable used to hold the initial sensor reading after each motor step  int tempResult   0    used to find the difference between result and the most recent sensor  reading    int pillDropped 20       boolean used to terminate the while loop once a pill has been  dropped       Page 80    while pillDropped    0                  1                  I    Start sampling  SAMP 1   while   ADCON 1bits  DONE       Wait for DONE bit in  ADCONI  result   ADCBUFO    Store result  stepMotor      Steps the motor 7 2 degrees  for delay2 0 delay2 lt 1 delay2       enter a for loop that is used to    check the sensor  for delay 0 delay lt 20000 delay       ADCONIbits SAMP   I    Start sampling  SAMP 1   while   ADCON bits  DONE       Wait for DONE bit in ADCONI    tempResult 2 result  ADCBUFO     Find the difference between the  initial result and the most recent reading    if tempResult    0   tempResult   tempResult  1    If the difference is negative  change  the sign  if tempResult    25   hs the difference 1  larger than 25  then a  pill was dropped     pillDropped   1   j  j  j  j    Page 81    while  1       endless loop used to put the processor in a  sleep like st
9.   An average person will be able to program the device in less than 5 min    The device will have a lock to prevent unwanted access to the interior of the device   The device will store 90 pills of each medication    The device will be able to connect to a WEP  WPA and WPA2 secured Wi Fi networks     The device will email the caretaker when the patient s pills are not taken within 30  minutes of the alarm initially sounding        Page 141    Table 2  Technical Specifications    Total Weight    130  0 46  H  x 0 38 x 0 38                                    3 medication  lt 5 min    5 _  Intensity ofthe alarm           80 90       dB _    Leer         discharge 1 week    8  lok        Locked Unlocked          9   Successful dispensing tests      Connected Unconnected   _       Table 3  Needs Metrics Matrix                     ime to program a medication    E Amount of pills    _      fe       intensity of the alarm    otal Weight          Portableandeasytohandle  e   e     27                                      3                               of medication           4    Alerthepatientwhenadosageisready            5      Remainactiveataltims           6     Month ssupplyof medication          7   Internal components of the deviceonlyaccesibletothecaretaker              8  7 Consitentlyprovidemedication           9   Alertthecaretakerifadosagehasnotbeentaken             Device size    T          Time to alert the caretaker  LLLI                              Time for battery to
10.   Mode with Oscillator Running     Optional Industrial Temperature Range    40  C to  85         Available in 8        Plastic DIP or SO    Underwriters Laboratories  UL  Recognized    NS CONFIGURATIONS       50  150 mils  PDIP  300 mils     TOP MARK   051307  05130          051307      SO  150 mils  051307     830  150 mils  Tape and Reel 051307  051307       A   anywhere on the top mark indicates a lead free package  An          anywhere on the top mark indicates an Industrial temperature range    device     Page 126    D51307 64 x 8  Serial        Real Time Clock    ABSOLUTE MAXIMUM RATINGS    Voltage Range      Any Pin Relative to Ground                      PORTE TEN ide            UN _ 0 5V to     0    Operating Temperature Range  Noncondensing   Commercial                                             5          5 TE CNET NUN SN s   0     to  70      Industrial                                                     mS      40  C to  85      storage l emperature Range                                           5     to  125      Soldering Temperature          leads                  260 C for 10 seconds  soldering Temperature  surface mount        U     Refer to the JPC JEDEC J STD  020 Specification     Stresses beyond those listed under  Absolute Maximum Ratings  may cause permanent damage to fhe device  These are stress ratings only   and functional operation of the device at these or any other conditions beyond those indicated in the operational sections of the specificati
11.   Q0  14   3 87mmo       Introduction    Designed in cooperation with Grand Idea Studio  www grandideastudio com   the Parallax Radio  Frequency Identification  RFID  Card Readers provide a low cost solution to read passive RFID  transponder tags up to 4 inches away  The RFID Card Readers can be used in a wide variety of hobbyist  and commercial applications  including access control  user identification  robotics navigation  inventory  tracking  payment systems  car immobilization  and manufacturing automation  The RFID Card Reader is  available in two versions  A TTL level serial interface for use with a microcontroller and a USB interface  far direct connection to a computer     Features      Low cost method for reading passive  125 kHz RFID transponder tags     Two easy to use versions  Serial interface for microcontrollers and USB for direct connection to  PC  Macintosh  or Linux machines       Bi color LED for visual indication of status       Page 109    RFID Compatibility    The Parallax RFID Card Reader works exclusively with the EM Microelectronics EM4100 family of passive  read only transponder tags  Each transponder tag contains a unique  read only identifier  one of 2     or  1 099 511 627 776 possible combinations         variety of different tag types and styles exist with the most popular made available from Parallax   Connections  Serial     The Parallax RFID Card Reader Serial version easily interfaces to any host microcontroller using only four  connections
12.   VCC   ENABLE  SOUT  GND        Pin Name  System power   5V DC input     Serial output to host  TTL level interface  2400 bps  8 data bits  no parity     SOUT ah stop bit    G  System ground  Connect to power supply s ground  GND  terminal           EN ABLE Module enable pin  Active LOW digital input  Bring this pin LOW to  enable the RFID reader and activate the antenna     Note  Type      Input       Output  P   Power  G   Ground    Use the following example circuit for connecting the Parallax RFID Card Reader                               Page 110    Usage       visual indication of the state of the RFID Card Reader is given with the on board LED  When the  module is successfully powered up and is in an idle state  the LED will be GREEN  When the module is in  an active state searching for or communicating with a valid tag  the LED will be RED     The RFID Card Reader Serial version is activated via the  ENABLE pin on the module s 4 pin header   When the RFID Card Reader is powered and  ENABLE is pulled LOW  the module will enter the active  state  When  ENABLE is pulled HIGH or left unconnected  the module will enter the idle state     The RFID Card Reader USB version is activated via the DTR line of the USB Virtual COM port  When the  DTR line is set HIGH  the module will enter the active state  When the DTR line is set LOW  the module  will enter the idle state     The face of the RFID tag should be held parallel to the front or back face of the antenna  where the  maj
13.   been made for this  It receives four signals for controlling the motors  an enable signal from the  demultiplexer   5 V   12 V and GND  The inputs for power  ground  and the motor signals all  have an extra hole so that these can be output from each chip to the next  This will reduce the  amount of wires needed for the motors     Page 46    Enable  TS 2    Motor Inputs                   Motor Outputs  GND  lt  A     GND           Enable    Figure 56  This shows one of the SN754410NE motor driver chips  Each motor will have one of  these chips     Some testing was done to find the relationship between the amount of voltage used to  power the motors and the amount of maximum amount of torque that the motors could supply   To test this  the voltage used to power the motors was ranged from 5 to 12 V  A weight was hung  from the shaft of the motor using string and more weights were added until the motor stopped  turning  The torque was then calculated and recorded  This data can be seen in the graph on the  next page     Page 47    Motor Torque with Varying Voltage    y   0 6506x  0 5949        0 976         iili   E      o                           8 9  Voltage  V        Figure 57  This shows the graphical representation of torque vs  voltage for the motors    Before doing this experiment the amount of voltage being used to power the motors was 5 V and  there was very rarely a problem with the motor not having enough torque  Now that 12 V 15  going to be used  the amount of tor
14.   input inputCount   1     40    inputCount   inputCount   1      f this checks to see if the enter button was pressed   this functionality will be different  ffin the final design but for now it just clears the  screen and prints the entered character    back out to the screen to make sure that it was  saved correctly  else 17            7      int 1   clearLCD     printString input  inputCount    for i 0  i  lt  inputCount  i     I  input         40       inputCount   0        this is if any of the other keys were pressed  it  just prints out the appropriate character  else  I  printCharacter keys repeat  num     char           21   temp 0    keys  repeat   num    temp 1     40    strcat  input  temp    inputCount   inputCount   1        lastPressed   num   IFSO0bits INIOIF   0    Clear the INTO interrupt flag       else  dithe CPU will keep vectoring  back to the              Page 107    Appendix     RFID Reader    Page 108    Web Site  www  parallax com Office   815  524 3333   4 4      z Forums  forums parallax com Fax   818  624 8003    r1 Sales  sales parallax com Sales   888  512 1024    Technical  supportigiparallax com Tech Support   838  907 8287       RFID Card Reader  Serial   28140   RFID Card Reader  USB   28340             245  62 2mm  2 457  62 2             l 2 48   545mm              2458  B45mm          34                       L  E     i     ur          Cd    m        m   zi     m                            m                                  0 147  3  6mm
15.  7        ac     I p p                 I rms         010 010        I dc   88 7 nA  Freq      Figure 44  Batteries    Schematic    Figure 44 shows the battery schematic in Multisim  Figure 45 shows the batteries    circuit  schematic with the components and the output for each regulator  5V and 3 3V  They both show  a steady signal through time     Page 36      NATIONAL  INSTRUMENTS       Figure 45  Batteries Circuit Output Voltages    Again  power calculations were recalculated for the battery powered components  The  components are taken into account to operate at their maximum     nine pills for seven days for  three times a day  The components that most need power during this time are           e Alarm   3beeps  200ms      0 6       30min    36 s 250mA         150 m    min  e Sensor  1min    8074   60         min     Motors 300mA      10motors   2700        min  1 motor  e RFID  100mA    1min   1007124   min    E Alarm   Sensors   Motors   RFID   LAr           3330        min            60min 1000m      0 05554 h       3 times  0 05554   hr   7days                   1 166A  h                 Page 37    Battery Indicator  Initial Design    The initial design for the battery indicator was to have the microprocessor read the  voltages of the batteries and indicate 1f the batteries were low  Since the batteries will only be    used in case of a power outage  the batteries could be drained by just checking if there 15 enough  voltage without being used     New Design    The ba
16.  MRF24WBOMA MRF24WBOMB       1 0 DEVICES OVERVIEW           MRF24 WBUMA and MRF24W60MB are low power   2 4 GHz  IEEE Std  502 11 compliant  surface mount  modules with all associated RF components     crystal  oscillator  bypass and bias passives with integrated  MAC  baseband  RF and power amplifier  and built in  hardware support for AES  and TKIP  WEP  WPA            secunty   The integrated module design frees the  designer fram RF and antenna design tasks and  regulatory compliance testing  ultimately providing  quicker time to market    The MRF24VVBOMA module is approved for use with the  integrated PCB meander antenna     The MRF24WBDMB comes with an ultra miniature  coaxial connector  U FL  and is approved for use with  a list of pre certified antennas  See Section 2 8   External Antenna  for specific recommendations     The MRF24WB  MA MRF24VV BOMB modules         designed to be used with Microchips TCP IP software  stack  The software stack has an integrated driver that  implements the API that is used in the modules for  command and control  and for management and data  packet traffic     The Microchip TCP IP software stack is available in the         Microchip Applicaton Libraries download   including example applications and source code  from  the Microchip web site  htip  wvww microchip com   wireless    The combination of the module and a PIC running the  TCP IP stack results in support for IEEE Standard    002 11 and IP services  This allows  the immediate  im
17.  PORTE to 0  IRISD                   make these ports set to output    INIx IO Init     initLCD       while  1      ffinfinite loop to make the processor stay idle while  Waiting for interrupts         return 0              Function   INTx IO Init    sets up the INTO pin   y  void INIx IO Init  void   I  INTCON2   0  0001    5etup INT1  INT2  INT3  amp  INT4  pina      interupt     f on falling edge and set up INTO  pin to interupt     f on rising edge     INTCON1   0  0000     IFSO0bita INTOIF   0    Reaet INTO interrupt flag     TECObits INTOIE   1    Enable INTO interrupt                  _INTOInterrupt   is the INTO interrupt service routine  158    Ihe routine must have global scope in order to be an ISE   Ihe        name is chosen from the device linker script     zr 7  void _ attribute    interrupt     INIOInterrupt  void   I   short int a               1       00    short int b   PORIDbits RDl    short int c   PORIDbits RD 2     short int d   PFORIDbits RD3       this finds the decimal number of the key pushed  int num       6         4       2   d              106      this determines if the most recent key press matches  the previous one   if num    lastPressed       repeat   repeat   1    if keys repeat  num       0         repeat   0     else                            elae     repeat   0        fithis is for backspace  it goes back and erases the  character in the process  if  num    3      inputCount    0       goBack      printCharacter   7                     
18.  Program    29   o   245 _                       so    7    ss   7     Wi Fi Setup Program    Program User Interface     124   o   us M      o   ze _                                      s                 M monere    Sis   _   14      Wi Fi Testing      uo   o   v      sz                          System Testing      320   9   43      Spring Pert Chart    Legend  52 m C      Alarm Testing      Mechanical Construction  1 9 30 s               o   ens  X Electrical Construction     a 131   o      s         Stat    Sik   Finish        g3    w    Product Readiness  Reiview      4n2        426 _    Page 65    After looking at the scheduling made from last semester some revisions needed to be  made  Our group has for the most part stayed on schedule and completed task on time  but it  became apparent that some of the tasks needed some iteration before being finalize  For example   the bin and auger casing construction has not been completed because the design for this needs  to be slightly adjusted to make sure that our group will meet all of the requirements  Once the  design 15 completely finished  then it will be a simple matter of printing it out repeatedly on the  3D printer  This has also caused the slide construction to be pushed back slightly because its  dimensions relies on the bin design  The power supply and back up battery circuits have all been  printed and some have been integrated to make sure that they will meet the device s power  requirements       of the programmi
19.  Quartz Crystal  The internal oscillator circuitry is  designed for operation with a crystal having a specified load capacitance        of 12 5pF   X1 is the input to the oscillator and can optionally be connected to an external 32   68kHz    oscillator  The output of the internal oscillator  X2  is floated if an external oscillator is  connected to X1            Note  For more information on crystal selection and crystal layout considerations  refer to  Application Note 58  Crystal Considerations with Dallas Real Time Clocks     Backup Supply Input for Any Standard 3V Lithium Cell or Other Energy Source  Battery  voltage must be held between the minimum and maximum limits        proper operation   Diodes in series between the battery and the Vegart pin may prevent proper operation  If a  backup supply is not required           must be grounded  The nominal power fail trip point   Ver  voltage at which access to the RTC and user RAM is denied is set by the internal  circuitry as 1 25 x Vaat nominal     lithium battery with 48mAh or greater will back up the  051307 for more than 10 years in the absence of power at  25         UL recognized to ensure against reverse charging current when used with a lithium   e Go to  www maxim ic com qa info ul      Serial Data Input Output  SDA is the data input output for the      serial interface  The  SDA pin is open drain and requires an external pullup resistor  The pullup voltage can be  up to 5 5V regardless of the voltage on          
20.  Serial Clock Input  SCL is the clock input for the      interface and is used to synchronize  data movement on the serial interface  The pullup voltage can be up to 5 5V regardless of  the voltage on Ver     Square Wave Output Driver  When enabled  the SQWE bit set to 1  the SQW OUT         outputs one of four square wave frequencies  1Hz  4kHz  8kHz  32kHz   The SQW OUT  SQW OUT   pin is open drain and requires an external pullup resistor  SQW OUT operates with either        Vec      Vear applied  The pullup voltage can be up to 5 5V regardless of the voltage on    Voc  If not used  this pin can be left floating     Primary Power Supply  When voltage is applied within normal limits  the device is fully  accessible and data        be written and read  When a backup supply is connected to the  device and Ver is below       read and writes are inhibited  However  the timekeeping  function continues unaffected by the lower input voltage     DETAILED DESCRIPTION   The 051307 is a low power clock calendar with 56 bytes of battery backed SRAM  The clock calendar provides  seconds  minutes  hours  day  date  month  and year information  The date at the end of the month is automatically  adjusted for months with fewer than 31 days  including corrections for leap year  The 051307 operates as a slave  device on the      bus  Access is obtained by implementing a START condition and providing a device identification  code followed by a register address  Subsequent registers can be acces
21.  caretaker will organize pills into the  device and then set it up to dispense a certain amount of pills at specified times  The customer  needs shown below give a very general overview of the requirements that will be defined in  more detail in the technical specifications section     e      device needs to consistently dispense the amount of pills entered by the caretaker at  the time entered by the caretaker  It needs to be completely reliable to ensure the safety of  the patient       The device needs to service a large variety of pills  If there are many types of pills that  are not serviceable by the device  then the device will not appeal to a large percentage of  its target market               device needs to be light enough for an average person to carry easily   The device needs to be portable and easy to handle  It needs to fit comfortably on an  average kitchen counter top  which has 0 46 m  18 in  of space between the counter top  and upper cabinets  4      e        device needs to remain active at all times  Since the device will serve a critical  application  the device needs to remain in operation in the event of a power failure     e The device needs to alert the patient when a dosage is ready  It needs to use an alarm  instead of more technically advanced methods due to the inferior technical knowledge of  the patient       The device needs to be easy for the average person to set up  This means that it needs to  be easy for the average person to insert pil
22.  discharge          Page 142    Deliverables    e Pills dispenser device      Systems capability specifications   e Detailed schematic and final report on device functionality    User manual       Parts manual and corresponding budget    Testing Plan      The general testing procedure for the efficacy of the dispensing mechanism of the device  will be carried out as follows     e Pills will be inserted into the device  For the purpose of this test  we will not limit  ourselves to actual pills  we will allow for other forms of solid  orally ingested  tablets and capsules such as mints or candies       The device will be programmed to dispense the pills at a set time  The pills will  then have to be dispensed within five minutes of the set times    e           success criterion described in the following paragraph will be determined       visual observation by one of the team members     The success of the test is dependent on two factors  First the operation will be counted  as being on time if the pills are dispensed within five minutes of the programmed time   Second  the operation must result 1n the amount and type of pills being dispensed as  programmed by the caretaker  If both of these requirements are successfully met  then the  result of the test 1s successful  Otherwise  the test 1s not successful     40 tests will be performed which will fall into one of four categories  Each category  tests pills that fall within a certain range of masses  The categories are  10 mg 
23.  of the bin       future models will  be designed to sit lower in the device     Page 19       Figure 26  Pills successfully dispensed by the device        Figure 27  Successful mating of the gears     A few more additional design changes were made after the completion of the second pill  storage and dispensing mechanism  First more measures were taken to alleviate the problem of  pill bridging that was discussed earlier  These changes are displayed in Figure 28     Page 20             Connection Angle          Change From  Angled to Vertical       3ack of Casing       Figure 28  New Measures to Prevent Bridging    The connection angle was increased again to 809  The main problem with increasing this  connection angle in previous designs is that it would result in increasing the size of the back of  the casing  Increasing the size of the back of the casing would result in pills resting on the back  of the casing  This problem is shown in Figure 29  This problem can be solved by lowering the  point where the back of the casing changes being from angled to vertical     Pills had the potential to rest  on the back of the casing        Figure 29  The flaw in previous connection designs       Page 21       new auger casing mechanism was designed to alleviate the bridging problem discussed  previously  This design is shown in Figure 30  This design works by greatly decreasing       distance between the minor and major diameters  This means that none of the pills will try to  rotate
24.  pills on the far right in the photograph  These pills bridged in the device across  the slope that connects the pill storage bin to the auger casing mechanism  This slope 1  labeled  in Figure 11  A photograph of the bridging effect is shown in Figure 12  This bridging only  occurred once and was addressed with design changes described later in the report        Figure 10  Pills successfully dispensed by the device    Page 11       Figure 11  Slope between the bin and the casing         Pills Rest on  Connection Walls    Figure 12  Picture of the Pill Bridging       Page 12    There was one type of pill that was not successfully dispensed by the device  This pill 1   shown in Figure 13  This pill type caused the device to jam  This pill type is unique because it 1s  a disc with a diameter smaller than the disc shaped pill that was successfully dispensed by the  device  The dynamics are slightly different for disc shaped pills than for capsular pills because in  capsular pills the small dimension 1  biaxial while in the disc shaped pills the small dimension 1   uniaxial  There are some design changes to the auger that are intended to alleviate the problem  that these disc shaped pills encountered  These changes are described later in this section of the  report        Figure 13  Pill unsuccessfully dispensed by the device     Even though this prototype ran successfully  the mate between the auger gear and the  motor gear was not sufficiently accurate  The motor shaft and auge
25.  shown on the graph below for    standard FSR                a voltage divider configuration with various     resistors      V   of  51 was  Korea Sales       Phone   82 10 used for these examples    Figure 3       F wa  V for Part       402    L1                                                www interlinkelectronics com    page    INTERLI                     2 FSR 402      P N  3081794         Mechanical Data               REAR                     CONDUCTOR                   R amp  354 0 25   SPACER             S             ACTIVE AREA        FSR LAYER               y        9 14  0 25   M            38 10 0 25    RL27 0 25     154 0 25       0 00            PRINTED DIELECTRIC      2n     ni   ni   JL   r     Interlink Electronics   Sensor Technologies    www  interlinkelectronics com    Page 122    Appendix H  Motor    Page 123       Motor No   417 11 48 02    FULL STEP ANGLE   MOTOR FRAME SIZE   BODY LENGIH   RATED CLRRENT PHASE   RESISTANCE PHASE   INDUCTANCE PH   ROTOR INERTIA   BEARING TYPE   NOMINAL HOLDING TORQUE 2 PHASE       210    AMBIENT OPERATING TEMPERATURE  AMBIENT OPERATING HUMIDITY non condensing     LEAD WIRES  DIELECTRIC STRENGTH    LEAD WIRE CONNECTION  A RED        WHIIE  C BLUE  B GREEN  B D YELLOW  D BLACK    0 9     NEMA Size 17  1 1  Maximum  0 3Amps  48 10  10   16 46mH 20   0 0707    2               10 78 oz in   20   C to 50   C  6599           6   24 AWG PVC    500                 124    Appendix I  Real Time Clock    Page 125       MM AKIMA    
26.  soldered onto a PCB with a header for each pin  Programming has been done using ICSP   In Circuit Serial Programming  using the MP Lab equipment                 a  TI           x           9 9       3444444444          wu                                            7  1111121324  PROS AREEN   1111111 522222555555       L                           lulu                         u wait uu                                 w                   S                                                                     Ph in                                 Snes eee                 1               TRR    1                         x   kR         64 Pin Socket                                                         eee eee eee ee    s           23555555525                3555355555 s                         a 5                     k     w a                       Figure 47  This shows the socket with the breadboard and a few components  connected     Page 39    Currently all of      programming done has been for each component individually          keypad has been programmed to output to the LCD as required  A program has also been written  to receive data from the RFID reader using the UART module built into the processor  Once a  card 1s scanned the processor outputs a confirmation message to the LCD screen  A program has  been written for the most recent prototype that will turn a single motor and poll the A D reading  from the sensor until a pill drop 15 detected  The motor controller circu
27.  that had the problems with the unwanted connections    The PCB design for the transceiver was adjusted so that there were no unwanted connections due  to traces running under the component  The traces were also increased in size to make sure that  all of the connections were good        Figure 52  This shows the second design for the Wi Fi transceiver circuit       Page 43     dE   IE          E  E                      E  E  s     E       Figure 53  This shows the Wi Fi transceiver component soldered onto the new PCB    This time all of the connections were correctly made and the rest of the components were  soldered into place  At this point there still has not been any programming done for this  component  Unfortunately  none of the groups in the past have used this component before  so  there 15 no documentation from past students for this component  The TCP IP libraries have been  downloaded and installed  Unfortunately this 1s a very large file with many header and c files   Also  all of the demos included with this library are intended to be used with one of Microchip s  pre built development boards       of this code will have to be sorted through to get the  functionality required for the device  and a hardware profile needs to be created that matches the  processor being used instead of what 1s used with the pre built development boards     Real Time Clock     The code necessary for programming a time and retrieving the time from the real time  clock has been comple
28.  the  top     We will connect the device to a WEP  WPA and WPA2 secured Wi Fi network five  times each  If the device successfully connects to the Wi Fi network five times  consecutively for each type  it has passed this requirement     To determine if the device successfully emails the address given by the caretaker when pills are    not taken  we will purposefully allow the alarm time to run out 10 times after dispensing pills  If    an email 1s sent for all 10 tests consecutively  this requirement has been met  For normal    operation  the time that the device would wait before sending an email will be 30 minutes     however  for the purpose of this test that time will be reduced to 1 minute        Page 144    
29.  upon each Keypress  The  following sequence is initiated upon each keypress  and is repeated if the key is held     Keypress is detected   One scan cycle is performed   Parallel Outputs  D3  D0  are latched with the appropriate value  Data Valid signal is activated  pulled low    Beeper  TAA  square wave  is activated for 45m5   Serial          is transmitted              This entire cycle takes 50m5  regardless of Baud rate selected   If a key is held longer than the  autorepeat delay of 660 m5  the cycle is repeated again at a rate of 5 times per second  The  following timing diagram illustrates the above sequence     mi                      l   me     I  m                Keynress       Once a key is pressed  any additional closures  bounce  of that contact  or of        other contacts  are ignored for 5015  during which several signals are output by the EDE1144  First  the parallel  outputs 00  03  Pins 6 9  are latched with the appropriate keypress value  One microsecond  later  the Data Valid Output  Pin 17  goes low  indicating that there is valid data on the parallel  output pins  Following this  the Beeper Output  Pin 18  pulse stream is generated for 45m5   providing auditory confirmation to the keypad operator that a        has been pressed  Finally  the  RS 232 Output  Pin 1  transmits the Keypress data at the Baud rate selected by the Baud rate input  select  Pin 2   After this  a variable  determined by Baud rate chosen  delay period is waited to  make the entir
30.  with the auger  Instead  they will ride on top of the auger shaft  This 1s the phenomenon    that caused the larger disc shaped pills to be successfully dispensed by the first prototype and 1   shown in Figure 31                 Minor Diameter       Figure 30  Auger design to prevent jamming in disc shaped pills        Figure 31  Pills riding on top of the auger shaft     This design will be tested to see if 1t works with capsular pills  If    does  then all of the  smaller pill storage and dispensing mechanisms will switch to this design  If not  then three    different types of pill storage and dispensing mechanisms will need to implemented in the final  build     Page 22    Device Housing    Due to the difficulty with cutting straight edges on bulky pieces of Plexiglas with a band  saw  it was deemed necessary to have the Plexiglas cut by a glass cutting company  It only cost  ten dollars to cut the six panels that make up the device housing  Holes were drilled in each of  the six panels using a mill as a drill press so that metal bracings and bolts could be used to fasten  the panels as illustrated 1n Figure 31  The bracings were strategically placed so that they would  not interfere with the placement of the dispensing mechanisms  while maintaining their function  of adding structural strength        Figure 31  Isometric Image of Device and Dimensions     The designed placement of the LCD screen and keypad were changed to the front of the  device housing because it was 
31. 051307       64 x 8  Serial       Real Time Clock    GENERAL DESCRIP TION   The 051307 serial real time clock  RTC  is a low   power         binary coded decimal  BCD  clock calendar  plus 56 bytes of NV SRAM  Address and data are  transferred serially through an     C  bidirectional bus   The clock calendar provides seconds  minutes  hours   day  date  month  and year information  The end o    the month date is automatically adjusted for months  with fewer than 31 days  including corrections for leap  year  The clock operates in either the 24 hour or 12   hour format with AM PM indicator  The 051307 has a  built in power sense circuit that detects power failures  and automatically switches to the backup supply   Timekeeping operation continues while the part  operates from the backup supply     TYPICAL OPERATING CIRCUIT             ORDERING INFORMATION  TEMP RANGE  051307  0  C to  70     051307     40  C to  65  C    0513077  0  C to  70      D313077N   40     to  55      0513077   8   0  C to  70  C  D31307 N T amp R  40     to  55            Denoies a leaddree haHS compliant package     FERES  Real Time Clock  RTC  Counts Seconds   Minutes  Hours  Date of the Month  Month  Day of  the week  and Year with Leap Y ear  Compensation Valid Up to 2100     4546 Byte  Battery Backed  General Purpose RAM  with Unlimited Writes       Serial Interface  Programmable Square Wave Output Signal  Automatic Power Fail Detect and Switch Circuitry  Consumes Less than 500nA in Battery Backup
32. 5 00  x 1 23   76 2mm x 127 0mm x 31 2mm  Weight  0 51 Ib  0 23 kg     Mechanical Drawing           Triple Output Models  um  i         ETET Gao         Met an      e                                oc            ma  a C    CONMECTCR  iraz  TARLE          PIN dt  BATE ng nee EMEN                            BAF ET  GROUMD cbe                  AREA    CONMECTIDN MINT    U F                   aad             LS   apne ees                END VIEW i  l                   NOTE  This ls      cutine drawing only  The detalled locaton af components Is mot shown     NUCLEAR AMD MEDICAL APPLICATIONS                     products are mot designed  Intended for use In  or             for use as critical    components  In life support systems  equipment used In hazardous environments  or nuciear control systems without the express written consent of the respective  dhisional president of Power One  Inc     TECHNICAL REVISIONS   The appearance of products  including safety agency certifications pict  date manufactured  Specifications are subject to change Wout notice        red on labels  may change depending on the       Page 136    Requirements  Specification              8    Page 137    Overview    The number of people over 65 1s increasing due to the aging of the Baby Boomers  the  generation of people born after World War Two  One of the greatest demands of this generation  is medicine  People over the age of 65 buy 30 percent of all prescription drugs and 40 percent of  all over the cou
33. 7   a DAL   S     CER 0 ET                                JAMO    BREADBOA D    Encoder       Figure 66  This shows the keypad connected to the encoder  The wires going to the left  connect to the processor        Page 55    RFID Reader     The reader has been put into a breadboard and connected to the processor  It sends data  serially through its one output line at 2400 bps  8 bits  1 stop bit and no parity  Using the  processors built in UART  Universal Asynchronous Receiver and Transmitter   I was able to  complete the code required to generate an interrupt when a card 1  read and data 15 sent to the  processor  Currently it does not check the data to make sure that what was sent matches the card  ID  but this will hopefully be resolved soon  As of now  when a card is read  the processor prints  out a confirmation message to the LCD screen and disables the reader  The reader s features and  the written code that goes with it can be seen in Appendix             Wid  Paraj  as                 hth                Figure 67  This shows the RFID Reader and one of the RFID chips that came with it     Page 56    GUI     The following pages contain screen shots of the initial user interface that will be used by  the caretaker to set up the device  They will first log in with a username and password  Then they  will be able to change medication information  the time in the real time clock and add or remove  emails to be notified when something goes wrong     Firefox       Harding U
34. Diagram    OSC1 OSC2           Instruction 7       register  IR                                                Instruction CRM to  RS     decoder    RAW       face  SEG1       SEG40  DB4 to u  DET  DBO to  eutput  7  083  Character  generator generator  RAM ROM                CGROM   GND 64 bytes 9 920 bits          r5   UT    Parallal serial converter  and  attribute circuit  A                      1 V2 V3 V4 V5       Page 95    HD44780U    Pin Functions    No  of  Signal Lines  RS 1  RAV 1  E    DB4 to DB  i           to DB3 4    CL1 1  CL  1     1  D 1             to COM16 16             to SEG40 40  V1 to V5 5  V    GND 2    OSC1  OSC2 2                            Device  Interfaced with    MPU    MPU    MPU  MPU    MPU    Extension driver    Extension driver    Extension driver    Extension driver    LCD    LCD  Power supply    Power supply    Oscillation  resistor clock    Function    selects registers    0  Instruction register  for write  Busy flag   address counter  for read    1  Data register  for write and read    Selects read or write    0  Write   1  Read    Starts data read write     Four high order bidirectional tristate data bus  pins  Used for data transfer and receive between  the MPU and the HD44780U  DB  can be used    as a busy flag   Four low order bidirectional tristate data bus pins   Used for data transfer and receive between the    MPU and the HD44780U   These pins are not used during 4 bit operation     Clock to latch senal data D sent to the exten
35. HARDING UNIVERSITY       Final Design Review    Andrew Combs  Emilia Faraj  Ethan Lilly  Jeff Wood    March 2  2012            Page 1    Table of Contents    Project Overview and SEAL US        S 9 n          4       Storage and Dispensing Mechantism                                                    5  Davie HOUSE u u        mcm 22  POWT iU ojo  TET               E 33  Gre guide y IE T 39                    53   lo  Pili                     62  Organization and Managemetnt                                                                                                                63                       201              64         Ol 5          4  17    1      u             65                                                             66  Duo LM                                                  S          67  jJ lO    RR                                      71   pp hj OB                  E E 73                                                           74  Wislii rlia  sceoiver Mo l  le        ll      deua en Ml pet          83                        92                                                                   98    ROC ES ecards                                       108                                            s             115                                         118                                      o                      HE 123  Real ve                        125            QUNM      130            55606             uyu u uuu EE ks                      
36. P   Power input      Input  O   Output  NC   Do Not Connect              WE MK  NE                                          m NN            O               ovo  EK NN  S 19 _                             S 3                  Note 1  Signals of           I  Constant must either      constantly driven by the host or have a pull up or pull down  in  case the host is likely to tri state the signal during power down modes   The constant drive is used to  ensure defined operation of the part and to minimize leakage current during low power modes    2  WP is used as write protect for the intemal module        Flash  For production use  this pin should be  pulled low  This pin can be controlled by the host microcontroller to enable in field Flash updates        Page 87    MRF24WBOMA MRF24WBOMB       2 0 CIRCUIT DESCRIPTION           MRF24WBOMA MRF24WBOMB interfaces to  Microchip PIC18  PIC24  dsPIC33  and PIC32  microprocessors wih a minimal of external  components through digital only connections  This  section details use of the module  starting with an  example host connection as shown in Figure 2 1     2 1 Schematic    FIGURE 2 1  MRF24WBOMA MRF24WBO  MB EXAMPLE APPLICATION SCHEMATIC    Tn JTAG  Interfnre                 tz  JTA  G                   yoten                  Cantrolle                                      Ta Host       HrEeracentrzetigr           JTAG EM  7  HIBERNATE      GHD       2 2 Power On Sequence    The internal regulators for the digital and analog core  powe
37. PORTE   0  000         Send the command  PORTF   0  0004     lcdDelay                  0  0000   lcdDelav       f  clearLCD        void goBack                   S5Set the command to turn on all 4 lines    PORTE   0  0010   PORTF   0  0000       5       the command                 0  0004   lcdDelav                   0  0000     ledDelay          f this function is used to convert a given character    and print it to the LCD  void printCharacter  char character               int converted character   character            the command to print the character  PORTE   converted character                 0  0001        5Send the command               0  0005     lcdDelav                   0  0001     ledDelay         void printString char message    int length               int index   for index D  index  length  index      printCharacter  message index             void printInteger  int input              EOF        int firstI    input     10    48   input   input 10    int secondI    input   10    48   input   input 10    int thirdl    input     10    48   input   input 10    int fourthI    input   10    48     char first   firsti   char second   secondi   char third   thirdI   char fourth   fourthI     printCharacter  fourth     printCharacter  third    printCharacter  second     printCharacter  first      Appendix D  Keypad    Page 98    General Specification   Contact ratme 20mA 24VDC  Contact resistance 200 ohm max  Life 1 000 000 cvcles per kev  Operating Temperature   20 to
38. STICS  NOMINAL CONDITIONS  25C   Vpp   3 3V               Vis  Input high voltage                                 vor Output iow vote             3834   V           Output nion vone       24             V           Output low level current at oa                       m          Output high level current at VOHMin       154                 TABLE 4 2  ABSOLUTE MAXIMUM RATING sU     Parameters                Nm     Storage Temperature                     4 2V for 0 5mSec   VOD above this level and duration will disable Radio    Note 1  Listed Absolute Maximum Ratings are not meant for functional operation  Operation at these levels is not  guaranteed  and may reduce the operating life of the component        TABLE 4 3  RECOMMENDED OPERATING CONDITIONS               wm      Ambient Temperature Feet Tepe as Degrees Celsius x  VoD     for FCC and IC          33   3639   volts    Note 1  While 3 63  is the maximum operating voltage  ihe module will detect an TOTIS ETT condition at 4 2         disable the RF Transmit function after 0 5 ms  This is an RF certification requirement pertaining to disabling  transmission in unforeseen overvoltage conditions        2  Ambient temperature for industrial part number is minimum  40C to maximum  85C Contact Microchip  Sales for industrial temperature parts     Page 90    MRF24WBOMA MRF24WBOMB       TABLE 4 4  CURRENT CONSUMPTION    NOMINAL CONDITIONS  25C           3 3V     C        fy NN  po Hibemate 33V             91 _   0  Se tare iis     
39. all of PORTE to 0  IRISB   0  0000    make these ports set to output   PORIFbits RF5   1    aet the enable pin on the   RFID reader to HIGH   IRISF   0  0000     at all of PORIF to output   initLCD      initUART        initRFID      while 1    I      wait for input         return 0          dithis interrupt is triggered once it begins to recieve data from  the RFID reader    It currently doesn t do anything with the data to make sure  that the data received    matches the ID of a card  but this will hopefully be fixed in  the near future  void attribute    interrupt    U2RXInterrupt  void       printString     card was detected   19      IEClbita U2RXIE   0     disable the interrupt   U2MODEbits UARTEN   0    disable the UART Module   PORTFbits RF5   1    set the enable pin on the  RFID reader to HIGH    IFSlbits U2RXIF   0           the interrupt flag to low    Page 114    Appendix F    Alarm    Page 115       Part Number    555      For       60601 1 8 Medical Applications                                                              MAUORY       T         555        ott                     5      199125   _ Wie Pin       m        d KEY FEATURES        Designed to Meet        60601 1 8      NE E     975 Hz Fundamental Frequency           4Harmonic Peaks within  15 dB  1  L      to 4 kHz         4           S8dB   10cm Typical     2B  amm    Three priority sounds  low  medium       512133  amp  high   Specifications   Voltage Range  5 0  0 5 Vdc  Low Priority Signal 2 Beeps t
40. as  Sheet   72  x36   Lowes    Zinc Corner  Brace  4  braces in  each  screws  included  Lowes    Lock  Hinges    Nuts Lowes  Components  PCB www expresspcb com    2 Batteries  Walgreens    Alarm www digikey com    3 3 V  Regulator www digikey com       15     Regulator www digikey com    Transformer  Encoder www jameco com  Power    Ne    SN754410NE  Ics www jameco com  Crystal  4  mHz www jameco com    74HC154 IC    Computer    Wi Fi  Module www iicrochip com    LCD Screen  Keypad    Budget    Cost Unit    8                  54 98    2 67  4 27  2 21    65 00    9 49  11 84    5  2  1 87  19 99    5     41 00    95  58  14  19  1 95  29    0    23 74  12 90  2 90    Units          1       Shipping  Cost    1 51  2 80  3 11        Taxes    m  m          Total  Cost         60 98    5 58    65 00    10 25    6 70  20 05    22 61    0 59              Date  Estimated    12 1    10 8    10 8  12 6  12 6    12 6    10 3    12 6  10 3    12 1    12 5  10 3    1 18    1 27    1 28    1 28  1 28    10 8  10 8  10 8       Page 68    Reader Chips www parallax com  Schmart  4   Total     00                         0 00    15 89 1 29    O              aru            1030 00       0 00        MEM            NN  VEN    Page 69    Budget 2    Cost Unit Shipping Total Date  Item Vendor     Units Cost Taxes Cost       Estimated          D a  Components  8 95   0 00   0 00   8950   121                   am   ss   72 x36   Lowes 54 08 4 30 59 37 10 8  1 30                28   s   om          s
41. atch Dog Timer        Enable MCLR reset pin and       Global Variables and Functions      void INTx IO Init void     void attribute     interrupt    INIOInterrupt void       Declare external interrupt ISEs     void initIlIimer          this two dimensional array will allow me to traverse through  the characters when a button is    pushed several times in a row  char           10   12     I  1    7    4          3    9                                E a  0                                    ji                          MU   ET  3  T  1   1 3        h    10          xt  n             0                  0                         0     ET   Y    ey   10    Cs        ET     X0                      G   AU          TET        X0     S         J     0       s          H            ET        N    AU            E                            Q    I    A0                       10                 L    AD  1           En                   AD    t            AD     v      AD            0 1    UT pi im         xD              E a             0     AD    AD      0     0       N       0    x    10            vD    ADU            v      x      AU s  X0  117    int buffer   0    int repeat   D    int inputCount   0   int lastPressed    1   char input 33               Page 105    int main      I  PORTE   0    5et all of PORTE to 0  IRISE   0  0000    make these ports set to output  PORIB   0               all of PORTE to 0  IRISB   0  0000     make these ports set to output  PORID   0    5et all of
42. ate    return 0     Page 82    Appendix       Wi Fi Transceiver Module    Page 83    MICROCHIP MRF24WBOMA MRF24WBOMB       MRF24W BOMA MRF24W BOMB Data Sheet  2 4 GHz IEEE Std  802 11b          Features     IEEE Std  802 11 compliant RF Transceiver  Senalized unique MAC address   Data Rate  1 and 2 Mbps   IEEE Std  802 11b g n compatible   Small size  21mm x 31mm 36 pin Surface Mount  Module   Integrated PCB antenna  MRF24WBOMA   External antenna option  MRF24WBOMB  with  ultra miniature coaxial  U FL  connector   Range  up to 400m  1300 ft     Easy integration into final product     accelerates  product development  provides quicker time to  market   Radio regulation certification for United States   FCC   Canada  IC   Europe  ETSI  and Japan   ARIE    Wi Fi  certified  WFA ID  WFA7150    Designed for use with Microchip microcontroller  families  PIC18  PIC24  dsPIC 33  and PIC32  with  downloadable Microchip TCP IP Stack    Operational       Single operating voltage  2 7Vv   3 6V  3 3V typical     Temperature Range   20 C to  557 C extended  commercial    Simple  four wire SPI interface with interrupt    Low current consumption     RA mode     85 mA  typical     TX mode     154 mA   10 dBm typical     Sleep     250 pA  typical     Hibernate      lt 0 1 uA  typical     RF Analog Features      ISM Band 2 400   2 484 GHz operation     14 Channels selectable individually or domain   restricted   0555 Modulation   Data Rate     1000 kbps    91         Typical sensitivity at 1 Mb
43. atts    NS Changing      Shane of Power       Input Specifications       Hz  Inrush Surge Currant Intarnaly limited  Vin 115 VAC  Max Power  25 C  18 Are  Intarnaly limited  Vin   230        Max Power  25  C  36 Hex                   PARAMETER EDHDITIDHE DESCRIPTION        HOM        UNITE  Output Power With convection cooling   3300 25 WI         Model Selection Table 40 Watts  With forced air cooling   3300 41 W   Sea Model Salaction Table 55   Output DC Adjustzbility  lity of Val  Va2fVal are nat adjustable      5    1086 Of Nam             s    Load Transient Vol  Vo2            deviation dua to    50 to 100  load change  3 L   ala rale of 1 us    Turn On Time from AG      Time required for output voltage to reach within regulation after initial application 15 Sac  of AC input   Turn On Delay Time required for output voltage to mse irom 1096 to 0096  20 ms     Time M 40 W  115 VAG     ms  Remote Sense Total compensation for cable losses on         500 mv     Remote Sense rs        available Tor Vn  or Vo3        IX 135 162 m          7E 324  48V  528 554    Short Circuit Protection Fully protected against output short circuit     Page 132    BLP55 AC DC Series Data Sheet    A 55 Watts  power on                        Frrr       Changing      Shape af Power    Safety  Regulatory  and EMI Specifications                                  PARAMETER CONDITIONS DEBCRIFTION             MAX UNITS  Agency Aporova      95              22 2      60950 1 03   E E35 0 1 EC 60952 1     
44. be to shrink  the dimensions of the pill storage bin or increase the diameter of the casing  Since these values    are already locked by other design considerations  the problem must be solved by increasing the  slope of the connection    Connection Slope  Angle    1        Figure 24  Illustration of the connection between the casing and the bin        Page 18    A pill storage and dispensing mechanism intended for larger pills that implemented these  design changes was 3d printed and connected to the device housing  A picture of this mechanism  is shown in Figure 25        Figure 25  Pill storage and dispensing mechanism connected to the device housing     This device performed successfully with both of the pills shown in Figure 26  The device  dispensed both of these pills one at a time in all tests with no instances of jamming  This device  is also successful in achieving an improved mate between the auger gear and motor gear  The  device ran much more smoothly and quietly than the previous prototype  This is due to the fact  that the auger shaft and motor shaft are parallel  and the distance between the two gears 1s  correct  This allows        an accurate mate between the two gears  A picture of this phenomenon 1   shown in Figure 27  The only critical flaw in the device 15 that it sits too high in the device  housing  The lid of the device housing cannot shut properly  For this pill storage and dispensing  mechanism this will be alleviated by cutting off some of the top
45. cations  The EDE1144 provides enhanced keypad  features such as contact debouncing and key auto repeat in an easy to use package that will lower  software overhead in the host microcontroller and reduce the VO pin requirements from eight to          frequently resulting in the use of a less costly host microcontroller in your design     In addition  the EDE1144 15 electrically quiet  Many keypad encoders continually scan the  keypad  radiating EMI noise from the wires leading to the keypad  resulting in trouble during  emissions testing  amp  final product certification  amp  approval   The EDE1144 reduces this problem by  monitoring the Keypad with unchanging signals  and then scanning only once each time a  keypress is detected        Page 100    PIN DEFINITIONS    Keypad Connection Pins      RO  Row      Data 0 Output  Pin                                               R1  Row 1   Data 1 Output  Pin 7                                                Column 0 Input  Pin 10                                                     C1  Column 1 Input  Pin 11                                                  C2  Column 2 Input  Pin                                                               Column 3 Input  Pin 13                                                      Control  amp  Data Pins     Baur  Pim 2                                                                                  u uuu a asas               Do is Hf                                                        Clock   Pow
46. d and not shown in the  picture were the motor controller circuit  the sensor in the pill retrieval area  and the keypad     Battery Backup Design and Progress    One of the requirements for the battery 1s that the device should work for at least one  week with a backup power system  The power calculations can then be multiplied for the device  dispensing nine pills  three times a day  for an entire week  Another requirement related to the  battery is the device s weight        Page 35    Initial Design  The initial design of the battery was to have four 9V disposable alkaline batteries with    two parallel pairs connected in series  supplying power after a power outage  Power from the  batteries was at 18   so the motors could run with 15V     New Design Construction and Testing    Since the motors are still the components that require the most power  36 W  running at  12 V  we do not need 18V to power the motors  Data was taken to show the relationship between  voltage and torque  When the motors are using 9V  it is still a good torque and the motors  function well  Therefore  when the device 1  battery powered  the motors will be running at 9V   This means there will only be two 9V batteries in parallel that still supply all of the power  needed        V  9 00 V  V p p   203      D2      virma   0 V to power supply           9 00 V        na002G PAT  I  357      Vi 8 87 V  Ipp        V p p   202 nV             357      V rms   OV  I dc   357 nA V dc   8 87 V  Fregq   I  88
47. dioshack com product index jsp productId 2 103667     6  Shigley s Mechanical Engineering Design Ninth Edition  Page 416     Page 72    S  ndice  e   p   Ap    Appendix       Microprocessor    Page 74     lt       MICROCHIP    dsPIC30F6010A 6015       High Performance  16 bit Digital Signal Controllers       This data sheet summarizes features of  this group of dsPIC30F devices and is not  intended to be a complete reference  source  For more information on the CPU   peripherals  register descriptions and  general device functionality  reter to the     dsPI C30F  Family Reference Manual    0570046   For more information on the  device instruction set and programming   refer to the    16 bit        and DSC  Programmers Reference Manual    0570157      High Performance Modified RISC CPU     Modified Harvard architecture  C compiler optimized instruction set architecture  with flexible Addressing modes  03 base instructions  24 bit wide instructions  16 bit wide data path  144 Kbytes on chip Flash program space   Instruction words      Kbytes of on chip data         4 Kbytes of nonvolatile data EEPROM  Up to 30 MIPS operation     DC to 40 MHz external clock input    4MHz 10 MHz oscillator input with  PLL active  dx  8    15x     7 37 MHz internal RC with PLL active   4    Bx  16x   44 interrupt sources     Five external interrupt sources    Eight user selectable priority levels for each  interrupt source    Four processor trap sources  15 x 16 bit working register array    DSP E
48. during the fall semester had trouble dispensing pills with a  length of approximately 1 in  This was due to problems rotating a long  flat pill with a curved  surface  A larger minor diameter means that the surface of the auger will be less curved relative  to the pill        Figure 20  Auger with increased minor diameter     The second change was done to the casing and is shown in Figure 21 and Figure 22   Additional support was added to the end of the casing  The purpose of this support 1s to limit  movement of the auger  Previously the end of the auger was free to rock upward  This rocking 1   undesirable due to the risk of pills wedging underneath the auger  A picture of this phenomenon  is shown in Figure 23  With this new support that movement will be constrained        Page 16        End Support    Figure 21  Illustration of the added support at the end of the casing     Normal force between  auger and overhang    Overhang prevents the end of the  auger from rocking upward     Figure 22  Illustration of the added support with the auger        Page 17       Figure 23  Pills jammed underneath the auger     The last change was that the slope connecting the bin to the casing was increased  This 1   illustrated 1n Figure 24  This change should alleviate the bridging problem encountered during  the testing of the prototype  The angle of this slope in the prototype was 60    which 1  less than  the 70   in the new prototype  The only other way to alleviate this problem would 
49. e  dispensing mechanism  She will back up Ethan to make sure he completes his tasks     Page 63      Spring 2012    Gantt Chart             9  CUT SSQUIDES          d  amp                         l  Emensniim E  _              Sm  luss  g og                _         BPD  SESS eee ees E                         Ll s       111111111                                                          20059          1055220200           IL         ET Las         j            1          IK  _    Ll       lem                         L l        mal    a  pf                  111                  L    LI                              J   s    _                             D el    el ele L L L L ln u  s       7 WE ESE SEE EE             su EH  sa E                  sup                                     Page 64    Pert Chart  Spring 2012       e       Device Housing  Construction            1                                                 Auger Casing  Construction    1 9 2    Sensor Testing      28   o   215    Motor Testing       N      e  nA    System Integration                             s I Da  14 Power Cicuit                                28                       pss    7     Battery Testing          s           Microprocessor Testing      uo                s      a       Keypad Testing     19                Su         LCD Screen Testing                    123                    si    6   Dispense Medication En  Program    29        215      s      e    Medication Retrieval  Confirmation
50. e process to last precisely 50m5     If a key is held longer that the autorepeat delay of 660m5  the outputs are cleared and this entire  process is repeated every 2041115 until the key is released by the operator        Page 103                     4  Data Valid    Interrupt Output  Serial Output       EDE1144                   va          4 MHz    a       BR    00458   ADI Parallel       MSB     Figure Two  Schematic of Ke ypad Connection    Figure Two illustrates a typical connection of a 4x4 keypad to the EDE1144  Note that RO R3   Pins 6 9  are connected to the keypad rows through 330 Ohm resistors  They are present to  prevent a short circuit during the scan cycle in case more that one key is being held at a time  and  they can also help to lower radiated emissions from the keypad wires  The 4 7K Ohm resistors on  the keypad columns        pulldowns to prevent the EDE1144 column inputs from floating       oscillating  Pulldowns should be present on all four column inputs    0    3  regardless of the  keypad size or configuration being used  Note  Power and Ground connections have been  omitted from the EDE1144 hookup shown in Figure Two to simplify the illustration  They must  be connected in actual operation  Also  when using a 4MHz resonator with internal capacitors   the third  center  pin should be connected to ground        PARALLEL DATA                       To read data from the EDE1144 in a parallel format the host microcontroller will input from the  four data 
51. ecause the Plexiglas cracked quickly  when the mill s feed rate was too rapid  It ultimately took two passes to cut completely through  the 0 3175 cm  1 8 in  thick Plexiglas  The door itself was cut using the same process as the  doorway     Page 25       Figure 34  Pill Retrieval Door from a Front View           Device  Motor Not Shown      Thin strips of Plexiglas were cut with the band saw in order to construct the two tracks   The strips were glued together in an    L    shaped fashion  and these two    L    shaped tracks were  glued directly to the device as shown in Figure 35     Page 26       Figure 35  Pill Retrieval Door from a View Inside of the Device  Motor Not Shown      The eight wheels in Figure 35 were connected to the door in four pairs by metal axles   Four small holes were drilled through the door  where each axle was inserted  The wheels are  completely fixed to the axle  and door motion occurs through rotation of the axle within the door     The stepper motor was bolted to the wall by a motor mount shown in Figure 36  and will  be completely constrained  The motor mount was constructed from thin strips of Plexiglas and  small metal braces being glued together  The pinion 1  fixed to the motors shaft and only has  rotational freedom        Page 27    Bolted Motor Mount       Figure 36  Pinion  Stepper Motor  and Motor Mount   Design Change of the Pill Retrieval Area     Through testing it was discovered that the force sensors were negatively affected by n
52. ect pills dropping into the  tray  All of the panels that compose the pill retrieval area are Plexiglas  and were cut using a  mill  The pill retrieval area 1s glued together in accordance with the dimensions shown in Figure  39  The final design of the pill retrieval area has been constructed and integrated into the device  displayed in Figure 40  and it operated successfully in tests where worst case scenario vibrations  where created within the device     Page 29       Figure 39  Dimensions of Pill Retrieval Area    Page 30    Doorway       Figure 40  Pill Retrieval Tray Suspended within the Device  Slide     Construction of the slide is underway  The colored portions of the slide in Figure 41 have  been milled out of Plexiglas  The final dimensions of the slide   s width and height will be known  when the dispensing mechanisms are finalized  so slide construction is currently halted until  these values are known  The slide itself will consist completely of Plexiglas  and will be glued  together to form its shape  The support structure of the slide will consist of Plexiglas and metal  braces  and is not shown  Construction of the support structure is also in progress     Page 31       Figure 41  Slide Design and Current Progress    Page 32    Power Supply    Overview    The purpose of the power supply is to receive power from the wall outlet to power the  device  It will convert the voltage from AC to a lower DC voltage to supply the power needed  for the electrical compon
53. ed  off that the module can approach  It is controlled  through      HIBERHATE pin  high input puts the  module into Hibernate   When in Hibernate  the module  only consumes leakage current  but does not maintain  state  Hibernate has to be fully controlled by the       MCU and requires the TCP IP stack to restart on an  awake     The module contains about 7       of intemal bulk  capacitance  Supplies should be provisioned to supply  sufficient charge on release of hibemate for desired  start time or sufficient delay must be provided in  software after hibernate release and before releasing  reset     This state provides the best battery      for embedded  products  Entering Hibernate for intervals of less than  30 seconds is not likely to save power Battery       expectation can be more than a year for devices  operating on AA cells that would be in Hibernate except  to wake up every hour for a small data transfer    500  Bytes      TABLE 2 1     2 32 SLEEP STATE    The Sleep state is a low power dynamic state that  automatically implements the 802 11 Power Save  feature       this mode  if enabled  the module will enter  Power Save mode when all activity is complete     The module will wake autonomously to any PIC  intervention so it can check DTIM beacons from the  Access Point  If any traffic is listed as queued for the  module  then it will awaken and get the data from the  Access Point on the next possible opportunity  When  data is acquired  the module will interrupt 
54. engineering students  one    computer engineering student  and one electrical engineering student  The project s management  and design tasks will be distributed among the team into the following responsibilities     Andrew Combs  Mechanical Engineer      Andrew is the team leader of this project  He  is responsible for making sure that the subsystems are completed and integrated on time   He 1s responsible for making sure that all reports and presentations are completed on  time  He is responsible for the design and construction of the auger casing mechanism   Andrew will work with Jeff to make sure all of Jeff s tasks are completed    Jeff Wood  Mechanical Engineer      Jeff is responsible for making the SolidWorks  drawings of the design  He 1s responsible for the design and construction of the device  housing  pill storage bins  slide  and pill retrieval area  He will work with Andrew to  make sure that all of Andrew s tasks are completed    Ethan Lilly  Computer Engineer     Ethan is responsible for programming the  microprocessor and constructing the user interface  which includes the LCD screen   keypad  graphical user interface and the Wi Fi interface  Ethan will back up Emilia to  make sure she completes her tasks    Emilia Faraj  Electrical Engineer      Emilia is responsible for maintaining the budget   She 1s responsible for the electrical designs for the power supply  the alarm  and the  sensors  She will work with Andrew in the electromechanical components of th
55. ents  One of the requirements stated previously 1  that the power supply  should have back up batteries that will keep the device running for at least one week     Initial Design    The initial design for the power supply was to gather the components the transformer   resistors  capacitors  regulators and build it  It had been simulated to work in Multisim to power  all of the subsystems as necessary  but due to heavier components than anticipated  a power  supply was purchased to meet the device s weight requirements     New Design and Progress    The power supply purchased regulates voltage to use 12 V at 0 to 0 5A  5 V at    to 2A  and  3 3 V at 0 5 to 4A to power the different components the device needs to operate  Note that the  motors are now operating at 12V as opposed to 15V in the initial design  there 1  also only one  sensor being used  and an additional motor for the door gate  See Appendix J  These components  are the following        10 Stepper Motors  12 VDC at 300 mA      Alarm  5V at 250mA   e Microprocessor  5V at 29 45 mA      Keypad  5 V at5 mA   e LCD Screen  5V at 300mA   e   Force Sensor  5V at 4 5 80mA      Wi Fi Transceiver Module  3 3V at 150mA     RFID chip       at 100mA    Power calculations had to be recalculated for each component to make sure the power  supply can supply enough power to all of the components     P Vel    For the 12V  P      12V   300mA    10    36 W       Page 33    For the 5V                250       5V   300mA   5V          
56. er Pins     0501  Pin                                 MERI Ve ON ae HMM MM doi naa    IS EW ur                                      Multiplexed Keypad Row 0   Host System Data Input       Multiplexed Keypad Row 1     Host System Data Input 1  Multiplexed Keypad Row 2   Host System Data Input 2  Multiplexed Keypad Row 3   Host System Data Input 3  Multiplexed Keypad Column 0   through 330 c resistor        Multiplexed Keypad Column 1     through 330    resistor     Multiplexed Keypad Column 2     through 330 2 resistor   Multiplexed Keypad Column 3   through 330    resistor        Baud Rate Selection     0 2400  1 9600       serial Data Output  N 8 1      R5232  TTL ICMOS Voltages       Data Valid Signal   Interrupt               Pin 18                                                               Parallel data valid when low       Modulated Output Signal     Oscillates on keypress or repeat    One        of 4MHz parallel cut  crystal or resonator  or a direct         clock input      Other pin of 4MHz parallel cut    crystal or resonator  or leave  floating if OSC  driven with  a        clock input       Connect to   5V DC                   to   V DC  Ground     Page 101    4  4 Multiplexed Keypad  LI EI                        Serial    EDET144 Output  Column 2 Ke      ad                        Valid  Column Q  Beeper    2400 1 9600 Baud Select Input    Figure One  Connection Block Diagram    As illustrated by Figure One  the EDE1144 resides between the keypad and host microc
57. errupt on position counter rollover underflow    Analog Features     10 bit Analog to Digital Converter  ADC  with  four S H Inputs     1 Msps conversion rate    16 input channels    Conversion available during Sleep and Idle    Programmable Brown out Reset       Page 75    dsPIC30F6010A 6015       Special Microcontroller Features  CMOS Technology      Enhanced Flash program memory    Low power  high speed Flash technology    10 000 erase write cycle  min   for    Wide operating voltage range  2 5V to 5 5V   industrial temperature range  100K  typical     Industrial and Extended temperature ranges    Data EEPROM memory     Low power consumption      100 000 erase write cycle  min   for  industrial temperature range  1M  typical    Self reprogranmable under software control   Power on Reset  POR   Power up Timer  PWRT    and Oscillator Start up Timer  OST    Flexible Watchdog Timer  WDT  with on chip    low power RC oscillator for reliable operation   Fail Safe Clock Monitor operation detects clock   failure and switches to on chip  low power RC   oscillator   Programmable code protection   In Circuit Serial Programming            TM    Selectable Power Management modes     Sleep  Idle and Alternate Clock modes    dsPIC30F Motor Control and Power Conversion Family          Program    Mem  Bytes   Instructions                         dsPIC30F6010A   80   444K 48K   8102   408   5  45     30    015          144  4       8102   498   5    Page 76    dsPIC30F6010A 6015       Pin D
58. es  Brace Lowes 2 67 0 64 8 65 10 8    0 00   0 56 12 6    0 00   0 03 12 6    0 00   045 12 6  Auger Casing peg  as                Components  PCB 65 00   000   10 3  9 49   0 00   0 76 12 6  11 84   000   10 3  2 14   0 00   12 1  1 87   000   12 5  41 99 4 00   4 06 1 26  19 99 10 3  6 44   0 00   10 20  5 19 1 51 6 70 1 18  SN754410NE  Ics www jameco com 1 95 10 3 11 1 28    0 59 0 59 1 28  1 28    8 00 1 30    Crystal  4 mHz www jameco com  74    154 IC www jameco com  PCB  etched    Computer  Components   Microprocessor   Wi Fi Module  LCD Screen   Keypad  RFID  Reader Chips  Schmart Board    5 00  23 74  12 90    2 90    2 90  39 99    10 8  10 8  10 8    10 8    www microchip com  www microchip com  www futurlec com    6 78    WWW  futurlec com    29 99 1    7 99    11 10  1 29    www parallax com    www schmartboard com 15 89    Total      Contingency         Budget        619 02    410 98  1030 00     O           Page 70    References           2    Page 71      Pueblo  Colorado  Federal Information Center  Medication advice for seniors    http   www pueblo gsa gov cic_text health meds4old 697_old html     2  Minnesota Board on aging    http   www mnaging org pdf Prescription 20Drug 202002 PDF     3  Shopping page for a competing pill dispenser at Wheel Chair Select    http   www wheelchairselect com Telemergency royalty 100  VCW 1000 html     4  Dimensions Guide   http   www dimensionsguide com average kitchen dimensions      5  RadioShack s website   http   www ra
59. ess rating only and functional operation of the device at those or any other  conditions above those indicated in the operation listings of this specification is not implied  Exposure to  maximum rating conditions for extended periods may affect device reliability     RFID Technology Overview  Material in this section is based on information provided by the RFID Journal  www rfidjournal com      Radio Frequency Identification  RFID  is a generic term for non contacting technologies that use radio  waves to automatically identify people or objects  There are several methods of identification  but the  most common is to store a unique serial number that identifies a person or object on a microchip that is  attached to an antenna  The combined antenna and microchip are called an  RFID transponder  or  RFID  tag  and work in combination with an  RFID reader   sometimes called an  RFID interrogator       An RFID system consists of a reader and one or more tags  The readers antenna is used to transmit  radio frequency  RF  energy  Depending on the tag type  the energy is  harvested  by the tag s antenna  and used to power up the internal circuitry of the tag  The tag will then modulate the electromagnetic  waves generated by the reader in order to transmit its data back to the reader  The reader receives the  modulated waves and converts them into digital data     There are two major types of tag technologies   Passive tags  are tags that do not contain their own  power source or t
60. hat Repeat  Sound Level  88 dB    10 cm Typical  Med Priority Signal 3 Beeps that Repeat  Frequency  975   24 Hz  High Priority Signal 10 Beeps that Repeat  Sound Harmonics  Minimum of 4  1 to 4 kHz    Operating Temp   30  C to  70   C   1  2 2  Storage Temp   30   C to  70      per IEC 60601 1 8 Tables 203  amp  204  Case Material  Valox  UL94 V0    Current Level   lt  250 mA during          time      10 mA during PAUSE time    Continued                            110      555     Alarm  Con 1        Frequency Response     Sound Pressure        198       Frequency    r           He Hz  and there are more than 4 harmonic peaks  between 1 and 4 kHz  All harmonic peaks are within   15 dB of the fundamental frequency       Priority Signal Activation                 GND        Low           Low Priority Medium Priority High Priority    Priority Signal Details     e Low               Beep  Pause 200ms            Repeat every 20        5     Med Priority  Beep  Pause 200ms            Pause 200ms            Repeat every 7 5 sec s  100ms            Pause 500ms  Beep  Pause 10005            Pause 100ms            Pause 300ms    Beep  Pause 100ms            Repeat every 2 5        5    Note  Beep    on    time is 100ms  high priority   amp  200ms  low  amp  medium priority                Call 317 612 1000 or Visit www mallorv sonalert com for More Details    11 21 08 Ra          a co s          lt  s    Appendix       Force Sensors    Page 118    FSR 402 Data Sheet    FSR 400 Series Ro
61. he A D converter for about a second for any changes in the  sensor output  If a pill is dropped on the sensor the program enters an empty infinite    loop that causes the motor to stop dispensing             include  lt p30f6015 h gt     include  lt math h gt     define CrystalFreq 7378200   define Millisec CrystalFreq 7378    int delay  delay2       Functions and Variables with Global Scope     void ADC Init void      void stepMotor         int delay   0   int delay2   0                  0  0003        Page 78    for delay2 0 delay2 lt 2 delay2       for delay 0 delay lt 10000 delay         j    PORTE   0  0006   for delay220 delay2  2 delay2  4  1  for delay 0 delay lt 10000 delay                             0  000       for delay2 0 delay2 lt 2 delay2         for delay 0 delay lt 10000 delay           PORTE   0  0009     for delay2 0 delay2 lt 2 delay2       for delay 0 delay lt 10000 delay             Functions     ADC_Init   is used to configure A D to convert 16 samples of 1 input      channel per interrupt  The A D is set up for a sampling rate of IMSPS       Page 79     l Timer3 is used to provide sampling time delay     The input pin being acquired and converted is AN7   void ADC_Init void     l  TRISB   OxFFFF    Port B 1s input  ADPCFG   OxFFFB    10th channel is sampled and coverted  ADCON 1   OxOOEO    ADC off  output_format INTEGER    Manual start of convesion    Manual start of sampling  ADCHS   0x0002    Connect RB10 on ANIO as CHO input  ADCSSL   0    No scan
62. horizontal  This means that the motor mount  needed to hold the motor at a 45  angle  Second  the distance between the two gears must be a  certain value  This distance 1  determined by the diameters of the two gears  If this distance 1  too  small  then the design will be impossible because the gears will be taking up too much space  If  this distance 1s too large  then the gears will not mate with each other because they will be  separated  The goal was to have two thirds of the gear teeth overlap with each other     Page 8    Pill Storage Bin        Stand    Motor Gear        VA    Figure 7  Design of the prototype     The pill storage bin  the auger  and the two gears were 3d printed  The bin holder and the  motor mount were built out of Plexiglas  A picture of the prototype 1  shown in Figure 8  A  closer picture of the bin holder is shown in Figure 9  The lessons learned from this prototype  revealed the need for several more changes to the design     Page 9              Pill Storage Bin         Figure 8  Prototype Build    Page 10       Figure 9  Bin holder for the prototype    The prototype ran successfully with all of the pills shown in Figure 10  Two tests were  done for each pill  In each test  approximately twenty pills were placed into the device       of the  pills were then dispensed from the device  In every case  the device dispensed one pill at a time  and no jamming occurred  The one exception to this 1s that there was one minor malfunction  with the purple
63. iagram             64 Pin                 5            BER 5  THEME          s          2555  8  x    x       L               mig                              E    lt  x                    HEP    w 1    uuu                         gt                       328588853883 3 2 s   9  PWM3HRES 2   1  4605 EMUCT1 SOSCO ITTICHCNO RCT4                               2      EMUDT1 SOSCIITACKICNTI RCT3  PWM4HIRE  C   13 e EMUCZ OCT RDU                       2   4 45E   3 ICATINTASRDHT  SDIZ CNE RG     44 4 ICSHNT3RDTD  SDO2ICNTORGS 16 43E   3 ICZ FLTB INT2 RDB  MCLR Csr        ICAIFUTATINTTIRDS                     Ca dsPIC30F6015 41E   31 Vee  Vee Cog   01 OSCZ CLKO RCTS         C410            OSCTCLEI  ANS QEB ICBICNTIRBS  11        Vno  ANA QGEAICTICNSIRBA 112      SCL RG2  ANXINDXI CNERB3i           SDARGS3  ANZ2 SSTICNAJRB2 C14        EMLUCS SCEKTANTU RFS       VWrer CNSRB1 C1 He WIRASDIVRFS  ANU VREFHCNZ IRBO Cid    EMUDSUITASDOURFS                          O25         26                               L    20             19  AN IRBS    421                Coe        0         2   1 23  ANI4 RB14 Cosy    AN13 RB13 L   1 128  ANT1S OCF B AZNT2 RB15 L   130    PGD EMUD AN T RB  C18  AMTI RBT  L   324  U2RX CNT17 RF4    131  UZTX CH1B RF5 L   332                                                             77    PROTOTYPE CODE       Ethan Lilly  Last Modified  12 5 2011  This program 15 used with our most recent prototype  It will step the motor 7 2 degrees  and then continuously check t
64. ications were selected with intentions of making  improvements on last year s project     It will successfully provide the proper pills specified by the caretaker in a minimum of 40  out of 40 tests     It will be able to service pills ranging from 10 mg to 1 g  For the purposes of these  technical requirements  pills  sizes will be defined by two dimensions and a shape  One  dimension will be the smallest dimension of the pill  The other will be the largest  dimension of the pill  The device will be able to operate on pills with small dimensions  between 0 5 cm  0 2 in   and 1 cm  0 4 in   It will be able to operate on pills with large  dimensions underneath 2 5 cm  1 in   The device will operate with pills shaped as tablets   capsules  and ovals     It will weigh less than 130 N  30 Ibf     Its dimensions will be less than 0 46 m  18 in  high  0 38 m  15 in  wide  and 0 38 m  15  in  long  Last year s dimensions were  0 54 m  21 25 m   0 44 m  17 5 in   and 0 48 m   19 1n  respectively  The spatial dimensions of the object are defined as the smallest cube  needed to encapsulate the object  For example  the height of the device 1s the distance  from the base of the device to the tallest point on the device     A back up battery will be used as a fail safe in the event of a power outage  It will be able  to power the device for one week     The device will have an alarm that will sound when the pill 1  being dispensed  The alarm  will have an intensity between 80 and 90 dB   
65. inputs 00 01 02   amp  D3  which also serve as the row drive signal pins Ro R1 R2   amp  R3   see Figure Two   While the EDE1144 is waiting for a Keypress  it will hold these lines at 1111       high   Once a key is pressed  the data output pins will toggle while the keypad is scanned 50  that the EDE1144 can determine which key was pressed  Then  the appropriate data value  see  Table One  will be output onto the data outputs  via the row output pins   and the Data Valid  Output  Pin 17  will go low  This pin will stay low for 50 ms  during which the Data Output pins  will hold the Keypress data  The keypress data should be sampled during this 50m5 window     Both the Parallel  amp  Serial Data outputs are activated on each Keypress  and autorepeat cycle    designers using the parallel data outputs can ignore the serial data output  and vice versa    designers using the serial data output can ignore the parallel data output         Page 104         Ethan Lilly    Ihis program will allow for characters to be displayed on an    LCD screen by pressing  the appropriate keys on a keypad   f    include   p30f6n015 h   include  lt string h gt   include  lt stdlib h gt    include  lcd h        Macros for Configuration Fuse Registers  copied from device  header file                         FSCM OFF  lt s FRC                   Set up for Crystal  multiplied by      PLL      FWDT WDT OFF               FBORPOR MCLE        PWRI OFF    turn off the power up timers           Turn off the W
66. it has also been tested and  a program has been written that can successfully turn multiple motors  one at a time  and in  different directions  The functionality of setting the time and getting the time for the real time  clock has been programmed  also the programming required to turn on and off the alarm has  been finished  The Wi Fi transceiver 1s the only component that the programming 1  not finished  for  Once this 1s done  the final system program can be completed     The processor will first be soldered to a SchmartBoard and then connected to a  professional PCB  A picture of the SchmartBoard can be seen below  The        1  designed to  have through holes that match the outer holes on the SchmartBoard  Double sided male  connectors will be used to attach the two boards             j                          A    amp                     Figure 48  This 1  a picture of the SchmartBoard that the processor will be soldered to    The following design includes connections for everything that will be interfaced with the  microprocessor  It also contains the circuitry for the motor controller  the keypad  the alarm  and  the LCD screen  The orange box shows the outline of where the SchmartBoard will be  connected  This design 1  10 2 x 10 2 cm  4 x 4 inches   This board has been ordered from  www 4pcb com        Page 40    apga    us           E DE                                          Oo    a      g p      ote        o oW ga m    Ee       1                              
67. ls into the device and program when they  should be dispensed by the device        Page 139    The internal components of the device need to be secure  This is to prevent unwanted  access to the pills inside the device     The device needs to hold a month s supply of pills  This will increase the ease of use for  the caretaker     The device needs to notify the caretaker when the patient does not take their pills     Operational Description    Pills Loading Process     Unlock and open the door of the device to access pill storage bins inside the device     Insert each type of pill into one of the storage bins  Be sure to only put one type of pill  into each bin     Close and lock the device     Make sure the device 15 plugged into a power outlet and the power 1  switched on     Programing Process     Program the device using a laptop computer wirelessly connected to the device   Specify the type of pills      each storage bin   Specify the doses and the times these doses are to be taken     Enter the email address you would like to be notified at in the case that the patient does  not receive their pills     Patient Pill Retrieval Process     Place RFID chip within four inches of the RFID reader to gain access to the pill retrieval  area  This will also turn the alarm off     Grab pills from the pill tray        Page 140    Technical Requirements    A pills dispenser project  titled PEZ  was completed by one of the 2010 2011 Senior Design  eroups  Some of our technical specif
68. modulated signal measured at siena  port        Page 91    Appendix     LCD Screen    Page 92       HD44780U  LCD II      Dot Matrix Liquid Crystal Display Controller Driver     HITACHI    ADE 207 272 7Z    99 9  Rev  0 0       Description           HD447380U dot matrix liquid crystal display controller and driver LSI displays alphanumerics   Japanese kana characters  and symbols  It can be configured to drive    dot matrix liquid crystal display  under the control of a 4  or 8 bit microprocessor  Since all the functions such      display RAM  character  generator  and liquid crystal driver  required for driving    dot matrix liquid crystal display are internally  provided on one chip  a minimal system can be interfaced with this controller dnver        single HDAA780U can display up to one  amp  character line or two 8 character lines     The HD44 7200 has pin function compatibility with the     44 7805 which allows the user to easily replace  an LCD II with      HD44780U  The HD4A780U character generator ROM 15 extended to generate 208 5     8 dot character fonts and 32 5 x 10 dot character fonts for a total of 240 different character fonts     The low power supply  2 7V to 5 5 V  of the HD44780U is suitable for any portable battery driven product  requinng low power dissipation     Features      5xBand5    10 dot matrix possible     Low power operation support       2 7 to 5 5V     Wide range of liquid crystal display driver power      3 0 to          Liquid crystal drive 
69. n a swinging platform that sits near the bottom of the device        Figure 58  Sensor Circuitry       Page 49       Figure 59  Since the sensor needs a preload to be activated  a preloading plate and bolts  function as necessary weight        Figure 60  Swinging platform integrated in the device    Page 50          Figure 61  Sensor s outputs from outside vibrations vs  pills dropping    The left portion of Figure 61 shows the sensor s output from vibrations outside the device  that does not activate the sensor  The right portion shows when pills drop into the sensor  This  peak 1  the one the microprocessor reads and activates the sensor     Inverter Design    The schematic    Figure 62 converts positive to negative voltage needed for the op amp  in the force sensor to function properly  The 100 uF capacitor charges through the second diode  but when the output of the 555 timer 15 zero  the same capacitor discharges through the first  diode and the 0 01 uF capacitor gets charged  Therefore  the intersection of the anode of the  second diode and the cathode of the first diode will always be negative with respect to the  eround  The negative voltage 1s slightly lower than the positive one  but the positive voltage  tends to be a little higher than its rated voltage     The schematic on the left shows the DC voltage from the power supply  and the one on  the right simulates the testing shown on the pictures below     Page 51       1144001    Figure 62  Inverter Multisim Schema
70. nd dispensing mechanism  a new prototype was  constructed     new feature of this prototype that differentiates it from previous ones 15 that this  included a design to synthesize the pill storage and dispensing mechanism with the device  housing  The design of the prototype is shown in Figures 4 and 5  The T shown on the back of  the bin 15 the means by which the bin attaches to the rest of the device  This T 1  designed to slide  into bin holders on the device wall  A drawing showing one of these bin holders 1  shown in  Figure 6       most other respects  this design was the same as previous versions        Figure 4  Back view of the prototype Design       Figure 5  Top view of the prototype design        Page 7       Figure 6  Design of the bin holder    The main purpose of this design 1  the convenience to the user  The user will be able to easily  remove pill storage and retrieval units from the device housing  This allows for easy loading of  pills  easy washing of the mechanisms  and customization of the types of mechanisms the user  can put into the device  A figure of the design of the prototype 1s shown in Figure 7     goal of  this prototype was to build a bin slot and motor mount which would guarantee an accurate mate  between the auger gear and the motor gear  To achieve an accurate mate between the two gears   two things need to be true  First  the axis of the motor shaft and the axis of the auger must be  parallel  The angle of the auger shaft 15 45  from the 
71. ng for the electronic components has been done for each part  individually except for the Wi Fi transceiver  A large amount of integration into the final device  has been done as well  Moving forward our group will work quickly to finish up any of the tasks  left over and continue to integrate components into the final device as they are completed  A new  Gantt chart has been made showing the current plan from now until the end of the project     New Gantt Chart       Page 66    Budget   This section contains two budgets  The first budget shows everything that our group will have to  place an order for and spend the group money on  The second budget is the supplement budget   which shows what the prototype would cost if the group did not have access to any free items   Here are some of the updates to the budget  the professional PCB has been ordered  a power  supply was ordered  several ICs were purchased including the keypad encoder and the half h  motor drivers  a SchmartBoard was ordered to help with soldering the processor  the plexiglass  was first cut professionally into smaller boards that could be used in the mill and finally the  estimate for the 3D print material has been updated in the second budget  These purchases were  not expensive and our group 1  still in great shapes for coming in well under budget  The updated  budgets can be seen on the following pages     Page 67                                    Mechanical  Components    Motors alltronics com    Plexigl
72. ngine Features     Dual data fetch   Accumulator write back tor DSP operations  Modulo and Bit Reversed Addressing modes  Two  40 bit wide accumulators with optional  saturation lagic   17 bit x 17 bit single cycle hardware fractional  integer multiplier   All DSP instructions single cycle    16 bit single cycle shift       Peripheral Features     High current sink source         pins  25 mA 25 mA   Timer module with programmable                         Five 16 bit timers counters  optionally pair  16 bit timers into 32 bit timer modules   16 bit Capture input functions   16 bit                         output functions   3 wire SPI modules  supports 4 Frame modes    I C7  module supports Multi Master Slave mode   and 7 bit 10 bit addressing   Two UART modules with FIFO Bufters   Two CAN modules  2 06 compliant  dsPIC3060104    One CAN module  2 06 compliant  9521306015     Motor Control PWM Module Features    Eight PWM output channels      Complementary or Independent Output  modes     Edge and Center Aligned modes     Four duty cycle generators     Dedicated time base     Programmable output polarity     Dead Time control for Complementary mode   Manual output control   Trigger for A D conversions       Quadrature Encoder Interface Module  Features      Phase A  Phase B and Index Pulse input  16 bit up down position counter   Count direction status   Position Measurement  x2 and x4  mode  Programmable digital noise filters on inputs  Alternate 16 bit Timer Counter mode   Int
73. niversity          2nd Rough        P Pandora Radio   Listen to Free Interne     gt        Select Bin Page      Asklepius Log In Page                      file    M  Senior Design Programs index html   r               Google       E              sklepius    Username  Username  Password  Password     TT      mue       2 27 2012             57    DAES SDS  M Harding University          2nd Rough         P Pandora Radio   Listen to Free Interne           Select Bin Page          Asklepius Log In Page         M  Senior Design Programs binSelect htm              sklepius    Edit Medication Change Clock Setup Email    Select a bin     7 35 PM    a            Pri 4 2 27 2012              M  Harding University Mail   2nd Rough       P  Pandora Radio   Listen to Free Interne            Edit Medication Page x    Asklepius Log In Page         9 11 file   M Senior Design Programs EditMedication html vy        9          P     E             sklepius    Edit Medication Change Clock Setup Email    Bin 1        Name of Medication        Number of Pills     Daily Schedule           Delete Time  AM                                           Instructions Put any special instructions here    7 36                  r  Pri 4 2 27 2012       Page 58                     M Harding University          2nd Rough          P Pandora Radio   Listen to Free Interne             Edit Medication Page  Asklepius Log In Page               e j   D file    M  Senior Design Programs changeClock html         e     Go
74. nter drugs  1   The average number of pills taken daily by people over the age of  65 1s 2 9  More than one in five seniors take five or more different prescription drugs every day   Here 1  a table showing the number of drugs taken daily by seniors  2      Table 1  Number of pills taken by people over 65    Pills Taken Percentage of Seniors    18   564       Keeping track of medication 15    burden for the elderly  Arthritis  poor eyesight  poor  hearing  and memory lapses can make it difficult for some older people to take their medications  correctly  Studies have shown that between 40 and 75 percent of older people don t take their  medications at the right time or in the right amount  1   The consequences for not taking  medication properly can be fatal  When two or more drugs are mixed in the body  they may  interact with each other and produce uncomfortable or even dangerous side effects  1     Medication users desperately need a product to keep track of their medication and administer the  correct amount at the correct time     Some people organize medication by putting it into a small container that is partitioned  into seven smaller containers  each representing a different day of the week  This method is very  tedious and also fails at organizing many varieties of medication  It does nothing to help people  remember to take their medication  There 1s another device that allows a user to organize pills  into 29 separate bins and set a timer that will alert the user 
75. ogle      2          sklepius    Edit Medication Change Clock Setup Email    Current Time  12 00 AM    Set New Time  AM         file    M  Senior Design Programs changeClock html    f     7 36 PM    i            N     02        2         Firefox    M Harding University          2nd Rough          P Pandora Radio   Listen to Free Interne     lt        Edit Medication             ee                                 Design Programs email html      e  9   Google P    EM                   sklepius    Edit Medication Change Clock Setup Email    Emails to be notified  SomeEmail aWebsite com  SomeEmail aWebsite com    7 36 PM  2 27 2012               Page 59    Alarm Design and Progress    Initial Design    The alarm will notify the patient the pill 1s ready to be taken  One of the requirements for  the alarm is that it should have a sound intensity between 80dB and 90dB  It should also sound  each time the device 1s ready to dispense pills     Alarm Construction and Testing    The sole component in this system is the Mallory Sonalert MSS5MI  specifications can  be found in Appendix     It is a buzzer that outputs 88dB with a frequency of 975Hz     The alarm 15 used with the high priority  The high priority has several beeps repeatedly  and it 1  the loudest  This option has been chosen because it fulfills the sound intensity  requirement to be between 80 90dB aiming to reach various places in a household with the same  intensity     The 5VDC is a signal that comes from the microproce
76. oise  in the form of vibrations  The prototype would fail by mistaking noise for a pill dropping into the  pill retrieval area  This failure only occurred when these vibrations were created by violently  banging on the table the force sensors were resting on  and this form of vibrational noise was  deemed to be worst case scenario  The solution to the problem was to suspend the pill retrieval  area from the base of the device housing using string  The string 1s attached to a hole at each  corner of the pill retrieval area  and acts as a damper by dampening much of the vibrations  transferring from the device housing to the pill retrieval area  The string is fishing string  specifically because it 1s strong  light weight  and cheap  There is potential that this problem  could have been solved with digital filtering  however  the force sensors are not good at  measuring the actual force placed on the sensor  They are only good at detecting spikes in force   This makes it difficult to distinguish between noise of a certain magnitude and the dropping of a  pill  This mechanical filtering method 1  an easy  foolproof way of solving the problem        Page 28       Figure 37  Pill Retrieval Area with Preloaded Force Sensor    The four holes that will suspend the pill retrieval area are shown in Figure 37  and  correspond to the four holes at the top of the    U    shaped supports in Figure 38  The preloading  plate and bolts provide the necessary preload for the force sensor to det
77. on    MODEL MONIMAL DETPET                      COTPUT  MUX MAXIMUM OUTPUT PEAK DUTPUT TOTAL BIPPLE              WOLTAGE  VIG  CONVECTION CURRENT   CURRENT 2 REGULATION   2            55 1005      Oto       Die      12    0 1              55 1017 12V Din 33A 0 to 454 5    0 1          5 1024 24V Din 1 64 0 to 2 3   2 5    0 1  Triple Output Model Selection  VOLTAGE         CURRENT                    CURRENT 1 DERRENT    REGULATIOM  lt  2 TL          5 to         i  HPs           to 2A 0 2 to 2 5         5 1       00 0      0 0 to 07   1  5 1  43 34 05 0 4   0 5 to 5         0 5 1  BLPS5 33 N  5 0 0 to 2   0 0 to 25         0 5 1       00 0      0 0 to O 7A 1    5 1    WOTES  1 10             150 LAM  average measurement of six equally destanced points through    35  x 1 6    cross sectional area  with power supply mounted       0 25    standoffs  Recommended airflow direction ts from the AC side to the DC side     2 Peak current duration for less than 30 Sec with    maximum duty            of 10      0    and load  4 Maximum paak to pask noise expressed 25 a percentage of output voltage  20 MHz bandwidth  and bypass capacitors of 10 pF and 0 1 ur        Ordering Information     OPTIONS SUEFIXES      ADO TD FART                        lead solder exem No RoHS character required               for all    substances Add 0    as the last character of the part number          1033540 Rev     1  06        00 Page 1of 8 www  power ane com    BLP55 AC DC Series Data Sheet    one  55 W
78. ons is  not implied  Exposure to the absolute maximum rating conditions for extended periods may affect device reliability     RECOMMENDED DC OPERATING CONDITIONS    Ta   0  C to  70      Ta    40  C to  85  C    Notes 1  2       aweTtn   smwmo    commons   wm                      48      55   V     Sed Wwe e              fwo                          Vex Batery voe   we       l     DC ELECTRICAL CHARACTERISTICS   Vee   4 5V to 5 5V  Ta   0  C to  70  C  T     40  C to  85  C    Notes 1  2                      9    8 8            1216x  125x 1 284 x    Vugar            DC ELECTRICAL CHARAC TERISTICS              OV  Vear   3 0V  Ta   0     to  70      Ta    40     to  85        Notes 1  2           NM M LM M M           Current  OSC                SQW OUT OFF                        Current  OSC ON   _   SQWIOUT ON  32kHz  owe             Vaar Data Retention Current    Oscillator Off toe         WARNING  Negative undershoots below  0 3V while the part is      battery backed mode may cause loss of data           Page 127    051307 64 x 8  Serial  IC Real Time Clock    TIMING DIAGRAM    STOP START       Figure 1  Block Diagram    192 4   86kHz 8 192kHz 32 768               BUFFER    Oscillator  and divider    CONTROL CLOCK     CALENDAR                        AND CONTROL  051307 REGISTERS    SERIAL BUS  INTERFACE    AND ADDRESS USER BUFFER  REGISTER       BYTES        Page 128    051307 64 x 8  Serial        Real Time Clock    PIN DESCRIP TION    Connections for Standard 32  58kHz
79. ontroller   processor  The host microcontroller receives Keypress data via either the four parallel data  outputs  00 03  Pins 6 9  or the Serial Data Output  Pin 1   The Data Valid signal  Pin 17  is  activated upon keypress  and upon each key repeat cycle if key is held   The Data Valid signal is  activated prior to transmission of the serial data to allow polled  software LU ART  style host serial  systems such as the BASIC Stamp  or    microcontroller without a hardware          to enter the  serial receive routine and receive the keypress data without needing to continually wait for the  start bit  Note that the data outputs to the host microcontroller reside on the row output pins   Pins 6 9   therefore parallel output data should only be read while the Data Valid  Pin 17  signal  is active  low   Upon powerup  the four data output pins will be high  and will remain high  except when a key is pressed     The following table illustrates the data values returned by the serial and parallel outputs of the  EDE144 upon each Keypress  Note that the serial values are increased  by Hexadecimal 30   30   for 0 9 and Hex  37 for 10 15  to correspond to the ASCII equivalent  0 8  A F  of the BCD   binary coded decimal  value on the parallel outputs     12222121212 22122       o    a             31009   301 1 Toto    o1                   Table One  Keynumber vs  Output Data       Page 102    OVERVIEW OF OPERATION    Table One of the previous page illustrates the data that is output
80. ority of RF energy is emitted   If the tag is held sideways  for example  perpendicular to the  antenna   you ll either get no reading or a poor reading distance  Only one transponder tag should be  held up to the antenna at any time  The use of multiple tags at one time will cause tag collisions and the  reader may not detect any of them  The tags available in the Parallax store have a read distance of  approximately 4 inches  Actual distance may vary slightly depending on the size of the transponder tag  and environmental conditions of the application     Communication Protocol  All communication is 8 data bits  no parity  1 stop bit  and least significant bit first  8  1  at 2400 bps   The RFID Card Reader Serial version transmits data as 5V TTL level  non inverted asynchronous serial     The RFID Card Reader USB version transmits the data through the USB Virtual COM Port driver  This  allows easy access to the serial data stream from any software application  programming language        interface that can communicate with a COM port     When the RFID Card Reader is active and a valid RFID transponder tag is placed within range of the  activated reader  the tag s unique ID will be transmitted as a 12 byte printable ASCII string serially to the  host in the following format        Unique ID   Stop Byte  Digit 10  0  00     The start byte and stop byte        used to easily identify that a correct string has been received from the  reader  they correspond to line feed and ca
81. plementation of a wireless web server     The MRF24VWBO  MA MRF24VVBOMB modules have  received regulatory approvals for modular devices in  the United States           Canada  IC   and Europe   ETSI   The modular approval removes the need for  expensive RF and antenna design  and allows the end  user to place the modules inside a finished product and  not require regulatory testing for an intentional radiator   RF transmitter   They also have Radio Type Approval  Certification for Japan  See Section 3 0  Regulatory  Approval  for the specific requirements that should be  adhered to by the integrator     1 1 Interface Description    The block diagram in Figure 1 1 represents a  MRF24WVBOMAMRF24WBOMB module  It interfaces  to Microchip       18  PIC24  dsPIC33  or PIC32  microcontrollers through a four wire serial slave SPI  interface     interrupt  hibernate  reset  power and  ground signals  The module runs on a single supply  voltage of nominally 33     also supports optional  JTAG and serial debug for testability  The debug port  operates at 3 3V and requires    level shifter for  operation with RS 232 devices  Figure 1 2 shows a  simplified example connection between a Microchip  PIC MCU and the module  Table 1 1 lists the pin  descriptians    Data communications with the MRF24VV B  MA   MRF24WBOME are through the SPI interface that is  detailed in Section 2 0  Circuit Description  The  Microchip PIC microcontroller communicates with the  module through a command API from 
82. ps    10 dBm Typical output power with control    Integrated low phase noise VCO  RF frequency  synthesizer  PLL loop filter and           Digital VCO and filter calibration     Integrated RSSI ADC and 1 0 DACs  RSSI  readings available to host     Balanced receiver and transmitter characteristics  for low power consumption    MAC Baseband Features      Hardware CSMA CA access control  automatic  ACK  and FCS creation and checking     Automatic MAC packet retransmit     Hardware Security Engine for AES and  RC4A based ciphers     Supports 802 1x   02 1i security  WEP   WPA PSK  and V PA 2 PSK      pplications     Utility and Smart Energy    Thermostats    Smart Meters    White Goods    HVAC    Consumer Electronics    Remote Control    Internet Radio    Home Security    Toys    Industrial Controls    Chemical Sensors    HVAC    Security Systems    M2M Communication     Remote Device Management    Location and Asset Tracking    Automotive    Code Update    Retail    POS Terminals    Wireless Price Tags    Digital Remote    Medical  Fitness  and Health care    Glucose Meters    Fitness Equipment    Patient Asset Tracking    Page 84    MRF24WBOMA MRF24WBOMB       Pin Diagram    JT Ab         JI AG         JTAG TMS             TDI    RESET  NL            Antenna connector on MEF24VBDMB only               I on  Ecorn                   501  SLK  INT    500                 VLL  GND    GND  NL                      GND               TX             RX    JTAG EN  HIBERNATE    Page 85   
83. que has been more than doubled  and there should not be         jamming problems due to an insufficient amount of torque  The motors don t ever pull more than  0 3 A of current and the half h drivers are rated for up to 1 A  There have not been any problems  with this 1n the testing that has been done so far     Page 48    Force Sensor    One of the requirements of the project 1  that the device must be reliable  meaning it  needs to dispense correctly consistently  The sensor will be able to fulfill the requirement in that  it will make sure that once a pill has been dropped the dispensing will stop     Initial Design    There was going to be four sensors placed to cover the whole area taken up by the tray  where the pills were dispensed  A different spike would signal when there had been more than  one pill dispensed at a time  The spikes would be compared and read by the microprocessor to  determine when to stop the motors  The sensors selected are force sensors  FSR 402 from  Interlink Sensors  See Appendix     They need 5V to operate and their reading force is from 0 1N  up to 10N  It was going to be placed at the bottom of the device     New Design Construction and Progress    Since the platform where the pills are being dispensed is 0 1016 x 0 0508 m  4 x 2 in    one sensor  as opposed to four  placed in the center can recognize if a pill has been dropped  anywhere in that area  To prevent the sensor from reading vibrations on the counter or table  the  sensor is now i
84. r shaft were misaligned   Figure 14 shows this misalignment  The motor gear would drive the auger gear with some  interference  It was clear that a new method was needed to integrate the bin into the device  It  was decided that the best method would be to print the bin holders and motor mounts using the  3d printer  Parts made using the 3d printer are much more accurate that those made by cutting  Plexiglas with a band saw  The design for the new bin holder is shown in Figure 15  This part  will be attached to the device wall using mechanical fasteners  The bolts will go through the  holes in      part  Using mechanical fasteners 15 more accurate than gluing because parts that are  in the process of being glued together are susceptible to slipping while the glue 15 drying  The  holes can be drilled into the device wall very accurately using the milling machine that 1s located  in the machine shop in the Harding University Ulrey building  This machine has a digital readout  specifying the position of the tool head  allowing for very accurate positioning of the tool head  position  This means that the holes can be drilled at where they need to be within acceptable  tolerance        Figure 14  Misalignment between auger gear and motor gear        Page 13       Figure 15  Design of the bin holder     A similar design process was carried out for the motor mount  The motor mount will be 3d  printed to ensure high accuracy  A picture of this design 1s shown in Figure 16        Figu
85. r supplies are disabled by    driving the  HIBERNATE pin high  Figure 2 2 shows the power up  sequence for the MRF24VWB  MA MRF24V BOMB     There is an internal Power on Reset  POR  circuit  which keeps the module in reset until VDO is within  specification  The Hibernate and Reset signals are also  used to control startup  In Figure 2 2  section    is  controlled by the internal POR and section B is an  allowance for the        bus to stabilize when the module  supplies        enabled  Once Hibemate is disabled  the  host software provides 1m35 of startup to allow the         to stabilize  This time is pre programmed into the host  driver  and may need to be increased if insufficient  initial drive current is not provided to the       2              module  Section C is the driver controlled release from  Reset period  This takes approximately 300 mS and is  monitored by the stack driver  Mo additional time needs  to be provided by user software for startup     Page 88    MRF24WBOMA MRF24WBOMB       2 9 Power States           MRF24WBOMA MRF24WB  UMB has several  power states  These are Hibernate  Sleep and Active   two sub states   as shown in Figure 2 3  The selection  of power state directly affects system behavior  and  overall power consumption or battery life  There is also  a  Standby  state that is not user controlled     2 3 1                                  An         state is defined as no power applied to the  device  The Hibernate mode is the closest to controll
86. ransmitter  When radio waves from the reader reach the chip s antenna  the energy is  converted by the antenna into electricity that can power up the microchip in the tag  typically via  inductive coupling   The tag is then able to send back any information stored on the tag by modulating  the reader s electromagnetic waves   Active tags  have their own power source and transmitter  The  power source  usually a battery  is used to run the microchip s circuitry and to broadcast a signal to a  reader  Due to the fact that passive tags do not have their own transmitter and must reflect their signal       Page 112    to the reader  the reading distance is much shorter than with active tags  However  active tags are  typically larger  more expensive  and require occasional service     Frequency refers to the size of the radio waves used to communicate between the RFID system  components  Just as you tune your radio to different frequencies in order to hear different radio stations   RFID tags and readers must be tuned to the same frequency in order to communicate effectively  RFID  systems typically use one of the following frequency ranges  low frequency  or LF  around 125 kHz   high  frequency  or HF  around 13 56 MHz   ultra high frequency               around 868 and 928 MHz   or  microwave  around 2 45 and 5 8 GHz      The read range of a tag ultimately depends on many factors  the frequency of RFID system operation   the pawer of the reader  and interference from other RF de
87. re 16  Design of the Motor Mount    The full integration of all of these components with the device housing 1s shown in  Figure 17  This figure 1  not a drawing of the overall device  It only shows how the dispensing  mechanism  the motors  and the device housing integrate together  The holes in the device       Page 14    housing are designed to match exactly with the holes      the bin holder and the motor mount   Bolts pass through these holes to connect these parts to the device housing  An up close view 1   shown in Figure 18  Everything is positioned exactly to ensure that two thirds of the teeth  overlap in the mating auger and motor gears  Figures 19 shows the layout of holes in one side of  the device housing  This will serve as the template for drilling the holes with the milling  machine        Bolts attach the bin  holder to the device  housing             Figure 17  Integration of the dispensing mechanism  motor  and device housing     Holes for next  bin holder       Holes in device  housing and bin  holder line up       Figure 18  Up close view of the integration        Page 15       Figure 19  Template for drilling holes in the device wall     Some changes were made in the design of the auger casing mechanism  First the minor  diameter of      auger was increased from 0 64 cm to 1 27 cm  0 25 in  to 0 5 in   This new auger  is shown in Figure 20  This design change should assist with the dispensing of pills that are very  long  A prototype that was 3d printed 
88. rriage return characters  respectively   The middle ten bytes  are the actual tag s unique ID  For example  for a tag with a valid ID of OFO184F07A  the following bytes  would be sent            0x30  0x46  0x30  0x31  0x38  0x34  0x46  0x30  0x37  0x41  0  00     Interference    The Parallax RFID Card Reader  like many RF devices  may experience RF noise      its frequency range   This may cause the reader to transmit a spurious tag response when no tag is near the unit  This will not  affect mast uses of the RFID Card Reader  To avoid treating spurious responses as legitimate tags  it is  recommended to read two responses in a row within a given amount of time  for example  one second   to ensure that you are reading a valid tag and not a  tag  generated by noise        Page 111    DC Characteristics    At Ver    5 0   and Ta   25  C unless otherwise noted    Test  Supply Votage  ve                88  V      Supply Curent le  ee                 _    Supply Curent  Actve  lee                      o  200      Output LOW             Va                  V       OupuHiGHwotags  Von                    L  v    Absolute Maximum Ratings    Condition value  Operating Temperature  40  C to  85      Storage Temperature  55  C to  125           Ground Voltage  V  Voltage on any pin with respect to V   0 3V to  7 0V       Supply Voltage  Vor   4 5V to  5 5V    NOTICE  Stresses above those listed under    Absolute Maximum Ratings    may cause permanent damage  to the device  This is a str
89. s                   NOTES  1 10 CFM or 150 LFM  average measurement of siz aqualy distanced points through    3 5 x 1 6    cross sec  on 0 25                    Recommended airflow direction is from the AC sida to the DC side                areal with power super mouriad       Page 133    BLP55 AC DC Series Data Sheet         55 Watts       Changing the Shane af Power       Figure 1         55 3000 Typical Quasi Regulation  Performance for  12V Output    12V Output Voltage   Volts           0 5 1 15 2 25  12V Output Current  Amps     Figure 2  BLP55 3000 5V Output Voltage vs  12V load    5 2  5 1           H 4 9   gt  48       47     4 6  4 5       0 0 5 1 1 5 2 25  12V Load in Amps    Page 134    BLP55 AC DC Series Data Sheet          nn 55 Watts  ead Changing the Shape af Powar       Overall Size  3 00  x 5 00  x 1 23   76 2mm x 127 0mm x 31 2mm  Weight  0 51 Ib  023          Mechanical Drawing     Single Output Models   eo NENNEN   TU    im KS uB PL                      CN2  DiC                                  TABLE    m2                                         GSU           MET MHNT EZ FASDCH                         THEE        PETER                                                           PUMA          LLS     HOUSING PIN         MOLEX 22 ET             EC  0                 Thie ls an outline drawing only  The detalled location of co    Page 135    BLP55 AC DC Series Data Sheet    55 Watts  power  DITE           Changing the Shape af Power       Overall Size  3 00  x 
90. s up  to dispensing a pill from each bin 24 times  We will do eight days  worth rather than  seven to account for the total time throughout the week that the device 1  not dispensing     The intensity of the alarm will be measured with a digital display sound level sensor  from radio shack  5   The sensor reads from 50 to 126 dB and will be placed within one  meter of the device  The alarm intensity will be measured from within this distance 10  times  The mean of these measurements must fall within the range listed in the technical  requirements     Random people will be asked to program the device  The number of people that perform  this test must at least be above 10  The time it takes a person to program the device will  be recorded by one of the team members  The time needed to program the device does  not include the time taken to learn how to use the device  The programming time of all of  the testers will be averaged  To successfully meet the ease of use requirement  this  average must be under five minutes     To determine that a container holds a month s supply of pills  90 pills will be poured into  a container  If all of the containers are the same size  then this test will only need to be  performed on one of the containers  If the containers are different sizes  then this test will  be performed on the smallest container  The pills used in this test must be category four   To successfully meet this test  90 pills must fit into the container without spilling over
91. s will again be used to display characters as they are typed  AII  64 characters will be used for displaying special instructions to the patient for taking medication   Currently  the code required for initializing the screen  sending characters and all other necessary  commands has been written and thoroughly tested     Currently a header file that has functions for initializing the LCD  printing characters to  the screen  printing whole strings to the screen  clearing the screen  and moving the cursor has  been written  This program has been integrated with several other programs in order to output  messages to the LCD screen  For example  the program for the RFID reader outputs a  confirmation message to the LCD screen when    card 15 detected  and for the keypad the buttons  pressed are output onto the LCD screen  The contrast for the LCD 1  controlled using a single  potentiometer  The backlight for the LCD will be controlled by the processor using a single  output and a transistor  No more work 15 anticipated to be done with using this device other than  to solder it to the control system PCB     Page 53       7        p   3    F  aaia    t  ILL  D  IL a   mil  gt            ah            164   1        MADE IN CRYSATL 0840    Figure 64  This is a picture of the LCD screen with a printed message       Figure 65  This shows the LCD connected to the processor       Page 54    Keypad and Encoder     This will be used with the LCD screen for initially setting up the device 
92. sed sequentially until    STOP condition is  executed  When Voc falls below 1 25 x Vear  the device terminates an access in progress and resets the device  address counter  Inputs to the device will not be recognized at this time to prevent erroneous data from being  written to the device from an out of tolerance system  When        falls below           the device switches into    low   current battery backup mode  Upon power up  the device switches from battery to        when        is greater than            0 2  and recognizes inputs when Vcc is greater than 1 25 x           The block diagram in Figure 1 shows the  main elements of the serial RTC        Page 129    Appendix J  Power Supply    Page 130    BLP55 AC DC Series Data Sheet     ER 55 Watts  Power one           2   8        Features     RoHS lead free solder and lead solder exempted  products are available     Industry standard 3   x 5    footprint      Main output remote sense          marked to Low Directive     Compliance to EMG1000 4 2  3  4  5  6  8       The BLP55 Senes economical and compact construction provides single or three output ac dc power conversion to  meet the requirements of networking and communications systems  as well as commercial and industrial  configurations    The BLP55 is rated for convection  as well as forced air cooling  Full output power is available with extemal  forced air cooling  features include main output remote sense and an intemal EMI filter     Single Output Model Selecti
93. sion  driver   Clock to shift serial data D   Switch signal for converting the liquid crystal  drive waveform to AC    Character pattern data corresponding to each  segment signal    Common signals that are not used are changed  to non selection waveforms  COMS to COM16         non selection waveforms at 1 8 duty factor  and       12 to COM16 are non selection  waveforms at 1 11 duty factor     Segment signals    Fower supply for LCD drive      W5   11 V  max           2 7V to 5 5V  GND  OV    When crystal oscillation is performed  a resistor  must be connected externally  When the pin input  is an external clock  it must be input to OSC1     Page 96    include  lt p30f6015 h gt   include  lt string h gt   include  lt stdlib h gt     void lcdDelav       I  int delay   0   int delay2   0     for               0                 lt  1            2        for             0             lt  2500                              this function is used to clear the display  void clearLCD           Set the command to clear the display  PORTE   0  0001                0  0000       5       the command               0  0004     lcdDelay       PORTF   0  0000     ledDelay             this function is used to turn on the display and show a    blinking cursar   void initLCD     I    5et the command to turn on all 4 lines  PORTE   Ox0036   PORTF   0  0000       5end the command  PORTF   0  0004     1        1              Set the command to turn      the display and show         blinking cursor  
94. ssor and activates a transistor to  power the component  Figure 68 shows the alarm circuitry integrated with the microprocessor               J         eee                         Transistor                    Figure 68  Alarm circuitry       Page 60      NATIONAL   INST RUMENTS    Cursors              dT          RMS  4 982 V Freq  324 047 Hz Vp p  121 19       __ Sample Rate  200   5 5      NATIONAL         P  INSTRUMENTS    Sample Rate  40 kS s    Lc  RMS  5 091 V Freq  31 617 Hz Vp p  2 56 mV    Figure 69  Oscilloscope Reading of the Alarm    An oscilloscope was used to test the output of the system  The square peaks in Figure 69    show when the alarm is       and when the alarm 15 off  the output is constant in SV  There is     greater frequency when the alarm is on     Figure 70 shows two decibel meters that were used to test the decibel range of the alarm       when it was on to meet the sound intensity requirement  The first meter simply shows an average  reading  The second meter shows three readings  the current reading  88 dB  was at the moment  when the alarm was on  the average reading  70 dB  is the room with the air conditioning system  on and the alarm 1  off  and the highest reading  85 dB  shows the previous set of beeps     Current    Average    Highest              Figure 70 Sound intensity testing for the alarm in decibels    Page 61    n  la  Ject P                Organization and Management    The Asklepius Pill Dispenser team comprises two mechanical 
95. ted  Now a time can be set to the clock and stored even after power to the  board has been removed because the clock s separate backup battery maintains the value stored  in the clock  The program written can set the time  and retrieve the time and output the retrieved  time to the LCD screen as shown below  There will be no more work required for programming  this component  The code for this can be seen in appendix I        Page 44     gt     OD        Ve          t    LCD Screen Real time Clock       Figure 54  This shows the real time clock circuit on the right connected to the processor in the  middle with its output on the LCD screen to the left     Motor Controller Circuit     This circuit has been partially breadboarded to test that 1 will work  A program was  written that successfully controlled multiple motors  one at a time  The processor can also change  the direction the motors turn using a single output  A program was also written to test this circuit  with the door motor  It successfully opened the door  paused and fully closed the door using this  circuit     Page 45    XOR Gates       JK Flip Flops      SE A TET      Half H Drivers    Demultiplexer    NOT Gates    Figure 55  This shows the demultiplexer  bottom left   driver logic  top left   and motor driver  chips  right      Each motor will have one of the 754410 half h driver ICs  In order to do this  10 small  PCBs will be used to hold each motor driver  Below 1  a picture of one of the circuits that has
96. tested to be convenient on a counter top much like a microwave   Also  it 15 preferable to attach electrical components to a stationary part  Both the keypad and       LCD screen will have wires attached to them  These wires would get 1n the way of the user when  they raise the lid  The lid can be seen in both Figure 32        Page 23       Figure 32  Hinged Lid                Opened     Construction of Pill Retrieval Door     Figure 33 shows the initial design of the pill retrieval door from last semester  The initial  design used two smooth surfaced horizontal tracks that constrained the door on top and bottom   and motion was to occur in the form of sliding along the tracks  Dr  Miller pointed out that this  design of the pill retrieval door would likely cause the door to bind due to the friction along the  two tracks  Instead of redesigning the entire subsystem  the issue was resolved by adding wheels  to the door to reduce friction  This solution saved time in our schedule because time was not  wasted completely redesigning the door  Also  it saved money in our budget because the eight  wheels were obtained from two small toy cars     Page 24       Figure 33  Initial Design of Automated Pill Retrieval Door and Rack and Pinion System    Construction of the pill retrieval door began by cutting the 10 16 cm x 10 16 cm  4 inx 4  in  doorway out of the front panel of the device housing as shown in Figure 34  The doorway  was cut using a standard mill  and was a slow process b
97. the PIC  microcontroller on a normal           available  indication   If      data is available on a DTIM check  the module  reenters the Power Save state until the next DTIM                 interval is programmed at the Access Point  This  state can provide  as if on  behavior of the radio with a  significant power savings versus  always on   The  battery life expectation of this mode is several days to  several weeks  This mode is characterized by a very  low latency  as low as 200 mS  to begin data transfer  from the low power state     2 33 ACTIVE STATE    The Active state is identified      one of two states where  the radio circuitry is fully on  The two active states are  the Receive state  RA ON  and the Transmit state  TX  ON      2 3 4 STANDBY STATE    The Standby state is not user controlled but is noted as  it helps identify and track certain operations of the  module during power tracing     MRF24WBOMA MRF24WBOMB POWER STATE DEFINITIONS                Ov                 completely disconnected       is completely disconnected        internal    power regulators are OFF     enabled by                    pin       se                       Enabled by TCP IP driver    Receive circuits are on and receiving    TX ON    3N   O   Transmit circuits are on and transmitting       Standby   33v   O   State machine transition state only     not user controlled    Page 89    MRF24WBOMA MRF24WBOMB       40 ELECTRICAL  CHARACTERISTICS    TABLE 4 1  DIGITAL ELECTRICAL CHARACTERI
98. tic       Figure 63  Inverter Testing    Figure 63 shows the testing for the inverter circuit to operate the op amp in the force  sensor  Its output voltage is a few volts lower than the input voltage  yet it functions properly        Page 52    User Interface System  Overview     The purpose of this system 1  to allow the caretaker to set up the device and for the  patient to receive their medication  More specifically  the caretaker will use an LCD screen and  keypad to initially connect the device to a Wi Fi network  Then the caretaker will use a separate  computer connected to that same wireless network to program the device to dispense the  patient s medication in the right amount and at the correct times  When the alarm sounds for the  patient to retrieve their medication  the patient will scan an RFID chip and the device will allow  access to the dispensed medication and display any special instructions that go with that  medication on the LCD screen     LCD Screen     This will be used for initially setting up the device with the wireless network and for  giving any special instructions to the patient when taking medication  The screen can display  four lines of 16 characters at one time  so when connecting the device to the Wi Fi network the  top two lines will prompt the user to enter the name of the network and the second two lines will  display characters as they type them  After that the top two lines will prompt the user for the  password and the bottom two line
99. to 250 mg   250 mg to 500 mg  500 mg to 750 mg  and 750 mg to 1 g  For example  a pill that weighs  100 mg 15 a category one pill  The 40 tests will be divided evenly between these four  categories  meaning that 10 tests will be done with pill sizes in only one category  The  device must perform successfully    40 consecutive tests  with the variability of pill types  as described above              device will be weighed with a bathroom scale to determine that it meets the weight  requirement  The device will be weighed four times  The mean of these measurements  must be under the requirement listed      the technical requirements        Page 143    The device will be measured to determine that it meets the volume requirements  These  measurements will be made with a measuring tape  The height  width  and length of the  device will be measured four times each  The mean of these measurements must be less  than requirements listed in the technical requirements  For example  the height of the  device will be measured four times with a measuring tape  These four measurements will  be averaged and must be less than 0 46 m  The definition of the height  weight  and  length is described in the technical requirements     The life of the back up battery will be tested  The battery will be fully charged and the  device will undergo eight days  worth of dispensing in a 24 hour period  This assumes the  Worst case scenario of dispensing a pill from every bin three times a day  which add
100. ttery indicator circuit will be attached to the battery circuit in the power supply  circuit with a switch that if it is turned on and there is enough voltage to operate  an LED will  turn on  similarly  if the switch is on and there 1s not enough voltage  no LED will turn on  The  voltage considered high enough for the LED to turn on is 7 7V or higher     Figure 46 shows this scenario of having the switch off on the left side  and the switch on  with the LED on  on the right side        f       e 0 G    q                               Figure 46  Battery indicator circuit with the switch off and            Page 38    Control System    Overview     The overall purpose of this system 15 to control all of the other components of the device  using electrical signals so that the device operates according to the specified requirements  More  specifically  this system makes sure that the pills are dispensed when they are supposed to be   that the right amount of pills are dispensed  that the patient receives the pills  and that the  caretaker is informed if anything is wrong  This system communicates with most of the other  systems to achieve this       of the information about the medication in the device  such as how  many pills there are in each bin  when each pill should be dispensed and how many of each pill  should be dispensed  1s all stored in the control system     Microprocessor     Currently the processor has been put onto a breadboard using a 64 pin socket that has  been
101. und Force Sensing Resistor        Description                       Interlink Electronics FSR    400      t amd DR series is part of the single zone        m Force Sensing Resistor   family             orce as low      CLR Force Sensing Resistors  or FSRs     are robust polymer thick film  PTF   devices that exhibit a decrease       resistance with increase in force  applied to the surface of the sensor   This force sensitivity is optimized   for use in human touch control of  electronic devices such as automotive  electronics  medical systems  and in          E  industrial and robotics applications     E The standard 402 sensor is a round    Robust  up to 10M actuation sensor 18 28 mm in diameter     Simple and easy to integr Custom sensors can be manufactured    in sizes ranging from 5mm to over  600mm  Female connector and short  tail versions can also be ardered        Industry Segments    Game controllers    Medical device control     Navigation Electron    Industrial HMI    Figure 1   Force Curve Figure 2   Schematic        1                                            EH   T  Ht H                   Automotive Pi           HT          7             Consumer                10 100      10000  FORCE jg     Interlink Electronics   Sensor Technologies    www  interlinkelectronics com    FSR 402            30 81 794           Device Characteristics    Feature Condition    Actuation Force 0 1 Newtons  Force Sensitivity Range 01 100    Newtons  Force Repeatability  sigle        
102. vices  Balancing a number of engineering  trade offs  antenna size v  reading distance v  power v  manufacturing cost   the Parallax RFID Card  Reader s antenna was designed specifically for use with low frequency  125 kHz  passive tags with a read  distance of around 4 inches        Ethan Lilly   This program will allow for an RFID card to be read and     confirmation message to be   displayed on and LCD screen         include  lt p30T6015 h gt    include  lcd h        Macros for Configuration Fuse Registers  copied from device  header file       _FOSC  CSW_FSCM OFF   FRC    XT PLL8      Set up for Crystal  multiplied by Bx PLL      FWDT WDT OFF      Turn off the Watch Dog Timer            tunctions   void initRFID            set the enable pin on the RFID reader to LOW  PORIFbits RF5   0     printString   Ihe RFID reader has been enabled   32          void initUART         U2BRG   0  00  7    set the baud rate to 2400 bps  U2MODEbits PEDSELO   0   U2M0DEbits PDSEL1   D    set UART to 8 bit no parity  U2MODEbits STISEL   0    aet UART to 1 stop bit    25       0    the interrupt is triggered      soon            character is recieved  IFSlbits U 2ZRXIF   0    set the interrupt flag to low  IEClbits U2EXIE   1     enable the interrupt  U2MODEbits UARTEN   1    enable the UART Module    Page 113    void attribute    interrupt    U2RXInterrupt  void      int main           PORTE   07   5et all of PORTE to 0  IRISE   0  0000    make these ports set to output   PORTB   07 f  5et 
103. waveform                      frequency AC waveform      Correspond to high speed MPU bus interface      2 MHz  when          5       4 bit or 5 bit MPU interface enabled     80 x 8 bit display         80 characters max       9 970 bit character generator ROM for a total of 240 character fonts      208 character fonts  5 x 8 dot         32 character fonts  5 x 10 dot        Page 93    HD44780U    64 x  amp  bit character generator RAM       8 character fonts  5    8 dot        4 character fonts  5 x 10 dot    l6 common x 40 segment liquid crystal display driver   Programmable duty cycles       1 8 for one line of 5      dots with cursor       1 11 for one Ime of 5 x 10 dots with cursor       1 16 for two lines of 5 x 8 dots with cursor   Wide range of instruction functions        Display clear  cursor home  display on off  cursor on off  display character blink  cursor shift   display shift   Pin function compatibility with       47805   Automatic reset circuit that initializes the controller driver after power on    Internal oscillator with external resistors      Low power consumption    Ordering Information   Type No  Package CGROM  HD44780UA00FS             Japanese standard font  HCD44780LIAQD Chip   HD44780UA00TF TFR 80F   HD44780UA02FS FP 80B European standard font  HCD4A47T80LIAQ2 Chip   HD44780U A02 TF                 HD44780UBxxFS FP 80B Custom font  HCD44780UBxx Chip   HD44780UBxxTF                  Note  xx  ROM code          Page 94    HD44780U    HD44780U Block 
104. when it 1s time to take their  medication  3   The problem with this 1s that each bin only has enough space for three pills at the  most  and the alarm can only be set to go off once a day  It also does not dispense the pills  but  leaves them accessible to the user     The Asklepius medicine dispenser will solve these problems  making it easier to organize  medication  It will be quick  easy to setup  and will allow a person to stay organized for a month  at a time  The device will also sound an alarm when it 1s time to take the medication  The  Asklepius medicine dispenser is the superior alternative        Page 138    Problem Statement    Taking the correct medication at the correct time 15 challenging for the elderly and can be  a burden on loved ones  Not taking medication properly can be very dangerous and potentially  fatal  The age 65 and over market demands a cost effective device that will keep track of and  dispense the proper amount of medication at the right time  The device would serve solid  orally  ingested tablets and capsules  Throughout the report  this medication will be referred to with the  term pills     Customer Needs    The caretaker 1s the person who sets up the device and 1s assumed to have the technical  skills of an average person  meaning anyone who can operate a computer to browse the internet  and do basic things such as shopping online  The patient 1s the person receiving pills dispensed  from the device and might have mental difficulties  The
105. with the wireless  network  It also needs to be inexpensive and use very little power  This keypad was also found at  www futurlec com and was selected to be used with the device  The cost of the device is only  3  and uses similar power to the other keypads  When entering in the network information  the  caretaker will have to press the buttons multiple times to enter letters  For example  to enter a    b     the caretaker would push the number two key three times  Upper case letters come after the  lowercase letters  so to get a  B  the caretaker would press the number two key six times total   The star key will be used as backspace and the         key will be used to signal that they are done  entering characters  These will be clearly labeled on the keypad and explained in the user  manual  This is fairly complicated which 1  unfortunate  but 1t will generally only be used once  for initial device setup  An EDEI144 keypad encoder will be used with this keypad  It has four  outputs that will be read by the processor for determining what key was pressed  It also sends an  interrupt signal to the processor so that the processor knows when to read the data lines  These  components have been put onto a breadboard and tested       of the code required for the  processor to read in data from the keypad as earlier specified has also been completed  For a  detailed look at the keypad and encoder s features and some code  see Appendix D        DP     M ice    Output to Processor g 
106. within the  Microchip TCP IP stack  The command API       detailed in the Microchip TCPAP stack online help  that is included in the free Microchip Application  Libraries download        Page 86       MRF24WBOMA MRF24WBOMB       TABLE 1 1  Pin Description      Pin   Symbol             Description         000000000     3   GND    P     3   wc   N  pontem             3  mem   o            4   max   1 constant                                           ue           JTAG Reset input  optional  see Section 2 0  Circuit Description      P jom SSCS                                 NC  Domtcomet O  _     NO                  NC                 l  Write protect  this pin is used to enable FLASH update    x P Power _     P      _                      KU             Hibernate mode enable  high input will disable the module                   mAGtesenbe        Nc    Nc  Donat connect          NE NEL  1 SPI Chip Select input  constant drive or pull up required     NC  jDontcomet SSS     3   emp          e                                               268   DEBUGRX        Serial debug port input  see Section 2 0  Circuit Description   LECCE LX Serial debug port output  see Section 2 0  Circuit Description      38          P                                 Power                                 e     32   So   0                          0      33   INT   0  jlmtemuptoutput opendraim requres a pull up     34          1 gjSPidekipu                                    Legend  Pin type abbreviation  
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
Sharp MX-3111U Quick Guide  HP 15 15-g002se  EN PANEL HOIST NL PLATENLIFT FR LÈVE-PLAQUE  User Guide - American Dan  FEA Newsletter October 2001 - Free of Papers from LS  Sandberg Adaptor 2xRCA-F->1xRCA-M  JTC4077 コンプレッションテスター取扱説明書  Samsung غسالة BAIKAL Washer بتقنية محرك العاكس الرقمي Digital Inverter Motor سعة 7 كيلو دليل المستخدم  ATCO LH ESP - Control y Suministros  Gebrauchsanweisung    Copyright © All rights reserved. 
   Failed to retrieve file