Wednesday, October 24, 2012

DOOR IN-OUT DUAL SENSOR COUNTER CIRCUIT


Hai, walaupun agak sibuk dengan tanggung jawab yang diberi, namun sempat juga mencuri masa hari ini untuk meng-update blog dengan post terbaru., Okay ni saya nak kongsi suatu projek asas sensor pengira
keluar masuk untuk pintu atau door in-out sensor counter.  Merujuk kepada litar skematik yang diberi terdapat dua sensor (contoh infra red) akan dipasang pada pintu masuk seperti bilik iaitu sensor A dan B. Dua sensor digunakan supaya kita boleh membezakan samada orang masuk atau orang keluar dan seterusnya PIC16F877A microcontroller telah saya programkan untuk mengira jumlah samada bertambah atau berkurangan dan kemudian akan paparkan jumlah orang yang berada di dalam bilik menerusi papan LCD 16x2. Jadual logiknya begini jika sensor A detect dahulu dan kemudian baru sensor B suatu kiraan menaik akan berlaku dan sebaliknya jika sensor B detect dahulu maka suatu kiraan menurun akan berlaku di dalam microcontroller. Untuk tambahan kepada sebarang projek dimana PORTC saya telah sediakan sebagai binary output yang boleh digunakan untuk penyambungan luaran seperti untuk mengaktifkan relay, lampu, led atau apa sahaja. Menariknya litar ini boleh digunakan untuk pelbagai fungsi kiraan secara melintas masuk dan keluar dan boleh di gabungkan untuk sebarang projek elektronik yang sesuai seperti smart car parking system dan lain-lain. Litar tersebut saya simulate menggunakan proteus dan button switch A dan B digunakan sebagai ganti kepada sensor yang sebenar untuk melihat bagaimana litar tersebut berfungsi dan mengira menerusi LCD tersebut. RAMAI PULA YANG MENGHUBUNGI SAYA NAK HEX CODE, jadi saya ambil keputusan untuk kongsi bersama. Terimakasih sebab support.

