You are on page 1of 8

AU J.T. 10(3): 151-158 (Jan.

2007)

A Digital Electronic Ballot Counter Box


M.S. Ahmed and L.S. Lawal
Department of Electrical and Computer Engineering, Federal University of Technology
Minna, Niger State, Nigeria

Abstract
Little or no technological advancement, geometric increase in population, and
manual counting process has made a democratic system practiced by developing
countries of the world inefficient, slow and unattractive. To move away from this
system, technology must be adopted to automate democratic process of voting. This
paper describes the design and implementation of a digital electronic ballot counter
box as an introduction to the automation of the electoral processes which will curtail
electoral vices and ease the task of counting, and increase efficiency and speed. The
system consists of six basic units: (i) the light source and photo sensing unit,(ii) the
voltage comparator unit, (iii) the pulse generator unit, (iv) the counter, (v) the output
display, and (vi) the power unit. The system is designed to accommodate as much as
9999 counting.
Keywords: Output display, democratic process, design, counting, implementation

automation of electoral process which will help


Introduction in reducing the fraudulent acts, easing and
reducing the task of counting and, in addition
All over the world today, democracy has ensuring prompt and timely release of election
come to stay as the major and most recognized results. The system is based on the use of
tool of governance. Democracy is defined as a optoelectronic device, pulse generating circuit
government of the people, by the people and and counter to synthesize as an electronic
for the people. In practice, it is merely a system.
government by the majority. To realize this
form of governance, some democratization
processes are involved which are handled by an
System Description
electoral body constituted solely for the job.
The electioneering and counting of votes are The schematic diagram is shown in Fig. 1.
the most tasking and sensitive part of the It consists of six light source and photo-sensing
democratization process as stressed by Eyirere unit that provides light energy for use by the
(1996), especially when the manual counting photo receiver which senses the beam of light
system is in use. This is more hectic where and converts it to voltage output. The Voltage
rapid population growth is astronomical. This, comparator compares the voltage output
in effect, has made the manual counting of energized by the passing ballot card with the
votes tedious, bulky and erroneous, which most preset voltage reference. The resulting output
often leads to electoral vices such as thuggery is used to drive the pulse generating unit., the
and rigging. Therefore, automation of election- output of which triggers one shot of the pulse.
eering and counting of votes have become The pulses activate and lock the counter. The
inevitable, or else it will be difficult to meet up counter thereafter initiates a count at the output
the challenges of new era as seen in the display units. The power supply unit activates
increasing population. and supplies power to the other units. The
In this paper, we describe the design and system configuration has been selected to meet
implementation of a digital electronic ballot the various functional requirements of the
counter box as an introduction to the system.
151
AU J.T. 10(3): 151-158 (Jan. 2007)

Light Source and Photo Sensing Unit Voltage Comparator Circuit

A beam of light is transmitted continually The LM339 quad voltage or current


