7 November 2012

BIDIRECTIONAL VISITOR COUNTER USING MICROCONTROLLER AT89C2051


Visitor counting is simply a measurement of the visitor traffic entering and exiting offices, malls, sports venues, etc. Counting the visitors helps to maximize the efficiency and effectiveness of employees, floor area and sales potential of an organization .Visitor counting is not limited to the entry/exit point of a company but has a wide range of applications that provide information to management on the volume and flow of people throughout a location. A primary method for counting the visitors involves hiring human auditors to stand and manually tally the number of visitors who pass by a certain location. But human-based data collection comes at great expense.

 Here is a low-cost microcontroller based visitor counter that can be used to know the number of persons at a place. All the components required are readily available in the market and the circuit is easy to build .Two IR transmitter-receiver pairs are used at the passage: one pair comprising IR transmitter IR TX1 and receiver phototransistor T1 is installed at the entry point of the passage, while the other pair comprising IR transmitter IR TX2 and phototransistor(TSOP sensor) T2 is installed at the exit of the passage. The IR signals from the IR LEDs should continuously fall on the respective phototransistors, so proper orientation of the transmitters and phototransistors is necessary.

Two similar sections detect interruption of the IR beam and generate clock pulse for the microcontroller. The microcontroller controls counting and displays the number of persons present inside the hall is also displayed on the seven segment displays. It receives the signals from the sensors, and this signal is operated under the control of software which is stored in ROM. Microcontroller AT89S52 continuously monitor the Infrared Receivers, When any object pass through the IR Receiver's then the IR Rays falling on the receiver are obstructed , this obstruction is sensed by the Microcontroller.

Block Diagram

The basic block diagram of the bidirectional visitor counter with automatic light controller is shown in the above figure. Mainly this Block diagram consist of the following essential blocks.
              
  1.Power Supply
  2.Entry and Exit sensor circuit
  3.AT 89c2052 micro-controller
             
1.Power Supply:-
                                  Here we used +12V and +5V dc power supply. The main function of this block is to provide the required amount of voltage to essential circuits. +12 voltage is given. +12V is given to relay driver. To get the +5V dc power supply we have used here IC 7805, which provides the +5V dc regulated power supply.

2.Enter and Exit Circuits:-
                                              This is one of the main part of our project. The main intention of this block is to sense the person. For sensing the person and light we are using the light dependent register (LDR). By using this sensor and its related circuit diagram we can count the persons.

3.AT89C2051
                               Microcontroller IC AT89C205(IC2) is at the heart of the circuit. It is a 20-pin, 8-bit microcontroller with 2 kb of Flash programmable and erasable read-only memory (PEROM), 128 bytes of RAM, 15 input/output (I/O) lines, two 16-bit timer/counters, a five-vector two-level interrupt architecture, a full duplex serial port, a precision analogue comparator, on-chip oscillator and clock circuitry.

CIRCUIT DESCRIPTION:
                 There are two main parts of the circuits.

                       1.Transmission Circuits (Infrared LEDs)
                       2.Receiver Circuit (Sensors)

1. Transmission circuit
                                     In this circuit, a negative pulse applied at pin 2 triggers an internal flip-flop that turns off pin 7's discharge transistor, allowing C1 to charge up through R1. At the same time, the flip-flop brings the output (pin 3) level to 'high'.  When capacitor C1 as charged up to about 2/3 Vcc, the flip-flop is triggered once again, this time making the pin 3 output 'low' and turning on pin 7's discharge transistor, which discharges C1 to ground. This circuit, in effect, produces a pulse at pin 3 whose width t is just the product of R1 and C1, i.e., t=R1C1.

IR transmission circuit is used to generate the modulated 36 kHz IR signal. The IC555 in the transmitter side is to generate 36 kHz square  wave. Adjust the preset in the transmitter to get a 38 kHz signal at the o/p. around 1.4K we get a 38 kHz signal. Then you point it over the sensor and its o/p will go low when it senses the IR signal of 38 kHz. This circuit diagram shows how a 555 timer IC is configured to function as a basic monostable multivibrator . A monostable multivibrator is a timing circuit that changes state once triggered, but returns to its original state after a certain time delay.  It got its name from the fact that only one of its output states is stable.  It is also known as a 'one-shot'.

2.Receiver circuit

                           The IR transmitter will emit modulated 38 kHz IR signal and at the receiver we use TSOP1738 (Infrared Sensor). The output goes high when the there is an interruption and it return back to low after the time period determined by the capacitor and resistor in the circuit. I.e. around 1 second. CL100 is to trigger the IC555 which is configured as monostable multivibrator. So when anybody crosses the transmitter receive pair the output from TSOP sensor will high and microcontroller will know that the interruption and decide whether increment the count decrement from the loaded program.

After receiving signal from sensor microcontroller will define whether it was enter or exit by using following algorithm..
            1 .If the sensor 1 is interrupted first then the microcontroller will look for the sensor 2.And if it is interrupted then the microcontroller will increment the count .

           2.If the sensor 2 is interrupted first then the microcontroller will look for the sensor 1. And if it is interrupted then the microcontroller will decrement the count.

Advantage
o    Low cost
o   Easy to use
o   Implement in single door
Disadvantage

            It is used only when one single person cuts the rays of the sensor hence it cannot be used when two person cross simultaneously………………………………….  

