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 â?

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.