Home
basic school supplies dispenser with single transaction payment
Contents
1. LOC OBJECT CODE LINE SOURCE TEXT VALUE 00067 2 05 4 0008 00068 DO TMR2X RETURN z 00069 k k k k KOK K K K K KOK KOK R k KOK KOK KOK K K KOK K K KOR K KOK OK KOK KOR K KOK OK R R RK KOK R KOK OR KOR K RK KK 05A5 0846 00070 DO TMR3 MOVF 1 05 6 1903 00071 BTFSC 5 5 2 2 05A7 2DAF 00072 GOTO OK H 05A8 1408 00073 BSF 0 2 00074 05A9 18 0 00075 BTFSC PORTC NEW 1 7 05 2DBO 00076 GOTO DO TMR3X 1 1 00077 BTFSS PORTC PREV 1 2080 00078 DO TMR3X 05AD 03C6 00079 QTY F H 05 2DBO 00080 GOTO DO TMR3X 2 00081 E 1008 00082 1 PORTD 0 00083 0580 0008 00084 DO TMR3X RETURN P 00085 K K 0581 0847 00086 DO ITEM2 Book2 05B2 1903 00087 BTESC STATUS Z H 05B3 2DBB 00088 GOTO ITEM2 OK E 0584 1488 00089 BSF PORTD 1 00090 05 5 19 0 00091 BTFSC PORTC NEW 3 0586 2DBC 00092 GOTO DO TMRAX z 05B7 1DA1 00093 BTFSS PORTC PREV 3 0588 2DBC 00094 GOTO DO TMRAX 5 05 9 03 7 00095 DECF ITEM2 05BA 2DBC 00096 GOTO DO TMRAX 00097 O5BB 1088 00098 ITEM2 OK BCF PORTD 1 H 00099 05 0008 00100 DO RETURN 00101
2. BCF LCD CPORT LCD RS MOVLW 200 CALL 2 MOVLW D 200 CALL 2 MOVLW H 38 MOVWF LCD DPORT CALL PULSE EN MOVLW D 100 CALL 2 CALL PULSE EN MOVLW D 100 CALL 2 CALL PULSE EN MOVLW 100 CAL WAIT2 OVLW 06 OVWF LCD DPORT CAL PULSE EN OVLW H OF OVLW H 0C OVWF LCD DPORT CALL PULSE EN OVLW H 14 OVWF LCD DPORT CAL PULSE EN OVLW H 01 OVWF LCD DPORT CAL PULSE EN OVLW D 100 CAL WAIT2 RETURN MOVLW 10 MOVWF WAIT1 VAL DECF VAL F load 105 load 10mS LCD to load 5mS set Display set 7 7 Clear LCD approx 82 062 1203 00270 BTFSS STATUS Z 7 0628 2229 00271 GOTO 1 LOOP 062 0008 00272 RETURN 00273 062D 00F3 00274 WAIT2 MOVWF WAIT2 VAL N x 50uS delay 062 2627 00275 WAIT2 LOOP CALL 1 062 00276 WAIT2 VAL F 3 0630 1003 00277 BTFSS STATUS 2 H LOC OBJECT CODE LINE SOURCE TEXT VALUE 0631 2E2E 00278 GOTO WAIT2 LOOP 0632 0008 00279 RETURN E 00280 amp k k k k 1k k k k k k k k
3. INDF W MOVWF LCD DPORT CALL PULSE EN INCF TEMP1 F GOTO RAM2LCD2 NOP SET RSO BCF LCD CPORT LCD RS MOVLW LCD L3 ADDR MOVWF LCD DPORT CALL PULSE EN SET RS1 BSF LCD CPORT LCD RS MOVLW LCD CHAR MAX SUBWF TEMP1 W BTFSC 5 05 2 GOTO RAM2LCD3X MOVLW LCD RAM BUF ADDLW LCD CHAR MAX ADDLW LCD CHAR MAX ADDWF TEMP1 W MOVWF FSR BSF FSR 7 MOVF INDE W MOVWF LCD DPORT CALL PULSE EN INCF TEMP1 F GOTO RAM2LCD3 SET RSO BCF LCD CPORT LCD RS MOVLW LCD L4 ADDR MOVWF LCD DPORT CAL PULSE EN SET RS1 BSF LCD CPORT LCD RS MOVLW LCD CHAR MAX SUBWF TEMP1 W BTFSC 5 05 2 GOTO RAM2LCDAX MOVLW LCD RAM BUF ADDLW LCD CHAR MAX ADDLW LCD CHAR MAX ADDLW LCD CHAR MAX ADDWF TEMP1 W MOVWF FSR BSF FSR 7 INDF W MOVWF LCD DPORT CALL PULSE EN INCF GOTO RAM2LCD4 0689 0000 00371 RAM2LCD4X 00372 j 068A 0008 00373 RETURN 00374 koe K KOR k 0688 01 9 00375 LD 502 CLRF TEMPI LOC OBJECT CODE LINE SOURCE TEXT VALUE 068C 01 00376 CLRF TEMP3 7 068D 0874 00377 MOVF SG NUM W 068 00 9 00378 MOVWF 2 068 3003
4. C C C C MOVF MOVWF MOVWF H 4 H 5 SG NUM LD MSG2RAM CC W CC NEW CC PREV 55 0058 005C 005 005E 005F 006 006 0 1 0062 006 006 006 006 006 006 006 3 4 5 6 7 8 9 006 0068 006C 006 0061 006 007 007 0 I 0072 007 007 007 007 007 007 007 3 4 5 6 8 9 007 007B 007C 0809 00A2 00A3 0160 0161 0162 0163 0805 00A4 00A5 300F 00A6 1C4 1C5 1C6 1C7 1C8 1C9 1 137 101 102 103 1 4 1 5 106 1 7 108 109 1 1DB 1DC 1DD LOC OBJECT CODE 00214 00215 00216 00217 00218 00219 00220 00221 00222 00223 00224 00225 00226 00227 00228 00229 00230 00231 00232 00233 00234 00235 00236 00237 00238 00239 0024 0024 0024 0024 0024 0024 0024 0024 0024 0024 00250 00251 CO LINE SOURCE VALUE 007D 3008 007E 00 007 3008 0080 00cc 0081 3007 0082 00 0083 3007 0084 00 0085 3007 0086 OOCF 0087 0180 0088 0181 0089 0182 0183 0088 0184 008C 0185 008 0186 008 0187 008 0188 00252 00253 00254 00255 00256 00257 00258 00259 00260 00261 00262 00263 00264 00265 00266
5. K R KOR K KK 039B 3020 00713 DISP ITEM MOVLW LCD RAM BUF 039C 3 05 00714 ADDLW D 5 z 039D 0084 00715 MOVWF FSR 2 039 1784 00716 5 FSR 7 00717 z 039F 0844 00718 DISP ITEM SEL W H 03 0 3 01 00719 SUBLW D 1 03A1 1D03 00720 BTFSS 5 5 2 R 0342 2BB4 00721 GOTO DISP ITEMIX H 03A3 3042 00722 OVLW B 03 4 0080 00723 OVWF INDF P 03A5 0A84 00724 INCF FSR F H 03A6 306F 00725 OVLW o 2 03 7 0080 00726 OVWF INDF 03A8 0A84 00727 FSR F z 03A9 306F 00728 OVLW o 2 0080 00729 OVWF INDF 0A84 00730 INCF FSR F 2 3068 00731 OVLW k P 03AD 0080 00732 OVWF INDF 0 84 00733 FSR F 03AF 3031 00734 OVLW 1 P 03 0 0080 00735 OVWF INDF 2 0381 0A84 00736 INCF FSR F 2 03B2 3020 00737 OVLW 2 LOC OBJECT CODE LINE SOURCE TEXT VALUE 0384 0000 00739 DISP NOP H 00740 03B5 0844 00741 DISP ITEM2 ITEM SEL W 2 03B6 3C02 00742 SUBLW D 2 67 03B7 1D03 03B8 2BCA 03B9 3042 03BA 0080 03BB 0A84 03BC 306 03BD 0080 03BE 0A84 03BF 306 03 0 0080 03 1 0A84 03C2 306B 03C3 0080 03C4 0A84 03C5 3032 03C6 0080 03C7 0A84 03C8 3020 03C9 0080 03CA 0000 03CB 0844 03 3C03 03CD 1D03 2 03 3042 03D0 0080 0301 0A84 0302 3030 03D3 0080 0304 0A84 03D5 3030 03D6 0080 03D7 0A84 03D8 306B 03D9 0080 03DA 0A84 03DB 3
6. RAM BUF ADDLW MOVWF BSF D 54 gt FSR FSR 7 TOTALSALEHI W 73 LOC OBJECT CODE LINE SOURCE TEXT VALUE 0409 00 0 01057 MOVWF DATA HI 04 0868 01058 TOTALSALELO W 2 04CB 00 1 01059 MOVWF DATA LO 04 24FC 01060 CALL BIN2DEC16 04CD 24CF 01061 CALL DISP DEC 01062 E 04 0008 01063 DISP DAT2X RETURN 01064 2 04 082A 01065 DISP DEC OVF THOUSND10 W 04D0 390F 01066 ANDLW H OF 2 0401 01067 ADDLW H 30 04 2 0080 01068 OVWF INDF z 04D3 0A84 01069 INCF FSR F 0404 082B 01070 OVF THOUSAND W 0405 390F 01071 ANDLW H OF 0406 3E30 01072 ADDLW H 30 0497 0080 01073 OVWF INDF 0408 0 84 01074 FSR F 0409 082C 01075 OVF HUNDRED W 04DA 390 01076 ANDLW H OF 04DB 3 0 01077 ADDLW H 30 04DC 0080 01078 OVWF INDF 04 0 84 01079 FSR F 04DE 082 01080 OVF TEN W 04DF 390F 01081 ANDLW H OF 04 3E30 01082 ADDLW H 30 04 1 0080 01083 OVWF INDF 04 0A84 01084 FSR F 04 082 01085 OVF UNIT W j 04E4 390F 01086 ANDLW H OF 0485 3E30 01087 ADDLW H 30 04 0080 01088 OVWF INDF 7 04 7 0008 01089 RETURN 01090 z 01091 k k k k k k k k k k k k k k k K K KOK KOK K K K K KOK KOK K K K
7. PowerTrench 9 EcoSPARK ISOPLANAR QEET 5 LittleFE T M qQs EnSigna MicroFET QT Optoelectronics FACT MicroPak Quiet Series FACT Quiet Series MICROWIRE SILENT SWITCHER STAR POWER is used under license DISCLAIMER SMART START STAR POWER Stealth SuperSOT 3 SuperSOT 6 SuperSOT 8 SyncFET TinyLogic TruTranslation TM UHC UltraFET 9 VCX FAIRCHILD SEMICONDUCTOR RESERVES THE RIGHT TO MAKE CHANGES WITHOUT FURTHER NOTICE TO ANY PRODUCTS HEREIN TO IMPROVE RELIABILITY FUNCTION OR DESIGN FAIRCHILD DOES NOTASSUME ANY LIABILITY ARISING OUT OF THE APPLICATION OR USE OF ANY PRODUCT OR CIRCUIT DESCRIBED HEREIN NEITHER DOES IT CONVEY ANY LICENSE UNDER ITS PATENT RIGHTS NOR THE RIGHTS OF OTHERS LIFE SUPPORT POLICY FAIRCHILD S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS WRITTEN APPROVAL OF FAIRCHILD SEMICONDUCTOR CORPORATION As used herein 1 Life support devices or systems are devices or 2 A critical component is any component of a life systems which a are intended for surgical implant into the body or b support or sustain life or c whose failure to perform when properly used in accordance with instructions for use provided in the labeling can be reasonably expected to result in significant injury to the user PRODUCT STATUS DEFINITIONS Definition of Terms
8. 0580 0848 00102 DO 5 MOVF QTY W Book3 05 1903 00103 BTFSC 5 5 2 05 2DC7 00104 GOTO ITEM3 OK H 0560 1508 00105 BSF PORTD 2 2 00106 P 05C1 1B20 00107 BTFSC PORTC NEW 6 0582 2DC8 00108 GOTO DO TMR5X 0563 1 21 00109 BTFSS PORTC PREV 6 05 4 2DC8 00110 GOTO DO TMR5X 05C5 03C8 00111 DECF ITEM3 05C6 2DC8 00112 GOTO DO TMR5X A 00113 2 05C7 1108 00114 ITEM3 OK PORTD 2 00115 05C8 0008 00116 DO TMR5X RETURN P 00117 K K KK K K KOK KOK KK K KOK KOK OK K KOK KOK KOR OK 05C9 085A 00118 DO TMR6 TMR6 SEC W Ball Pen 79 LOC OBJECT CODE LINE SOURCE TEXT VALUE 05CB 2DD2 00120 GOTO DO TMR6A 05CC 0849 00122 05CD 1903 00123 BTFSC STATUS 2 2DE2 00124 GOTO ITEMA OK 7 00125 2 05 3032 00126 MOVLW D 50 2 050 OODA 00127 MOVWF TMR6 SEC R 05D1 1588 00128 BSF PORTD 3 u 00129 2 0502 301 00130 DO TMR6A MOVLW D 30 0503 025 00131 SUBWF T R6 SEC W 0504 1C03 00132 BTFSS STATUS C 0505 1188 00133 PORTD 3 05D6 OADB 00134 DO TMR6B INCF T R6 PRES F 05 7 3019 00135 MOVLW 25 P 05D8 025B 00136 SUBWF T R6 PRES W 05D9 1C03 00137 BTFSS STATUS C 05 2DE3 00138 GOT
9. ACKNOWLEDGEMENT To the Lord Almighty who constantly guides us for giving us the strength to persevere and the patience to undertake whatever obstacle we meet our heartfelt thanks Our sincerest thanks go to Engr Noel B Linsangan for all the patience and support that you give to all the students taking the course for giving us chances in finishing this design and to our adviser Engr Ayra G Panganiban for supporting and believing in us and for guiding us to take the right path These two people have been with us in the beginning and until the end of this design To the persons behind this project thanks for the camaraderie unity and cooperation Overnights will never be the same without three laptops and a bunch of sleepless and restless teenagers battling fatigue during midnight Nevertheless the experience shaped us to be better individuals Zyner M Detablan Mari Alexis Kaye F Marquez Gerome Cristopher P Refre TABLE OF CONTENTS TITLE PAGE APPROVAL SHEET ACKNOWLEDGEMENT TABLE OF CONTENTS LIST OF TABLES LIST OF FIGURES ABSTRACT Chapter 1 DESIGN BACKGROUND AND INTRODUCTION Background Statement of the Problem Objectives of the Design Significance and Impact of the Design Design Constraints Definition of Terms Chapter 2 REVIEW OF RELATED LITERATURE Chapter 3 DESIGN PROCEDURES Hardware Development Software Development Prototype Development Bill of Materials Chapter 4 TESTING PRESENTATION AND INTE
10. 00212 BSF LCD CPORT LCD RS 00213 ENDM 00214 00215 PULSE EN BSF LCD CPORT LCD 00216 NOP 00217 NOP 00218 NOP 00219 NOP 00220 LCD CPORT LCD 00221 CALL 00222 RETURN 00223 00224 EN H 80 m H 94 H D4 k k k k k k k k k R K KOR K K KOK KOK KOK KOK KOK KOR K KOR 00225 INIT LCD SET RSO RS to 0 81 LOC OBJECT CODE LINE SOURCE TEXT VALUE 0607 1308 M 0608 30C8 00226 delay 0609 262D 00227 060A 30C8 00228 delay 060B 262D 00229 00230 060C 3038 00231 8 Bit Data 2 line display 060D 0086 00232 060E 25FF 00233 060F 3064 00234 delay 0610 262D 00235 00236 0611 25FF 00237 0612 3064 00238 delay 0613 262D 00239 00240 0614 25FF 00241 0615 3064 00242 delay 0616 262D 00243 00244 0617 3006 00245 Increment No Shift 0618 0086 00246 0619 25FF 00247 00248 061A 300F 00249 Disp ON Cursor ON Blink ON 061B 300C 00250 Cursor OFF Blink OFF 061C 0086 00251 061D 25FF 00252 00253 061E 3014 00254 CursorMove Shift to Right 061 0086 00255 0620 25FF 00256 00257 0621 3001 00258 Display 0622 0086 00259 0623 25FF 00260 00261 0624 3064 00262 delay 0625 262D 00263 00264 0626 0008 00265 00266 0627 3010 00267 50uS delay 0628 00 2 00268 0629 03 2 00269 WAIT1 LOOP
11. CVR2 CVR3 CVRCON CVREN CVROE CVRR D DATAX2 DATA ADDR DATA HI DATA LO DC DISP DATO Ej Ed d d d d d d d E Ei Dd pd d DISP Q Q N P ESS DISP DATOX DISP SYMBOL TABLE LABEL DISP DAT2X DISP DEC DISP ITE DISP DISP ITEMIX DISP ITEM2 DISP ITEM2X DISP ITEM3 DISP DISP 00000015 0000001C 0000001B 00000042 00000043 000005A2 00000003 00000004 00000005 00000003 00000006 00000004 00000000 00000001 00000002 0000009C 00000006 00000006 00000041 0000002F 00000264 0000026F 0000027A 00000285 00000290 0000029B 00000265 0000026D 0000026C 00000004 00000007 00000000 00000001 00000002 00000003 0000009D 00000007 00000006 00000005 00000005 00000530 00000005 00000070 00000071 00000001 0000040E 00000456 00000457 0000048D VALUE 000004CE 000004CF 0000039B 0000039F 000003B4 00000385 000003CA 000003CB 000003 0 000003 1 87 DISP ITEMAX DISP 5 DISP 5 DISP ITEMX DISP LCD DISP LCD1 DISP LCD2 DISP LCD3 DISP LCD4 DOUBLE 001 DOUBLE 001X DOUBLE 010 DOUBLE 010X DOUBLE 100 DOUBLE 100X DOUBLE 10K DOUBLE 10KX DOUBLE 1K DOUBLE 1KX DO 560 DO MSGOX DO 560 DO 560 A
12. Hid Gi nm Hd nj n dm om RAM BUF ADDLW OVWF BSF D 534 FSR 5 7 70 LOC OBJECT CODE LINE SOURCE TEXT VALUE 0443 083A 00898 OVE SEL TOTALHI W 0444 00 0 00899 OVWF 2 0445 083 00900 SEL TOTALLO W 0446 00F1 00901 OVWF DATA LO 0447 24FC 00902 CALL 2 16 00903 0448 082C 00904 OVF HUNDRED W 0449 390F 00905 ANDLW H OF 2 044 3 30 00906 ADDLW H 30 044 0080 00907 OVWF INDF 2 044 0A84 00908 FSR F E 00909 044D 0820 00910 OVF TEN W 044 390F 00911 ANDLW H OF 044 3 30 00912 ADDLW H 30 7 0450 0080 00913 OVWF INDF E 0451 0A84 00914 INCF FSR F 0452 082 00915 UNIT W 0453 390F 00916 ANDLW H OF 0454 3E30 00917 ADDLW H 30 0455 0080 00918 OVWF INDF 2 00919 0456 0008 00920 DISP DATOX RETURN 00921 K K KOR OR K KOR KOK KOK K OK K K KEK 0457 0874 00922 DISP DAT1 MOVF MSG NUM W 0458 3 01 00923 SUBLW 1 0459 1003 00924 BTFSS 5 05 2 045 2C8D 00925 GOTO DISP 00926 0458 3020 00927 OVLW LCD RAM 045C 3EOE 00928 ADDLW D 14 045D 0084 00929 OVWF FSR 045E 1784 00930 BSF FSR 7 00931 045 3020 00932 OVLW LCD RAM BUF 0460 3
13. M 0655 0084 00317 MOVWF FSR 1 0656 1784 00318 BSF FSR 7 Ind Addr Select Bank 1 0657 0658 0659 065 0658 065 0800 0086 25FF OAF9 0000 LOC OBJECT VALUE 065D 065 065 0660 0661 0662 0663 0664 0665 0666 0667 0668 0669 066 0668 066C Select 066D 066E 066F 0670 0671 0672 0673 0674 0675 0676 0677 0678 0679 067A 067B 067C 067D 00319 00320 00321 00322 00323 00324 00325 00326 RAM2LCD2X DISP LCD3 LINE SOURCE TEXT 1308 3094 0086 25FF 1708 01 9 3014 0279 1903 2 72 3020 3 14 3 14 0779 0084 1784 0800 0086 25FF OAF9 2E63 0000 1308 30D4 0086 25FF 1708 01 9 3014 0279 1903 2 89 3020 067 3E14 067 0680 0681 0682 0683 Select 0684 0685 0686 0687 0688 3E14 3E14 0779 0084 1784 Bank 0800 0086 25FF OAF9 2 79 00327 00328 00329 00330 00331 00332 00333 00334 00335 00336 00337 00338 00339 00340 00341 0034 0034 0034 0034 0034 0034 0034 00349 1 01 Q 00350 00351 00352 00353 M 00354 00355 00356 00357 00358 00359 00360 00361 00362 00363 00364 00365 00366 00367 00368 00369 00370 RAM2LCD3 RAM2LCD3X DISP LCD4 RAM2LCD4
14. PORTC W MOVWF PORTC NEW CALL READ KEY CALL READ SW CALL ITEMS CALL MSGO CALL MSG1 CALL DO MSG2 CAL DO TMR1 CALL DO TMR2 CALL TMR3 CALL DO TMR4 CALL DO TMR5 CALL DO TMR6 CALL DO TMR7 MOVF NEW W MOVWF PORTC PREV CALL DISP DATO CALL DISP CALL DISP DAT2 CALL DISP LCD GOTO RESTOREREG Store value to done Restore ADDWF PCL F 1 H 2 00168 00169 Routine 00170 0029 110B 00171 TMROINT Overflow Flag 002A 3006 00172 TMRO 002B 0781 00173 00174 002C 0807 00175 002D 00 0 00176 002 2251 00177 002 2382 00178 0030 226D 00179 0031 22 7 00180 0032 22 1 00181 0033 233 00182 0034 256 00183 0035 2570 00184 0036 25 5 00185 0037 2581 00186 0038 2588 00187 0039 2569 00188 003A 25 4 00189 0038 0820 00190 003C 00A1 00191 003D 240E 00192 003E 2457 00193 003F 248E 00194 0040 2633 00195 00196 0041 2825 00197 registers amp exit 00198 0042 0782 00199 KEY TABLE 0043 3401 3402 3403 00200 340F 0047 3404 3405 3406 00201 LOC OBJECT CODE LINE SOURCE TEXT VALUE 340F 004B 3407 3408 3409 00202 340F 004F 340A 3400 340B 00203 340F 00204 0053 01 4 00205 INIT VAR 0054 268B 00206 0055 0186 00207 0056 0187 00208 0057 0188 00209 00210 0058 0807 00211 0059 00 0 00212 005 00 1 00213
15. 00173 00174 00175 00176 00177 00178 00179 00180 5 OK 00181 00182 DO TMR7X 00183 DECF MOVF BTFSS GOTO DECF GOTO BCF RETURN TMR7 SEC F TMR7 SEC W STATUS Z DO TMR7X 5 QTY F DO TMR7X PORTD 4 k k k k k k k k k k k k k k k k k k k K K K K K KOK KOK KOK KK KOK KOK KOK K K KOR KOK KOR KOK OK K K K K K KOR K UK KOR KOK OK K KUK K K KOR K RK KK LCD Subroutine 00184 00185 k 1 1 k k k k k k k k k k k k k k KK KOK KOK KOK K K K K KOR K KOR R KOK K K K K K K KOR K KOK K KOR K K KOR KOK KOR RK 00000006 00000008 00000007 00000006 00000004 00000014 00000080 000000A8 00000094 000000D4 05FF 0600 0601 0602 0603 0604 0605 0606 1788 0000 0000 0000 0000 1388 2627 0008 00186 VARIABLE USE D 00187 Waitl Val 00188 Wait2 Val 00189 Msg_Num 00190 1 00191 Temp2 00192 Temp3 00193 Temp4 00194 00195 LCD DPORT EQU PORTB 00196 LCD CPORT EQU PORTD 00197 LCD EN EQU 7 00198 LCD RS EQU 6 00199 00200 LCD LINE MAX EQU 4 00201 LCD CHAR EQU D 20 00202 LCD 11 ADDR EQU D 00 80 00203 L2 ADDR EQU L1 ADDR D 40 00204 13 ADDR EQU 11 ADDR 00205 14 ADDR L1 ADDR 54 00206 00207 SET RSO 00208 LCD CPORT LCD RS 00209 ENDM 00210 00211 SET RS1
16. 15 Propagation Delay Time from Logical 0 or Logical 1 into High Impedance State Propagation Delay Time from High Impedance State to Logical 0 or Logical 1 R 10k C 10 pF Figure 2 5 R 10k Vec 10V C 10 pF 15V 10 C 50 pF Figure 2 5V 10k 10V C 50 pF 15V Any Input Note 4 c Input C C 3 STATE Output C Any Output Note 4 Note 3 AC Parameters are guaranteed by DC correlated testing Note 4 Capacitance is guaranteed by periodic testing www fairchild emi com c69V IWM cc62t ZININ 107 MM74C922 MM74C923 Switching Time Waveforms ANY KEY ANY OTHER KEY DATA AVAILABLE Ti 2 z RC T3 z 07 RC where R 10k and C is external capacitor at input FIGURE 1 05 0 Vec DATA QUT VoL 10 NE 05 Von 9x DATA QUT 3STATE FIGURE 2 Www fairchildsemi com 6 108 Typical Performance Characteristics Typical vs Viy at Any Y Input Typical vs Vour at Any X Output 4 69V INM cC62t ZININ ROW PULL UP CURRENT LA COLUMN OUTPUT IMPEDANCE Vout V Typical F scan VS Cosc Typical Debounce Period vs 1 Hi Fscan DEBOUNCE PERIOD SECONDS
17. 2 3 and 4 and routed to bits 5 6 7 and 8 respectively These values were chosen to enable the use of interrupts when connecting the keypad to Port B The diagram below shows the internal characteristics of the Keypad Circuit Diagram OUTPUT ARRANGEMENT ob COLI E 2 3 3 This board is compatible with upstream boards operating off 3 3 Copyright Matrix Multimedia Limited 2005 page 6 138 THIS SYSTEM INCLUDES FEET Appendix 1 Circuit diagram Keypad Keypad Column N Row MATRIX MULTIMEDIA LTD www matrixmultimedia co uk Copyrgh 2004 Matrix Muimecia Keypad Board EB 014 00 1 BY Car 139 140 Basic School Supplies Dispensing Machine with single Transaction Payment December 2011 Zyner M Detablan Mari Alexis Kaye F Marquez and Gerome Cristopher P Refre Abstract The design s concept is a vending machine that dispenses various school materials It is intended to provide students faster access buying school supplies rather than purchasing supplies on the bookstore that usually results too much time wasted and normally a hassle When buying a specific school material the student can itemize the quantity they want and it will be dispense after inserting the necessary amount of coins needed The whole transaction will only be once depends on how many items the student bought since the des
18. 01234567890123456789 1 P 4 P EZIB 5 P ESP T P DT Back 2 ORG 0 0200 ADDWF PCL F 01234567890123456789 58 0201 3449 3454 3445 00313 00 00 344 343 3420 3420 3420 3420 3420 3420 343 3450 3420 3430 3430 342 3430 3430 3420 0215 3420 3420 3420 00314 EDIT P 00 3420 3420 3445 mE 3444 3449 3454 343E 3420 343D 3450 3420 345F 345F 342 3430 3430 3420 0229 3420 3420 3420 00315 DT 3420 3420 3420 3420 3420 3420 3420 3420 3420 3420 3420 3420 3420 3420 3420 3420 3420 023D 345B 342A 345D 00316 DT SAVE NEXT 3453 3441 3456 3445 3420 3420 3420 345B 3423 345D 344 3445 LOC OBJECT CODE LINE SOURCE TEXT VALUE 3458 3454 3420 3420 3420 00317 00318 01234567890123456789 00319 dt 1 1 4 11 00320 dt 2 Book2 5 Pencil 00321 dt 3 Book3 00322 dt N SELECT 00323 00324 0251 0805 00325 READ KEY OVF PORTA W H 0252 00 4 00326 OVWF NEW p 0253 390F 00327 ANDLW H OF 0254 2042 00328 CALL KEY TABLE 0255 00F9 00329 OVWF 0256 3010 00330 OVLW H 10 0257 05 4 00331 ANDWF KEY NEW F H 0258 0879 00332 TEMP1 W 02
19. Entering numbers in the keypad from 1 to 9 for book 1 Entering numbers in the keypad from 1 to 9 for book 2 Press Press Entering numbers Press in the keypad from 1to 9 for book 3 Press Press Entering numbers in the keypad from 1 to 9 for Ball pen Entering numbers Press in the keypad from 1 to 9 for Pencil Back or Cancel or Purchase Press 4 Dispense Item Press 1 Cancel the transaction Figure 3 4 System Flowchart Figure 3 4 shows the system flowchart of the Basic School supplies dispenser with single transaction payment The micro controller checks what keys you pressed in the keypads This also shows that when you pressed asterisk the program will back to the previous items except for the Book 1 that will do nothing if you press Number sign will go to the next item except for the final part that will do nothing because instead of pressing the dispenser require you to press 4 The last part when you cancel the transaction the machine will automatically give the coins that you insert Program Flowchart START Store Quantity Store Quantity m gt Purchased for Ball Purchased for P en Book 1 ux Compute SHER Corresponding price for Ball price for Book 1 Add Price of Book 1 Store Quantity Book 2 Book 3 and Purchased
20. a circuit in which the interconnecting conductors and some of the circuit components have been printed 6 etched etc onto a sheet or board of dielectric material Random House Dictionary Coin Slot a small narrow opening especially one to receive coins Kenerman English Multilingual Dictionary Microprocessor a single integrated circuit performing the basic functions of the central processing unit in a small computer Collins English Dictionary Relay an electrical device in which a small change in current or voltage controls the switching on or off of circuits or other devices Collins English Dictionary DC Motor An electric rotating machine energized by direct current and used to convert electric energy to mechanical energy McGraw Hill Science amp Technology Dictionary Acrylic of derived from or concerned with acrylic acid a paint or colour containing acrylic resin Co ns English Dictionary 10 Coefficient of Friction The ratio of the force that maintains contact between an object and a surface and the frictional force that resists the motion of the object 7 American Heritage Dictionary of the English Language Chapter 2 REVIEW OF RELATED DESIGN LITERATURES AND STUDIES This chapter comprises researches and studies that are correlated to the design The compilations in this chapter were used as reference for the advancement of the design The group used t
21. support device or system whose failure to perform can be reasonably expected to cause the failure of the life support device or system or to affect its safety or effectiveness Formative or In Design Advance Information Preliminary First Production No Identification Needed Full Production Obsolete Not In Production This datasheet contains the design specifications for product development Specifications may change in any manner without notice This datasheet contains preliminary data and supplementary data will be published at a later date Fairchild Semiconductor reserves the right to make changes at any time without notice in order to improve design This datasheet contains final specifications Fairchild Semiconductor reserves the right to make changes at any time without notice in order to improve design This datasheet contains specifications on a product that has been discontinued by Fairchild semiconductor The datasheet is printed for reference information only 102 FAIRCHILD Se SEMICONDUCTOR MM74C922 MM74C923 16 Key Encoder 20 Key Encoder General Description The MM74C922 and MM74C923 CMOS key encoders pro vide all the necessary logic to fully encode an array of SPST switches The keyboard scan can be implemented by either an external clock or external capacitor These encoders also have on chip pull up devices which permit switches with up to 50 kQ on resistance to be use
22. 0505 OAAE 01127 INCF UNIT F 01128 0506 2530 01129 CALL DATAX2 2 0507 01130 BTFSC DATA HI 5 0508 OAAE 01131 INCF UNIT F 01132 0509 2530 01133 CALL DATAX2 050 1 70 01134 BTFSC DATA HI 4 H 050B OAAE 01135 INCF UNIT F p 01136 050C 19 0 01137 BTFSC DATA HI 3 050D OAAE 01138 INCF UNIT F 01139 050 2530 01140 CALL DATAX2 H 050F 1970 01141 BTFSC DATA HI 2 0510 OAAE 01142 UNIT F H 01143 H 0511 2530 01144 CALL DATAX2 0512 18F0 01145 BTFSC DATA 1 H 0513 OAAE 01146 INCF UNIT F H 01147 2 0514 2530 01148 CALL DATAX2 0515 1870 01149 BTFSC DATA HI 0 z 0516 01150 UNIT F H 01151 0517 2530 01152 CALL DATAX2 z 0518 1BF1 01153 BTFSC DATA LO 7 2 0519 01154 INCF UNIT F H 01155 051A 2530 01156 CALL DATAX2 051B 1B71 01157 BTFSC DATA LO 6 7 051 01158 UNIT F H 01159 E 051D 2530 01160 CALL DATAX2 R 051 lAF1 01161 BTFSC DATA LO 5 P 051 01162 UNIT F H LOC OBJECT CODE LINE SOURCE TEXT VALUE 01163 0520 2530 01164 CALL DATAX2 0521 1A71 01165 BTFSC DATA 10 4 0522 OAAE 01166 UNIT F 01167 0523 2530 01168 CALL DATAX2 0524 19F1 01169 BTFSC DATA LO 3 0525 0 01170 UNIT F 01171 0526 2530 01172 CALL DATAX2 0527 1971 01173 BTFSC 10 2 0528 OAAE 01174 01175 0529 2530 01176 CALL 2 052
23. 2 output RC2 CCP1 17 19 36 36 5 RC2 Digital 1 0 CCP1 Capture1 input Compare1 output 1 output RC3 SCK SCL 18 20 37 37 ST RC3 Digital SCK Synchronous serial clock input output for SPI mode SCL Synchronous serial clock inputfoutput for 2 mode RCA SDI SDA 23 25 42 42 ST RC4 Digital 1 0 SDI SPI data in SDA data RC5 SDO 24 26 43 43 5 RC5 Digital 1 0 500 SPI data out RCB TXICK 25 27 44 44 ST RCG Digital 1 0 TX USART asynchronous transmit CK USART1 synchronous clock RC7 RX DT 26 29 1 1 ST RC Digital RX USART asynchronous receive DT USART synchronous data Legend 1 input output input output P power Notused TTL TTL input ST Schmitt Trigger input Note 1 This buffer is a Schmitt Trigger input when configured as the external interrupt 2 This buffer is a Schmitt Trigger input when used in Serial Programming mode 3 This buffer is a Schmitt Trigger input when configured in RC Oscillator mode and a 5 input otherwise 117 PIC16F87XA TABLE 1 3 1 16 874 877 PINOUT DESCRIPTION CONTINUED PDIP PLCC TOFP Buffer Description Pin Pin Pin Type Type p PORTD is a bidirectional VO port Parallel Slave is a bidirectional port or Parallel Slave Port when interfacing to a microprocessor bus RDOPSPO ST TTL S RDO Digital 1 0 PSPO Parallel
24. 2DA2 00022 GOTO CHANGE OK 00023 057 0852 00024 TMR2 SEC W Changer 0580 1D03 00025 BTFSS 5 05 7 0581 2D8F 00026 GOTO DO TMR2A 00027 0582 3019 00028 MOVLW D 25 0583 00D2 00029 MOVWF TMR2 SEC 00030 0584 3005 00031 MOTORP5 MOVLW D 5 0585 0242 00032 SUBWF CHANGE W 3 0586 1C03 00033 BTFSS STATUS C 0587 2D8C 00034 GOTO OTORP1 0588 1687 00035 BSF PORTC 5 0589 3005 00036 MOVLW D 5 P 058A 00 00037 MOVWF VAL 058B 2D8F 00038 GOTO DO TMR2A 2 00039 058C 1607 00040 1 BSF PORTC 4 7 058D 3001 00041 MOVLW D 1 2 058 00AF 00042 MOVWF COIN VAL 3 00043 2 058 3014 00044 DO TMR2A MOVLW D 20 H 0590 0252 00045 SUBWF TMR2 SEC W 3 0591 1803 00046 BTFSC 5 5 0592 2095 00047 DO TMR2B 0593 1207 00048 4 0594 1287 00049 5 00050 0595 00051 DO TMR2B TMR2 PRES F 0596 300 00052 MOVLW 0110 0597 0253 00053 SUBWF TMR2 PRES W 0598 1 03 00054 BTFSS STATUS C 0599 2DA4 00055 GOTO DO TMR2X 3 059 0103 00056 CLRF TMR2 PRES 7 0598 03D2 00057 DECF TMR2 SEC F 059C 0852 00058 MOVF TMR2 SEC W 059D 1D03 00059 BTFSS 5 05 2 2 059 2DA4 00060 GOTO DO TMR2X 059 082 00061 VAL W H 05A0 02C2 00062 SUBWF CHANGE F 05 1 2 4 00063 GOTO DO TMR2X 2 00064 05A2 1207 00065 CHANGE OK BCF 4 05A3 1287 00066 BCF PORTC 5
25. bank bits are prescaler of PortA all bank bits are 0 00 bank bits are Port 11 0 00 bank bits are Port B 0 00 bank bits are Port C XXXX 0 00 bank bits are 53 MOVWE MOVLW MOVWF BCF CALL CALL CALL BSF BSF CLRF TRISD B 00000111 TRIS Ei STATUS RPO INIT VAR INIT LCD DISP LCD Ensure that bank bits Port XXXx 0 00 Port E 0000 Select Bank O0 INTCON TOIE Enable TMRO INTCON GIE TMRO Enable 11 Clear TMRO 1k k k k k k k k k k k k k K k k k OR KOK K K ke he kc ke Main Program Starts Here k k k k k k k k k k k k K k K K K K KK K KOK k K K K koc kc K KOR K K KOK KOK K K K KOK K K KOK KOK KOR OK RK KEK EXT NOP GOTO MAIN pORCECKCkCk RK k k k k k K k K k kk KOR OK 0013 0088 00131 xxxx schmitt 00132 0014 3007 00133 1 1 Message 302 Register in operand not in bank 0 Correct 0015 0089 00134 Oxxx schmitt 00135 0016 1283 00136 00137 0017 2053 00138 0018 2607 00139 0019 2633 00140 00141 001A 168B 00142 Interrupt 001B 178B 00143 Interrupts 001C 0181 00144 00145 00146 00147 001D 0000 00148 MAIN 001E 281D 00149 LOC OBJECT CODE LINE SOURCE T
26. 46 C To complete and process the transaction press button 4 to cancel all transactions press button 1 d After the transaction is completed pick up purchased school supplies at the designated dispenser location e Admin use only Hold the admin button and press to see the total sales when power supply is interrupted the total saved total sales will be lost 4 Troubleshooting Guides and Procedures Problem Power supply interruption a Check if the power cable is properly connected to an appropriate power outlet b Replace battery as it might be already be drained or out of charge 47 Problem No insufficient change is supplied after transaction a Check if the five peso and one peso tube still contain coins b Refill the tubes with appropriate amount of coins preferably until it s full 5 Error Definitions a Undetected coins the vending machine only accepts new one peso coins Several vending machines exhibit the same problem b Total sales wipeout in case of a power supply interruption the vending machine does not save the admin s total sales 48 APPENDIX B Pictures of Prototype Figure 6 1 Front view of the design 49 Figure 6 2 Side view of the design 50 APPENDIX C Program Listing LOC OBJECT CODE LINE SOURCE TEXT VALUE INCLUDE XP16F877A INC 00001 LIST 00002 16 877 1 Standard Header File Version 1
27. E O J Liquid crystal matrix displays Proceedings of the IEEE 2005 5 Khan A R Workhorses of the electronic era microcontrollers Microcontroller Journals 2002 6 Ganesh Sangeetha A L Ravi V R Network model based automation of thermal processes using an embedded digital controller Microcontroller Journals 2009 7 Al Zoubi Efficient coin recognition using statistical approach Electro Information Technology 2010 8 Williamson Henry C Vending Machine Google Patents 1934 9 Yadav S G Shiva Prasad Automatic Chocolate Vending Machine using MUCOS RTOS Embedded Systems 2003 10 Hong Gu Shuang Qiao and Jiang Tian Wireless Vending Machine System Based on GSM Intelligent Control and Autom 2006 11 S B Z Tanabian M Automatic mobile payment on a connected vending machine Electrical and Computer Engineering 2004 12 Cowburn Paying for energy the smart way IEE Review 2001 13 Caulfield B O Mahony M transport ticketing system 2005 Payment requirements of a public 150 Schematic Diagram 20 CHAR X 4 LINE LCD MODULE VDDDDDDDDERRV 19 16V COIN SLOTS CRYSTAL MOTOR DC 1 00 aMHz 22 22 P 10 00 P 30 00 480 74 MOTOR DC PIC16F877 5V 12Vo MOTOR DC 12Vo 5V _ C MOTOR DC 12Vo sv K MOTOR DC 12Vo 12V BRIDGE
28. H OF 02DB 00 6 00484 OVWF KEY VAL 02DC 0008 00485 DO MSGOX RETURN 00486 02DD 3002 00487 DO MSGO OVLW D 2 02DE 0244 00488 SUBWF ITEM SEL W 02DF 1803 00489 BTFSC STATUS C 02 03C4 00490 DECF ITEM SEL F 02 1 00491 DO 560 AX GOTO 5 0 X 00492 02 1E85 00493 DO 560 B BTFSS 5 02 2AED 00494 GOTO 560 Bl 02 4 OAC4 00495 INCF ITEM SEL F 02E5 3006 00496 MOVLW D 6 02 0244 00497 SUBWF ITEM SEL W 02E7 1C03 00498 BTFSS STATUS C 02 2 00499 GOTO 560 02 3001 00500 MOVLW 1 02 00F4 00501 MOVWF NUM 02 2688 00502 CALL LD MSG2RAM 02 2AF0 00503 GOTO 560 02 3002 00504 DO 560 B1 D 2 2 00F4 00505 MOVWF MSG NUM 2688 00506 CALL LD MSG2RAM 02F0 00507 560 BX GOTO MSGO X 00508 02 1 0874 00509 DO 861 MOVF SG NUM W 0282 3 01 00510 SUBLW 1 02 1003 00511 BTFSS STATUS Z 1 02 4 2BOB 00512 00513 02F5 300C 00514 02F6 0226 00515 02F7 1803 00516 02F8 2BOB 00517 00518 02F9 300B 00519 02FA 0226 00520 02FB 1903 00521 02 2B3D 00522 00523 02FD 300A 00524 02FE 0226 00525 02FF 1903 00526 CODE LINE SOURCE EXT VALUE 0300 2B38 00527 00528 0301 3001 00529 0302 0226 00530 0303 1903 00531 0304 2 0 00532 00533 0305 3004 00534 0306 0226 00535 0307 1903 00536 03
29. PCON2 HH pH lt Z PSTAT SYNC 3 d 3 3 d 3 3 TOCS TOIE TOIF TOSE 1 50 1 51 5 TLOSCEN 15 2 50 T2CKPS1 2CON 2 4 OUSAND OUSND10 RO ROIE ROIF ROINT 3 8 8 5 RAR 00000007 00000099 00000007 00000005 00000093 00000013 00000014 00000091 00000005 00000003 00000003 00000000 00000001 00000002 00000003 00000006 00000094 00000003 0000007 00000004 00000005 00000005 00000002 00000004 00000004 00000005 00000010 00000002 00000003 00000002 00000000 00000001 00000012 00000079 0000007A 00000078 0000007C 0000002D 0000002B 0000002A 00000001 00000005 00000002 00000029 00000001 0000000 00000000 00000000 0000000 00000000 00000051 00000050 00000011 00000001 00000001 00000002 00000053 00000052 00000055 00000054 93 4 PRES TOTALSALEHI TOTALSALELO TOUTPS1 TOUTPS3 TRISA TRISB TRISC TRISD TRISE TRISEO TRISE1 TRISE2 TRMT 8 9 TX9 TX9D UE2 VALUE3 U U 4 UES WAIT1 WAIT1 LOOP 1 VAL WAIT2 SYMBOL TABLE LABEL WAIT2 LOOP WAIT2 VAL WCOL 00000057 00000056 00000059 00000058 00000058 0000005 0
30. VALUE 00150 00151 00152 The Interrupt Service Routine amp k k k k RK k k k k k k k k k k k k k k K k KOK k K K K K K k k K KOK k OR OR OR K K KK KOK K K KOR KOK KOR KOK OR K KOK KOR KOR K KOR R KOK KEK 001F 001F 00 W TEMP 0020 0803 0021 STAT TEMP 0022 1283 interrupt has occurred 001 0023 190B Interrupt 0024 2829 disregard 0025 Registers 0025 087 0026 0083 5 5 0027 087D 0028 0009 Interrupt 001 001 001 001 00 00 001 001 001 001 001 001 001 001 54 55 56 57 58 59 60 61 62 63 64 65 66 67 153 ISR ROUTINE RESTOR ER MOVWF W TEMP MOVF MOVWF BCF BTFSC GOTO MOVWF STATUS W STAT TEMP STATUS RPO INTCON TOIF TMROINT STAT TEMP W STATUS MOVF W TEMP W RETFI Save Registers W gt STATUS gt W W gt 0 Check which TimerO0 Other causes Restore STAT TEMP gt W gt W TEMP gt W Return from 54 k k k k 1k k k k Kk k k kk k K K K K K k K K KOR KOK RO ORKO R K TIMER 0 TMRO Interrupt Service koe k k k k k k Reset TMRO BCF INTCON TOIF MOVLW 06 ADDWF TMRO F
31. Z uF Typical Applications Synchronous Handshake MM7 4C922 Synchronous D ata Entry Onto Bus 74 922 TO DATA 808 TO DATA BUS DATA AVAILABLE DATA AVAILABLE SYSTEM ENABLE OUTPUT RESPONSE The keyboard may be synchronously scanned by omitting the capacitor at gt M osc and driving osc directly ifthe system clock rate is lower than 10 kHz Outputs are enabled when valid entry is made and go into 3 STATE when keyis released The keyboard may be synchronously scanned by omitting the capacitor at osc and driving osc directly ifthe system clock rate is lower than 10 kHz 7 www fairchild emi com 109 MM74C922 74 923 Asynchronous Data Entry Onto Bus 74 922 DATA BUS DATA AVAILABLE 1 8 14004 Outputs are 3 STATE until key is pressed then data is placed on bus When keyis released outputs return to 3 STATE Expansion to 32 Key Encoder 74 922 Theory of Operation The 74 922 74 923 Keyboard Encoders imple ment all the logic necessary to interface a 16 or 20 SPST key switch matrix to a digital system The encoder will con vert a key switch closer to 4 74 922 5 74 923 bit nibble The designer can control both the keyboard scan rate and the key debounce period by alter ing the oscillator capacitor Cose and the key bounce mask capacitor C Thus 74 922 74 923 performance can be optimiz
32. input This pin is an active low Reset to the device VPP Programming voltage input PORTA is a bidirectional I O port RA0 AN0 2 3 19 19 TTL RA0 y o Digital 1 0 ANO Analog input 0 1 3 4 20 20 TTL RA1 Digital 1 0 AN1 Analog input 1 RA2 AN2NREF CVREF 4 5 21 21 TTL RA2 Digital AN2 Analog input 2 VREF A D reference voltage Low input CVREF Comparator VREF output RA3 AN3A REF 5 6 22 22 TTL RA3 y o Digital 1 0 AN3 Analog input 3 VREF A D reference voltage High input RA4 TOCKI C10UT 6 7 23 23 ST RA4 yo Digital 1 0 Open drain when configured as output TOCKI TimerO external clock input C10UT 1 RAS ANA SS C20UT 7 8 24 24 TTL 5 y o Digital 1 0 AN4 Analog input 4 SS SPI slave select input C20UT Comparator 2 output Legend 1 input O output input output P power Notused TTL input ST Schmitt Trigger input Note 1 This buffer is a Schmitt Trigger input when configured as the external interrupt 2 This buffer is a Schmitt Trigger input when used in Serial Programming mode 3 This buffer is a Schmitt Trigger input when configured in RC Oscillator mode and a CMOS input otherwise 115 PIC16F87XA TABLE 1 3 PIC16F874A 877 PINOUT DESCRIPTION CONTINUED PLCC QFN Buffer Description Pind Pin Pin Type Type PORTB is a bidirec
33. www fairchildsemi com 104 Block Diagram AVAILABLE AVAILABLE 20T KEY BOUNCE CONTROL COUNTER ELIMINATION On CLOCK 69V INM cC62t ZININ OUTPUTS ENCODING Logit AND 2KEY ROLLOVER a www fairchild emi com 105 MM74C922 74 923 Absolute Maximum Ratingsiote 2 Voltage at Any Pin Operating Temperature Range MM74C922 MM74C923 Storage Temperature Range Power Dissipation P p Vee 0 3V to V cc 0 3V 40 C to 85 C 65 C to 150 C 700 mw 500 mw Dual In Line Small Outline Operating Vcc Range 3V to 15V 18V Lead Temperature Soldering 10 seconds 260 C Note 2 Absolute Maximum Ratings are those values beyond which the safety ofthe device cannot be guaranteed Except Operating Tempera ture Range they are not meant to imply that the devices should be oper ated at these limits The table of Electrical Characteristics provides conditions actual device operation DC Electrical Characteristics Min Max limits apply across temperature range unless otherwise specified _ CMOS TO CMOS Positive Going Threshold Voltage 43 at Osc and KBM Inputs la 4 6 129 Negative Going Threshold Voltage 5V lm x0 20 at Osc and KBM Inputs 10V gt 1 4 mA 4 40 15V ly 2 2 1 mA Logical 1 Input Voltage Except Osc and KBM Inputs Logical 0
34. 00267 00268 00269 00270 00271 MOVF PORTE W MOVWF PORTE NEW MOVWF PORTE PRE CLRF AMOUNT CLRF COIN HI CLRF CHANGE CLRF CHANGE HI MOVF PORTA W MOVWF KEY NEW MOVWF KEY PREV MOVLW H F MOVWF KEY VAL CLRF ITEM SE CLRF ITEM VALU CLRF QTY CLRF ITEM2 QTY QTY CLRF QTY CLRF 5 QTY CLRF KEY CLRF 1 SEC CLRF PRES CLRF 2 SEC CLRF 2 PRES CLRF SEC CLRF PRES CLRF 4 SEC PRES CLRF TMR5 SEC CLRF 5 PRES CLRF TMR6 SEC CLRF TMR6 PRES CLRF 7 SEC CLRF TMR7 PRES OVLW D 8 OVWF VALUE OVLW D 8 OVWF VALUE2 OVLW D 7 OVWF VALUE3 OVLW D 7 OVWF VALUE4 OVLW D 7 OVWF VALUES CLRF SEL1_QTY CLRF SEL2 QTY CLRF 5 QTY CLRF 5 4 QTY CLRF 5 5 QTY CLRF 5 1 AMT CLRF 12 AMT CLRF SEL3 AMT CLRF 5 4 AMT 56 0090 0189 00272 SEL5 AMT 2 0091 01 00273 SEL 00274 0092 01 0 00275 5 1 SALEHI 2 0093 01 1 00276 5 11 SALELO 0094 01 2 00277 SE
35. 00364 OVWF 5 11 0276 0835 00365 OVF SEL1 AMT W 0277 07BB 00366 ADDWF SEL TOTALLO F R 0278 1803 00367 BTFSC 5 5 LOC OBJECT CODE LINE SOURCE TEXT VALUE 0279 00368 SEL TOTALHI F 00369 027A 0831 00370 COMP ITEM2 SEL2 QTY W 7 027 00 9 00371 OVWF 1 5 027C 084C 00372 OVF VALUE2 W 027D 00 00373 OVWF TEMP2 027 2264 00374 CALL OMP ITEM 3 027 087B 00375 TEMP3 W 0280 0086 00376 OVWF SEL2 0281 0836 00377 OVF SEL2 AMT 0282 07BB 00378 ADDWF SEL TOTALLO F 0283 1803 00379 BTFSC 5 5 0284 00380 SEL TOTALHI F i 00381 0285 0832 00382 COMP ITEM3 OVF SEL3 QTY W 0286 00 9 00383 OVWF TEMPI 0287 0840 00384 OVF VALUE3 W 0288 00385 OVWF TEMP2 0289 2264 00386 CALL OMP ITEM H 028A 087B 00387 TEMP3 W 0288 0087 00388 OVWF SEL3 028C 0837 00389 OVF SEL3 AMT 028D 07BB 00390 ADDWF SEL TOTALLO F R 028E 1803 00391 BTFSC 5 5 028F 00392 SEL TOTALHI F 2 00393 0290 0833 00394 4 SEL4 0291 009 00395 MOVWF TEMP 0292 084 00396 MOVF VALUEA W 0293 OOFA 00397 MOVWF TEMP2 0294 2264 00398 CALL OMP ITEM z 0295 087B 00399 TEMP3 W 0296 0297 0298 0299 029 0298 029C 029D 029E 029F 02 0 02 1 02 2 02A3 02 4 02 5 02 6 Kk k K K KOK K k K K KOK K KOK k KOK KOK KEK K K KOK KOK KOR K K
36. 00379 MOVLW D 3 0690 0279 00380 SUBWF TEMP1 W 0691 1 03 00381 55 5 05 2 0692 2 95 00382 GOTO LD MSG ADR skip if greater than or equal 0693 3003 00383 OVLW D 3 2 0694 02 9 00384 SUBWF TEMP1 F 00385 0695 0879 00386 10 MSG ADR 0696 1903 00387 BTFSC 5 5 2 0697 2F9C 00388 GOTO LD MSGLOOP 0698 3050 00389 OVLW D 80 0699 7 00390 ADDWF TEMP3 F 069A 03 9 00391 DECF 1 0698 2295 00392 GOTO LD MSG ADR P 00393 069C 3050 00394 LD MSGLOOP OVLW D 80 069D 0279 00395 SUBWF TEMP1 W 069F 1903 00396 BTFSC 5 5 2 7 069 2 2 00397 GOTO LD MSGDONE 7 00398 080 00399 LD MSGO 2 OVF PCLATH W 2 06 1 00 00400 OVWF 4 06A2 3001 00401 OVLW HIGH MSGO 06A3 008A 00402 OVWF PCLATH 2 06 4 0879 00403 TEMP1 W 06 5 0778 00404 ADDWF TEMP3 W 06 6 2100 00405 CALL SGO P 06A7 00406 OVWF TEMP2 2 06 8 087 00407 4 2 06A9 008A 00408 OVWF PCLATH P 00409 06 3020 00410 LD MSG CHAR MOVLW LCD RAM BUF 06AB 0779 00411 ADDWF 06AC 0084 00412 OVWF FSR 2 06AD 1784 00413 BSF FSR 7 Select Bank 1 087 00414 TEMP2 W z 06AF 0080 00415 OVWF INDF 06B0 OAF9 00416 0681 2 9 00417 GOTO LD MSGLOOP 0682 0008 00418 MSGDONE RETURN 7 00419 KOK K K KOR K ke ke ke KOR R 0
37. 00605 GOTO MSG2X 00606 0343 300C 00607 MOVLW H C 0344 0226 00608 SUBWF KEY VAL W M 0345 1803 00609 BTFSC 5 05 0346 2B51 00610 GOTO MSG2X 00611 0347 300A 00612 MOVLW H A 0348 0226 00613 SUBWF KEY VAL W M 0349 1903 00614 BTFSC 5 5 2 034A 2852 00615 GOTO MSG2 00616 034B 3008 00617 MOVLW H B 034C 0226 00618 SUBWF KEY VAL W 5 034D 1903 00619 BTFSC STATUS Z 034E 2B56 00620 DO MSG2 B 00621 034F 00622 DO MSG2 X MOVLW H OF 0350 00A6 00623 MOVWF KEY VAL 0351 0008 00624 DO MSG2X RETURN 00625 0352 3000 00626 DO MSG2 A MOVLW D O 0353 00 4 00627 MOVWF MSG NUM 0354 2688 00628 CALL LD MSG2RAM 0355 2 4 00629 DO MSG2 GOTO DO MSG2 X 00630 0356 0000 00631 DO MSG2 B NOP 0357 2ADA 00632 DO MSG2 GOTO DO MSGO X LOC OBJECT CODE LINE SOURCE TEXT VALUE 00633 K RK K K KOR K 0358 0000 00634 ADD2SALE 00635 0359 0835 00636 ADDSALEl SEL1 AMT W 5 5 07 1 00637 ADDWF 5 SALELO F 0358 1803 00638 BTFSC 5 5 j 035C OAEO 00639 SEL1 SALEHI F I 0350 0835 00
38. 3 shows the results on what will happen if a certain 2 10 14 Invalid amount of coins is inserted to the machine satisfying the condition that this amount is not equal to the total amount purchased The results showed that correct amount of change will be dispense automatically after the confirming the transaction In the 4th column there are results which are invalid these indicates that the amount inserted by the user is less than the amount he wants to purchase As a result the machine will not dispense the items LCD Display and Keypad and Administrator Button 148 Empty Sensor Test The researchers conducted a test to check if the sensors installed on the design can detect if the dispenser of each item is already empty The following table sum up the results gathered based on the test that the designers performed Output of No of items E The researchers conducted a test to the four liner LCD Trials Items in the the LED display and keypad to verify if the buttons pressed will correctly Di indicator display the output and perform its desired instruction The following Ispenser ON or OFF table sums up the results gathered based on the test that the designers 1 Book 1 5 OFF performed 2 Book 1 4 OFF Key Pressed Output 1 item quantity selection 1 3 Book 1 3 OFF 2 item quantity sele
39. 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 20 20 20 20 52 49 50 30 20 20 4 4 50 30 58 50 56 20 20 20 20 58 50 20 20 5D 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 20 20 20 20 45 54 30 20 20 20 54 20 30 2E 20 2A 52 20 20 20 20 20 31 20 20 5B 50 CT CODE 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 20 20 43 44 3D 30 30 20 54 41 3D 30 30 5D 45 20 20 20 20 345D 3420 3420 3434 3420 LINE 00300 00301 00302 00303 00304 00305 MSG2 SOURCE 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 20 20 5B 50 20 20 5D 20 20 5B 50 20 20 5D 20 20 5B 42 6B 20 20 20 20 0782 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 20 20 32 20 20 5B 50 20 20 33 20 20 5B 50 20 20 2A 61 20 20 20 20 20 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 20 5D 20 20 35 20 20 5 20 20 54 20 20 5 63 20 20 20 20 00306 00307 00308 00309 00310 00311 00312 563 EXT DT CREDIT P000 00 DT TOTAL P000 00 DT PREV
40. 5 to 6pm using the vending machine the bookstores can still distribute basic school supplies after office hours This also aids the students to have basic school supplies when needed The common vending machine available in the market dispenses items only one at a time The dispenser contribution to the advancement of technology is speed and the capacity to dispense multiple items in a single transaction The vending machine has a positive impact in terms of manufacturability because the goods will be traded with relative as ease at minimum cost and maximum reliability Design Constraints Many relevant constraints are considered while making this project First is coin stability it is an aspect to examine since many coins will eventually became crude due to the fact that it will pass on to various market place shopping malls and public transportations With regard to the first constraints another issue to consider is the type of material used in the coin for the 1 peso coin there are two types of materials used first is the metal and the non metal Since there are two types of material used either one of the two can only be used for the machine depending on the type of coin used in the coin slot sensor Due to those different reasons the coin sensor wil have a hard time detecting it and sometimes completely not detecting the coin Economically every legal transaction made in the business industry requires a receipt but the vendin
41. ABSTRACT The design s concept is a vending machine that dispenses various school materials It is intended to provide students faster access buying school supplies rather than purchasing supplies on the bookstore that usually results on too much time wasted and normally a hassle When buying a specific school material the student can itemize the quantity they want and it will be dispense after inserting the necessary amount of coins needed The whole transaction will only be once depends on how many items the student bought since the design is incorporating a single payment The total number of item obtained with each type of school supply available will also be tallied automatically by the machine Student inserts an amount of money necessary then specifies the type of school supply and its desired quantity The vending machine will check the amount of money inserted and process the dispensing of the school material The vending machine dispenses the desired school material and its quantity Keyword Dispensing school supplies vending machine single payment viii Chapter 1 DESIGN BACKGROUND AND INTRODUCTION Background Convenience nowadays plays an essential role in the development of social environment Purchasing distinct items at ease is one primary technique in selling products In providing solution to this different types of vending machines were introduced to provide customers the opportunity to buy items almost any time w
42. Input Voltage Except Osc and KBM Inputs Row Pul Up Current at Y1 Y2 Y3 Y4 and Y5 Inputs Veo 5V Vg 70 1 10V 15V 5V lg 10V lg 10 154 1 2 10uA Logical Output Voltage 5V lb 10uA 10V Ip 10 uA 15V lp 10 Veo 5V 0 5V 10V Vo 1V Logical 1 Output Voltage 3 Column ON Resistance at X1 X2 and X4 Outputs Supply Current Osc atQV one Y low Logical 1 Input Current at Output Enable Logical D Input Current at Output Enable CMOS LPTTL INTERFACE Except Osc and Inputs Voc 475V 2 15 Except Osc and KBM inputs Vouno Logical T Output Voltage EE lt 8 N Logical 0 Output Voltage www fairchildzemi com 2 106 DC Electrical Characteri 22 ICS Continued OUTPUT DRIVE See Family Characteristics Data Sheet Short Circuit Current Iso Output Source Current P Channel Veo 5V Vo r OV 25 C Output Source Current P Channel Output Sink Current men N Channel Output Sink Current j N Channel Veo 10V Vo ur 262 10V Vo ur Vec T 25 C AC Electrical Characteristics note 25 C C 50 pF unless otherwise noted Parameter Propagation Delay Time to Logical 0 or Logical 1 from D A 50 pF Figure 1 75V Vec 10V
43. Reject Accept Reject 5 16 14 2 15 P5 Reject Accept Reject 6 16 23 Invalid 16 P5 Reject Reject Reject 7 19 25 Invalid 17 P5 Reject Accept Reject 8 50 42 8 18 P5 Reject Accept Reject 9 50 75 Invalid 19 P5 Reject Accept Reject 10 36 35 1 20 P5 Reject Accept Reject 11 36 42 invalid 21 P10 Reject Reject Accept 12 8 7 1 22 P10 Reject Reject Accept 13 8 8 0 23 P10 Reject Accept Accept 14 14 14 0 24 P10 Reject Accept Accept 15 21 21 0 25 P10 Reject Reject Accept 16 30 28 2 26 P10 Reject Reject Accept 17 30 21 9 27 P10 Reject Reject Accept 18 30 14 16 28 P10 Reject Reject Accept 19 24 14 10 29 P10 Reject Reject Accept 20 17 18 Invalid 30 P10 Reject Reject Accept 21 17 14 3 22 25 14 11 Table 4 2 Coin Slot Test Result 23 25 18 7 Table 4 2 shows the result on what will happen if a certain coin is inserted to a specific coin slot This test confirms that only the 24 35 29 6 appropriate coin will be accepted in their respective coin slots and those inserted in the wrong coin slot will be rejected 25 28 24 4 26 28 35 Invalid Change for Purchased items test 27 28 28 0 The researchers conducted a test to determine if the dispenser accurately gives change to the customers upon 28 25 23 2 purchasing school supplies The following table sum up the results gathered based on the test that the designers performed 29 25 24 1 Amount Total Amount change 30 1 20 invalid Trials Inserted Purchased Php Php PRR p p Table 4 3 Change Test Result 1 10 7 3 Table 4
44. Slave Port data RD1 PSP1 ST TTL S RD1 Digital 1 0 PSP1 Parallel Slave Port data RD2 PSP2 RD2 Digital 1 0 PSP2 Parallel Slave Port data RD3 PSP3 ST TTL S RD3 Digital 1 0 PSP3 Parallel Slave Port data RD4 PSP4 STITTLE RD4 Digital 1 0 PSP4 Parallel Slave Port data RD5I PSP5 ST TTL 3 RD5 Digital 1 0 PSP5 Parallel Slave Port data RDB PSP6 ST TTL S RD6 Digital 1 0 PSP6 Parallel Slave Port data RD7IPSP7 ST TTLUS RD Digital 1 0 Parallel Slave Port data PORTE is a bidirectional 1 0 port REO RDJANS 25 Digital 1 0 Read control for Parallel Slave Port Analog input 5 STTTS Digital 1 0 Write control for Parallel Slave P ort Analog input B STUTT Digital 1 0 Chip select control for Parallel Slave Port Analog input 7 Ground reference for logic and pins Positive supply for logic and I O pins These pins are not internally connected These pins should be left unc onnected Legend input output inputfoutput P power Not used input ST Schmitt Trigger input Note 1 Thisbuffer is a Schmitt Trigger input when configured asthe external interrupt 2 This buffer is a Schmitt Trigger input when used in Serial Programming mode 3 This buffer is a Schmitt Trigger input when configured in RC Oscillator mode and a CMOS input otherwise 118 PIC16F87XA 10 0 ADDRESSABLE UNIVERSAL The USART can be configured in the following m
45. a 3 coin slot intended for 1 peso 5 peso and 10 peso coin Once the items are chosen and the coins are inserted the asterisk button should be pressed for the whole transaction to start The pressing of the said button will send a signal to the relay coming from the microprocessor for the DC motor to dispense the chosen products In case of a power interruption a backup battery is installed ensuring that any transaction will be completed and the total sale is saved Lastly the outside coating used for the design is acrylic glass Statement of the Problem Nowadays many facilities around the world uses vending machine such as airport canteens and condominiums but one of the places that are also essential in having this equipment are universities and institutes The common problem in different institutes and universities is how to distribute students school supplies proficiently because accommodating too much students at the same time is formidable The start of a semester can be considered as an example because many students buy books index card fillers and other miscellaneous items at the same time for their subjects This incident causes frustration to some students especially if the only product they intend to buy for example is a single ball pen but the queue is extensive forcing them to be late in class Students whose school hours do not fit within the operating hours of the bookstore will appreciate the machine most considering th
46. back the coins inserted by the user In the transaction page when the user presses 4 it will begin the transaction The vending machine also helps the administrator in calculating the total sales of each item and the total sales of all the items included by holding the admin button simultaneously with the Z button This automatically displays the total sales 35 Figure 4 1 Sample Display when keypad 0 is pressed These figure shows that when the user presses 0 button it will display 0 in the LCD display Figure 4 2 Sample Display when keypad 9 is pressed These figure shows that when the user presses 9 button it will display 9 in the LCD display 36 Figure 4 3 Sample Display when keypad 8 is pressed These figure shows that when the user presses 8 button it will display 8 in the LCD display Figure 4 4 Sample Display when keypad 7 is pressed These figure shows that when the user presses 7 button it will display 7 in the LCD display 37 Figure 4 5 Sample Display when keypad 5 is pressed These figure shows that when the user presses 5 button it will display 5 in the LCD display Figure 4 6 Sample Display when admin and keypad is pressed These figure shows that when the user simultaneously presses the admin button and the button the total sales will be displayed 38 Empty Sensor Test The researchers conducted a test to check if the sensors installed on the design can detect if the dispenser
47. consult the resonatorcrystal manufacturer for appropriate values of external components Rg may be required in HS mode as well as XT mode to avoid overdriving crystal with law drive level specification When migrating from other PIC micro devices oscillator performance should be verified 14 2 3 RC OSCILLATOR For timing insensitive applications the RC device option offers additional cost savings The RC oscillator frequency is a function of the supply voltage the resistor REXT and capacitor CEXT values and the operating temperature In addition to this the oscillator frequency will vary from unit to unit due to normal cess parameter variation Furthermore the difference in lead frame capacitance between package types will ako affect the oscillation frequency especially for low CEXT values The user also needs to take into account variation due to tolerance of external R and C components used Figure 14 3 shows how the R C combination is connected to the PIC 16F87 RC OSCILLATOR MODE FIGURE 14 3 Internal Clock Recommended values 100 gt 20 pF 124 PIC16F87XA 144 MCLR PIC18F87XA devices have a noise filter in the MC LR Reset path The filter will detect and ignore small pubes It should be noted that WDT Reset does not drive MCLR pin low The behavior of the ESD protection on the MCLR pin differs from previous d
48. could use it as a guide in implementing the coin slot in the group s design project 16 Chapter 3 DESIGN PROCEDURES This chapter discusses the step by step procedures that were followed in making and developing the design This section includes both the hardware and software development The hardware development is composed of the block conceptual diagram block diagram and schematic diagram Conversely the software development consists of system flowchart Hardware Development Conceptual Diagram Figure 3 1 Conceptual Diagram 17 Figure 3 1 shows the conceptual diagram and the whole flow of the design As shown the school supplies dispenser accepts three different kinds of coins and once inserted the credits will be automatically stored and displayed The keypad then will determine the type and quantity of item that will be dispensed off A 4 liner LCD display will show the current transaction shown in the display are the unit price of each item quantity to be purchase current credit and total cost Block Diagram PA 20x4 LCD 4x3 keypad 74C922 s saq rp Figure 3 2 illustrates the basic diagram and interconnection of the main Figure 3 2 Block Diagram parts of the design The design is divided between the input process and output The input of the system will be coming primarily from the 4x3 keypad that will go 18 directly to the 74C922 16 key encoder to provide the necessary logic to encode
49. k k k k k k k k K KOK K K K K KOK KOK k K K 0633 0000 00281 DISP LCD NOP 00282 00283 DISP 1 1 SET RSO 0634 1308 LCD CPORT LCD RS 0635 3080 00284 MOVLW L1 ADDR 0636 0086 00285 MOVWF LCD DPORT 0637 25FF 00286 CALL PULSE EN 00287 SET RS1 2 0638 1708 M BSF LCD CPORT LCD RS 0639 01 9 00288 1 063 3014 00289 RAM2LCD1 MOVLW LCD CHAR 063B 0279 00290 SUBWF TEMP1 W 063C 1903 00291 BTFSC 5 05 2 063D 2E47 00292 GOTO RAM2LCD1X 063 3020 00293 MOVLW LCD RAM BUF 063 0779 00294 ADDWF TEMP1 W 0640 0084 00295 MOVWF FSR z 0641 1784 00296 BSF FSR 7 Addr Select Bank 1 0642 0800 00297 MOVF 0643 0086 00298 MOVWF LCD DPORT 0644 25FF 00299 CALL PULSE EN 5 0645 9 00300 1 2 0646 2 00301 GOTO RAM2LCD1 0647 0000 00302 RAM2LCDI1X 00303 00304 DISP LCD2 SET RSO 0648 1308 LCD CPORT LCD RS 0649 30A8 00305 MOVLW L2 ADDR 1 064 0086 00306 MOVWF LCD DPORT 2 0648 25FF 00307 CALL PULSE EN 00308 SET RS1 1 064 1708 BSF LCD CPORT LCD RS 064D 01 9 00309 1 064 3014 00310 RAM2LCD2 MOVLW LCD CHAR H 064F 0279 00311 SUBWF 0650 1903 00312 5 5 2 E 0651 2E5C 00313 GOTO RAM2LCD2X 0652 3020 00314 MOVLW LCD BUF 0653 14 00315 ADDLW CD CHAR MAX 0654 0779 00316 ADDWF
50. of school supplies should be kept in school to be sold to the students thus eliminating the need to go the stores outside the school especially if the campus doesn t have a bookstore Using this vending machine in their school they could eliminate the excuses of the students to go out and buy school supplies outside the campus since it sometimes lead to traffic accidents and to the vices of the students This invention was created in 1934 the materials used in this vending machine were not microprocessor and other electronic materials since the said materials were not yet invented The design of this vending machine was mostly created using levers and rods The article also specified the problem regarding the vending of the design In a case study entitled Automatic Chocolate Vending Machine using MUCOS RTOS by Yadav S G Shiva Prasad 2003 tackles about a vending machine that dispenses assorted chocolates The design uses a 3 liner LCD display microcontroller based hardware mechanical coin sorter and coin inlet This Automatic Chocolate Vending machine uses microcontroller based dispensing unit at the start of the transaction the LCD display will show welcome messages for the customer and after inserting the necessary amount of coins into the inlet it will display a string of messages saying Wait for a moment and Collecting a nice chocolate soon It is also possible for the customer to retrieve or refund his money if he inserts
51. the array of the SPST single pole single throw switches this is mainly for sending the appropriate instructions to the PIC16F877 The coin as well is provided in the input to count the number of credits entering the machine The primary output of the system is composed of the 20x4 LCD display and the dispensers The LCD display provides the complete information about the whole transaction while the dispenser is for the output delivery of the purchase materials 19 Schematic Diagram 20 CHAR X 4 LINE LCD MODULE VDDDDDDDDERRVVV luF 16V ADMIN SWITCH COIN SLOTS MOTOR DC CRYSTAL MOTOR DC 5 PIC16F877 5V MOTOR DC 5V MOTOR DC 12Vo sv MOTOR DC 12Vo MOTOR DC 12V 2 1 5401 gt 12 ov BRIDGE MOTOR DC 12Vo Figure 3 3 Schematic Diagram 20 SOFTWARE DEVELOPMENT System Flowchart START Entering numbers in the keypad from 1 to 9 for book 1 Entering numbers in the keypad from 1 to 9 for book 2 Press Press Entering numbers Press in the keypad from 1 to 9 for book 3 Press Entering numbers in the keypad from 1 to 9 for Ball pen Press Entering numbers Press in the keypad from 1 to 9 for Pencil Back or Cancel or Purchase Press 1 Press 4
52. thermal shutdown circuit takes over preventing the IC from overheating Considerable effort was expanded to make the LM78XX se ries of regulators easy to use and mininize the number of external components It is not necessary to bypass the output although this does improve transient response Input bypassing is needed only if the regulator is located far from the filter capacitor of the power supply For output voltage other than 5V 12V and 15V the LM117 series provides an output voltage range from 1 2V to 57V Features Output current in excess of 1A Internal thermal overload protection No external components required Output transistor safe area protection Internal short circuit current limit Available in the aluminum TO 3 package Voltage Range LM7805C 5 LM7812C 12V LM7815C 15V Schematic and Connection Diagrams 1995 Natonal Semiconductor Corporation TL H 7746 Metal Can Package TO 3 K Aluminum OUTPUT INPUT TL H T746 2 Bottom View Order Number LM7805CK LM7812CK or LM7815CK See NS Package Number KC02A Plastic Package TO 220 T __ gt ovtrur GND Pa TL H 7746 3 Top View Order Number LM7805CT LM7812CT or LM7815CT See NS Package Number TL H 7746 1 RRD B30Mt 15 Printad in U S soues XX84IWN1 96 Absolute Maximum Ratings If Military Aerospace specified devices are required please contac
53. 0 00000151 000001A1 00000200 00000074 00000005 00000005 00000000 00000000 00000002 00000003 00000001 00000007 90 SYMBOL TABLE A ABEL NOT 8 NOT T1SYNC NOT TO NOT TX8 NOT W NOT WRITE OBF OERR OPTION REG P PCFGO PCFG2 PCFG3 PCL PCLATH PCLATH TEMP PCON 1 PIR1 PIR2 PORTA PORTB PORTC PORTC_NEW PREV PORTD PORTE PR2 PSO PS1 PS2 PSA PSPIE PSPIF PSPMODE PULSE EN 1 LCD1X LCD2 LCD2X LCD3 LCD3X LCD4 LCDAX Ej S NO NO PO PO PO PD dus VALUE 00000006 00000002 00000004 00000006 00000002 00000002 00000006 00000001 00000081 00000004 00000000 00000001 00000002 00000003 00000002 0000000A 0000007 0000008 00000006 00000002 0000008C 0000008D 0000000C 0000000D 00000005 00000006 00000007 00000020 00000021 00000008 00000009 00000022 00000023 00000092 00000000 00000001 00000002 00000003 00000007 00000007 00000004 000005 00000002 0000063 00000647 0000064 0000065C 00000663 00000672 00000679 00000689 00000003 00000000 91 SYMBOL TABLE A LABEL RC8 9 RC9 RCD8 RCEN RCIE RCIF RCREG ys n pi D D SWO D SWOX D 511 D 5 1 D SW2 D SW2X EAD KEY EAD KEYX EAD SW EAD SWX EAD WR
54. 00 Microchip Technology Inc 00400 LIST 2007 3F32 00005 _ CONFIG HS OSC amp OFF 4 amp OFF amp BODEN OFF 00006 k k k 00007 Variable Declaration 00000020 00008 PORTC NEW EQU H 20 00000021 00009 PORTC PREV EQU H 21 00000022 00010 PORTE NEW EQU H 22 00000023 00011 PORTE PREV EQU H 23 00000024 00012 EQU H 24 00000025 00013 KEY PREV EQU 125 2 00000026 00014 EQU H 26 00000027 00015 KEY CTR EQU 7s 00000028 00016 KEY BUFR EQU H 28 00000029 00017 EQU H 29 0000002A 00018 THOUSND10 EQU H 2A 0000002B 00019 THOUSAND EQU H 2B 2 0000002C 00020 HUNDRED EQU Huc 0000002D 00021 TEN EQU H 2D 2 0000002 00022 UNIT EQU H 2E 0000002F 00023 COIN VAL EQU H 2F H 00024 00000030 00025 5 11 EQU H 30 00000031 00026 SEL2 EQU E31 4 00000032 00027 SEL3 QTY EQU H 32 00000033 00028 5 14 EQU H 33 00000034 00029 SEL5 OTY EQU H 34 1 00000035 00030 5 11 H 35 00000036 00031 5 12 EQU H 36 1 00000037 00032 5 13 EQU H 37 00000038 00033 5 14 AMT EQU H 38 1 00000039 00034 5 15 EQU H 39 1 0000003 00035 SEL TOTALHI EQU H 3A 0000003B 00036 SEL TOTALLO EQU H 3B 1 0000003C 00037 SE
55. 0000018D 0000010C 0000010E 00000004 00000004 00000007 00000001 00000002 00000004 00000007 00000007 00000002 00000002 0000002C 00000005 00000002 00000003 00000004 00000007 00000005 00000571 00000000 00000005 00000607 00000053 00000008 00000004 00000006 00000001 89 SYMBOL TABLE ABEL IRP ISR ROUTINE 1 1 2 2 ITEM3 ITEM3 4 4 5 5 ITEM SEL ITEM VALUE KEY BUFR KEY CTR KEY NEW KEY PREV KEY TABLE KEY VAL LCD CHAR MAX LCD CPORT LCD DPORT CD EN CD 11 ADDR L2 ADDR L3 ADDR CD 14 ADDR CD LINE MAX LCD RAM BUF LCD RS LD 560 2 LD MSG2RAI LD MSGDONE LD MSGLOOP LD MSG ADR LD MSG CHAR 1 5 860 861 862 563 SG NU NOT A NOT ADDRESS NOT BO NOT BOR NOT DONE NOT PD NOT POR NOT RBPU VALUE 00000007 0000001F 000005AF 0000004 6 B 00000047 000005C7 00000048 000005E2 9 D A 4 0000004 000005F 0000004 0000004 00000045 00000028 00000027 00000024 00000025 00000042 00000026 00000014 00000008 00000006 00000007 00000080 000000A8 00000094 000000D4 00000004 00000020 00000006 000006A0 0000068B 00000682 0000069C 00000695 000006AA 0000001D 0000058C 00000584 0000010
56. 0000050 0000005 0000006 00000068 00000003 00000004 00000005 00000006 00000085 00000086 00000087 00000088 00000089 00000000 00000001 00000002 00000001 00000006 00000006 00000000 00000000 00000005 00000004 00000004 00000019 00000098 00000001 0000002 00000048 0000004C 0000004D 0000004E 0000004F 00000000 00000627 00000629 00000072 0000062D VALUE 0000062E 00000073 00000007 00000001 00000002 00000003 0000007D 00000002 00003FBF 00003FFF 00003FFF 00003EFF 00001FFF 00003FFF 94 EBUG EBUG 5_ 5 LP OSC OF LVP ON OPWRTE OSC WDT OF WDT ON WRT 1F WRT 25 WRT HA _WRT OF _ _ 5 __16 87 MEMORY 0000 0040 0080 0100 0140 0180 01 0 0200 0240 0280 02 0 0300 0340 0380 03 0 0400 0440 0480 04 0 0500 0540 0580 05 0 0600 0640 0680 2000 ON ON F OURTH 6 LF USAGE MAP X X XXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX USAGE MAP x XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXX
57. 0086 DATA HI 00000071 00087 DATA LO 00000072 00088 WAIT1 VAL 00000073 00089 WAIT2 VAL 00000074 00090 MSG NUM 00091 00000079 00092 variable 0000007A 00093 TEMP2 0000007B 00094 TEMP3 0000007C 00095 4 0000007D 00096 TEMP variable for W 0000007E 00097 STAT TEMP variable for STATUS 0000007F 00098 PCLATH TEMP 00099 2 c 22 2 25 2 00000020 00100 LCD RAM BUF Er E m E m E E U H 4B H 4C H 4D H 4E H 4F H 50 H 51 H 52 H 53 H 54 H 55 H 56 H 57 H 58 H 59 H 5A 5 H 5C H 5D H 60 H 61 H 62 H 63 H 64 H 65 H 66 H 67 H 68 H 69 H 6A H 6B H 70 H 71 H 72 H 73 H 74 H 79 7 H 7B H 7C 7 temporary temporary temporary H 20 Bank 1 52 0 0000 00102 00103 Reset Vector Starts at Address ORG GOTO ORG GOTO 0X0000 INITIALIZE 0X0004 ISR ROUTINE Start of reset start of RK KEK LOC OBJECT CODE LINE SOURCE VALUE 0000 00104 vector 0000 2805 00105 00106 0004 00107 i
58. 033 03DC 0080 03DD 0A84 03DE 3020 03DF 0080 0000 1 0844 2 3004 03 1003 03 4 2BF6 03E5 3042 LOC OBJECT CODE VALUE 03E6 0080 03E7 0A84 03E8 302 00743 BTFSS 00744 GOTO 00745 OVLW 00746 OVWF 00747 INCF 00748 OVLW 00749 OVWF 00750 INCF 00751 OVLW 00752 OVWF 00753 INCF 00754 OVLW 00755 OVWF 00756 INCF 00757 OVLW 00758 OVWF 00759 INCF 00760 OVLW 00761 OVWF 00762 DISP ITEM2X NOP 00763 00764 DISP OVF 00765 SUBLW 00766 BTFSS 00767 GOTO 00768 OVLW 00769 OVWF 00770 INCF 00771 OVLW 00772 OVWF 00773 INCF 00774 OVLW 00775 OVWF 00776 INCF 00777 OVLW 00778 OVWF 00779 INCF 00780 OVLW 00781 OVWF 00782 INCF 00783 OVLW 00784 OVWF 00785 DISP NOP 00786 00787 DISP 4 OVF 00788 SUBLW 00789 BTFSS 00790 GOTO 00791 MOVLW LINE SOURCE TEXT 00792 MOVWF 00793 INCF 00794 MOVLW STATUS 2 DISP IT INDF FSR F oM 2 ITEM SE p 3 _ STATUS Z DISP IT E INDF FSR F 0 ITEM SE W EM3X W 4 STATUS Z DISP ITI INDF FSR F wow 4 68 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 04 04 04 04 04 04 04 04 04 04 04 04 04 04 Ck k x Ck kk Ck Ck Ck lt K k lt Ck kk Ck k k kk k
59. 08 2B1B 00537 00538 00539 0309 300F 00540 030 00A6 00541 030B 0008 00542 00543 030C 01 4 00544 030D 268B 00545 030E 01C3 00546 030F 0840 00547 0310 07C2 00548 0311 01C0 00549 0312 01C1 00550 0313 01B0 00551 0314 01 1 00552 0315 0182 00553 0316 0183 00554 0317 0184 00555 0318 3001 00556 0319 00 4 00557 031A 2B09 00558 00559 031B 083B 00560 031C 0240 00561 Amount 031D 1603 00562 031 2837 00563 031 07C2 00564 0320 01C0 00565 0321 01C3 00566 0322 01 1 00567 00568 0323 0830 00569 DO MSG1 X DO 561 DO 5611 DO 5614 GOTO MSG1X MOVLW H C SUBWF KEY VAL W BTFSC STATUS C GOTO MSG1X MOVLW H B SUBWF KEY VAL W BTFSC 5 05 2 GOTO MSG1B MOVLW H A SUBWF KEY VAL W BTFSC 5 05 2 GOTO DO MSG1A MOVLW H 1 SUBWF KEY VAL W BTFSC 5 05 2 GOTO 5611 MOVLW H 4 SUBWF KEY VAL W BTFSC STATUS Z GOTO 5614 MOVLW H OF MOVWF KEY VAL RETURN CLRF MSG NUM CALL LD MSG2RAM CLRF CHANGE HI MOVF AMOUNT W ADDWF CHANGE CLRF AMOUNT COIN 8 11 QTY CLRF 12 QTY SEL3 QTY SEL4 QTY 5 5 QTY MOVLW D 1 MOVWF ITEM SEI GOTO 501 X MOVF SEL TOTALLO W SUBWF AMOUNT BTFSS STATUS C GOTO MSG14X ADDWF CHANGE F CLRF AMOUNT CLRF CHANGE HI COIN HI MOVF SEL1 QTY W Ne
60. 1256 k k k k k k k k k k k k K k k K K KOK KKK KKK KK KOK OK K hock KOK KOR 01257 END SYMBOL TABLE LABEL ACKDT ACKEN ACKSTAT DCONO DCON1 DCSO DCS1 DCS2 DD2SALE DDEN DDSALE1 DDSALE2 DDSALE3 DDSALE4 DDSALES p p p Q d to tu tO Cg C tU t lt CCP2CON CCP2IE 2 2 2 1 2 2 CCP2M3 SYMBOL TABLE ABEL 2 2 VALUE 00000005 00000004 00000006 0000001F 0000009F 00000006 00000007 00000006 00000358 00000003 00000359 00000361 00000369 00000371 00000379 00000007 00000006 00000006 00000000 0000001E 0000009E 00000040 000004 9 000004 2 000004 00000003 00000003 00000000 000004 8 000004 00000002 00000000 00000004 00000006 00000005 00000007 00000029 00000017 00000002 00000002 00000000 00000001 00000002 00000003 00000005 00000004 00000018 00000000 00000000 00000000 00000001 00000002 00000003 VALUE 00000005 00000004 00000016 86 CCPR1L CCPR2H 21 CHANGE CHANGE CHANGE CHSO CHS1 CHS2 CIS CKE CKP CMO 1 2 CMCON CMIE CMIF COIN HI COIN VAI COMP ITE 11 11 11 11 11 11 11 11 CSRC CVRO
61. 1A9 054E 300A 054F 022C 0550 1C03 0551 2D54 0552 00AC 0553 1429 0554 0000 0555 082B 0556 07AB 0557 0829 0558 07AB 0559 01A9 055A 300A 055B 022B 055C 1C03 055D 2060 055 00AB 055F 1429 0560 0000 0561 082A 0562 07AA 0563 0829 0564 07AA 0565 01A9 0566 300A 0567 022A 0568 1C03 0569 2 6 056 00AA 056B 1429 056C 0000 056D 0008 k k k k k k K k k k K k k KK 1216 152457 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 T231 1232 1233 1234 1235 1236 1237 1238 1239 124 124 124 124 124 124 124 124 124 124 1250 1251 1252 1253 1254 Q 01255 00001 DOUBLE 100X DOUBLE 1 DOUBLE 1 DOUBLE 10K DOUBLE 10KX MOVF ADDWF CLRF MOVLW SUBWF BTFSS GOTO OVWF BSF NOP OVF ADDWF OVF ADDWF CLRF OVLW SUBWF BTFSS GOTO OVWF BSF NOP OVF ADDWF OVF ADDWF CLRF OVLW SUBWF BTFSS GOTO MOVWF BSF NOP RETURN INCLUDE CARRY W HUNDRED F CARRY 510 E HUNDRED W H STATUS C DOUBLE 100 H HUNDRED H CARRY O THOUSAND W THOUSAND CARRY W THOUSAND CARRY DT THOUSAND W STATUS C D
62. 2 SA HI 0095 01 3 00278 SEL2 SALELO 0096 01 4 00279 SEL3 SALEHI E 0097 01 5 00280 SEL3 SALELO 2 0098 1 6 00281 SEL4 SALEHI 2 0099 01 7 00282 SEL4 SALELO 2 009A 01 8 00283 SEL5 SALEHI 2 0098 01 9 00284 SEL5 SALELO 2 009C 00285 TOTALSALEHI H 009D 01 00286 TOTALSALELO 00287 009 0008 00288 2 00289 k k k K KOK K K KOK K K KOK K K K K KOR KOK 0100 00290 ORG 0 0100 0100 0782 00291 MSGO ADDWF PCL F H 00292 01234567890123456789 0101 3449 3454 3445 00293 00 00 344D 343A 3420 3420 3420 3420 3420 3420 343D 3450 3420 3430 3430 342E 3430 3430 3420 0115 3451 3454 3459 00294 DT NOTY P000 00 343A 3420 345F 3420 3420 3420 3420 3420 343D 3450 3430 3430 LOC OBJECT CODE LINE SOURCE TEXT VALUE 3430 342E 3430 3430 3420 0129 3420 3420 3420 00295 DT M TOTAL P000 00 3420 3420 3454 344F 3454 3441 344C 3420 343D 3450 3430 3430 3430 342E 3430 3430 3420 013D 345B 342A 345D 00296 DT PREV 4 NEXT y 3450 3452 3445 3456 3420 3420 3420 345B 3423 345D 344E 3445 3458 3454 3420 3420 3420 00297 00298 01234567890123456789 0151 345B 3431 345D 00299 MSG1 DT 1 CANCEL 4 OK 3443 3441 344 3443 3445 344 3420 3458 3434 3450 344F 344B 0165 0179 018D 01 1 LOC OBJE VALUE 01B5 01C9 01DD 0200 0200 34 34 34 34 34
63. 220 9 F SE 1 5401 12Vo 4700uF 16v MOTOR DC 12Vo
64. 3 TYPICAL 0 100 200 300 400 500 10 Figure 10 Peak Collector Current versus Duty Cycle Ic peak 2061451 Figure 9 Collector Current versus Voltage Ic D98IN454 LL T A 15 Vce sat Figure 11 Peak Collector Current versus Duty Cycle Ic peak D96IN452A 500 1 ww TNS SERES 0 5 8 ULN2001A ULN2002A ULN2003A ULN2004A DIP16 PACKAGE MECHANICAL DATA ULN2001A ULN2002A ULN2003A ULN2004A S016 PACKAGE MECHANICAL DATA ioe E blocks Keypad board Document code EB014 30 1 0 Keypad board datasheet 014 00 1 Contents About this document General information Board layout Testing this product e Circuit M s Esau Me LU ERE DELE Lc cud lac ctt UNE Qo 6 Q to Appendix 1 Circuit diagram Copyright Matrix Multimedia Limited 2005 page 1 133 E blocks Keypad board Document code EB014 30 1 1 About this document This document concerns the E blocks Keypad board code 014 version 1 The order code for this productis 14 1 Trademarks and copyright PIC and PICmicro are registered trademarks of Arizona Microchip Inc E blocks 1s a trademark of Matrix Multimedia Limited 2 Other sources of inf
65. 390F 00975 ANDLW H OF 0486 00976 ADDLW H 30 0487 0080 00977 OVWF INDF 0488 0384 00978 INCF FSR F 0489 082E 00979 OVF UNIT W 048A 390F 00980 ANDLW 0488 00981 ADDLW H 30 048C 0080 00982 OVWF INDF 00983 048D 0008 00984 DISP DAT1X RETURN 00985 k k k k RK k k k k k k k k k k k k k k K K KK KOK KK K K KOK KOK K K KOR K K KOR K KOR R KOK KOK KOR KOK K R KOK KOK KOK K K KOK KOK KK KK KKK 048E 0874 00986 DISP DAT2 MOVF MSG NUM W 04 3 02 00987 SUBLW D 2 0490 1003 00988 BTFSS 5 05 2 0491 2 00989 GOTO DISP DAT2X 00990 0492 3020 00991 OVLW LCD RAM BUF 0493 3E04 00992 ADDLW 014 0494 0084 00993 OVWF FSR 0495 1784 00994 BSF FSR 7 00995 0496 0860 00996 OVF SELl1 SALEHI W 0497 00 0 00997 OVWF DATA HI 0498 0861 00998 OVF 5 1 SALELO W 0499 00 1 00999 OVWF DATA LO 049A 24FC 01000 CALL 2 16 0498 24CF 01001 CALL DISP DEC 01002 049C 3020 01003 MOVLW LCD RAM BUF LOC OBJECT CODE 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 VALUE A6 A8 A9 BO Bl B2 B3 B4 B5 B6 B7 B8 B9 BA BB BC BE BF CO C1 C2 C3 C4 C5 C6 C7 C8 LINE SOURCE 3E0E 01004 0084 01005 1784 01006 0100
66. 4 2 6 16 23 Invalid 7 19 25 Invalid 8 50 42 8 9 50 75 Invalid 10 36 35 1 11 36 42 invalid 12 8 7 1 13 8 8 0 14 14 14 0 32 15 21 21 0 16 30 28 2 17 30 21 9 18 30 14 16 19 24 14 10 20 17 18 Invalid 21 17 14 3 22 25 14 11 23 25 18 7 24 35 29 6 25 28 24 4 26 28 35 Invalid 27 28 28 0 28 25 23 2 29 25 24 1 30 1 20 Invalid Table 4 3 Change Test Result Table 4 3 shows the results on what will happen if a certain amount of coins is inserted to the machine satisfying the condition that this amount is not equal to the total amount purchased The results showed that correct amount of 33 change will be dispense automatically after the confirming the transaction In the 4 column there are results which are invalid these indicates that the amount inserted by the user is less than the amount he wants to purchase As a result the machine will not dispense the items LCD Display and Keypad and Administrator Button The researchers conducted a test to the four liner LCD display and keypad to verify if the buttons pressed will correctly display the output and perform its desired instruction The following table sums up the results gathered based on the test that the designers performed Key Pressed Output 1 item quantity selection 1 2 item quantity selection 3 item quantity selection 4 item quantity selec
67. 40 RD2PSP2 39 foo RD1 PSP1 38 I RDOPSPO 36 FOCI RC2ICCP1 35 RC1IT1OSIICCP 2 RCTIRXIDT NC RD4 PSP4 RCO T1OSO T1CKI RDS PSPS OSC2ICLKO 30 OSC1 CLKI 4 RD7 PSP7 PIC16F874A vss Vi 28 ue PIC16F877A RE2 CSIAN 7 D TT RBOANT RE1AWRIANG RBI REORDIANS RB2 RASIAN4ISSIC 20UT RAATOCKIC1OUT RADIANO 2319 lt MCLR Aae C18 RAZIAN2IVREFJCVREF e CIO 21 lt 422 114 PIC16F87XA TABLE 1 3 PIC16F874A 877A PINOUT DESCRIPTION Pin Name PDIP PLCC TQFP QFN Buffer Description Pin Pin Pin Pin Type Type OSC1 CLKI 13 14 30 32 ST CMOS Oscillator crystal or external clock input 0561 1 Oscillator crystal input or external clock source input ST buffer when configured in RC mode otherwise CMOS CLKI External clock source input Always associated with pin function OSC1 see OSC 1 CLKI OSC2 CLKO pins OSC2 CLKO 14 15 31 33 Oscillator crystal or clock output 0562 Oscillator crystal output Connects to crystal or resonator in Crystal Oscillator mode CLKO In RC mode OSC2 pin outputs CLKO which has 1 4 the frequency of OSC1 and denotes the instruction cycle rate MCLR VFP 4 2 18 18 ST Master Clear input or programming voltage output MCLR Master Clear Reset
68. 5 001 0 300 Wide Device also available in Tape and Reel Specify by appending suffix letter X to the ordering code Connection Diagrams Pin Assignment for DIP ROW Y2 DATA OUT A ROW DATA QUT B ROW va DATA QUT OSCILLATOR KEYBOUNCE MASK ENABLE COLUMN DATA AVAILABLE COLUMN COLUMN COLUMN X2 1999 Fairchild 5 emiconductor Corporation DS006037 pif Pin Assignment for SOIC v D 12 DATA OUT ROW 15 DATA OUT 8 DATA QUT C DATA OUT D SCILLATOR KEYBOUNCE MASK DUTPUT ENABLE COLUNN DATA AVAILABLE COLUMN XS COLUMN X1 COLUMN X2 Top View 4 922 www fauchild emi com 02 Jepooua 9 269v ININ 22627 ZININ 103 MM74C922 MM74C 923 Connection Diagrams continued Pin Assignment for DIP and SOIC Package DATA QUT A DATA DATA DUT C ROW Y5 ODATA QUT D OSCILLATOR DATA QUT E KEYEQUNCE MASK SUPUT ENAELE COLUMN X4 DATA AVAILABLE COLUMN COLUMN X1 COLUMN 2 Top View 14 923 Truth Tables Pins 0 through 11 Switch 1 2 3 5 6 T 8 9 10 n Position Y4 X4 YAX2 Y4 X3 1 4 2 1 2 2 2 3 2 4 1 2 4 Pins 12 through 19 13 14 15 16 17 18 19 YAX2 4 3 4 4 Y5 Hote1 Y5 Note 1 5 Note 1 Y5 Note 1 x1 x2 x3 Note 1 Omit for 4 922 m
69. 59 04 4 00333 IORWF KEY NEW F 025 1 24 00334 BTFSS KEY NEW 4 H 025B 2A61 00335 GOTO READ KEYX 5 025 1 25 00336 BTFSC KEY PREV 4 2 025D 2A61 00337 GOTO READ KEYX 025E 0824 00338 MOVF KEY NEW W 3 025F 390F 00339 ANDLW H OF 0260 00 6 00340 MOVWF KEY VAL 2 0261 0824 00341 READ KEYX MOVF KEY NEW W H 0262 00A5 00342 MOVWF KEY PREV E 0263 0008 00343 RETURN B 00344 k k k KK KOK KOK KOK KOK KOR K K R R RK KOR K KOK K K 0264 01FB 00345 COMP ITEM CLRF TEMP3 0265 0879 00346 M 0266 1903 00347 BTFSC STATUS Z 0267 2A6C 00348 GOTO COMP ITEMX z 0268 087A 00349 TEMP2 W 0269 07FB 00350 ADDWF TEMP3 F 026A 03 9 00351 0268 2A65 00352 026C 0008 00353 COMP ITEMX RETURN 2 00354 026D 01BA 00355 COMP ITEMS CLRF SEL TOTALHI 2 026E 1 00356 CLRF SEL TOTALLO 00357 026F 0830 00358 COMP ITEMI OVF SEL1 QTY W 0270 00 9 00359 OVWF TEMP 0271 0848 00360 OVF VALUEl W 0272 00 00361 OVWF TEMP2 2 0273 2264 00362 CALL OMP ITEM 0274 087 00363 OVF TEMP3 W 0275 00B5
70. 640 SEL1 AMT W 035E O7EB 00641 ADDWF TOTALSALELO F 035F 1803 00642 BTFSC 5 5 j 0360 OAEA 00643 INCF TOTALSALEHI F 00644 0361 0836 00645 ADDSALE2 MOVF 5 12 AMT W 0362 07 00646 ADDWF SEL2 SALELO F 0363 1803 00647 BTFSC 5 5 0364 2 00648 SEL2 SALEHI F 0365 0836 00649 SEL2 0366 07 00650 ADDWF TOTALSALELO F I 0367 1803 00651 BTFSC 5 5 0368 00652 TOTALSALEHI F 00653 0369 0837 00654 ADDSALE3 SEL3 AMT W 036 07 5 00655 ADDWF SEL3 SALELO F j 036B 1803 00656 BTFSC 5 5 036C 4 00657 SEL3 SALEHI F 036 0837 00658 SEL3 AMT W 036E O7EB 00659 ADDWF TOTALSALELO F 036 1803 00660 BTFSC 5 5 0370 00661 TOTALSALEHI F 00662 0371 0838 00663 ADDSALE4 SEL4 AMT W 0372 07 7 00664 ADDWF SEL4 SALELO F 0373 1803 00665 BTFSC 5 5 0374 0 6 00666 INCF 6 4 SALEHI F 0375 0838 00667 MOVF SEL4 AMT W 0376 07 00668 ADDWF TOTALSALELO F 0377 1803 00669 BTFSC 5 5 0378 OAEA 00670 INCF TOTALSALEHI F 00671 0379 0839 00672 ADDSALES SEL5 AMT W 037A 07 9 00673 ADDWF SEL5 SALELO F 037B 1803 00674 BTFSC 5 5 x 037C 0 8 00675 SEL5_SALEHI F 037 0839 00676 SEL5 AMT W O7EB 00677 ADDWF TOTALSALELO F 5 037F 1803 00678 BTFSC 5 5 0380 O
71. 7 0866 01008 00 01009 0867 01010 00 1 01011 24 01012 24 01013 01014 3020 01015 3 18 01016 0084 01017 1784 01018 01019 0862 01020 00 01021 0863 01022 00 1 01023 24 01024 24 01025 01026 3020 01027 3 22 01028 0084 01029 1784 01030 01031 0868 01032 00 01033 0869 01034 00 1 01035 24 01036 24 01037 01038 3020 01039 3 2 01040 0084 01041 1784 01042 01043 0864 01044 00 01045 0865 01046 00 1 01047 24 01048 24 01049 01050 3020 01051 3E36 01052 0084 01053 1784 01054 01055 086A 01056 EXT ADDLW MOVWF BSF MOVF MOVWE MOVF MOVWF CAL CAL OVLW D 14 FSR FSR 7 EL4 SALEHI W ATA HI 4 SALELO 10 BIN2DEC16 DISP DEC RAM BUF OVWF BSF OVF OVWF OVF OVWF CALL CALL OVLW 24 o FSR FSR 7 EL2 SALEHI W ATA HI 2 SALELO W DATA LO BIN2DEC16 DISP DEC RAM OVWF BSF OVF OVWF OVF OVWF CAL CALL OVLW D 34 FSR FSR 7 EL5 SALEHI W ATA HI 5 SALELO W DATA LO BIN2DEC16 DISP DEC RAM BUF OVWF BSF OVF OVWF OVF OVWF CALL CAL MOVLW D A4 FSR FSR 7 EL3 SALEHI W ATA HI EL3 SALELO W DATA LO BIN2DEC16 DISP DEC
72. A 18 1 01177 BTFSC 10 1 0528 OAAE 01178 01179 052 2530 01180 CALL DATAX2 052D 1871 01181 BTFSC 10 0 052 OAAE 01182 UNIT F 01183 052F 0008 01184 RETURN 01185 k k k k k k k k k k k k k k k Ok k K KOK K KOK KOK KOR K K koe KOK K K KOR KOK koc KOK KOR K K R R KOK R R 0530 01 9 01186 DATAX2 CLRF CARRY 01187 0531 082 01188 DOUBLE 001 MOVF UNIT W 0532 07 01189 ADDWF UNIT F 0533 0829 01190 MOVF CARRY W 0534 07 01191 ADDWF UNIT F 0535 01A9 01192 CLRF CARRY 0536 300A 01193 MOVLW D 10 0537 022 01194 SUBWF UNIT W 0538 1603 01195 BTFSS 5 5 0539 2D3C 01196 GOTO DOUBLE 001X 053A 00 01197 OVWF UNIT 053B 1429 01198 BSF CARRY 0 053C 0000 01199 DOUBLE 001X NOP 01200 053D 082D 01201 DOUBLE 010 OVF TEN W 053 O7AD 01202 ADDWF 053F 0829 01203 OVE CARRY 0540 O7AD 01204 ADDWF 0541 01A9 01205 CLRF CARRY 0542 300A 01206 OVLW 10 0543 022D 01207 SUBWF 0544 1803 01208 BTFSS STATUS C 0545 2048 01209 GOTO DOUBLE 010 0546 00AD 01210 MOVWF TEN 0547 1429 01211 BSF CARRY 0 0548 0000 01212 DOUBLE 010X NOP 01213 0549 082C 01214 DOUBLE 100 HUNDRED W 054A 07AC 01215 ADDWF HUNDRED F 76 LOC OBJECT CODE LINE SOURCE TEXT VALUE 054B 0829 054C 07AC 054D 0
73. AEA 00679 INCF TOTALSALEHI F 00680 0381 0008 00681 RETURN 00682 k k k k RK k k k k k k k k k k k k K k KK k k K K KOK K K KOR K KOK K K OK K K KOR KOK KOR KOK OK K KOK KOK KOK KOK KOR KOK K K KOK K K KOR K R KK 0382 0809 00683 READ SW PORTE W 0383 00A2 00684 MOVWF PORTE NEW 00685 LOC OBJECT CODE LINE SOURCE TEXT VALUE 0384 1822 00686 RD 510 BTFSC PORTE NEW O 2 0385 2889 00687 GOTO RD SWOX 2 0386 123 00688 BTFSS PORTE PREV O 0387 2889 00689 GOTO RD SWOX 2 0388 00690 0389 0000 00691 RD SWOX NOP 00692 038 18 2 00693 RD SW1 BTFSC PORTE NEW 1 H 038B 2B90 00694 GOTO RD 2 038C 1CA3 00695 BTFSS PORTE 1 7 038D 2B90 00696 GOTO RD 2 038 3005 00697 MOVLW D 5 2 038 07 0 00698 ADDWF AMOUNT F 0390 0000 00699 RD SW1X NOP z 00700 2 0391 1922 00701 RD 502 BTFSC PORTE NEW 2 0392 2B97 00702 GOTO RD SW2X 2 0393 1023 00703 BTFSS PORTE 2 P 0394 2B97 00704 GOTO RD SW2X 0395 300 00705 MOVLW D 10 0396 07C0 00706 ADDWF AMOUNT F 0397 0000 00707 RD SW2X NOP 00708 2 0398 0822 00709 READ SWX MOVF PORTE NEW W H 0399 00A3 00710 MOVWF PORTE PREV R 039A 0008 00711 RETURN 00712
74. BASIC SCHOOL SUPPLIES DISPENSER WITH SINGLE TRANSACTION PAYMENT by Zyner M Detablan Mari Alexis Kaye F Marquez Gerome Cristopher P Refre A Design Report Submitted to the School of Electrical Engineering Electronics Engineering and Computer Engineering in Partial Fulfilment of the Requirements for the Degree Bachelor of Science in Computer Engineering Mapua Institute of Technology December 2011 Approval Sheet Mapua Institute of Technology School of EECE This is to certify that we have supervised the preparation of and read the design report by Zyner M Detablan Mari Alexis Kaye F Marquez and Gerome Cristopher P Refre entitled BASIC SCHOOL SUPPLIES DISPENSER WITH SINGLE TRANSACTION PAYMENT and that the said report has been submitted for final examination by the Oral Examination Committee Engr Ayra G Panganiban Design Adviser As members of the Oral Examination Committee we certify that we have examined this design report presented before the committee on December 16 2011 and hereby recommended that it be accepted in the fulfillment of the design requirements for the degree in Bachelor of Science in Computer Engineering This design report is hereby approved and accepted by the School of Electrical Engineering Electronics Engineering and Computer Engineering in partial fulfillment of the requirements for the degree in Bachelor of Computer Engineering 5 Dr Felicito S Caluyo Dean School of
75. Cancel the Dispense transaction Item Figure 3 4 System Flowchart 21 Figure 3 4 shows the system flowchart of the Basic School supplies dispenser with single transaction payment The micro controller checks what keys you pressed in the keypads This also shows that when you pressed asterisk the program will back to the previous items except for the Book 1 that will do nothing if you press Number sign will go to the next item except for the final part that will do nothing because instead of pressing the dispenser require you to press 4 The last part when you cancel the transaction the machine will automatically give the coins that you insert 22 Program Flowchart START Store Quantity Purchased for Book 1 Compute Corresponding price for Book 1 Store Quantity Purchased for Book 2 Compute Corresponding price for Book 2 Add Price of Book 1 and Book 2 for Total Cost Store Quantity Purchased for Book 3 Compute Corresponding price for Book 3 Values changed Add Price of Book 1 Book 2 and Book 3 for Total Cost Store Quantity Purchased for Ball Pen Compute Corresponding price for Ball Pen Add Price of Book 1 Book 2 Book 3 and Ball Pen for Total Cost Store Quantity Purchased for Pencil Compute Corresponding price for Pencil Add Price of Book 1 Book 2 Book 3 Ball Pen and Pencil for Total Cost Compare Credits Loa
76. Ck Sk k k k amp k k k k amp kk Sk kk amp k amp k k k k k Sk kk lt 04 04 04 04 04 04 04 04 E9 EA EB EC 031 E EF E FO F1 F2 F3 F4 F5 F6 E7 F8 F9 FA FB FC FD FE FF 00 01 02 03 04 05 06 07 08 09 0A 0B OD OE OF 10 11 12 13 14 15 0080 0A84 3050 0080 0A84 3065 0080 0A84 306E 0080 0A84 3020 0080 0000 0844 3C05 1D03 2 0 3050 0080 0A84 3065 0080 0A84 306E 0080 0A84 3063 0080 0A84 3069 0080 0A84 306C 0080 0000 0008 0874 3C00 1D03 2C56 3020 3E0E 0084 1784 00795 00796 00797 00798 00799 00800 00801 00802 00803 00804 00805 00806 00807 00808 00809 0081 0081 0081 0081 0081 0081 0081 0081 0081 0081 0 9 00820 00821 00822 00823 00824 00825 00826 00827 00828 00829 00830 00831 00832 00833 DISP 11 00834 DISP I7 DISP I7 DISP I7 ri z 4 5 5 00835 DISP DATO 00836 00837 00838 00839 00840 00841 00842 00843 OVLW OVWF NOP RETURN MOVF SUBLW BTFSS GOTO MOVLW ADDLW MOVWF BSF 5 D 5 _ STATUS Z DISP IT DE INDF FSR F 5 MSG NUM W 0 STATUS Z DISP DATOX LCD RAM BUF D 14 FS
77. Current Tj 25 OC Tj 126C Alo Quiescent Current 5 lo 1 8 85 0 5 05 Change Tj 28 C lt 1 Vmin Vin Vmax 500 mA 0 Tj 125 Vmin Vmax VN Output Noise Voltage T 25 C 10 Hz lt f lt 100 kHz AVin Ripple Rejection lo 1A Tj 25 C or f 120 21 lo 500 OC z Tj lt 125 Vin Vmax Ro Dropout Voltage Tj 28 C lout 1A Output Resistance f 1 kHz Short Circuit Current Tj 25 Peak Output Current Tj 25 Average TC 0 Tj 125 C lo 5 10 10 14 8 lt 27 179 30 10 10 17 5 30 8 18 15 25 18 5 lt 28 5 ViN Input Voltage Required to Maintain 25 lg 1 Line Regulation Note 1 Thermal resistance of the TO 3 package KC is typically 4 C W junction to case and 35 C W case to ambient Thermal resistance of the TO 220 package T is typically 4 C W junction to case and 50 C W case to ambient Note 2 All characteristics are measured with capacitor across the input of 0 22 uF and a capacitor across the output of 0 1nF characteristics except noise voltage and ripple rejection ratio are measured using pulse techniques t lt 10 ms duty cycle lt 5 Output voltage changes due to changes in internal temperature must be taken into account separately 97 Typical Performanc
78. E21 00933 ADDLW D 33 P 0461 0084 00934 OVWF FSR 2 0462 1784 00935 5 FSR 7 00936 0463 0841 00937 OVF 0464 00 0 00938 OVWF 2 0465 0840 00939 AMOUNT W 0466 00 1 00940 OVWF DATA LO 2 0467 24 00941 CALL 2 16 00942 0468 082C 00943 OVF HUNDRED W 0469 390F 00944 ANDLW H OF 046A 3E30 00945 ADDLW H 30 046B 0080 00946 OVWF INDF 2 046C 0 84 00947 INCF FSR F 046D 082D 00948 OVE TEN W 7 046 390 00949 ANDLW H OF 046 330 00950 ADDLW H 30 LOC OBJECT CODE LINE SOURCE TEXT VALUE 0470 0080 00951 OVWF INDF 0471 0A84 00952 INCF FSR F 0472 082 00953 OVF UNIT W 0473 390F 00954 ANDLW H OF 0474 3E30 00955 ADDLW H 30 0475 0080 00956 OVWF INDF 00957 0476 3020 00958 OVLW LCD RAM BUF 0477 3E35 00959 ADDLW 53 0478 0084 00960 OVWF FSR 0479 1784 00961 BSF FSR 7 00962 047A 083A 00963 OVF SEL TOTALHI W 0478 00 0 00964 OVWF DATA HI 047C 0838 00965 OVF SEL TOTALLO W 047 00 1 00966 OVWF DATA LO 047E 24 00967 CALL 2 16 00968 047 082C 00969 OVF HUNDRED W 0480 390F 00970 ANDLW H OF 0481 3 0 00971 ADDLW H 30 0482 0080 00972 OVWF INDF 0483 0484 00973 INCF FSR F 0484 0820 00974 OVF 0485
79. G PLANE 11 30 13 26 UNCONTROLLED LEAD 1420 MAX kaw na DIATYP 0 420 0 440 10 67 11 18 0 151 0 161 3 835 4 089 DIA 0 165 0 179 0 970 1 050 91 4 547 124 64 26 67 4 191 4 547 R 0 210 0 220 T 5 334 5 588 0 655 0 675 16 64 17 15 117 1487 29 90 30 40 2 REV C Aluminum Metal Can Package KC Order Number LM7805CK LM7812CK or LM7815CK NS Package Number KC02A 99 54 2 252261421 FAIRCHILD ATLAS SEMICONDUCTOR 1N5400 1N5408 80v SNL 00P SNL Features 30 ampere operation at T 75 with no thermal runaway High current capability Low leakage DO 201AD COLOR BAND DENOTES CATHODE General Purpose Rectifiers Absolute Maximum Ratings 25 uniess noted Parameter Value 5 6 sz ses 5x ses sar 5 puram SR INR Voltage Average Rectified Forward Current 30 Current 200 8 3 ms Single Half Sine Wave These ratings are limiting values above which the serviceability of any semiconductor device may be impaired Thermal Characteristics Power Dissipation 6 25 Thermal Resistance Junction to Ambient Electrical Characteristics 1 25 c uniess othenise noted Parameter Device 5400 5401 5402 5403 5404 5405 5406 5407 5408 Foward Voliage 30 Maximum Full Load Reverse Current Full Cycle Ta 105 C Reverse Current r
80. IT ESTOREREG PO P1 EN RX9 9 Fl DH UU Ud Ud UO tJ tJ Ud Ud 5 5 tU EL1 QTY SALEHI SALELO EL2 AMT D T lt gt o j 3 a n O Jj lt pr HH X p gt 3 tn n O gt 3 endis p d 3 1 10 3 K EL TOTALHI EL TOTALLO tn m m m m t mQ m tQ m m m m Q Q Q Q 00 1 B pim zm m zm m gt dis 0 05 05 Q S LABEL VALUE 00000006 00000006 00000000 00000003 00000005 00000005 0000001A 00000018 00000000 00000384 00000389 0000038A 00000390 00000391 00000397 00000251 00000261 00000382 00000398 00000002 00000025 00000005 00000006 00000001 00000006 00000000 00000002 00000003 00000035 00000030 00000060 00000061 00000036 00000031 00000062 00000063 00000037 00000032 00000064 00000065 00000038 00000033 00000066 00000067 00000039 00000034 00000068 00000069 0000003D 0000003C 0000003A 0000003B 00000000 VALUE 92 0 5 850 RS1 PBRG PEN SREN 55 SS SS SS SSP SSE SSE SSE SSE SSE SSE SS SS TATUS TAT TEMP S S PADD PBUF PCON
81. L EQU H 3C 1 0000003D 00038 SEL AMT EQU H 3D 1 00039 00000040 00040 EQU H 40 1 00000041 00041 COIN HI EQU 41 00000042 00042 EQU H 42 2 00000043 00043 EQU H 43 00000044 00044 ITEM S EQU H 44 00000045 00045 ITEM VALU EQU H 45 1 00000046 00046 QTY EQU H 46 00000047 00047 ITE 2 EQU H 47 00000048 00048 QTY EQU H 48 00000049 00049 ITEM4 QTY EQU H 49 P 0000004A 00050 ITEM5 EQU H 4A 51 LOC OBJECT CODE LINE SOURCE TEXT VALUE 0000004B 00051 0000004C 00052 VALUE2 0000004D 00053 VALUE3 0000004E 00054 VALUEA 0000004F 00055 VALUES 00056 00000050 00057 TMR1 SEC 00000051 00058 1 PRE 00000052 00059 TMR2 SEC 00000053 00060 TMR2 PRES 00000054 00061 TMR3 SEC 00000055 00062 TMR3 PRES 00000056 00063 4 SEC 00000057 00064 4 PRES 00000058 00065 TMR5 SEC 00000059 00066 TMR5 PRES 0000005A 00067 TMR6 SEC 0000005B 00068 TMR6 PRES 0000005C 00069 TMR7 SEC 0000005D 00070 TMR7 PRES 00071 00000060 00072 5 11 SALEHI 00000061 00073 5 11 SALELO 00000062 00074 SEL2 SALEHI 00000063 00075 SEL2 SALELO 00000064 00076 SEL3 SALEHI 00000065 00077 SEL3 SALELO 00000066 00078 5 14 SALEHI 00000067 00079 5 14 SALELO 00000068 00080 SEL5 SALEHI 00000069 00081 SEL5 SALELO 0000006A 00082 TOTALSALEHI E 0000006B 00083 TOTALSALELO E 00084 00085 00000070 0
82. O DO TMR6X 05DB 01DB 00139 T R6_PRES 7 05DC 03DA 00140 T R6 SEC F H 05DD 085A 00141 MOVF R6 SEC W 05 1003 00142 BTFSS 5 5 2 A 05 2DE3 00143 GOTO DO TMR6X 05 0 03C9 00144 DECF ITEM4 H 05 1 2DE3 00145 GOTO DO TMR6X 00146 05 2 1188 00147 4 PORTD 3 H 00148 05 3 0008 00149 DO TMR6X RETURN H 00150 05 4 085C 00151 DO TMR7 MOVF TMR7 SEC W Pencil 05 5 1203 00152 BTFSS 5 05 2 05 6 2DED 00153 GOTO DO TMR7A 00154 5 05 7 084A 00155 MOVF 5 QTY W 05 8 1903 00156 BTFSC 5 05 2 05 9 2DFD 00157 GOTO ITEMS 00158 3032 00159 MOVLW 0150 z 05 00DC 00160 MOVWF TMR7 SEC 05 1608 00161 5 PORTD 4 00162 2 05 301 00163 DO TMR7A MOVLW D 30 H 05 025C 00164 SEC W 1C03 00165 BTFSS STATUS C 05 0 1208 00166 PORTD 4 2 05 1 OADD 00167 DO TMR7B INCF TMR7 PRES F 7 05 2 3019 00168 MOVLW 25 2 05F3 025D 00169 SUBWF TMR7 PRES W 05 4 1C03 00170 BTFSS STATUS C 05 5 2DFE 00171 GOTO DO TMR7X E 05 6 01 00172 CLRF TMR7 PRES 7 LOC OBJECT CODE LINE SOURCE TEXT VALUE 05F7 03DC 05F8 085C 05F9 1D03 05FA 2DFE 05FB 03CA 05FC 2DFE 05FD 1208 05FE 0008
83. OK K K OK KOK KOK K K R R KO KOK R KOK K R KOK K R KK 02A7 LOC VALUE 02A8 02A9 02AA 02AB 02AC 02AD 02AE 02AF 02B0 0281 0282 0283 0284 0285 0286 0287 0288 0289 02 02BB 02BC 02BD 02BE 02BF 0260 0261 0262 02C3 0264 0088 00400 0838 00401 07BB 00402 1803 00403 00404 00405 0834 00406 5 00 9 00407 084 00408 00409 2264 00410 0878 00411 0089 00412 0839 00413 07BB 00414 1803 00415 00416 00417 0008 00418 00419 3000 00420 DO MSGO JECT CODE LINE SOURCE TEXT 0274 00421 1D03 00422 2ADC 00423 00424 3006 00425 0244 00426 1803 00427 0164 00428 0844 00429 1903 00430 4 00431 00432 0344 00433 4 00434 0084 00435 0800 00436 00C5 00437 00438 0344 00439 3E30 00440 0084 00441 0800 00442 00BC 00443 00444 0344 00445 3E35 00446 0084 00447 0800 00448 00449 00450 2398 00451 00452 300C 00453 0226 00454 1803 00455 MOVWF ADDWF BTFSC INCF OVF OVWF OVF OVWF CALL OVF OVWF OVF ADDWF BTFSC INCF RETURN LO F ANNA CRT j 9 3 D TOTALHI F 3 3 3 Gl lt tg MOVLW 0 SUBWF MSG N
84. OR K K KOR K KOR R KOK K K KR KOK K R KOK ko ke KOK K K ko ke KOK KOR KOR 04E8 OlAC 01092 BIN2BCD CLRF HUNDRED 04 9 O1AD 01093 CLRF TEN 04EA 1 01094 CLRF UNIT 01095 04 3064 01096 BCD 100 MOVLW D 100 04 027 01097 SUBWF TEMP2 W 04ED 1 03 01098 BTFSS STATUS C 04 2CF2 01099 GOTO BCD 010 O4EF OOFA 01100 2 04F0 OAAC 01101 INCF 04 1 2 01102 GOTO 100 01103 04F2 300A 01104 BCD 010 MOVLW D 10 04F3 027A 01105 SUBWF TEMP2 W 04 4 1 03 01106 BTFSS STATUS C 04F5 2 9 01107 GOTO BCD 001 04F6 OOFA 01108 MOVWF TEMP2 04F7 01109 INCF 2 LOC OBJECT CODE LINE SOURCE TEXT VALUE 04 8 2 2 01110 GOTO BCD 010 01113 z 04F9 087A 01112 BCD 001 MOVF TEMP2 W H 4 00 01113 MOVWF UNIT 04FB 0008 01114 RETURN H 01115 k RK k k k k k k k k k k k k k k K K KK K ke KOR K KOR ke ke ke KEK 04FC 01116 BIN2DEC16 CLRF UNIT H 04 01 01117 CLRF TEN 01 01118 CLRF HUNDRED H 4 01119 THOUSAND 5 0500 01120 THOUSND10 7 01121 2 0501 1BFO 01122 BTFSC DATA HI 7 H 0502 OAAE 01123 UNIT F z 01124 E 0503 2530 01125 CALL DATAX2 0504 1B70 01126 BTFSC DATA HI 6
85. OUBLE 1 j THOUSAND H CARRY O THOUSND10 W 2 THOUSND10 F CARRY W THOUSND10 F CARRY Do P THOUSND10 W STATUS C DOUBLE 10KX THOUSND10 3 0 SKULVENDLCD INC Ck ck ck x x k lt lt k x lt k x lt k lt x lt k x x lt 2 K K KOK K K K K KE RK K k KOK KOK KOK K K KOR KOK KOR K KOK K KOK KOK K KOK ke KOR RK ke ck K KOK K K KOR K R KK 056 056 057 057 0 1 0572 057 057 3 4 0575 057 6 0577 0578 0850 1903 2079 OAD1 30FA 0251 1 03 2D7B 0151 0300 2D7B 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 DO INC MOVF BTFSC GOTO INCF MOVLW SUBWF BTFSS GOTO CLRF DECF GOTO TMR1_SEC W 5 05 2 DO TMR1Z TMR1 PRES F D 250 j TMR1 PRES W STATUS C DO j TMR1 PRES TMR1 SEC F DO TMR1X 1 sec rate 77 LOC OBJECT CODE LINE SOURCE TEXT VALUE 00014 0579 0180 00015 DO TMR1Z CLRF TMR1 SEC 057 0181 00016 CLRF TMR1 PRES 00017 E 057B 0008 00018 DO TMR1X RETURN T 00019 K K KOR K OK K R KOR K K 057C 0842 00020 DO TMR2 CHANGE W i 0570 1903 00021 BTFSC 5 5 2 2 057
86. R FSR 7 69 LOC OBJECT CODE LINE SOURCE VALUE 0416 0845 0417 0418 24 8 0419 0820 041 390 0418 3 30 041C 0080 041D 0A84 041 082 041 390 0420 3 30 0421 0080 0422 3020 0423 3 19 0424 0084 0425 1784 0426 083C 0427 390F 0428 3E30 0429 0080 042A 3020 042B 3E21 042 0084 042D 1784 042E 083D 042F 0430 24 8 0431 082C 0432 390F 0433 3E30 0434 0080 0435 0A84 0436 082D 0437 390F 0438 3E30 0439 0080 043A 0A84 043B 082 043C 390F 043D 3E30 043E 0080 043F 3020 0440 3 35 0441 0084 0442 1784 00845 00846 00847 00848 00849 00850 00851 00852 00853 00854 00855 00856 00857 00858 00859 00860 00861 00862 00863 00864 00865 00866 00867 00868 00869 00870 00871 00872 00873 00874 00875 00876 00877 00878 00879 00880 00881 00882 00883 00884 00885 00886 00887 00888 00889 00890 00891 00892 00893 00894 00895 00896 00897 EXT H E N 5 z 30 DF SR F NIT W 30 NDF H RAM BUF OVLW D 25 FSR FSR 7 SEL OTY W H OF H 30 I LCD RAM BUF 0 93 37 FSR FSR 7 SEL AMT W TEMP2 IN2BCD UJ UNDRED W 0 30 DF R F N W OF 30 DF SR F NIT W 30 NDF
87. RPRETATION OF DATA vi vii viii 0 Chapter 5 CONCLUSION AND RECOMMENDATION Conclusion Recommendation REFERENCES APPENDIX Appendix A Operation s Manual Appendix B Pictures of Prototype Appendix C Program Listing in assembly Appendix D Data Sheets LM78XX Data Sheet 1N5400 Data Sheet MM74C922 Data Sheet PIC16F877A Data Sheet ULN2001A Data Sheet Keypad board Data Sheet Appendix E IEEE Format Document 42 42 43 44 LIST OF TABLES Table 3 1 List of Materials Table 4 1 Product Dispensing Test Result Table 4 2 Coin Slot Test Result Table 4 3 Change Test Result Table 4 4 Keypad input and LCD output test result Table 4 5 Empty dispenser detection test 27 28 3i 33 35 40 vi LIST OF FIGURES Figure 3 1 Conceptual Diagram Figure 3 2 Block Diagram Figure 3 3 Schematic Diagram Figure 3 4 System Flowchart Figure 3 5 Program Flowchart Figure 4 1 Sample Display when keypad 0 is pressed Figure 4 2 Sample Display when keypad 9 is pressed Figure 4 3 Sample Display when keypad 8 is pressed Figure 4 4 Sample Display when keypad 7 is pressed Figure 4 5 Sample Display when keypad 5 is pressed Figure 4 6 Sample Display when admin and keypad is pressed Figure 4 7 Sample Indicator display when the dispenser is empty Figure 6 1 Front view of the design Figure 6 2 Side view of the design 17 18 20 21 23 36 36 37 37 38 38 41 49 50
88. UM W BTFSS STATUS Z GOTO MSGOX MOVLW D 6 SUBWF ITEM SEL W BTFSC 5 5 CLRF ITEM SEL MOVF ITEM SEL W BTFSC STATUS Z INCF ITEM SEL F DECF ITEM SEL W ADDLW VALUE1 OVWF FSR OVF INDF W OVWF ITEM VALU ITEM SEL W ADDLW SEL1_ OVWF FSR OVF INDF W OVWF SEL QTY DECF ITEM SEL W ADDLW SEL1 AMT OVWF FSR OVF INDF W OVWF SEL CALL DISP ITEM MOVLW H C SUBWF KEY VAL W BTFSC 5 5 61 0265 2ADC 00456 GOTO MSGOX 00457 0206 300A 00458 MOVLW H A 0207 0226 00459 SUBWF KEY VAL W 02c8 1903 00460 BTFSC 5 05 2 0229 00461 GOTO MSG0 00462 02CA 3008 00463 MOVLW H B 02CB 0226 00464 SUBWF KEY VAL W 02CC 1903 00465 BTFSC 5 05 2 02CD 2 2 00466 GOTO 560 B 00467 02 0344 00468 DECF ITEM SEL W 02 3530 00469 ADDLW SEL1_ 02D0 0084 00470 MOVWF FSR 0201 0826 00471 MOVF KEY VAL W 0202 0080 00472 MOVWF INDF 00473 LOC OBJECT CODE LINE SOURCE TEXT VALUE 0203 3020 00474 OVLW LCD RAM BUF 0204 3E19 00475 ADDLW 0125 02D5 0084 00476 OVWF FSR 0206 1784 00477 BSF FSR 7 00478 0207 0826 00479 OVF KEY VAL W 0208 3E30 00480 ADDLW H 30 0209 0080 00481 OVWF INDF 00482 02DA 00483 DO 560 X OVLW
89. VAOR Powerup Timer then keeps the device in Reset for TPWRT parameter 33 about 72 mS If VDD should fall below during TPWRT the Brown out Reset process will restart when VOD rises above VBOR with the Power up Timer Reset The Power up Timer always enabled when the Brown out Reset circuit is enabled regardless of the state of the PW RT configuration bit 149 Time out Sequence power up the time out sequence is as follows the PWRT delay start if enabled when POR Reset occurs Then OST starts counting 1024 oscillator cycles when PWRT ends LP XT HS When the OST ends the device comes out of Reset If MCLR is kept low long enough the time outs will expire Bringing MCLR high will begin execution immediately This useful for testing purposes or to synchronize more than PICIGFS7XA device operating in parallel Table 14 5 shows the Reset conditions for the Status PCON and PC registers while Table 146 shows the Reset conditions for all the registers 125 a SEVEN DARLINGTONS PER PACKAGE OUTPUT CURRENT 500mA PER DRIVER 600mA PEAK a OUTPUT VOLTAGE 50V INTEGRATED SUPPRESSION DIODES FOR INDUCTIVELOADS OUTPUTS CAN BE PARALLELED FOR HIGHER CURRENT a TTL CMOS PMOS DTL COMPATIBLEINPUTS a INPUTS PINNED OPPOSITE OUTPUTS TO SIMPLIFY LAY OUT DESCRIPTION The ULN2001A ULN2002A ULN2003 and ULN2004A are high voltage high current darlington arrays each containing s
90. X DO 560 B DO 560 B1 DO 560 DO MSGO X DO MSG1 DO 5611 DO 5614 DO MSG14X DO MSG1A DO MSG1B DO MSG1X DO MSG1 X DO MSG2 DO MSG2X DO MSG2 A DO MSG2 AX DO MSG2 B DO MSG2 BX DO MSG2 X DO TMR1 000003F6 000003F7 0000040C 0000040D 00000633 00000634 00000648 0000065D 00000673 00000531 0000053C 0000053D 00000548 00000549 00000554 00000561 0000056C 00000555 00000560 000002A7 000002DC 000002DD 000002 1 000002 2 000002 000002 0 000002DA 000002F1 0000030C 0000031B 00000337 00000338 0000033D 0000030B 00000309 0000033F 00000351 00000352 00000355 00000356 00000357 0000034F 0000056E 88 SYMBOL DO T DO T DO T DO T bo Bor Bon DO T EPGD F FERR FSR GCEN GIE GO GO DO HUNDR TABLE 1 212 R2 R2A R2B R2X R3 R3X R4 RAX R5 R5X R6 R6A R6B R6X R7 R7A 278 R7X NE m ED m I2C DATA I2C R I2C S I2C S IBF IBOV INC T NDF NIT j j j j HHH HH HHH NITIALIZE EAD TART TOP LCD NIT VAR CON TED G VALUE 0000057 00000579 0000057 0000058 00000595 00000534 000005A5 000005 0 000005 1 000005 00000588 00000568 000005C9 000005D2 000005D6 000005E3 000005 4 000005ED 000005F1 000005FE 00000005 0000010D 0000010 0000018C
91. XX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX 95 APPENDIX D DATA SHEETS Semiconductor February 1995 LM78XX Series Voltage Regulators General Description The LM78XX series of three terminal regulators is available with several fixed output voltages making them useful in a wide range of applications One of these is local on card regulation eliminating the distribution problems associated with single point regulation The voltages available allow these regulators to be used in logic systems instrumenta tion HiFi and other solid state electronic equipment Al though designed primarily as fixed voltage regulators these devices can be used with external components to obtain adjustable voltages and currents The LM78XX series is available in an aluminum TO 3 pack age which will allow over 1 0A load current if adequate heat sinking is provided Current limiting is included to limit the peak output current to a safe value Safe area protection for the output transistor is provided to limit internal power dissi pation If internal power dissipation becomes too high for the heat sinking provided the
92. XXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX 00003FFF 000037FF 00003FFE 00003FFC 00003 7 00003FFF 00003FFF 00003FF7 00003FFF 00003FFB 00003FFF 00003BFF 00003DFF 000039 00003FFF 00003FFD 00000001 Used XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX Used Unused XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX Unused XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXX
93. al clock Given the desired baud rate and FOSC the nearest integer value for the SPBRG register can be calculated us ing the formula in Table 10 1 From this the error in baud rate can be determined TABLE 10 1 RATE FORMULA BRGH 0 Low Speed 0 Asynchronous Baud R ate 1 1 Synchronous Baud R ate Fosc 4 X 13 may be advantageous to use the high baud rate BRGH 1 even for slower baud clocks This because the FOSC 16 X 1 equation can reduce the baud rate error in cases Writing a new value to the SPBRG register causes the BR timer to be reset or cleared This the BRG does not wait for a timer overflow before outputting the new baud rate 10 1 1 SAMPLING The data on the RC7 RX D T pin is sampled three times by a majority detect circuit to determine if a high or a low level is present at the RX pin BRGH 1 High Speed Baud Rate Fosc 16 X 1 N A Legend X value in SPBR 0 to 255 TABLE 10 2 REGISTERS ASSOCIATED WITH B AUD RATE GENERATOR Value on all other Resets Value POR BOR TxsT amp RGH DaD 0000 010 0000 010 ish RCSTA SPEN CREN ADDEN FERR RX8D 0000 0000 BaudRate Generator Register Legend unknown unimplemented read as 0 Shaded cells are not
94. am and the whole flow of the design As shown the school supplies dispenser accepts three different kinds of coins and once inserted the credits will be automatically stored and displayed The keypad then will determine the type and quantity of item that will be dispensed off A 4 liner LCD display will show the current transaction shown in the display are the unit price of each item quantity to be purchase current credit and total cost Block Diagram Input Process 197 PIC16F877 dispenser Coin slot Figure 3 2 Block Diagram Figure 3 2 illustrates the basic diagram and interconnection of the main parts of the design The design is divided between the input process and output The input of the system will be coming primarily from the 4x3 keypad that will go directly to the 74 922 16 encoder to provide the necessary logic to encode the array of the SPST single pole single throw switches this is mainly for sending the appropriate instructions to the PIC16F877 The coin as well is provided in the input to count the number of credits entering the machine The primary output of the system is composed of the 20x4 LCD display and the dispensers The LCD display provides the complete information about the whole transaction while the dispenser is for the output delivery of the purchase materials SCHEMATIC DIAGRAM see page 150 144 SOFTWARE DEVELOPMENT System Flowchart START
95. at the encoder does not recognize this bounce as another key closure the debounce circuit must time out before another closure is recognized The two key roll over feature can be illustrated by assum ing a key is depressed and then a second key is depressed Since all scanning has stopped and all other Y inputs are disabled the second key is not recognized until the first key is lifted and the key bounce circuitry has reset The output latches feed 3 STATE which is enabled when the Output Enable OE input is taken low 110 Physical Dimensions inches millimeters unless otherwise noted 0 845 0 870 21 46 22 10 0 092 9212 34 0 030 716 76 PIN NO 1 0 245 0 255 6 22 6 48 0 300 0 320 7 62 8 13 0 145 0 200 0 125 0 135 3 18 3 43 3 68 5 08 0 008 0 014 0 20 0 36 F 90 49 959 45e TYP 0 015 0 021 0 125 0 140 i 4 0 38 0 55 3 18 3 56 7 11 MIN 0 010 0 040 0 25 1 02 0 020 0 310 0 365 NIBA REV F 0 51 7 87 9 27 184 Plastic Dual in Line Package PDIP JEDE C MS 001 0 300 Wide Package Number N18A 049 0502 __ 12 598 13 005 9010 0908 82807357 0059 0013 9150 0 014 6 020 88 900 m 2014 6020 10 279 0 3301 LEAD TIPS 0 406 1 27 Uam 10 358 0 508 ALL LEADS TYP ALL LEADS m am etu 20 Lead Plastic Small Outline LC Package M Package Number M20B 9 www fai
96. at the bookstore will close earlier than the class hours of some students The main problem to solve is how to have effective distribution of basic supplies in universities and institutions Objectives of the Design The main objective of the design is to assist the bookstore in distributing basic school supplies to the students Furthermore this project aims to obtain the following objectives 1 develop a multi item dispensing vending machine 2 define a new method of transaction in a regular vending machine 3 build a dispenser that will help the admin to compute the total sales and 4 create a vending machine that will dispense basic school supplies such as quiz booklet pencil and ball pen Significance and Impact of the Design Basic school supplies dispenser helps school bookstores and students in everyday lives Nowadays most of the school bookstores are closed after 5 to 6pm using the vending machine the bookstores can still distribute basic school supplies after office hours This also aids the students to have basic school supplies when needed The common vending machine available in the market dispenses items only one at a time The dispenser contribution to the advancement of technology is speed and the capacity to dispense multiple items in a single transaction The vending machine has a positive impact in terms of manufacturability because the goods will be traded with relative as ease at min
97. ated 25 100 Toatal Capacitance Vg7 40 V f 1 0 MHz 2001 Falrci id Sem icoidictor 1 5400 1 5408 Rev C 100 General Purpose Rectifiers continued Typical Characteristics 80TYSN L 00t SN L Average Rectified Forward Current lg A Forward Current A 125 Ambient Temperature 9 06 Forward Voltage V V Figure 1 Forward Current Derating Curve Figure 2 Forward Voltage Characteristics N o o N o o r3 o lt s 5 5 o B 5 40 60 80 100 120 140 Number of Cycles at 60Hz Percent of Rated Peak Reverse Voltage 5 Figure 3 Non Repetitive Surge Current Figure 4 Reverse Current vs Reverse Voltage Total Capacitance C pF 50 Reverse Voltage V V Figure 5 Total Capacitance 2001 Sem Corporatios 185400 185408 Rev C 101 5 The following are registered and unregistered trademarks Fairchild Semiconductor owns or is authorized to use and is not intended to be an exhaustive list of all such trademarks ACEx FAST OPTOLOGIC Bottomless FASTr OPTOPLANAR CoolFET FRFET PACMAN CROSSVOLT GlobalOptoisolator POP DenseTrench GTO Power247 DOME
98. ation refer to application note 607 Powermup Trouble Shooting 0800607 146 Power up Timer PWRT The Pawer up Timer provides a fixed 72 ms nominal time out on power up only from the POR The Power up Timer operates on an internal RC oscillator The chip is keptin Reset as long as the PWR Tis active PWRTs time delay allows VDD to rise to an acceptable level configuration bit is provided to enable or disable the PWRT The power up time delay willy from chip to chip due to VoD temperature and process variation See Section 17 0 Electrical Characteristics for detail TPUURT parameter 33 14 7 Oscillator Start up Timer OST The Oscillator Start up Timer OST provides a delay of 1024 oscillator cycles from 0501 input after the PWRT delay is over if is enabled This helps to ensure that the crystal oscillator or resonator has started and stabilized The OST time out is invoked only for XT LP and HS modes and only on Power on Reset or wake up from Sleep 148 Brown out Reset BOR The configuration bit BODEN can enable or disable the Brown out Reset circuit If VOD falls below parameter 2005 about PA for longer than 35 about 100 pS the brown outsituation will reset the device If VoD fall below VBOR for less than TBOR a Resetmay not occur Once the brown out occurs the device will remain in Brown out Reset until VDD rises above
99. ators Another program in the vending machine operator side optimizes the route management of the truck fleet responsible for replenishing the vending machines An intelligent route management saves on the operational costs by reducing the number of times each vending machine needs to be visited The proposal is a hybrid of three payment methods currency coin manual mobile and infrared mobile Currently in Dublin the system of public transport ticketing is under review and there are plans to introduce a multi modal multi operator ticketing system It is planned that this system Passenger requirements of a public transport ticketing system by Caulfield and O Mahony 2005 would be operated via smart card technology whereby passengers can pass between mode and operator with ease of use The purpose of this paper is to examine what passengers require from their ticketing system with regard to the means and method of payment and the kind of information they require from an at stop ticketing vending machine Between January and February 2004 a detailed survey of a representative sample of 1 005 adults aged 15 and over in Dublin was completed using face to face at home interviews With the format of the ticketing system decided upon contact less smart cards the research focused upon the payment options and the design of the at stop station ticket vending machines The first section of the paper looks at international examples of ticketi
100. between two papers in contact are most likely to slide against each other Measurement of the coefficient of friction has applications in packaging where a high coefficient will indicate that containers such as sacks bags and paperboard containers will resist sliding in unit loads or on packaging lines Definition of Terms 1 Vending Machine machine that automatically dispenses consumer goods such as cigarettes food or petrol when money is inserted Collins English Dictionary 141 2 Keypad a small keyboard with push buttons as on a pocket calculator remote control unit for a television etc Collins English Dictionary 3 LCD Liquid Crystal Display an electronic display as of the time in a digital watch that consists of segments of a liquid crystal whose reflectivity varies according to the voltage applied to them Merriam Webster Dictionary 4 PCB Printed Circuit Board a circuit which the interconnecting conductors and some of the circuit components have been printed etched etc onto a sheet or board of dielectric material Random House Dictionary 5 Coin Slot a small narrow opening especially one to receive coins Kenerman English Multilingual Dictionary 6 Microprocessor a single integrated circuit performing the basic functions of the central processing unit in a small computer Collins English Dictionary 7 Relay an electrical device in which a small change in curren
101. ction 2 4 Book 1 2 OFF 3 item quantity selection 3 5 Book 1 1 OFF 4 item quantity selection 4 5 item quantity selection 5 6 Book 1 0 ON 6 item quantity selection 6 7 Book 2 5 OFF 7 item quantity selection 7 8 Book 2 4 OFF 8 item quantity selection 8 9 item quantity selection 9 9 Book 2 3 RE 0 item quantity selection 0 10 Book 2 2 OFF n 11 2 1 OFF 12 Book 2 0 0 finalize transaction page Cancel all transaction 4 finalize transaction page Dispense ordered items 13 Book 3 5 OFF Admin button Display total sales 14 Book 3 4 OFF Table 4 4 Keypad input and LCD output test result 15 Book 3 3 OFF Table 4 4 shows the result if a corresponding key on the 16 Book 3 2 OFF keypad is pressed and what are its effects on the display and how does it affects the operation of the system As shown this test 17 Book 3 1 OFF confirms that each of the buttons in the keypad is correctly performing its intended operation These table shows that when the 18 Book 3 0 ON user press the button 1 the dispenser displays number 1 Button 2 3 4 5 6 7 8 9 and 0 displays on the LCD 2 3 4 5 6 7 8 9 and 0 respectively When the user press the the machine will go to the 13 Ball pen gt previous item except if the user is currently the Book 1 page because it will not do a thing since there are no previous items before 20 Ball pen 4 OFF book 1 When the user press the the machine wil
102. d No diodes in the switch array are needed to eliminate ghost switches The internal debounce circuit needs only a single external capacitor and can be defeated by omitting the capacitor A Data Available output goes to a high level when a valid keyboard entry has been made The Data Available output returns to a low level when the entered key is released even if another key is depressed The Data Available will return high to indicate acceptance ofthe new key after a normal debounce period this two key roll over is provided between any two switches Ordering Code Order Number 74 922 MM74C922WM MM74C823WM Package Number M20B M20B October 1987 Revised January 1999 An internal register remembers the last key pressed even after the key is released The 3 STATE outputs provide for easy expansion and bus operation and are LPTTL compat ible Features 50 maximum switch on resistance On or off chip clock On chip row pull up devices 2 key roll over Keybounce elimination with single capacitor Last key register at outputs 3 STATE output LPTTL compatible Wide supply range 3Vto 15V Low power consumption Package D escription 184 Plastic Dual In Line Package PDIP JEDEC MS 001 0 300 Wide 20 Lead Small Outline Integrated Circuit SOIC JEDEC 5 013 0 300 Wide 20 Lead Small Outline Integrated Circuit SOIC JEDEC MS 013 0 300 Wide N20A 20 Lead Plastic Dual In Line Package PDIP JEDEC
103. de the 10 peso coin slot was adjusted The Fuse w holder 10 following table shows the results of the tests Transformer 290 Backup battery 800 Coin COIN INSERTED Tubular aluminum 388 Trials si Acrylic 2 300 9r 1 P10 AC cord 30 1 1 Reject Reject ULN2003 28 E J J Quiz booklet large 8 2 1 Accept Reject Reject Quiz booklet small 7 Pencil 7 3 P1 Reject Reject Reject Ball pen 7 4 P1 Accept Reject Reject Table 3 1 List of Materials 5 P1 Reject Reject Reject IV TESTING PRESENTATION AND INTERPRETATION OF DATA 6 1 Reject Reject 7 P1 Accept Reject Reject This chapter presents various tests performed by designers J J to determine the effectiveness of the design These tests were done considering the objectives given in the first chapter of this 8 Accept Reject Reject documentation 9 P1 Accept Reject Reject Dispenser Accuracy Test 10 1 Accept Reject Reject The researchers conducted an accuracy test to determine if the design can dispense accurate number of items such as 11 P5 Reject Accept Reject booklets ball pen and pencil The following table sum up the results gathered based on the test that the designers performed 147 12 P5 Reject Accept Reject 3 20 14 6 13 P5 Reject Accept Reject 4 20 21 Invalid 14 P5
104. ded from Total Cost Compute Change and Dispense Figure 3 5 Program Flowchart 23 Figure 3 5 illustrates the program flowchart of the design As shown from the figure the program stores the quantity and price of each of item that will be purchased As the user proceed to the next transaction page the price of the previous item will be carried over and be added to the price of the current transaction page This flow will be continuous and the same for all the items until the program reaches the finalize transaction page wherein the total cost for all the items to be purchased will be computed As the credits are loaded in the machine the change are computed and dispensed Prototype Development The design procedure shows the step by step procedure on how the design was built by the researcher Detailed information will be described about the conceptualization of the design project 1 Conceptualization After knowing the design will work as a whole the conceptualization of the input and output devices part must be equated to simplify the design hardware and software 2 Simplified Design Requirement It is also important to create initial drafting of materials required as the development of the project proceeds This gives the researchers the overview of 24 the project 3 Illustrate the Block Diagram Defines the major composition of the block and shows how each block is related with each other The block diagram for
105. design in relation to its objectives The results of the various tests performed are also clearly defined in this chapter Recommendations for the improvement of the design are also specified to indicate the need for further studies with reference to the design constraints Conclusion In the Basic School Supplies Dispenser with Single Transaction Payment the designers were able to develop a device that would dispense basic school supplies such as quiz booklet pencil and ball pen This device also helps the administrator to compute the total sales One of the additional advancement of this device with the others is that it can detect the dispenser if it is empty by having a red light indicator The design is incorporated with a new way of purchasing items which is by multiple items at a single transaction Multiple items in the sense that not only a single kind of item can be purchase with different quantity but also with the ability to purchase multiple kind of items with multiple quantity Due to this innovation the school materials can now be distributed faster and effectively 42 Recommendation Certain enhancements and modifications can be made to the design in order to develop it into a more sustainable mechanism from latent users The following are the recommendations to consider 1 Improvement on the tube capacity for the 1 peso and 5 peso coins for the change 2 Implementation on the design to accept bills as credit
106. distribute basic school supply needs especially if the class hours of the students do not fit within the bookstore hours Convenience as well is brought by this school supply dispenser provided that the students need not any more to go to the bookstore just to buy certain products which can cause hassle and consumption of time With the aid of this device the bookstore can effectively distribute school supplies The main feature of the vending machine is the single transaction payment The vending machine that can be seen in airports streets and other places can only dispense a single item per transaction or at least one kind of item per transaction Unlike this new and improved vending machine different items can be transacted at the same time This basic school supply vending machine dispenses items such as large yellow booklet with and without lines small yellow booklet black ball pen and a pencil First the user selects the type of school supply followed by the number of quantity of each item After selecting specific items with corresponding quantity student can now insert appropriate amount of coins into the machine The cost for each kind of item the total cost for the whole sale to be purchase and the total credit will be displayed The dispenser will exhibit a keypad for selecting school supplies as well as for entering desired quantity and a 4 liner LCD display for showing the selection of items to be purchased There will be
107. dl OK OK OK OK OK OK OK OK 77805 voltage regulator 15 Heat sink 20 Table 4 1 Product Dispensing Test Result 1000 uF 16v electrolytic capacitor 8 1001 25 electrolytic capacitor 3 Table 4 1 shows the dispenser can dispense the item The pins terminal test confirms that the correct quantity of items will be distribute 2 t block 12 fi hat th ity of i ill be distributed 14 resistor 0 25 depending on the number specified the customer The word 105 mylar capacitor 2 means that the vending machine can dispense the items accurately 22pF ceramic capacitor 0 5 4 MHz crystal 35 Coin Slot Test W10G rectifier diode 12 12v relay 30 The researchers conducted a test on the design s coin slots 3 pins terminal block 15 There are three kinds of coin slots in this design the ten peso coin Power supply module 150 slot five peso coin slot and one peso coin slot The researcher tests 4x4 relay module 490 if the one peso coin slot will accept the five peso coin or ten peso Coins dispenser 950 coin and so as for the other two The first attempt on this test the 10 Limit switch 38 peso coin slot accepts the 5 peso coin because it checks the material Las of the coin and there are some minor similarities between the DC moor 315 composition of the 5 peso and 10 peso coin In the second attempt Paper dispenser 1350 the 10 peso coin slot already did not accept the five peso coin Rocker switch 25 because the knob insi
108. e Characteristics POWER DISSIPATION W 8 NORMALIZED OUTPUT VOLTAGE V 090 OUTPUT IMPEDANCE 0 Maximum Average Power Dissipation POWER DISSIPATION W 7 50 15 0 25 50 75 100 125 AMBIENT TEMPERATURE Output Voltage Normalized to 1V at Tj 25 C RIPPLE REJECTION 48 7 50 25 0 25 50 15 108128 150 JUNCTION TEMPERATURE CI Output Impedance INPUT TO OUTPUT DIFFERENTIAL VI 1 amp FREQUENCY Quiescent Current QUIESCENT CURRENT ima Maximum Average Power Dissipation AMBIENT TEMPERATURE Ch Ripple Rejection FREQUENCY Dropout Voltage TT pyr 147 AVour 100 SV 75 50 25 0 25 50 75 100 125 150 JUNCTION TEMPERATURE C Peak Output Current 100 a z 5 8 5 5 8 5 m 3 20 25 30 35 INPUT TO OUTPUT DIFFERENTIAL V Ripple Rejection 90 5 T 120 Hz Vin Vour 8 Vor 25 Vrms tour 1 80 OUTPUT VOLTAGE V Dropout Characteristics z 5 8 INPUT VOLTAGE V Quiescent Current QUIESCENT CURRENT 15 50 25 0 25 59 75 100 125 150 5 JUNCTION TEMPERATURE C lout 10 wm 15 20 25 3 INPUT VOLTAGE V TL H 7746 4 98 Physical Dimensions inches millimeters 0 107 0 123 2 718 3 124 13 i 0025 1 025 052 0 635 0 135 SEATIN
109. e bit Asynchronous mode 1 Enables continuous receive 0 Disables continuous receive Synchronous mode 1 Enables continuous receive until enable bit CREN is cleared C REN overrides SREN 0 Disables continuous receive Address Detect Enable bit 1 Enables address detection enables interrupt and load ofthe receive bufferwhen RSR 8 is set Disables address detection all bytes are received and ninth bit can be used as parity bit FERR Framing Error bit 1 Framing error can be updated by reading RCREG register and receive next valid byte 0 No framing error OERR Overrun Error bit 1 Overrun error can be cleared by clearing bit CREN 0 No overrun error RX9D 8th bit of Received Data can be parity bit but mustbe calculated by user firmware Legend R Readable bit Writable bit Unimplemented bit read as 0 n Value at POR T Bitis set O Bit is cleared x Bitis unknown 120 PIC16F87XA 10 1 USART Baud Rate Generator BRG The BRG supports both the Asynchronous and Syn chronous modes of the USART a dedicated 8 bit baud rate generator The SPBRG register controls the period of a free running S bit timer In Asynchronous mode bit BR 5 lt 2 gt abo controls the baud rate Synchronous mode bit BRGH is ignored Table 10 1 shows the formula for computation of the baud rate for different USART modes which only in Master mode intern
110. e the keypads 20x4 Line LCD The 20x4 LCD Module makes it easy to add an alphanumeric display module to your design It requires only a 5V power supply and two data connections for either mode freeing up pins on your processor Many useful texts formatting functions are provided including the ability to create custom characters ULN2003 The ULN2003 is a monolithic high voltage and high current Darlington transistor arrays It consists of seven NPN Darlington pairs that feature high voltage outputs with common cathode clamp diode for switching inductive loads The collector current rating of a single Darlington pair is 500 The Darlington pairs may be paralleled for higher current capability Applications include relay drivers hammer drivers lamp drivers display drivers LED gas discharge line drivers and logic buffers 146 Trials 1 2 3pcs 4pcs 5pcs 6pcs 7pcs 8pcs 9pcs 1 OK OK OK OK OK OK OK OK OK LIST OF MATERIALS Book2 OK OK OK OK OK OK OK OK OK Name of Material Unit Price 4x20 LCD w ribbon wire 1 900 Book3 OK OK OK OK OK OK OK OK OK Coin slot 1 200 Numerical keypad w 74C922 IC 650 OK OK OK OK OK OK OK OK PIC16F877 530 10 array resistor 12 Pen
111. ed for many keyboards The keyboard encoders connect to a switch matrix that is 4 rows by 4 columns 74 922 or 5 rows by 4 columns MM74C923 When no keys are depressed the rowinputs are pulled high by internal pull ups and the column outputs sequentially output a logic 0 These outputs are open drain and are therefore low for 25 of the time and other wise off The column scan rate is controlled by the oscilla tor input which consists of a Schmitt trigger oscillator a 2 bit counter and 2 4 bit decoder When a key is depressed key 0 for example nothing will happen when the X1 input is off since Y1 will remain high When the X1 column is scanned X1 goes low and 1 will go low This disables the counter and keeps X1 low Y1 www fairchildsenu com 57 10 T AVAILABLE b 05 going low also initiates the key bounce circuit timing and locks out the other Y inputs The key code to be output is a combination ofthe frozen counter value and the decoded Y inputs Once the key bounce circuit times out the data is latched and the Data Available DAV output goes high If during the key closure the switch bounces Y1 input will go high again restarting the scan and resetting the key bounce circuitry The key may bounce several times but as soon as the switch stays low for debounce period the closure is assumed valid and the data is latched A key may also bounce when it is released To ensure th
112. emperature Range 55 to 150 Junction Temperature 150 THERMAL DATA rameter B so Thermal Resistance Junction ambient ULN2001A ULN2002A ULN2003A ULN2004A ELECTRICAL CHARACTERISTICS 25 unless otherwise specified 50V 70 C Vcg 50V 70 for ULN2002A Vee 50V Vi for ULN2004A Vcg Vi Collector emitter Saturation Ic 100MA 2501 A Voltage 200 mA lg 350uA 350mA 5004A Input Current for ULN2002A V for ULN2003A V 3 85V for ULN2004A V 5V Vi 12V Input Current 70 C lc Input Voltage Vcg 2 for ULN2002A 300mA for ULN2003A 200mA 250mA DC Forward Current Gain for ULN2001A Vee 2 lc 350mA Input Capacitance Turn on Delay Time 0 5 Vi to 0 5 V Turn off Delay Time 0 5 Vi to 0 5 Vo Clamp Diode Leakage Current Va 50V 70 C Vg 50V Clamp Diode Forward Voltage lp 350mA 3 8 ULN2001A ULN2002A ULN2003A ULN2004A TEST CIRCUITS Figure 1a 5 5725 Figure 2 Figure 3 Figure 1b 585 5726 Figure 4 Figure 6 VR 5 5717 4 8 Figure 5 Figure 7 N 5 1987 5 1983 ULN2001A ULN2002A ULN2003A ULN2004A Figure 8 Collector Current versus Input Current 0061 46
113. encil First the user selects the type of school supply followed by the number of quantity of each item After selecting specific items with corresponding quantity student can now insert appropriate amount of coins into the machine The cost for each kind of item the total cost for the whole sale to be purchase and the total credit will be displayed The dispenser will exhibit a keypad for selecting school supplies as well as for entering desired quantity and a 4 liner LCD display for showing the selection of items to be purchased There will be a 3 coin slot intended for 1 peso 5 peso and 10 peso coin Once the items are chosen and the coins are inserted the asterisk button should be pressed for the whole transaction to start The pressing of the said button will send a signal to the relay coming from the microprocessor for the DC motor to dispense the chosen products In case of a power interruption a backup battery is installed ensuring that any transaction will be completed and the total sale is saved Lastly the outside coating used for the design is acrylic glass Statement of the Problem Nowadays many facilities around the world uses vending machine such as airport canteens and condominiums but one of the places that are also essential in having this equipment are universities and institutes The common problem in different institutes and universities is how to distribute students school supplies proficiently because accommoda
114. er knowing the design will work as a whole the conceptualization of the input and output devices part must be equated to simplify the design hardware and software 2 Simplified Design Requirement It is also important to create initial drafting of materials required as the development of the project proceeds This gives the researchers the overview of the project 3 Illustrate the Block Diagram Defines the major composition of the block and shows how each block is related with each other The block diagram for the input which consist of the keypad 74C922 16 key encoder and coin slot The output which consists of the 20x4 LCD and dispensers 4 Draw schematic diagram Schematic diagram of this design shows how each device was interconnected it contains components such as Microcontroller PIC DC motors 20 x 4 Line LCD Keypad Coin slot power supply sensors and battery In developing the design the following materials are used PIC16F877A This type of microcontroller is used in the design primarily because of its many inputs PIC16F877A has a maximum of 40 I O pins which is very much suitable for the design It has a maximum of 256 bytes for its register which is also much appropriate for the design to be possible 74C922 The 74C922 key encoders provide all the necessary logic to fully encode an array of SPST switches The keyboard scan can be implemented by either an external clock or external capacitor We used this to encod
115. even open collector dar lington pairs with common emitters Each channel rated at 500mA and can withstand peak currents of 600mA Suppression diodes are included for induc tive load driving and the inputs are pinned opposite the outputsto simplify board layout Thefour versions interfaceto all common logic fami lies ULN2001A General Purpose DTL TTL PMOS CMOS ULN2002A 14 25 PMOS ULN2003A 5V TTL CMOS ULN2004A 6 15 CMOS PMOS Theseversatile devices are usefulfor driving a wide range of loads including solenoids relays DC mo tors LED displays filament lamps thermal print headsand high power buffers The ULN2001A 2002A 2003Aand 20044 are sup plied in 16 pin plastic DIP packages with a copper leadframe to reduce thermal resistance They are available also in small outline package SO 16 as ULN2001D 2002D 2003D 2004D September 1998 ULN2001A ULN2002A ULN2003A ULN2004A SEVEN DARLINGTON ARRAYS DIP16 ORDERING NUMBERS ULN2001A 2A 3A 4A 5016 ORDERING NUMBERS ULN2001D2D 3D 4D PIN CONNECTION 1977 1 8 ULN2001A ULN2002A ULN2003A SCHEMATIC DIAGRAM EACH DRIVER Series ULN 2001A each driver Series ULN 20034 each driver ULN2004A Series ULN 2002A each driver Series ULN 2004A each driver ABSOLUTE MAXIMUM RATINGS Parameter Output Voltage Input Voltage for ULN2002A D 2003A D 2004A D Continuous Collector Current Storage T
116. evices of this family Voltages applied to the pin that exceed specification can result in both Reset and current consumption outside of device specification during the Reset event F or this reason Microchip recommends that the MCLR pin no longer be tied directly to VDD The use of an network as shown in Figure 14 5 is suggested FIGURE 14 5 RECOMME HDED MCLR CIRCUIT 1 16 7 R1 lt 5 recommended to make sure that the voltage drop across R does not violate the device s electrical specitcation R2 gt than 1K will limit any current flowing into from the extemal capacitor C in the event of breakdown due to Bectrostatic Discharge ESD or Bectrical Overstress 05 14 5 Power on Reset POR A Reset pube is generated on chip when rise is detected in the range of 1 21 7 To take advantage of the POR tie the MCLR pin to VDD through an RC network as described in Section 14 4 MCLR maximum rise time for VDD is specified See Section 17 0 Electrical Characteristics for details When the device star normal operation exits the Reset condition device operating parameters volt age frequency temperature etc must be met to ensure operation If these conditions are not met the device must be held in R es et until the operating condi tions are met Brown out Reset may be used to meet the start up conditions For additional inform
117. f sale retail electronic cash registers scanners of all kinds security systems automobiles and gas pumps automated tellers computers and compact disks and disk drives not to mention phone answering fax vending and washing machines Here the author describes how today s microcontrollers are performing better than ever through their use of high level languages and multitasking techniques In an article entitled Network model based automation of thermal processes using an embedded digital controller Ganesh A B Sangeetha A L Ravi V R issued last Dec 2009 from IEEE a microcontroller is used The article describes the network architectures of both WAN and LAN based real time control and monitoring of thermal process station using an embedded digital controller The function of the microcontroller in this design is a temperature controller that communicates directly with the temperature transmitter The design uses the PIC16F877A microcontroller 15 Coin In this paper Efficient coin recognition using a statistical approach by Al Zoubi H R the author proposed a coin recognition system using a statistical approach and apply it to the recognition of Jordanian coins The proposed method depends on two features in the recognition process the color of the coin and its area Although the proposed recognition approach is applied to Jordanian coins it can be applied to the recognition of any coins Through this article we
118. for Ball Pen for Total Cost Book 2 EE Store Quantity Compute gt Purchased for Corresponding Pencil price for Book 2 Corresponding price for Pencil Add Price of Book 1 and Book 2 for Total Cost Add Price of Book 1 Store Quantity Book 2 Book 3 Ball Purchased for Pen and Pencil for Book 3 Total Cost Compute Compare Credits Corresponding Loaded from Total price for Book 3 Add Price of Book 1 Book 2 and Book 3 for Total Cost Compute Change and Dispense Figure 3 5 Program Flowchart Figure 3 5 illustrates the program flowchart of the design As shown from the figure the program stores the quantity and price of each of item that will be purchased As the user proceed to the next transaction page the price of the previous item will be carried 145 over and be added to the price of the current transaction page This flow will be continuous and the same for all the items until the program reaches the finalize transaction page wherein the total cost for all the items to be purchased will be computed As the credits are loaded in the machine the change are computed and dispensed Prototype Development The design procedure shows the step by step procedure on how the design was built by the researcher Detailed information will be described about the conceptualization of the design project 1 Conceptualization Aft
119. g machine is unable to produce one Receipt serves as a proof for the product or service that is purchased An example is a case of product exchange it serves as a checker of the price of something that is bought and tells you what you bought If kept it also maintains warranties and guarantees as well as refunds on products if broken or refundable for other reasons Slightly slow dispensing of the large examination booklet is another issue to consider this examination booklet is composed of paper material and friction take into account between two papers in contact are most likely to slide against each other Measurement of the coefficient of friction has applications in packaging where a high coefficient will indicate that containers such as sacks bags and paperboard containers will resist sliding in unit loads or on packaging lines Definition of Terms 1 Vending Machine a machine that automatically dispenses consumer goods such as cigarettes food or petrol when money is inserted Collins English Dictionary 2 Keypad a small keyboard with push buttons as on a pocket calculator remote control unit for a television etc Collins English Dictionary 3 LCD Liquid Crystal Display an electronic display as of the time in a digital watch that consists of segments of a liquid crystal whose reflectivity varies according to the voltage applied to them Merriam Webster Dictionary 4 PCB Printed Circuit Board
120. hen necessary Basically a vending machine is an apparatus that dispenses merchandise after the customer selects and deposits money The mechanism of this device is that after paying a product will be dispensed by either the machine releases it so that it falls in an open section at the bottom or the turning of a knob to release an item Vending machines have a money detector which determines if the amount inserted is sufficient to purchase the desired product The design is intended to help both students and the bookstore This vending machine can distribute basic school supply needs especially if the class hours of the students do not fit within the bookstore hours Convenience as well is brought by this school supply dispenser provided that the students need not any more to go to the bookstore just to buy certain products which can cause hassles and consumption of time With the aid of this device the bookstore can effectively distribute school supplies The main feature of the vending machine is the single transaction payment The vending machine that can be seen in airports streets and other places can only dispense a single item per transaction or at least one kind of item per transaction Unlike this new and improved vending machine different items can be transacted at the same time This basic school supply vending machine dispenses items such as large yellow booklet with and without lines small yellow booklet black ball pen and a p
121. hese diverse articles and research works in sorting out the conceivable components to be used in the design by considering the benefits and drawbacks discussed respectively in the reviewed studies This chapter provides an outline of details congregated during the course of development of the design Vending Machine An article entitled Today and tomorrow of vending machine and its services in Japan by Yokouchi 2010 talks about how the vending machines expands over the time and how it is successful in their country because of the public security enforced in Japan that they didn t need to worry for any misdemeanor In Japan vending machines are not limited to dispensing soft drinks in tin can or coffee they have this unique vending machine culture that is changing its phase from the regular vending machine to a place providing several services such as a various kinds of information b food supply to disaster area c support to emergency patients d security service for outskirts etc The article is a foreword of these unique services to public and local society provided with vending machines and can still be further improved in the distant future for more advancement of the vending machine culture The article Vending Machine by Williamson Henry C 1934 talks about the vending machine that dispenses school supplies This vending machine was suggested by parent teacher association commonly known as PTA that stock
122. ic coin slot This test confirms that only the appropriate coin will be accepted in their respective coin slots and those inserted in the wrong coin slot will be rejected In the 3 trial and 5 trial the 1 peso coin slot also rejects the 1 peso coin because the coin that was inserted is the new 1 peso coin The old 1 peso coin has a different material composition compare to the new one The sensor in the coin slot compares the material of the given coin sample with regards to the coin inserted If the material composition is the same the coin slot will accept the coin inserted otherwise rejects it Based on the 23 and 24 trial the 10 peso coin slot accepts the 5 peso coin because the one that we used is the old 5 peso coin The material used in the 10 peso coin the one that looks like a 5 peso in the middle has the same material composition as the old 5 peso coin that s why the coin slot accepts it But when the new 5 peso coin was used the coin slot rejects it because it has a different material 31 Change for Purchased items test The researchers conducted a test to determine if the dispenser accurately gives change to the customers upon purchasing school supplies The following table sum up the results gathered based on the test that the designers performed Total Amount Trials po Purchased iet Inserted Php Php Php 1 10 7 3 2 10 14 Invalid 3 20 14 6 4 20 21 Invalid 5 16 1
123. ied to indicate the need for further studies with reference to the design constraints Conclusion In the Basic School Supplies Dispenser with Single Transaction Payment the designers were able to develop a device that would dispense basic school supplies such as quiz booklet pencil and ball pen This device also helps the administrator to compute the total sales One of the additional advancement of this device with the others is that it can detect the dispenser if it is empty by having a red light indicator The design is incorporated with a new way of purchasing items which is by multiple items at a single transaction Multiple items in the sense that not only a single kind of item can be purchase with different quantity but also with the ability to purchase multiple kind of items with multiple quantity Due to this innovation the school materials can now be distributed faster and effectively Recommendation Certain enhancements and modifications can be made to the design in order to develop it into a more sustainable mechanism from latent users The following are the recommendations to consider 1 Improvement on the tube capacity for the 1 peso and 5 peso coins for the change 2 Implementation on the design to accept bills as credits for purchasing items 3 Additional kinds of school supplies to dispense 4 Implementation of the receipt for the customers to check their transaction records and 5 Enhancements on the oute
124. ign is incorporating a single payment The total number of item obtained with each type of school supply available will also be tallied automatically by the machine Student inserts an amount of money necessary then specifies the type of school supply and its desired quantity The vending machine will check the amount of money inserted and process the dispensing of the school material The vending machine dispenses the desired school material and its quantity Index Terms dispensing school supplies vending machine single payment L DESIGN BACKGROUND AND INTRODUCTION Background Convenience nowadays plays an essential role in the development of social environment Purchasing distinct items at ease is one primary technique in selling products In providing solution to this different types of vending machines were introduced to provide customers the opportunity to buy items almost any time when necessary Basicall a vending machine is an apparatus that dispenses merchandise after the customer selects and deposits money The mechanism of this device is that after paying a product will be dispensed by either the machine releases it so that it falls in an open section at the bottom or the turning of a knob to release an item Vending machines have a money detector which determines if the amount inserted is sufficient to purchase the desired product The design is intended to help both students and the bookstore This vending machine can
125. imum cost and maximum reliability Design Constraints Many relevant constraints are considered while making this project First is coin stability it is an aspect to examine since many coins will eventually became crude due to the fact that it will pass on to various market place shopping malls and public transportations With regard to the first constraints another issue to consider is the type of material used in the coin for the 1 peso coin there are two types of materials used first is the metal and the non metal Since there are two types of material used either one of the two can only be used for the machine depending on the type of coin used in the coin slot sensor Due to those different reasons the coin sensor will have a hard time detecting it and sometimes completely not detecting the coin Economically every legal transaction made in the business industry requires a receipt but the vending machine is unable to produce one Receipt serves as a proof for the product or service that is purchased An example is a case of product exchange it serves as a checker of the price of something that is bought and tells you what you bought If kept it also maintains warranties and guarantees as well as refunds on products if broken or refundable for other reasons Slightly slow dispensing of the large examination booklet is another issue to consider this examination booklet is composed of paper material and friction take into account
126. ired for strip cut crystals RF varies with the crystal chosen FIGURE 14 2 EXTERHAL CLOCK IHPUT OPERATIOH HS XT OR LP 5 COHFIGURATIOH Clock tom gt 08 1 Ext System 27 1 16 7 0502 TABLE 14 1 CERAMIC RESOHATORS Ranges Tested Freq 0 1 0 2 455 kHz 88 100 pF 68 100 pF 2 0 MHz 15 68 pF 15 68 pF 4 0 MHz 15 88 pF 15 68 pF 8 0 MHz 10 88 pF 10 68 pF 16 0 MHz 10 22 pF 10 22 pF These values arefor design guidance only See notes following Table 14 2 Resonators Used Ere 205 Murata Erie 2055 Murata 2055 res onators used did not have built in capacitors 123 PIC16F87XA CAPACITOR SELE CTIOH FOR CRYSTAL OSCILLATOR TABLE 14 2 LP 33pF z00kHz 15pF 15 xr 4 08 pF CI 7 15 pr 633 169 oF 533 See notes following this table Crystals Used Sz kHz Epson 001832768 20 imz 7 5085 4MHz ECSECSa020 50 _ 8MHz EPSON CA 301 8000 30 PPM 20 MHz EPSON CA 301 20 0 30 PPM Higher capacitance increases the stability of oscillator but abo increases the start up time Since each resonator crystal has its own characteristics the user should
127. k These contraptions look similar to average vending machines but they are designed to accept clean and crush recyclable materials Individuals who recycle say a plastic bottle will receive coupons cash credit or vouchers from the machine to be used at neighboring shops The machines hold up to 3 000 containers and accept PET HDPE PVC plastic brown clear and green glass and aluminum cans In addition they re said to reduce carbon emissions by preparing the recycled materials for direct shipment to a recycling depot bypassing waste processing facilities These devices are being deployed throughout Australia If those work out expect to see recycling machines on street corners everywhere in the very near future The project entitled Vending Machine by Singh Virdi Sabegh 2003 discussed about the design simulation realization and demonstration of a vending machine system using a Field 142 Programmable Gate Array This project is somewhat similar to the other vending machines the difference is that it is more flexible in terms of changes in the product demands as it is also very powerful and relatively low cost On A Wireless Vending Machine System Based on GSM by Hong Gu Shuang Qiao and Jiang Tian 2006 it was said that several methods by which we may realize wireless data communication of GSM network are analyzed and compared the overall structure of vending machine system based on USSD is given an in depth introd
128. l go to the next item except if the user is currently on the transaction page because it 21 Ball pen 3 OFF will not do a thing since there are no items beyond the transaction page In the transaction page when the user presses 1 it will cancel 22 Ball pen 2 OFF the transaction and give back the coins inserted by the user In the transaction page when the user presses 4 it will begin the 23 Ball pen 1 OFF transaction The vending machine also helps the administrator in calculating the total sales of each item and the total sales of all the 24 Ball pen 0 ON items included by holding the admin button simultaneously with the button This automatically displays the total sales 25 Pencil 5 OFF 26 Pencil 4 OFF 27 Pencil 3 OFF 28 Pencil 2 OFF 29 Pencil 1 OFF 30 Pencil 0 ON Table 4 5 Empty dispenser detection test Table 4 5 shows the results when a certain items had run out of supplies As the result implies the red light indicator turns ON when the sensor detects that no items is currently on the top of the dispenser but if there are at least one piece of each item above it the LED indicator will turn OFF V CONCLUSION AND RECOMMENDATION This chapter gives the overall conclusion of the development of the design in relation to its objectives The results of the various tests performed are also clearly defined in this chapter Recommendations for the improvement of the design are also specif
129. l of the coin and there are some minor similarities between the composition of the 5 peso and 10 peso coin In the second attempt the 10 peso coin slot already did not accept the five peso coin because the knob inside the 10 peso coin slot was adjusted The following table shows the results of the tests COIN INSERTED Trials Coin Slot P1 P5 P10 1 P1 Accept Reject Reject 2 P1 Accept Reject Reject 3 P1 Reject Reject Reject 4 P1 Accept Reject Reject 29 5 1 Reject Reject Reject 6 P1 Accept Reject Reject 7 P1 Accept Reject Reject 8 P1 Accept Reject Reject 9 P1 Accept Reject Reject 10 P1 Accept Reject Reject 11 P5 Reject Accept Reject 12 P5 Reject Accept Reject 13 P5 Reject Accept Reject 14 P5 Reject Accept Reject 15 P5 Reject Accept Reject 16 P5 Reject Reject Reject 17 P5 Reject Accept Reject 18 P5 Reject Accept Reject 19 P5 Reject Accept Reject 20 P5 Reject Accept Reject 21 P10 Reject Reject Accept 22 P10 Reject Reject Accept 23 P10 Reject Accept Accept 24 P10 Reject Accept Accept 25 P10 Reject Reject Accept 30 26 P10 Reject Reject Accept 27 P10 Reject Reject Accept 28 P10 Reject Reject Accept 29 P10 Reject Reject Accept 30 P10 Reject Reject Accept Table 4 2 Coin Slot Test Result Table 4 2 shows the results on what will happen if a certain coin is inserted to a specif
130. lock schematic Not supplied Copyright Matrix Multimedia Limited 2005 page 3 135 E blocks Keypad board Document code EB014 30 1 3 Board layout EB015 74 1 1 9 Way D type Plug 2 Matrixed 3x4 data keypad Copyright Matrix Multimedia Limited 2005 page 4 136 E blocks Keypad board Document code 14 30 1 4 Testing this product The following program will test the circuit The test file can be downloaded from www matrixmultimedia com 1 System Setup Multi programmer board 006 with 006 Options Setting Port E keypad hex 2 Test Procedure 1 Wire power to all boards 2 Configure system and board options as above 3 Download the test program to the Multiprogrammer 4 Press each button on the Keypad Board and check that the binary value of that Keypad number illuminates on the LED Board 5 For example pressing keypad button 5 will illuminate MSB 00000101 LSB 1 The button on the keypad represents the number 10 2 The button on the keypad represents the number 11 Copyright Matrix Multimedia Limited 2005 page 5 137 E blocks Keypad board Document code 14 30 1 9 Circuit description 1 Description The circuit board consists of 7 digital lines a downstream 9 way D type plug This routes each bit to a particular line of the keypad Columns 1 2 and 3 and routed to bits 0 1 and 2 respectively Rows 1
131. n connected vending machine Electrical and Computer Engineering Cowburn J 2001 Paying for energy the smart way IEE Review Caulfield B O Mahony M 2005 Payment requirements of a public transport ticketing system 44 APPENDIX A Operations Manual 1 System Requirement a Atleast Windows XP Operating System b Atleast 512MB Memory RAM c Installed MPASM 2 Installation Procedure a Place the different school materials in their respective dispenser b Place the 64 pieces one peso coin and five peso coin in their corresponding tube c Plug the dispenser into a power source d Install battery when necessary to provide continuous power supply to the machine Connect the red clip to positive and black clip to ground e Switch on the device 45 3 User s Manual a Enter the desired quantity of the item by pressing the numbers from 0 to 9 in the keypad afterwards press to proceed to next item and to return from previous item Note 0 denotes that no quantity of this item will be purchased or cancellation of the previous amount to take this also has the same effect as leaving the quantity blank Same concept applies for all school materials b After reaching the finalize transaction page it will display the total cost of all the items to be purchased Insert coins sufficient to the amount of the total cost shown After inserting the coins the credits will be displayed
132. nd It ese ves the rigitatasy tme 10 ciaage sali spectications 2 A critical component in any component of a life support device or system whose failure to perform can be rea sonably expected to cause the failure ofthe life support device or system or to affect its safety or effectiveness www fairchildsemi com 112 MICROCHIP 16 87 Data Sheet 28 40 44 Pin Enhanced Flash Microcontrollers PIC16F87XA Pin Diagrams Continued 40 Pin PDIP 1 RAD ANO 4 2 RB6 PGC 3 RA2 8N2 vREF ICVREF RB3 PGM RAA TOCKI C1OUT RAS AN4 SSIC2OLIT REORDIANS RE1ANRIANG RE2 CSIAN RBOANT L 4 SP7 4 RDSPSPS OSC2ICLKO RD4PSP4 RC0 T1OSOTT1CKI RCFRKDT 1 1 51 2 RCBITX CK RC2 CCP1 RC3 SCK SCL RCA SDI SD A RD3PSP3 RD1 PSP1 4 RD2PSP2 PIC16F874A 877A 44 Pin PLCC B T 4 R EF RAA TOCKIACTOLIT 455 200 RE O RD ANS RE1ANRIANBG RE 2 CS AN Ves OSC1 CLKI OSC2 CLKO 1 PIC16F874A PIC16F877A 0 00 4 44 Pin 1 2 3 4 5 N 1 5 5 o E o 44 43 ILI4 RCS SDO 42 Oa RCA4 SDI SDA 41 A RD3PSP3
133. ng systems and how intelligent transport systems ITS applications have been used to aid passengers comprehension of the ticketing system and ease of use of the system The second section describes the methodology used in the data collection The third section details the passenger requirements from a ticketing system based upon the data collected from the Dublin survey The final section of the paper details the conclusions that can be drawn from the data gathered in the Dublin study A new approach to prepayment schemes could make it easier for UK consumers to shop around for the best value gas and electricity The Paying for energy the smart way article of Cowburn J proposed approach to smart prepayment uses the same building blocks as a traditional budget scheme For each day of the week the meter records the energy used in each half hour period and calculates average usage over a specified period which can be monthly quarterly etc The majority of consumers will fall into a small number of profiles so matching the consumption pattern to one of a number of preprogrammed profiles downloaded from the vending system via the smart card or communications channel would take up less storage space When the customer wants to top up their gas or electricity credit they visit a vending machine which uses the consumption data stored on their card to allocate a tariff and calculates how much energy to offer the consumer for their money A multi s
134. nterrupt service routine 0004 281F 00108 00109 00110 00111 Initialization Routine k K K K K KOK R K KOR KOK KOR KEK 0005 018B 001 Interrupts and clear TOIF 0006 1303 00113 0007 1683 00114 0008 30C3 00115 Message 302 Register in operand Gorrecr 0009 0081 00116 1 16 00117 000A 3086 00118 Digital Input Message 302 Correct 000B 009F 000C 1 1 Message 302 correct 000D 0085 XXXX TTL 30FF 000E 1 1 Message 302 Correct 000F 0086 1 3000 0010 1 1 Message 302 correct 0011 0087 xxxx schmitt 30CF 0012 1 1 Message 302 correct 3000 Register in operand 00119 00120 00121 Register in operand 00122 00123 00124 Register in operand 00125 00126 00127 Register in operand 00128 00129 00130 Register in operand not not not not not not 12 INITIALIZE in in in in in in CLRF BCF BSF MOVLW bank 0 MOVWF MOVLW bank 0 OVWF OVLW bank 0 OVWF OVLW bank 0 MOVWF MOVLW bank 0 MOVWF MOVLW bank 0 INTCON STATUS RP1 STATUS RPO B 11000011 Ensure that OPTION REG B 10000110 Ensure that 1 B 11111111 Ensure that TRISA B 00000000 Ensure that TRISB B 11001111 Ensure that TRISC B 00000000 Ensure that Disable Select Bank 1
135. o select the item and point the infrared enabled cellular phone to the vending machine The vending machine will detect the presence of the cellular phone through IR and the communication will take place by sending a message to the back end server Detailed inventory and telemetric information can be added to the transaction data Data compression segmentation and reassembly schemes implemented The message gets decoded in the back end server where the transaction is processed billing is done and inventory information is sent to the vending machine operators Another program in the vending machine operator side optimizes the route management of the truck fleet responsible for replenishing the vending machines An intelligent route management saves on the operational costs by reducing the number of times each vending machine needs to be visited The proposal is a hybrid of three payment methods currency coin manual mobile and infrared mobile Currently in Dublin the system of public transport ticketing is under review and there are plans to introduce a multi modal multi operator ticketing system It is planned that this system Passenger requirements of a public transport 12 ticketing system by Caulfield and O Mahony 2005 would be operated via smart card technology whereby passengers can pass between mode and operator with ease of use The purpose of this paper is to examine what passengers require from their ticketing s
136. odes SYNCHRONOUS Asynchronous full duplex ASYNCHRONOUS RECEIVER Synchronous Master half duplex TRANSMITTER USART Synchronous Slave half duplex Bit SPEN RCSTA 77 and bits TRISC lt 7 6 gt have to be setinorderto configure pins RCG TZ CK and R CZ RX DT as the Universal Synchronous Asynchronous Receiver The Univers al Synchronous Asynchronous Receiver Transmitter USAR T module is one of the two serial modules USART is abo known as a Serial Communications Interface or SCI The USART can be configured as a full duplex asynchronous system that The USART module abo has a mult precursor can communicate with peripheral devices such as communication capability using 9 bit address detection CRT terminals and personal computers or it can be configured as a half duplex synchronous system that can communicate with peripheral devices s uch as or D A integrated circuits serial EEPR etc REGISTER 10 1 TXSTA TRANSMIT STATUS AND COHTROL REGISTER ADDRESS 98h 0 0 0 RAw O 0 R 1 RAw O cssc ve mew TRMT ve bit 7 bit 0 bit 7 CSRC Clock Source Select bit Asynchronous mode Don t care Synchronous mode 1 Master mode clock generated internally from BRG 0 Slave mode clock from external s ource bite 8 bit Transmit Enable bit 1 Selects 9 bit transmission 0 Selects 8 bit transmission bit5 TXEN T
137. of each item is already empty The following table sum up the results gathered based on the test that the designers performed Output of the Trials Items i 52 LED indicator ON or OFF 1 Book 1 5 OFF 2 Book 1 4 OFF 3 Book 1 3 OFF 4 Book 1 2 OFF 5 Book 1 1 OFF 6 Book 1 0 ON 7 Book 2 5 OFF 8 Book 2 4 OFF 9 Book 2 3 OFF 10 Book 2 2 OFF 11 Book 2 1 OFF 12 Book 2 0 ON 13 Book 3 5 OFF 14 Book 3 4 OFF 39 15 Book 3 3 OFF 16 Book 3 2 OFF 17 Book 3 1 OFF 18 Book 3 0 ON 19 Ball pen 5 OFF 20 Ball pen 4 OFF 21 Ball pen 3 OFF 22 Ball pen 2 OFF 23 Ball pen 1 OFF 24 Ball pen 0 ON 25 Pencil 5 OFF 26 Pencil 4 OFF 27 Pencil 3 OFF 28 Pencil 2 OFF 29 Pencil 1 OFF 30 Pencil 0 ON Table 4 5 Empty dispenser detection test Table 4 5 shows the results when a certain items had run out of supplies As the result implies the red light indicator turns ON when the sensor detects that no items is currently on the top of the dispenser but if there are at least one piece of each item above it the LED indicator will turn OFF 40 Figure 4 7 Sample Indicator display when the dispenser is empty This figure shows that the when the dispenser is empty the LEDs will automatically turn ON 41 Chapter 5 CONCLUSION AND RECOMMENDATION This chapter gives the overall conclusion of the development of the
138. om IEEE a microcontroler is used The article describes the network architectures of both WAN and LAN based real time control and monitoring of thermal process station using an embedded digital controller The function of the microcontroller in this design is a temperature controller that communicates directly with the temperature transmitter The design uses the PICI6F877A microcontroller Coin In this paper Efficient coin recognition using a statistical approach by Al Zoubi H R the author proposed a coin recognition system using a statistical approach and apply it to the recognition of Jordanian coins The proposed method depends on two features in the recognition process the color of the coin and its area Although the proposed recognition approach is applied to Jordanian coins it can be applied to the recognition of any coins 143 Through this article we could use it as a guide in implementing the coin slot in the group s design project DESIGN PROCEDURES This chapter discusses the step by step procedures that were followed in making and developing the design This section includes both the hardware and software development The hardware development is composed of the block conceptual diagram block diagram and schematic diagram Conversely the software development consists of system flowchart Hardware Development Conceptual Diagram Figure 3 1 Conceptual Diagram Figure 3 1 shows the conceptual diagr
139. ormation There are various other documents and sources that you may find useful Getting started with E Blocks pdf This describes the E blocks system and how it can be used to develop complete systems for learning electronics and for PICmicro programming PPP Help file This describes the PPP software and its functionality PPP software is used for transferring hex code to a PICmicro microcontroller C and assembly strategies This 15 available a free download from our web site 3 Disclaimer The information in this document 1s correct at the time of going to press Matrix Multimedia reserves the right to change specifications from time to time This product 15 for development purposes only and should not be used for any life cntical application 4 Technical support If you have any problems operating this product then please refer to the troubleshooting section of this document first You will find the latest software updates FAQs and other information on our web site www matrixmultimedia com If you still have problems please email us at support matnxmultimedia co uk Copyright Matrix Multimedia Limited 2005 page 2 134 E blocks Keypad board Document code EB014 30 1 2 General information 1 Description A simple 4x3 keyboard that allows data entry into bus based systems Flowcode macros for driving this E block are available 2 Features e 4by 3 keypad for E blocks Flowcode macros available 3 B
140. puts with common cathode clamp diode for switching inductive loads The collector current rating of a single Darlington pair is 500 The Darlington pairs may be paralleled for higher current capability Applications include relay drivers hammer drivers lamp drivers display drivers LED gas discharge line drivers and logic buffers 26 LIST OF MATERIALS Name of Material Unit Price 4x20 LCD w ribbon wire 1 900 Coin slot 1 200 Numerical keypad w 74C922 IC 650 PIC16F877 530 10k array resistor 12 7805 voltage regulator 15 Heat sink 20 1000 uF 16v electrolytic capacitor 8 100uF 25v electrolytic capacitor 3 2 pins terminal block 12 1 4 W resistor 0 25 105 mylar capacitor 2 22pF ceramic capacitor 0 5 4 MHz crystal 35 W10G rectifier diode 12 12v relay 30 3 pins terminal block 15 Power supply module 150 4x4 relay module 490 Coins dispenser 950 Limit switch 38 DC motor 315 Paper dispenser 1350 Rocker switch 25 Fuse w holder 10 Transformer 290 Backup battery 800 Tubular aluminum 388 Acrylic 2 300 cord 30 ULN2003 28 Quiz booklet large 8 Quiz booklet small 7 Pencil 7 Ball pen 7 Table 3 1 List of Materials 27 Chapter 4 TESTING PRESENTATION AND INTERPRETATION OF DATA This chapter presents various tests performed by designers to determine the effectiveness of the design These test
141. r covering of the design either use fiber glass to add more security to the inventory 149 APPENDIX Appendixes if needed appear before the acknowledgment ACKNOWLEDGMENT To the Lord Almighty who constantly guides us for giving us the strength to persevere and the patience to undertake whatever obstacle we meet our heartfelt thanks Our sincerest thanks go to Engr Noel B Linsangan for all the patience and support that you give to all the students taking the course for giving us chances in finishing this design and to our adviser Engr Ayra G Panganiban for supporting and believing in us and for guiding us to take the right path These two people have been with us in the beginning and until the end of this design To the persons behind this project thanks for the camaraderie unity and cooperation Overnights will never be the same without three laptops and a bunch of sleepless and restless teenagers battling fatigue during midnight Nevertheless the experience shaped us to be better individuals Zyner M Detablan Mari Alexis Kaye F Marquez Gerome Cristopher P Refre REFERENCES 1 Yokouchi T Today and tomorrow of vending machine and its services in Japan Electro Information Technology EIT IEEE 2010 2 Kawamoto H The history of liquid crystal displays Proceedings of the IEEE 2002 3 Hoi Sing Kwok Display Technologies Technologies Beyond 2020 2011 4 Lechner B J Marlowe F J Nester
142. ransmit Enable bit 1 Traremit enabled 0 Traremit disabled Note SREN CREN overrides TXEN in Syne mode bit4 SYNC USART Mode Select bit 1 Synchronous mode 0 Asynchronous mode bit3 Uni mplemented Read as 0 bit2 BR GH High Baud Rate Select bit Asynchronous mode 1 High speed 0 Low speed Synchronous mode Unused in this mode bit 1 Transmit Shift Register Status bit 1 TSR empty 0 TSR full bit TX9D Sth bit of Transmit Data can be Parity bit Legend R bit W Writable bit Unimplemented bit read as 0 Value at POR 1 Bit s set O Bit cleared x Bit is unknown 119 PIC16F87XA REGISTER 10 2 bit bit6 bit5 bit4 bit3 bit2 bit 1 bit RCSTA RECEIVE STATUS AHD REGISTER hon R f O RAfi O seen T T sen T rens ens bit SPEN Serial Port Enable bit 1 Serial port enabled configures RC7 RX DT and pins as serial port pins 0 7 Serial port disabled amp bit Receive Enable bit 12 Select 9 bitreception Select 8 bitreception SREN Single Receive Enable bit Asynchronous mode Don t care Synchronous mode Master 1 Enables single receive 0 D ables single receive This bit is cleared after reception is complete Synchronous mode Slave Don t care CREN Continuous Enabl
143. rced in Japan that they didn t need to worry for any misdemeanor In Japan vending machines are not limited to dispensing soft drinks in tin can or coffee they have this unique vending machine culture that 18 changing its phase from the regular vending machine to a place providing several services such as a various kinds of information b food supply to disaster area c support to emergency patients d security service for outskirts etc The article is a foreword of these unique services to public and local society provided with vending machines and can still be further improved in the distant future for more advancement of the vending machine culture The article Vending Machine by Williamson Henry C 1934 talks about the vending machine that dispenses school supplies This vending machine was suggested by the parent teacher association commonly known as PTA that a stock of school supplies should be kept in school to be sold to the students thus eliminating the need to go the stores outside the school especially if the campus doesn t have a bookstore Using this vending machine in their school they could eliminate the excuses of the students to go out and buy school supplies outside the campus since it sometimes lead to traffic accidents and to the vices of the students This invention was created in 1934 the materials used in this vending machine were not microprocessor and other electronic materials since the said mate
144. rchild emi com 69V INM Z769 ZININ 111 MM74C922 MM74C923 16 Key Encoder 20 Encoder Physical Dimensions inches millimeters unless otherwise noted Continued 1012 1040 __ 2571 2042 0 032 0005 0280 7 992 MIN 0300 0322 15208 128 0085 0520 uas 0 009 2 215 0 229 0 381 9 100 3018 0 060 0 005 0042 11524 0 127 0328 0015 2540 0254 1 j OPTION 2 0813 0 127 RAD PIN NO TIDENT 7 DN PNE i 8302 0325 2145 0200 2 3 88 5080 90 0 004 T 0020 1 ss 0425 0340 0508 20 03 3175 1556 MIN i0457 03078 20 Lead Plastic Dual In Line Package PDIP JEDE C MS 001 0 300 Wide Package Number N20A LIFE SUPPORT POLICY FAIRCHILD S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS WRITTEN APPROVAL OF THE PRESIDENT OF FAIRCHILD SEMICONDUCTOR CORPORATION As used herein 1 Life support devices or systems are devices or systems which a are intended for surgical implant into the body or b support or sustain life and c whose failure to perform when properly used in accordance with instructions for use provided in the labeling can be rea sonably expected to result in a significant injury to the user Falc ki dbes vot ass me apy espots bity br tse Of any described 10 clictitpate ke ases a
145. rials were not yet invented The design of this vending machine was mostly created using levers and rods The article also specified the problem regarding the vending of the design In a case study entitled Automatic Chocolate Vending Machine using MUCOS RTOS by Yadav S G Shiva Prasad 2003 tackles about a vending machine that dispenses assorted chocolates The design uses a 3 liner LCD display microcontroller based hardware mechanical coin sorter and coin inlet This Automatic Chocolate Vending machine uses microcontroller based dispensing unit at the start of the transaction the LCD display will show welcome messages for the customer and after inserting the necessary amount of coins into the inlet it will display a string of messages saying Wait for a moment and Collecting a nice chocolate soon It is also possible for the customer to retrieve or refund his money if he inserts too much coin This machine also uses RTOS Real time Operating System it schedules the processes or the tasks for buying from start to finish The device can be reprogrammed and relocate the codes in the system ROM of flash or EPROM whenever the price of the chocolate increases the message lines need to be changed or if the machine features needs to be change Reverse Vending Machine Simplifies Recycling by Smith Thomas 2009 discussed about vending machines that have become a staple in society as a convenient way to overpay for a soda or snac
146. s for purchasing items 3 Additional kinds of school supplies to dispense 4 Implementation of the receipt for the customers to check their transaction records and 5 Enhancements on the outer covering of the design either use fiber glass or steel to add more security to the inventory 43 REFERENCES Yokouchi T 2010 Today and tomorrow of vending machine and its services in Japan Electro Information Technology EIT IEEE Kawamoto H 2002 The history of liquid crystal displays Proceedings of the IEEE Hoi Sing Kwok 2011 Display Technologies Technologies Beyond 2020 Lechner B J Marlowe F J Nester E O Tults J Liquid crystal matrix displays Proceedings of the IEEE Khan A R 2002 Workhorses of the electronic era microcontrollers Microcontroller Journals Ganesh A B Sangeetha A L Ravi V R 2009 Network model based automation of thermal processes using an embedded digital controller Microcontroller Journals Al Zoubi H R 2010 Efficient coin recognition using a statistical approach Electro Information Technology Williamson Henry C 1934 Vending Machine Google Patents Yadav S G Shiva Prasad 2003 Automatic Chocolate Vending Machine using MUCOS RTOS Embedded Systems Hong Gu Shuang Qiao and Jiang Tian 2006 A Wireless Vending Machine System Based on GSM Intelligent Control and Autom Azami S B Z Tanabian M 2004 Automatic mobile payment on a no
147. s were done considering the objectives given in the first chapter of this documentation Dispenser Accuracy Test The researchers conducted an accuracy test to determine if the design can dispense an accurate number of items such as booklets ball pen and pencil The following table sum up the results gathered based on the test that the designers performed Trials 1pc 2pcs 3pcs 4pcs 5 5 6pcs 7pcs 8pcs 9pcs E OK OK OK OK OK OK OK OK E OK OK OK OK Es OK ok OK Pencil OK OK OK OK Table 4 1 Product Dispensing Test Result 28 Table 4 1 shows the dispenser can dispense the item The test confirms that the correct quantity of items will be distributed depending on the number specified by the customer The word OK means that the vending machine can dispense the items accurately Coin Slot Test The researchers conducted a test on the design s coin slots There are three kinds of coin slots in this design the ten peso coin slot five peso coin slot and one peso coin slot The researcher tests if the one peso coin slot will accept the five peso coin or ten peso coin and so as for the other two The first attempt on this test the 10 peso coin slot accepts the 5 peso coin because it checks the materia
148. sing a Field Programmable Gate Array This project is somewhat similar to the other vending machines the difference is that it is more flexible in terms of changes in the product demands as it is also very powerful and relatively low cost On A Wireless Vending Machine System Based on GSM by Hong Gu Shuang Qiao and Jiang Tian 2006 it was said that several methods by which we may realize wireless data communication of GSM network are analyzed and compared the overall structure of vending machine system based on USSD is given an in depth introduction Furthermore control modules which realize data transmission and control function of terminal device middleware which connects application and BOSS business operation support system and transaction software embedded in USSD platform are also developed respectively Finally the operating support system of wireless vending machine system is formed which can not only integrate vending machines USSD platform and payment system together but also manage sale information logistic information and consumer information on line 11 The paper Automatic mobile payment on a non connected vending machine by Azami S B Z Tanabian 2004 addresses a mobile payment solution where there is no connection required for the vending machine and while the local means of communication is through infrared IR It is assumed that the cellular phone has the IR feature All the user has to do is t
149. t or voltage controls the switching on or off of circuits or other devices Collins English Dictionary 8 DC Motor An electric rotating machine energized by direct current and used to convert electric energy to mechanical energy McGraw Hill Science amp Technology Dictionary 9 Acrylic of derived from or concerned with acrylic acid a paint or colour containing acrylic resin Collins English Dictionary 10 Coefficient of Friction The ratio of the force that maintains contact between an object and a surface and the frictional force that resists the motion of the object The American Heritage Dictionary of the English Language Il REVIEW OF RELATED DESIGN LITERATURE AND STUDIES This chapter comprises researches and studies that are correlated to the design The compilations in this chapter were used as reference for the advancement of the design The group used these diverse articles and research works in sorting out the conceivable components to be used in the design by considering the benefits and drawbacks discussed respectively in the reviewed studies This chapter provides an outline of details congregated during the course of development of the design Vending Machine An article entitled Today and tomorrow of vending machine and its services in Japan by Yokouchi 2010 talks about how the vending machines expands over the time and how it is successful in their country because of the public security enfo
150. t the National Semiconductor Sales Office Distributors for availability and specifications Input Voltage 5V 12V and 15V 35V Internal Power Dissipation Note 1 Internally Limited Operating Temperature Range T4 0 C to 70 Maximum Junction Temperature K Package 150 150 C Storage Temperature Range 65 C to 150 C Lead Temperature Soldering 10 sec TO 3 Package K 300 C TO 220 Package T 230 C Electrical Characteristics LM78XXC note 2 C lt Tj 125 C unless otherwise noted Output Voltage 5 12V 15V Input Voltage unless otherwise noted 19V 23V Units Symbol Parameter Conditions Output Voltage 25 5 mA lt lg lt 1 Pp lt 15W 5 mA lt lo lt Vmin Vin Vmax Line Regulation Tj 25 Min Typ Min Typ Max Min Typ Max 8 12 125 15 156 475 5 25 114 14 25 15 75 7 5 lt lt 20 14 5 lt Vin 27 175 30 3 4 120 4 150 7 5 Vin 25 145 Vin 30 175 Vin 30 lt Tj 125 AVo Load Regulation 25 5 10 lt 1 5 250 mA lo 750 mA 50 120 150 8 20 15 V lt 27 185 lt 30 20 150 27 177 30 25 60 75 8 Vin 12 16 Vin 22 20 Vin 26 10 50 1 20 1 60 5mA lo 1A 0 C Tj 125 C 120 la Quiescent
151. the input which consist of the keypad 74C922 16 key encoder and coin slot The output which consists of the 20x4 LCD and dispensers 4 Draw schematic diagram Schematic diagram of this design shows how each device was interconnected it contains components such as Microcontroller PIC DC motors 20 x 4 Line LCD Keypad Coin slot power supply sensors and battery In developing the design the following materials are used PIC16F877A This type of microcontroller is used in the design primarily because of its many inputs PIC16F877A has a maximum of 40 I O pins which is very much suitable for the design It has a maximum of 256 bytes for its register which is also much appropriate for the design to be possible 25 74 922 The 74C922 key encoders provide all the necessary logic to fully encode an array of SPST switches The keyboard scan can be implemented by either an external clock or external capacitor We used this to encode the keypads 20x4 Line LCD The 20x4 LCD Module makes it easy to add an alphanumeric display module to your design It requires only a 5V power supply and two data connections for either mode freeing up pins on your processor Many useful texts formatting functions are provided including the ability to create custom characters ULN2003 The ULN2003 is a monolithic high voltage and high current Darlington transistor arrays It consists of seven NPN Darlington pairs that feature high voltage out
152. ting too much students at the same time is formidable The start of a semester can be considered as an example because many students buy books index card fillers and other miscellaneous items at the same time for their subjects This incident causes frustration to some students especially if the only product they intend to buy for example is a single ball pen but the queue is extensive forcing them to be late in class Students whose school hours do not fit within the operating hours of the bookstore will appreciate the machine most considering that the bookstore will close earlier than the class hours of some students The main problem to solve is how to have effective distribution of basic supplies in universities and institutions Objectives of the Design The main objective of the design is to assist the bookstore in distributing basic school supplies to the students Furthermore this project aims to obtain the following objectives 1 To develop a multi item dispensing vending machine 2 To define a new method of transaction in a regular vending machine 3 To build a dispenser that will help the admin to compute the total sales and 4 To create a vending machine that will dispense basic school supplies such as quiz booklet pencil and ball pen Significance and Impact of the Design Basic school supplies dispenser helps school bookstores and students in everyday lives Nowadays most of the school bookstores are closed after
153. tion N 5 item quantity selection 6 item quantity selection 7 item quantity selection 8 item quantity selection 9 item quantity selection 0 item quantity selection N Previous 34 Next 1 finalize transaction page Cancel all transaction 4 finalize transaction page Dispense ordered items Admin button Display total sales Table 4 4 Keypad input and LCD output test result Table 4 4 shows the result if a corresponding key on the keypad is pressed and what are its effects on the display and how does it affects the operation of the system As shown this test confirms that each of the buttons in the keypad is correctly performing its intended operation These table shows that when the user press the button 1 the dispenser displays number 1 Button 2 3 4 5 6 7 8 9 and 0 displays on the LCD 2 3 4 5 6 7 8 9 and 0 respectively When the user press the the machine will go to the previous item except if the user is currently on the Book 1 page because it will not do a thing since there are no previous items before book 1 When the user press the the machine will go to the next item except if the user is currently on the transaction page because it will not do a thing since there are no items beyond the transaction page In the transaction page when the user presses 1 it will cancel the transaction and give
154. tional port PORTB can be software programmed for internal weak pull up on all inputs 36 8 9 5 Digital 1 0 External interrupt 37 9 10 10 TTL Digital 38 10 11 TTL Digital 39 1 12 TTL 10 Digital 1 0 Low voltage ICSP programming enable pin 41 14 14 TTL Digital 42 15 15 TTL Digital 43 15 16 Digital 1 0 In circuit debugger and ICSP programming clock 44 17 17 Digital 1 0 In circuit debugger and ICSP programming data Legend input output VO lt input output P power Notused TTL TTL input ST Schmitt Trigger input Note 1 This buffer is a Schmitt Trigger input when configured the external interrupt 2 This buffer is a Schmitt Trigger input when used in Serial Programming mode 3 This buffer is a Schmitt Trigger input when configured in RC Oscillator mode and a CMOS input otherwise 116 PIC16F87XA TABLE 1 3 PIC16F874A 877A PINOUT DESCRIPTION CONTINUED PDIP Buffer Description Pin Pin Pin Pini Type Type P PORTC is a bidirectional port RC O T1OSO T1 15 15 32 34 5 RCO Digital 1050 Timer1 oscillator output Timer1 external clack input RCT T1OSI CCP2 15 18 35 35 5 RC1 Digital 1 0 Timer1 oscillator input CCP2 Capture2 input Compare2 output
155. too much coin This machine also uses RTOS Real time Operating System it schedules the processes or the tasks for buying from start to finish The device can be reprogrammed and relocate the codes in the system ROM of flash or EPROM whenever the price of the chocolate increases the message lines need to be changed or if the machine features needs to be change Reverse Vending Machine Simplifies Recycling by Smith Thomas 2009 discussed about vending machines that have become a staple in society as a convenient way to overpay for a soda or snack These contraptions look similar to average vending machines but they are designed to accept clean and crush recyclable materials Individuals who recycle say a plastic bottle will receive coupons cash credit or vouchers from the machine to be used at neighboring shops The machines hold up to 3 000 containers and accept PET HDPE PVC plastic brown clear and green glass and aluminum cans In addition they re said to reduce carbon emissions by preparing the recycled materials for direct shipment to a recycling depot bypassing waste processing facilities These 10 devices are being deployed throughout Australia If those work out expect to see recycling machines on street corners everywhere in the very near future The project entitled Vending Machine by 57707 Virdi Sabegh 2003 discussed about the design simulation realization and demonstration of a vending machine system u
156. uction Furthermore control modules which realize data transmission and control function of terminal device middleware which connects application and BOSS business operation support system and transaction software embedded in USSD platform are also developed respectively Finally the operating support system of wireless vending machine system is formed which can not only integrate vending machines USSD platform and payment system together but also manage sale information logistic information and consumer information on line The paper Automatic mobile payment on a non connected vending machine by Azami S B Z Tanabian M 2004 addresses a mobile payment solution where there is no connection required for the vending machine and while the local means of communication is through infrared IR It is assumed that the cellular phone has the IR feature All the user has to do is to select the item and point the infrared enabled cellular phone to the vending machine The vending machine will detect the presence of the cellular phone through IR and the communication will take place by sending a message to the back end server Detailed inventory and telemetric information can be added to the transaction data Data compression segmentation and reassembly schemes are implemented The message gets decoded in the back end server where the transaction is processed billing is done and inventory information is sent to the vending machine oper
157. upplier machine could even compare the different tariffs available to a customer with a particular profile and offer the cheapest Once the transaction is complete the card is credited with the amount of energy purchased for downloading to the meter The meter would be capable of interrupting the supply when credit has been used although there would probably have to be an emergency credit facility paid back at the next transaction to provide a period of grace These articles can serve as an inspiration for us that the vending machines are becoming more and more unique as time passes by Microcontrollers The article Workhorses of the electronic microcontrollers by Khan AR discussed about microcontrollers and how it is always around us embedded in the machines and different appliances Controllers are embedded in cordless and portable telephones point of sale retail electronic cash registers scanners of all kinds security systems automobiles and gas pumps automated tellers computers and compact disks and disk drives not to mention phone answering fax vending and washing machines Here the author describes how today s microcontrollers are performing better than ever through their use of high level languages and multitasking techniques In an article entitled Network model based automation of thermal processes using an embedded digital controller by Ganesh A B Sangeetha A L Ravi V R issued last Dec 2009 fr
158. usage over a specified period which can be monthly quarterly etc The majority of consumers will fall into a small number of profiles so matching the consumption pattern to one of a number of preprogrammed profiles downloaded from the vending system via the smart card or communications channel would take up less storage space When the customer wants to top up their gas or electricity credit they visit a vending machine which uses the consumption data stored on their card to allocate a tariff and calculates how much energy to offer the consumer for their money A multi supplier machine could even compare the different tariffs available to a customer with a particular profile and offer the cheapest Once the transaction is complete the card is credited with the amount of energy purchased for downloading to the meter The meter would be capable of interrupting the supply when credit has been used although there would probably have to be an emergency credit facility paid back at the next transaction to provide a period of grace These articles can serve as an inspiration for us that the vending machines are becoming more and more unique as time passes by 14 Microcontrollers The article Workhorses of the electronic microcontrollers Khan AR discussed about microcontrollers and how it is always around us embedded in the machines and different appliances Controllers are embedded in cordless and portable telephones point o
159. used by the BR G 121 PIC16F87XA TABLE 10 3 BAUD RATES FOR ASYHCHROHOUS MODE BRGH 0 20 MHz Fave 16 MHz Fcscz 10 MHz 8 PERG value Fasc 3 6864 MHZ 8 PERG TABLE 10 4 Fasc 20 MHz Fasc 16 MHz Fas 10 MHz SPERG PERG SPERG value KBAUD ERROR KEAUD ERROR decimal Fasc 3 6864 MHZ SPBRG 122 PIC16F87XA 142 Oscillator Configurations 14 2 1 OSCILLATOR TYPES The PICIGFS7XA can be operated in four different os cillator modes The user can program two configura tion bits 5 1 and FOSCO to select one of these four modes s LP Low Power Crystal XT rys tal R esonator HS High Speed Crystal R esonator 14 22 CRYSTAL OSCILLATOR RESONATORS In XT LP or HS modes a crystal or ceramic resonator connected to the OSC 1 CLK and 05 2 pins to establish oscillation F igure 14 1 The PICIGFS7 XA os cillator design requires the use of a parallel cut tal Use of aseries cut crystal may give a frequency out of the crystal manufacturer s specifications When XT LP or HS modes the device can have an external clock source to drive the OSC 1 CLKI F igure 14 2 FIGURE 14 1 CRYSTAL CERAMIC RESOH ATOR OPERATIOH HS XT OR LP OSC CONFIGURATION 1 16 7 See Table 14 1 and Table 14 2 for recommended values of C1 and C2 series resistor may be requ
160. xt Prev OBJECT Cancel Cancel Sel Total Coin 63 0324 0325 0326 0327 0328 0329 032 0328 032C 07C6 0831 07 7 0832 07 8 0833 07 9 0834 07 00570 00571 00572 00573 00574 00575 00576 00577 00578 00579 lt gt lt gt lt gt 1 QTY F Qrv w QTY W 64 LOC OBJECT LINE SOURCE TEXT VALUE 032D 2358 00580 CALL ADD2SALE 00581 032E 01B0 00582 CLRF 11 032F 01B1 00583 CLRF SEL2 0330 0182 00584 CLRF SEL3 0331 0183 00585 SEL4 0332 0184 00586 SEL5 0333 3001 00587 MOVLW D 1 0334 00C4 00588 MOVWF ITEM SEL 0335 01 4 00589 CLRF MSG NU 0336 2688 00590 CALL LD MSG2RAM 0337 2809 00591 DO MSG14X GOTO 561 X 00592 0338 01 4 00593 DO MSG1A MSG NU 0339 2688 00594 CALL 10 MSG2RAM 033A 3005 00595 MOVLW D 5 0338 00C4 00596 MOVWF ITEM SEL 033C 2 09 00597 GOTO MSGl _ 00598 0330 0000 00599 MSG1B 0338 2809 00600 561 X 00601 KK 033F 3002 00602 DO MSG2 MOVLW D 2 0340 0274 00603 SUBWF MSG NUM W 0341 1D03 00604 BTFSS 5 5 2 2 0342 2851
161. ystem with regard to the means and method of payment and the kind of information they require from an at stop ticketing vending machine Between January and February 2004 a detailed survey of a representative sample of 1 005 adults aged 15 and over in Dublin was completed using face to face at home interviews With the format of the ticketing system decided upon contact less smart cards the research focused upon the payment options and the design of the at stop station ticket vending machines The first section of the paper looks at international examples of ticketing systems and how intelligent transport systems ITS applications have been used to aid passengers comprehension of the ticketing system and ease of use of the system The second section describes the methodology used in the data collection The third section details the passenger requirements from a ticketing system based upon the data collected from the Dublin survey The final section of the paper details the conclusions that can be drawn from the data gathered in the Dublin study A new approach to prepayment schemes could make it easier for UK consumers to shop around for the best value gas and electricity The Paying for energy the smart way article of Cowburn 7 proposed approach to smart 13 prepayment uses the same building blocks as a traditional budget scheme For each day of the week the meter records the energy used in each half hour period and calculates average
Download Pdf Manuals
Related Search
Related Contents
DM/0 VCM Series 一取扱説明書・ Mode d`emploi Quad électrique /ATV 500W IMETEC PIUMA BFC-E Manuel d`utilisation - DSI VX-160U/-180U - CB Radio @ UA owner & operator instruction manual コマンド説明書を見る - エムシーアイエンジニアリング Copyright © All rights reserved.
Failed to retrieve file