CODE :
             If you need the code of  this project  please join this site as member .After joining  as member   post your  request in  comments .. Don't write your mail id . Remember the coding of this project will be strictly given to the members of this site only.....................

58 comments:

  1. i need program for this project........

    ReplyDelete
  2. please give me the code for this project.....

    ReplyDelete
  3. hai friends you can download the program for this project from the following link

    http://www.filesin.com/60FDA350980/download.html

    ReplyDelete
  4. please give me the code for this project

    ReplyDelete
  5. hai natasa please specify your mail id or join us on google+ or join us member as in our site

    ReplyDelete
  6. I would say, that is an excellent project, since you are trying to keep in control something which is a basic element in everyone's life. We use Video Security Surveillance software for Video Tracking. Contact us Delopt

    ReplyDelete
  7. i have joined this grup now plz can u send me the coding of this project

    ReplyDelete
  8. please provide the code to me

    ReplyDelete
  9. please give me code for this project.....

    ReplyDelete
  10. please give me code for this project.....

    ReplyDelete
  11. hai rajan,
    check your mail.the code was send to you....

    ReplyDelete
  12. hai prakash,sayed,tejaswini

    please specify your mail id or join this site as member.i can't post here due to the lenght of the code'

    ReplyDelete
  13. dear sir i join in this group today please give me the code for the bidirectional visitor counter sir .

    ReplyDelete
  14. already i join today as a member in this site.

    ReplyDelete
  15. please send the code for this project to my mail is iprakashece@gmail.com.....Thak you.

    ReplyDelete
  16. please send me the code for this project

    ReplyDelete
  17. hai prakash,
    Check your mail.the code was send to you..

    ReplyDelete
    Replies
    1. i also need the code please mail me at vaibhavw576@gmail.com

      Delete
  18. thank you sir , i receive that code in mail but that code is in asm code but i need this code in c language.please if you have the code in c means please send that code for my mail sir, thank you.

    ReplyDelete
  19. Thank you sir i receive that code is in my mail. but that code is in assembly language. i need that code in c language sir. if you have that code in c means please send that code to my mail sir thank you.

    ReplyDelete
  20. send this code in c language sir.

    ReplyDelete
  21. sir please send the code in c language ..

    ReplyDelete
  22. my mail id is iprakashece@gmail.com,,

    ReplyDelete
  23. please send me the code in c language for this code sir ,

    ReplyDelete
  24. sir please send me the code in c language sir please.

    ReplyDelete
  25. my mail id is iprakashece@gmail.com thank you sir.

    ReplyDelete
  26. hello sir, i received this code from my mail but that code is in asm code i need c language code sir , please if you have means send that to my mail sir iprakashece@gmail.com. Thank you sir.

    ReplyDelete
  27. please send me for my project purpose sir.

    ReplyDelete
  28. hai prakash,
    what's the problem using asm coding.why you need c program only???

    ReplyDelete
  29. hello sir , when i use asm code my 7segment not work properly the increment and decrement operations are not work properly.so then only i need c code sir.

    ReplyDelete
  30. hai prakash,
    this code is 100% working.there is some other problems in your circuit or connections.check all your connections..which compiler you are using ....use RIDE assembler...

    ReplyDelete
  31. can i get code and can i order all these components from u? u can mail me at cooper51182@gmail.com

    ReplyDelete
  32. can i get code and can i order all the stuff for this project?

    ReplyDelete
  33. This comment has been removed by the author.

    ReplyDelete
  34. hai cooper,
    The program was sen.To receive more programs join this site as member.i can't take your order now.After one or two months project kits and parts are available from us.Noq you can see online purchasing websites in the page "online purchasing".....

    ReplyDelete
  35. I need the coding for bidirectional visitor counter

    ReplyDelete
  36. i need the coding for bidirectional visitor counter

    ReplyDelete
  37. pls send me the coding for bidirectional visitor counter

    ReplyDelete
  38. please send me the code in c language for this code sir ,..
    as soon as possible..

    ReplyDelete
    Replies
    1. Hai nivi and Abhijit
      The program for BIDIRECTIONAL VISITOR COUNTER is send to ou.The C program for this project will be updated soon

      Delete
  39. hi.can u please send me code for this project?thanks in advance and more power.

    ReplyDelete
  40. hi..can u please send me the code for this project?thanks in advance and more power..

    ReplyDelete
  41. hi please send me code for this project. thanks!

    ReplyDelete
  42. hi. please send me code for this project..thanks!

    ReplyDelete
  43. hai xihc join our site us member or specify your mail id.....

    ReplyDelete
    Replies
    1. hi raja mani..i already joined the group..

      Delete
    2. hi raja mani..i already joined the group..my email is adeefom2008@gmail.com

      Delete
  44. plz send me the code for these project..

    ReplyDelete
  45. Hai xihc p & Amar

    The program for BIDIRECTIONAL VISITOR COUNTER is send to you.Check your mail

    ReplyDelete
  46. I need the code for this project
    Email is: hbsajid@gmail.com

    ReplyDelete
  47. I need the code..
    hbsajid@gmail.com

    ReplyDelete
  48. hai sajid,
    The program for BIDIRECTIONAL VISITOR COUNTER is send to you.Check your mail

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...