Saturday, August 22, 2020
Microcontroller Based Bidirectional Visitor Counter
Development Microcontroller-bAsed bidirectionAl Visitor counter UMAR SUNIL K ? AkshAy MAthur, kuldeep singh nAglA V isitor checking is essentially an estimation of the guest traffic entering and leaving workplaces, shopping centers, sports settings, and so forth. Checking the guests assists with expanding the productivity and adequacy of workers, floor region and deals capability of an organisation.Visitor tallying isn't constrained to Semiconductors: IC1 â⬠LM324 quad operation amp IC2 â⬠74LS76 J-K flip-flop IC3 â⬠AT89C52 microcontroller IC4 â⬠7805 5V controller T1, T2 â⬠L14F1 npn phototransistor T3, T4 â⬠2N3904 npn transistor IR TX1, IR TX2 â⬠IR transmitting LED BR1 â⬠1A connect rectifier DIS1-DIS3 â⬠LTS543 CC 7-fragment show Resistors (all ? - watt, à ±5% carbon): R1, R2 â⬠68-ohm R3, R4 â⬠6. 8-kilo-ohm R5, R6 â⬠100-ohm R7, R8, R10, R11 â⬠10-kilo-ohm R9 â⬠4. 7-kilo-ohm R12-R32 â⬠220-ohm VR1, VR2 â⬠20-kilo-ohm preset RN W1 â⬠10-kilo-ohm resistor organize Capacitors: C1, C2 C3, C4 C5 C6 C7 Miscellaneous: XTAL X1 S1 S2 â⬠0. à µF earthenware plate â⬠33pF artistic circle â⬠10à µF, 16V electrolytic â⬠470à µF, 25V electrolytic â⬠0. 1à µF artistic plate â⬠12MHz precious stone â⬠230V essential to 7. 5V, 250mA optional transformer â⬠Push-to-on switch â⬠On/off switch Fig. 1: Transmitter-collector set-up at the passageway cum-exit of the section Parts List the section/leave purpose of an organization yet has a wide scope of utilizations that give data to the executives on the volume and stream of individuals all through an area. An essential strategy for checking the guests includes recruiting human inspectors to stand and physically count the quantity of guests who pass by a certain location.But human-based information assortment comes at incredible cost. Here is a minimal effort microcontrollerbased guest counter that can be utilized to know the quantity of people at a spot. All the parts required are promptly accessible in the market and the circuit is anything but difficult to construct. Two IR transmitter-beneficiary sets are utilized at the section: one sets including IR transmitter IR TX1 and recipient phototransistor T1 is introduced at the section purpose of the entry, while the other pair involving IR transmitter IR TX2 and phototransistor T2 is introduced at the exit of the passage.The IR signals from the IR LEDs ought to constantly fall on the individual phototransistors, so legitimate direction of the transmitters and phototransistors is important. circuit depiction Fig. 1 shows the transmitter-collector set-up at the passageway cum-exit of the entry alongside square outline. Two comparative areas recognize interference of the IR shaft and produce clock beat for the microcontroller. The microcontroller controls tallying and shows the quantity of people present inside the lobby. Fig. 2 shows the circuit of the microcontroller-based guest counter, wherein the transmitter and the collector structure the IR discovery circuit.Control rationale is worked around transistors, operational speaker LM324 (IC1) and flip-flop (IC2). At the point when no one is going through the passage/leave point, the IR pillar ceaselessly falls on phototransistor T1. Phototransistor T1 conducts and the high voltage at its producer drives transistor T3 into immersion, which makes pin 3 of comparator N1 low lastly yield pin 1 of comparator N1 is high. Presently on the off chance that somebody enters the spot, first the IR bar from IR TX1 is hindered and afterward the IR bar from IR TX2. At the point when the shaft from IR TX1 is intruded, phototransistor T1 and transistor T3 cut-off and pin 3 of comparator N1 goes high.The low yield (pin 1) of comparator N1 gives negative trigger heartbeat to stick 1 of J-K flip-flop IC2(A). As of now, the high contribution at ââ¬ËJââ¬â¢ and ââ¬ËKââ¬â¢ w. e f y m ag . co m 7 8 â⬠¢ J a n u a ry 2 0 7 â⬠¢ e l e c t ro n I c s f o r yo u ConstruCtion w. e f y m ag . co m e l e c t ro n I c s f o r yo u â⬠¢ J a n ua ry 2 0 7 â⬠¢ 7 9 Fig. 2: Circuit of the microcontroller-based guest counter ConstruCtion Fig. 3: Power flexibly circuit pins of flip-flop IC2(A) flips its yield to low. Then again, the low contribution at ââ¬ËJââ¬â¢ and ââ¬ËKââ¬â¢ pins of IC2(B) because of Fig. : Pin clock pin 1 of setup of L14F1 and IC2(A) and ââ¬ËJââ¬â¢ intransistor 2N3904 put (pin 9) and ââ¬ËKââ¬â¢ input (pin 12) of IC2(B) are associated with pin 1 of comparator N1. The pessimistic going heartbeat is applied to clock pin 6 of IC2(B) when the individual intrudes on the IR shaft from IR TX2. There is no adjustment in the yield of IC2(B) flip-flop. This triggers the outer interfere with INT0 (pin 12) of microcontroller AT89C52. The AT89C52 is a 8-piece microcontroller with 8 kB of blaze based program memory, 256 bytes of RAM, 32 info/yield lines, three 16-p iece clocks/counters, on-chip oscillator and clock circuitry.A 12MHz gem is utilized for giving clock. Ports 0, 1 and 2 are designed for 7-fragment shows. Port-0 pin is remotely pulled up with 10-kilo-ohm resistor organize RNW1 in light of the fact that port0 is a 8-piece, open-channel, bidirectional, input/yield (I/O) port. Port-1 and port-2 are 8-piece bidirectional I/O ports with inner force ups (no need of outside draw ups). Port pins 3. 0 and 3. 1 are arranged to give the set heartbeat to J-K flip-flops IC2(A) and IC2(B), individually. Outside intrudes on INT0 and INT1 get the interfere with heartbeat when the individual interferes with the IR beams.Resistor R9 and capacitor C5 give power-on-reset heartbeat to the microcontroller. Switch S1 is utilized for manual reset. When the microcontroller is re-set, the flip-flops are acquired ââ¬Ësetââ¬â¢ state through the microcontroller at programming show time to making their ââ¬Ësetââ¬â¢ pin high for a second. The estimat ion of the counter augmentations by Fig. 5: A genuine size, single-side PCB for the microcontroller-based guest ââ¬Ë1ââ¬â¢ when the counter (Fig. 2) including its capacity flexibly (Fig. 3) intrude on administration routine for INT0 is executed.The yield of the relating J-K flip-flop is set to ââ¬Ëhighââ¬â¢ again by making its ââ¬Ësetââ¬â¢ input pin low through the microcontroller. The small scale controller is arranged as a negative-edgetriggered interfere with sensor. Also, in the event that someone leaves the spot, first the IR shaft from IR TX2 is hindered and afterward the IR bar from IR TX1. At the point when Fig. 6: Component format for the PCB the pillar from IR TX2 is intruded on, yield pin gives clock heartbeat to stick 6 of J-K 7 of comparator N2 goes low. This flip-flop IC2(B). w. e f y m ag . co m 8 0 â⬠¢ J a n ua ry 2 0 7 â⬠¢ e l e c t ro n I c s f o r yo u ConstruCtionAt this second, the high contribution at ââ¬ËJââ¬â¢ and ââ¬ËKâ⬠⢠pins of flip-flop IC2(B) flips its yield to low. Then again, the low contribution at ââ¬ËJââ¬â¢ and ââ¬ËKââ¬â¢ pins of IC2(A) because of clock pin 6 of IC2(B) and ââ¬ËJââ¬â¢ input (pin 4) and ââ¬ËKââ¬â¢ input (pin 16) of IC2(A) are associated with pin 7 of comparator N2. The pessimistic going heartbeat is applied to clock pin 1 of IC2(A) when the individual intrudes on the IR shaft from IR TX1. There is no adjustment in the yield of IC2(A) flip-flop. This triggers the outside interfere with INT1 (pin 13) of microcontroller AT89C52. The estimation of the counter decrements by ââ¬Ë1ââ¬â¢ when intrude on administration routine for INT1 is executed.The yield of the relating J-K flip-flop is set to ââ¬Ëhighââ¬â¢ again by making its ââ¬Ësetââ¬â¢ input pin low through the microcontroller. The circuit is controlled by directed 5V. Fig. 3 shows the circuit of the force flexibly. The AC mains is ventured somewhere near transformer X1 to convey aux iliary yield of 7. 5V, 250mA, which is amended by connect rectifier BR1, separated by capacitor C6 and managed by IC 7805 (IC4). Capacitor C7 sidesteps any wave in the directed yield. 3) is appeared in Fig. 5 and its part format in Fig. 6. programming The product for the guest counter is written in ââ¬ËCââ¬â¢ language and accumulated utilizing C51 Keil compiler.The demo rendition of this compiler is accessible for nothing on the site ââ¬Ëwww. keil. com. ââ¬â¢ It can incorporate projects up to 2 kB in particular, which is adequate for composing most projects. EFY note. The source code and other important documents of this article have been remembered for this monthââ¬â¢s EFY-CD. development A real size, single-side PCB for the microcontroller-based guest counter (Fig. 2) including its capacity gracefully (Fig. guest. c #include int i=0,j,k,l,m,a[]={63,6,91,79,102,109,125,7,127,111}; void enter (void) intrude on 0 { i++; if(i>999) i=999; P3_1=0; for(m=0;m Microcontroller Based Bidirectional Visitor Counter Development Microcontroller-bAsed bidirectionAl Visitor counter UMAR SUNIL K ? AkshAy MAthur, kuldeep singh nAglA V isitor tallying is basically an estimation of the guest traffic entering and leaving workplaces, shopping centers, sports scenes, and so on. Checking the guests assists with augmenting the proficiency and adequacy of workers, floor zone and deals capability of an organisation.Visitor tallying isn't restricted to Semiconductors: IC1 â⬠LM324 quad operation amp IC2 â⬠74LS76 J-K flip-flop IC3 â⬠AT89C52 microcontroller IC4 â⬠7805 5V controller T1, T2 â⬠L14F1 npn phototransistor T3, T4 â⬠2N3904 npn transistor IR TX1, IR TX2 â⬠IR transmitting LED BR1 â⬠1A connect rectifier DIS1-DIS3 â⬠LTS543 CC 7-fragment show Resistors (all ? - watt, à ±5% carbon): R1, R2 â⬠68-ohm R3, R4 â⬠6. 8-kilo-ohm R5, R6 â⬠100-ohm R7, R8, R10, R11 â⬠10-kilo-ohm R9 â⬠4. 7-kilo-ohm R12-R32 â⬠220-ohm VR1, VR2 â⬠20-kilo-ohm preset RNW1 â⬠1 0-kilo-ohm resistor organize Capacitors: C1, C2 C3, C4 C5 C6 C7 Miscellaneous: XTAL X1 S1 S2 â⬠0. à µF fired circle â⬠33pF artistic plate â⬠10à µF, 16V electrolytic â⬠470à µF, 25V electrolytic â?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.