for high speed counting in short range where comparator is selected for its simple positive
ambient temperature and penetrating power are power supply. The comparator circuit as
not problems. Therefore, a light source with a described by Warnes and Roger (1998), the
voltage rating of 2.5V and 0.3a as described by input signal as sensed by the photo resistor is
McComb (1991) is used in series with a fed to the inverting input. When Vin >Vref, the
resistor to drop the voltage across. comparator output is 0V and the output
transistor is turned on and pulls the output
Vcc − Vb down to ground. When Vin, < Vref, the output
Rb = -------------------- 1 transistor is switched off and the output goes to
Ib
Vcc.
Where I b = light source current, which is The first comparator is used with pin 4 as
0.3A the inverting input, pin 5 as the non inverting
Vb = Voltage drop across the bulb, reference voltage and pin 2 as the output
which is 2.5v voltage, while pin 3 and 12 served as the Vcc
Vcc = 6v and ground respectively.
Therefore:
Pulse Generating Circuit
6 − 2 .5
Rb = = 11.67Ω ≈ 12Ω
0 .3 The 555 timer manufactured by Philips
Selection of photocell is based on voltage Data Book (1998) is connected externally to
rating, power dissipation, light source, spectral operate as monostable multivibrator with
response of source and cell as explained by external resistors setting the frequency or
Maplin Electronics (1990). For this application, timing period as shown in the circuit diagram
the TO-5 with glass top is selected with voltage of Fig. 2. The trigger input at pin 2 going low
rating and power dissipation of 5V and 0.5W operates the flip flops and driving the input
respectively. A light dependent voltage circuit high. The duration of the output state is given
is formed using voltage divider circuit with a by t and is easily determined (Brophy 1983) by
photo resistor as shown in the detailed of the following:
circuit of Fig. 2. The output voltage across the
photo resistor is obtained from: The voltage across the capacitor is;
R2
Vo = Vcc ----------------- (2) −
t
R1 + R2 Vc = Vcc (1 − e RC
) -------------(3)
(i) With illumination R2 = 3kΩ .
(ii) Without illumination R2 = 1MΩ. T = RC = time constant ------- (4)
R1 = 100kΩ variable resistor, it is preset
2
depending on the illumination of the At t = T ; Vc = Vcc ------------ (5)
surrounding environment. In this design, it is 3
set at 47kΩ. Therefore, from equation (2); 1
Alternatively, T = − RC ln ---- (6)
With illumination; 3
5 × 3 × 10 3 And from (6); T = 1.1RC
Vo = = 0.16v C = 22µF
(47 + 3) × 10 3
R is variable resistor of value 200kΩ which
Without illumination; could be varied from 1kΩ to 200kΩ.
With Ri = 1kΩ,
5 × 1 × 10 3
Vo = = 4.77v Ti = 1.1RiC
(1 × 10 6 ) + (47 × 10 3 ) = 1.1×1×103×22×10-6
152
AU J.T. 10(3): 151-158 (Jan. 2007)

= 0.0242 Seconds circuit and Plate 2 shows the ballot counter


or 24.2msecs box. All the ICs were mounted on IC sockets
already soldered to the Vero board to ease
With Rf = 200kΩ, replacement of any faulty or bad IC.
Tf = 1.1RfC Interconnections were made through etching of
= 1.1×200×103×22×10−6 the Vero board and the use insulated copper
= 4.84secs. wire connected at the bottom of Vero board,
while the components were mounted on the top
The duration of the pulse can be varied of the Vero board and soldered underneath,
from 24.2msecs to 4.84secs, so the variable thus, giving the component good layout and
resistors can be varied to give a time that will space to give room for ventilation. All the ICs
enable the system get ready for the next were laid in such a way that they point to the
coming ballot card to be counted. same direction. This makes it easier to keep
Consequently, the speed at which subsequent track of pin numbers during connection and
ballot cards get to the sensor should not exceed easy replacement in case of any damage to the
the preset time. The duration and output of the IC in question. The leads or legs of various
pulse is indicated by a red light emitting diode components such as capacitors, resistors, etc
(LED) in series with a 150Ω resistor. were reduced so as to prevent short circuit.
Finally, the system was carefully laid out and
Counting Circuit and Display Unit planned in such a way as to simplify wiring,
minimize error and make troubleshooting
The counting circuit is designed using easier as shown in Plate 1.
CMOS 74C925. The IC combines a counter, The constructed hardware was caged in a
seven segment decoder and driver on one chip box made of aluminums frames and glass with
as described by Horowitz and Hill (1995) and a slit at the top as shown in plate 2. It houses
McComb (1991). The multiplexing circuit has the light source and photo detective unit
its own free running oscillators and requires no directly beneath it. The base of the box
external clock. The counter advances on the contains the hardware component of the
negative edge of the clock applied to pin 11. A system. Fig. 3 shows a detailed diagram about
high signal on pin 12 will set the counter to the dimensions, positions of mounted
zero. A low signal on pin 5 will latch the components and modules as well as materials
number in the counters into internal output used for the construction of the box.
latches. The output of the pulse
generating circuit is fed into pin 11 through Testing and Results
2.2kΩ pulled resistor to interface two different
logic families together (TTL to CMOS). The
reset key is labeled. RESET KNOB, which Hardware test of the completed circuit
resets and clears the display to 0000. The was carried out as follows: Continuities of
bypass tantalum capacitor across supply rail copper wires used were tested using
and lines of the IC makes the supply lines low millimeters. The polarities of the components
impedance voltage source at high frequencies were tested and checked. ICs were checked to
and prevent signal coupling between circuits reaffirm their correct placement in IC sockets.
via the power supply. The output voltage of the transformer used was
observed and measured to be 12V as expected.
The output IC voltage regulators were
Implementation measured to be 5.01V and 5.95V as produced
by 7805 and 7806 IC regulators respectively.
The system was broken into six modules The output of the detective voltage
for easy construction, testing and divider circuit when a card passes through was
troubleshooting. Plate 1 shows the control observed and measured to be 4.65V, while the
output of IC comparator that drives the timing
153
AU J.T. 10(3): 151-158 (Jan. 2007)

