The aim of my project is to produce a working 'People Counter', which will display a count on a seven-segment display every time a person passes a light sensor and be able to reset the counts at the end of each match day.

Authors Avatar

Hatem Ali

Aim:

As Chairman of Sculthorpe United Football Club I like to keep up to date with daily income of the club, which mostly is from gate receipts. For our little club an easy method is required for counting the attendance each match day efficiently.

The aim of my project is to produce a working ‘People Counter’, which will display a count on a seven-segment display every time a person passes a light sensor and be able to reset the counts at the end of each match day.

Research:

        I have split my research into three distinct basic sections to be able to determine what components to use in the form of:

Firstly I must consider the possible input blocks, which will provide a pulse from its output. There are two logical methods of approaching this problem.

First method:

The first solution would be a light sensor that will detect the break in light from the passing person thus generating a high pulse to be fed to the process components. From the ‘Systems File – Electronics education magazine’, I found three possible light sensor methods using a potential divider circuit which is seen in the following page.

Input devices (Light Sensors)

  1. LDR circuit:

  1. Phototransistor:

  1. Photo Diode:

Second Method:

        

The second possible solution other than the light sensor potential divider circuits would be to place a switch on the floor where passers will tread. The switch will close every time a passer treads on it creating a much cleaner output pulse into the process device.

Input Blocks

  1. Mechanical Switch

  1. Debounced Switch

Process Devices

After generating an output pulse from the input block, this pulse needs now to be counted.  From the ‘Systems File – Electronics education magazine’ again shows three possible process blocks that can be used to count up the pulses generated from the input potential divider circuit.

  1. Divide – By – 10 BCD counter

  1. Seven-Segment Decoder Drive

 

Pin out diagram:

  1. Accurate 2Hz Decoder Driver

Pin out diagram:

Output device

Now finally the last input block of my system is the outputs. The obvious solution here is to use a seven-segment display to display the count.

Seven-Segment Display:

The 7-segment display is used as a numerical indicator on many types of test equipment. It is an assembly of light emitting diodes, which can be powered individually. They most commonly emit red light.

The 7-segment display is found in many displays such as microwaves or fancy toaster ovens and occasionally in non-cooking devices. It is just 7 LED’s that have been combined into one case to make a convenient device for displaying numbers and some letters.

Figure 1Common Cathode 7-Segment Display. http://www.iguanalabs.com/7segment.htm

Figure 2 Pin out for 7-Segment Display http://www.iguanalabs.com/7segment.htm

The following table shows how to form the numbers 0 to 9 and the letters A, b, C, d, E, and F. '0' means that pin is connected to ground. '1' means that pin is connected to Vcc.

Join now!

 

By powering all the segments, this will display the number 8. Powering a, b, c, d and g will display the number 3. 
Numbers 0 to 9 can be displayed and the d.p represents a decimal point.

Resistors must be placed in series with each diode to limit the current through each diode to a safe value.

Early wristwatches used this type of display but they used so much current that the display was normally switched off, so to see the time you had to push a button.

Common anodes displays where all anodes are ...

This is a preview of the whole essay