Full hex. code:
:100000000A128A11F72F00308A000408840A820736 :1000100000344334613468346134793461343D34BC :10002000003443346F3475346E3474343D340034EA :1000300020344F347234673400342E340034563454 :0200400000348A :10022A0083120313081201300A128A118C210A124E :10023A008A110D30F300FB30F200F20B2229F30B86 :10024A002229272908002330831603138500033047 :10025A008600870188010730890006309F008312D3 :10026A000313850186018701880189010800F300CB :10027A008312031308165229730884000A128A117A :10028A0003200A128A110A128A118C210A128A116F :10029A000130F2007208F3075229730884000A1227 :1002AA008A1103200A128A110038031D5D295E296A :1002BA0041295F29080083120313B101AD1F662982 :1002CA0067297029AC09AD09AC0A0319AD0AB10155 :1002DA000314B10D70292C08F0002D08F100F20169 :1002EA008E30AF002F08F3003108B0003008F40058 :1002FA000A128A115E230A128A11700883120313E2 :10030A00AC007108AD007208AE008B290800F1003C :10031A00003083120313081A1030F0007008D2005C :10032A000030881A2030F0007008D10052085104B9 :10033A00F0007008D3007108F00004300310F00CCC :10034A00FF3E031DA32970085304880088168812EB :10035A0071080F3953048800881688124230F00059 :10036A00F00BB52964000800F30083120313081286 :10037A00DF297308803E0A128A118C210A128A1117 :10038A00ED297308C03E0A128A118C210A128A11B9 :10039A00ED297308943E0A128A118C210A128A11D5 :1003AA00ED297308D43E0A128A118C210A128A1185 :1003BA00ED29ED297208003A0319BE29013A0319F9 :1003CA00C629033A0319CE29013A0319D629ED2978 :1003DA0083120313081608000130831203139F00C7 :1003EA008030831603139F007C0883120313AA002C :1003FA0002300310AA0DFF3E031DFE291F08C33950 :10040A002A049F000D30AB00FB30AA00AA0B0B2A6E :10041A00AB0B0B2A102A831203131F15142A1F1958 :10042A00172A182A142A192A1E08AA00AB012A0810 :10043A00AB00AA01831603131E08831203132A07AB :10044A00FC000030031801302B07FD002C2A08009D :10045A000330F4007408F60083160313880183122C :10046A000313081288126230F5006530F400F40BA9 :10047A003C2AF50B3C2A412A76088312031388008A :10048A00881688122130F5007630F400F40B4B2AD6 :10049A00F50B4B2A64008312031388168812F9306D :1004AA00F4006400F40B562A5A2A640083120313D8 :1004BA0088168812F930F4006400F40B612A652A60 :1004CA0064000230831203138800881688122830C9 :1004DA000A128A118C210A128A110C300A128A1104 :1004EA008C210A128A110A128A1115210A128A11FA :1004FA0006300A128A118C210A128A110800F601A2 :10050A00F31F882A892A922AF209F309F20A03199F :10051A00F30AF6010314F60D922AF11F952A962A78 :10052A009C2AF009F109F00A0319F10A9C2A7108B8 :10053A0070040319A12AA22AD82AF5010314F50D79 :10054A00B22A01300310F00DF10DFF3E031DA72A58 :10055A000130F4007408F507B22AF11FB52AB62A49 :10056A00A62AB82AB82A71087302031DBE2A70087F :10057A007202031CC12AC22AC92A7008F20271082F :10058A00031CF303F302C92A01300310F10CF00C27 :10059A00FF3E031DCA2A0130F502031DD52AD62AB9 :1005AA00B82AD82AD82A7608031DDC2AE22AF209B0 :1005BA00F309F20A0319F30AE22A7308F101F107AF :1005CA007208F001F007E92A0800F601F11FEE2A85 :1005DA00EF2AF82AF009F109F00A0319F10AF601DB :1005EA000314F60DF82AF31FFB2AFC2A062BF2093C :1005FA00F309F20A0319F30A0130F4007408F60643 :10060A00062BF701F8017108700403190D2B0E2B44 :10061A004C2BF5010314F50D1E2B01300310F00DC0 :10062A00F10DFF3E031D132B0130F4007408F5078A :10063A001E2BF11F212B222B122B242B242B0130B2 :10064A000310F70DF80DFF3E031D252B71087302E9 :10065A00031D312B70087202031C342B352B3D2BE2 :10066A007008F2027108031CF303F30277143D2B9E :10067A0001300310F10CF00CFF3E031D3E2B01303C :10068A00F502031D492B4A2B242B4C2B4C2B7608A5 :10069A00031D502B562BF709F809F70A0319F80A14 :1006AA00562B7808F101F1077708F001F0075D2B66 :1006BA0008007308031D622B6A2B72087104700408 :1006CA00031D682B692B802B6A2B0030F000003049 :1006DA00F1000030F200D82BD82B802B0130F50026 :1006EA007508F30701300310F20CF10CF00CFF3E11 :1006FA00031D782B802BFE307205031D852B862B5C :10070A00732B9E2B9E2B0130F5007508F3070130E1 :10071A00F007003003180130F107003003180130E8 :10072A00F20701300310F20CF10CF00CFF3E031D2E :10073A00972BFF307205031DA32BA42B882BB12BFB :10074A00B12B0130F30201300310F00DF10DF20D5F :10075A00FF3E031DA92BB12BF11FB42BB52BA62BE2 :10076A007318B82BB92BBF2BFF30F0057F30F1057A :10077A00FF30F2050310F30C7308F500F601F701D8 :10078A0010300310F50DF60DF70DFF3E031DC62BB5 :10079A007508F0047608F1047708F2047408031D5A :1007AA00D72BD82BF217080083120313AE010A3095 :1007BA002E02031CE12BE22BE42BF32BF32B2E0846 :1007CA00233E8400831380010130A0002008AE0775 :1007DA000A302E02031CF22BF32BE42BAE01F52B6D :1007EA007B08A000A1012008F0002108F1007A0886 :1007FA00F301F3077908F201F2070A128A11842237 :10080A000A128A11700883120313A2002E08233ECB :10081A0084002208831380007B08A000A10120081D :10082A00F0002108F1007A08F301F3077908F201D0 :10083A00F2070A128A11EA220A128A117108FA01C7 :10084A00FA077008F901F907831203132E08013E0B :10085A00A0002008AE007A087904031D352C362C36 :10086A00F52B372C7C08A0002008AD00AD08031D2D :10087A003F2C402C422C722C722C2D08FF3E233E1A :10088A0084000A308313000203184C2C4D2C592C77 :10089A002D08FF3E233E84000008303E0A128A11CA :1008AA008C210A128A11682C831203132D08FF3E29 :1008BA00233E840083130008373E0A128A118C21D2 :1008CA000A128A11682C013083120313AD02AD0893 :1008DA00031D702C712C422C722C0800780883128C :1008EA000313A0007908A1007A08A2000310210DC1 :1008FA00220DA3002308A900A908031D852C862C14 :10090A00902C0030FB000030FA000030F900003073 :10091A00F800182D182D7808A0007908A1007A0887 :10092A00A20017300310A20CA10CA00CFF3E031D5D :10093A00972C2008A3002308A400F917FF30F80514 :10094A00FF30F9050030FA057808A5007908A600F5 :10095A007A08A700A8018E30A902A91FB52CB62CC7 :10096A00DB2C2908803A8F3E0318BC2CBD2CC82CDE :10097A000030FB000030FA000030F9000030F800C7 :10098A00182D182DC82C01300310A80CA70CA60C82 :10099A00A50CFF3E031DC92C0130A0002008A907A1 :1009AA00031DD82CD92CC82CFF2CFF2C1830290257 :1009BA00031CE02CE12CF82C0030FB000030FA007C :1009CA000030F9000030F800182D182DF82C0130ED :1009DA00A0000310A50DA60DA70DA80DA00BEE2CC7 :1009EA000130A902F82CA908031DFC2CFD2CEC2CC3 :1009FA00FF2CFF2C2408031D032D0F2DA509A60982 :100A0A00A709A809A50A0319A60A0319A70A031917 :100A1A00A80A0F2D2808FB002708FA002608F90063 :100A2A002508F800182D080083120313CF01D001FE :100A3A000A128A1128210A128A110A128A112D22EF :100A4A000A128A1183120313C501C601C701C8011C :100A5A000618302D312D992D861C342D352D992DC2 :100A6A000230C4004530C300A930C200C20B3B2D7E :100A7A00C30B3B2DC40B3B2D422D432D8312031375 :100A8A00061C482D492D432D4A2D0230C4004530FD :100A9A00C300A930C200C20B502DC30B502DC40B8A :100AAA00502D572D83120313861C5C2D5D2D652D49 :100ABA005F2D5F2D8618622D632D5F2D652D652DA7 :100ACA000230C4004530C300A930C200C20B6B2DEE :100ADA00C30B6B2DC40B6B2D722D8312031350089D :100AEA00803AFF0080307F02031D7D2DFF304F02C8 :100AFA000318802D812D892D013083120313CF070E :100B0A000318D00A0030D0071A3083120313C40026 :100B1A005E30C3008630C200C20B912DC30B912DEB :100B2A00C40B912D6400992D8312031386189E2DF0 :100B3A009F2D072E061CA22DA32D072E0230C400BE :100B4A004530C300A930C200C20BA92DC30BA92D81 :100B5A00C40BA92DB02DB12D83120313861CB62DFB :100B6A00B72DB12DB82D0230C4004530C300A930CD :100B7A00C200C20BBE2DC30BBE2DC40BBE2DC52D8C :100B8A0083120313061CCA2DCB2DD32DCD2DCD2DAB :100B9A000618D02DD12DCD2DD32DD32D0230C40042 :100BAA004530C300A930C200C20BD92DC30BD92DC1 :100BBA00C40BD92DE02D831203135008803AFF008D :100BCA0080307F02031DEB2D01304F02031CEE2DF6 :100BDA00EF2DF72DFF3083120313CF070318D00A26 :100BEA00FF30D0071A3083120313C4005E30C300EB :100BFA008630C200C20BFF2DC30BFF2DC40BFF2D85 :100C0A006400072EFC010A128A11F1210A128A11C4 :100C1A007D0883120313AD01AD077C08AC01AC0754 :100C2A000A128A1160210A128A11831203132C08EC :100C3A00B5002D08B6002E08B7006A30B2009C3005 :100C4A00B3004030B4000A128A1109270A128A1125 :100C5A00831203133208F8003308F9003408FA0043 :100C6A000A128A1173240A128A1179088312031349 :100C7A00CA01CA077808C901C907F20100300A1275 :100C8A008A11B9210A128A1101300A128A113C21E9 :100C9A000A128A110A30F0000030F100831203139D :100CAA004A08F301F3074908F201F2070A128A1106 :100CBA00EA220A128A117108FA01FA077008F90180 :100CCA00F9070A3083120313C2004208FB000330FB :100CDA00C3004308FC000A128A11D9230A128A1196 :100CEA0015300A128A113C210A128A110A30F000C0 :100CFA000030F100831203134A08F301F30749088D :100D0A00F201F2070A128A1184220A128A11710860 :100D1A00FA01FA077008F901F9070A308312031376 :100D2A00C2004208FB00FC010314FC0D0A128A11DE :100D3A00D9230A128A1104300A128A118C210A1242 :100D4A008A1117300A128A113C210A128A11F201F9 :100D5A000314F20D00300A128A11B9210A128A11FB :100D6A0009300A128A113C210A128A1183120313CA :100D7A005008FA01FA074F08F901F9070A30C200C8 :100D8A004208FB000230C3004308FC000A128A1121 :100D9A00D9230A128A1110300A128A113C210A1226 :100DAA008A11033083120313C4008A30C3005630F9 :100DBA00C200C20BDE2EC30BDE2EC40BDE2EE52EC6 :100DCA00831203134A08803AFF0081307F02031D11 :100DDA00F02EF4304902031CF32EF42EF82E83125F :100DEA0003130614272D831203130610272D272D0C :100DFA000A128A110028FF0007308A007F0882073A :100E0A00052F0A128A11F129831203133208B80036 :100E1A003308B9003408BA000310390D3A0DBB0083 :100E2A003B08BC00BC08031D1B2F1C2F242F0030BD :100E3A00B2000030B3000030B400F62FF62F3508A8 :100E4A00B8003608B9003708BA000310390D3A0D50 :100E5A00BB003B08C100C108031D342F352F3D2FAD :100E6A000030B2000030B3000030B400F62FF62F85 :100E7A0041087B3EB8003808BC073208B80033087E :100E8A00B9003408BA0010300310BA0CB90CB80C07 :100E9A00FF3E031D492F3808BB003B08C100350837 :100EAA00B8003608B9003708BA0010300310BA0C77 :100EBA00B90CB80CFF3E031D5B2F3808BB003B087A :100ECA00C1068030B8003808C105B317B617FF301D :100EDA00B505FF30B6050030B7050030BD0000305B :100EEA00BE000030BF000730B8003808C0007D2FB0 :100EFA00321C802F812F922F3508BD073608031127 :100F0A000318360A03198A2FBE0737080311031874 :100F1A00370A0319912FBF07922F01300310B40C1F :100F2A00B30CB20CFF3E031D932F01300310B50D15 :100F3A00B60DB70DFF3E031D9B2F0130C002031DE6 :100F4A00A72FA82F7D2FA92F0930B8003808C00075 :100F5A00AE2F321CB12FB22FC32F3508BD0736086A :100F6A0003110318360A0319BB2FBE0737080311EA :100F7A000318370A0319C22FBF07C32F0130031002 :100F8A00B40CB30CB20CFF3E031DC42F0130031086 :100F9A00BF0CBE0CBD0CFF3E031DCC2F0130C0029E :100FAA00031DD82FD92FAE2FDA2F3D08F0003E08A7 :100FBA00F1003F08F2003C08B8003808F300410885 :100FCA00B9003908F4000A128A115E230A128A113A :100FDA00700883120313B2007108B3007208B400D8 :100FEA00F62F0800D101D201D30183010A128A1116 :020FFA00192DAF :02400E00323F3F :00000001FF










2 comments:

  1. blh mntak tolong beri propsal untuk litar nie x..sya nk buat utk projek akhir tahun sya..harap belas kasih tuan..

    ReplyDelete
  2. boleh bg sy semua tentang litar ini.... termasuk macam mana nk kawal lampu n kipas... boleh emalkan ke ykhidhir@yahoo.com

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...