circuit was measured to be 0.3V. The output of Conclusion


the 555 timer IC was monitored and observed
repeatedly by adjusting its pulse rate knob with A digital electronic ballot counter box has
its effect on the counting circuit by virtue of its been designed and implemented from the
frequency and time as observed in an principle of optoelectronic device, digital
oscilloscope. timing and sequencing using counters. The low
Counting circuit was test run on operating voltage and low power consumption
completion by an oscilloscope fed into IC of the system allows for low temperature,
through its clock input and outcome of the test longer life, better maintenance, low overall cost
was certified okay as observed from the display in implementation and operation thus resulting
unit. The switches and reset buttons were tested in high reliability of the system in sensing and
and certified okay. The overall operation of the counting. Testing of the performance of the
circuit was tested by blocking beam of light system was carried out and the results obtained
from reaching the photo detector with overall showed that the system is suited for vote
effect of count initiation at the display unit. counting.
The incandescent lamp provides an For further improvement, one feature
incident beam of light, which falls on the top which, if incorporated into the system, is a
cap of the light dependent resistor. As soon as a microprocessor based control that will not only
ballot card passes through the slit of the box, it count the total number of ballot card, but will
causes a break in the beam from the lamp be able to identify and distinguish among the
giving an output voltage of 5V from the various ballot cards cast through the
voltage divider’s circuit of the light dependent identification of the thumb print and its
resistor (LDR). This result to zero output distance from the edge of the ballot box.
voltage at the comparator, thus turning on the
open collector transistor in the comparator,
which helps to drive the pulse generating References
circuit to produce one shot of pulse. This
provides the counter clock with its input, thus Brophy, J.J. 1983. Basic Electronics for
driving the counter circuit with a resulting Scientists. McGraw Hill, London, UK.
count initiation at the multiplexed display unit. Eyirere, D.O. 1996. Government Made Easy.
Subsequent passing of ballot cards produces Doe-Sun Publ., Lagos, Nigeria.
pulses with cumulative counting effect to a Horowitz, P.N.; and Hill, W. 1995. Art of
maximum of 9999. Electronics, Cambridge University, New
The human eye interprets the multiplexed York, NY, USA.
display unit, if the seven segment (LED) Maplin Electronics 1990. MPS Data Book
displays are being lit continuously. The sensor Semiconductors, Maplin Electronics Plc.
and its control base function as amplifier, New York, NY, USA.
which produces an output signal that is then McComb, G. 1991. Tips and Techniques for
processed to initiate a count. The system uses the Electronics, Hobbiyst and McGraw Hill,
voltage reference knob, control base knob for London, UK.
the photo sensor and pulse rate knob to help the Philips Data Book. 1998. ECG Master
system adapt to harsh environment where the Replacement Guide, ECG Products. Philips
system might be subjected to bright sunlight, Consumer Electronics Co., Dallas, TX,
dust, mist etc. thus increasing the reliability USA.
value of the device which the system could Roger, L.T. 1998. Digital Electronics, Glencoe
control through adjustment of the excess gain. Division of Macmillan, London, UK.
Warnes, L 1998. Electronic and Electrical
Engineering, Macmillan, London, UK.

154
AU J.T. 10(3): 151-158 (Jan. 2007)

155
AU J.T. 10(3): 151-158 (Jan. 2007)

156
AU J.T. 10(3): 151-158 (Jan. 2007)

157
AU J.T. 10(3): 151-158 (Jan. 2007)

158

You might also like