ArticlePDF Available

THE DEVELOPMENT OF A MODEL AUTOMATIC ELECTROMECHANICAL VENDING MACHINE

Authors:
  • The Federal University of Technology, Akure, Ondo State, Nigeria

Abstract

A low cost automatic electromechanical vending machine has been designed and constructed using components available in the Nigerian local market. It consists of an aluminium beam which was loaded at the free end with N1 coins while the other end was fixed. The strain on the beam was measured by means of four strain gauges arranged in a Wheatstone bridge circuit configuration and permanently bonded to the aluminium beam. An instrumentation amplifier was designed to amplify the output voltage of the bridge circuit. A comparator circuit was then used to compare the output voltage of the instrumentation amplifier with a reference voltage of 5.1V. When the output voltage of the instrumentation amplifier exceeded the reference voltage, a switching and control circuits were triggered which supplied the product being sold automatically. An electromagnetic mechanical system with a power circuit was incorporated to empty the coins from the strain gauge system for the next user while a speed control circuit employing an infrared opto-coupler was also incorporated which ensured that the electric motor maintained a constant speed of rotation regardless of the torque due to the applied load. In addition, a lighting system was incorporated in the upper and lower chambers of the machine that switches on whenever any or both doors of these chambers are opened to illuminate the respective chambers during loading or retrieval of the money sold for the day. Finally, the machine was completed with an alarm system was designed to switch on as soon as the product being sold is exhausted. The items sold with this machine were soft drinks, biscuits and toiletries.
1
THE DEVELOPMENT OF A MODEL AUTOMATIC ELECTROMECHANICAL
VENDING MACHINE
1Vincent A. Akpan* & 2Michael T. Babalola
1. Department of Electrical & Computer Engineering,
Aristotle University of Thessaloniki, GR-45124 Thessaloniki, Greece
2. Department of Physics, Federal University of Technology, Akure (FUTA), Nigeria
*Corresponding Author,1. avincent@auth.gr & 2. mtbabalola@yahoo.co.uk
Abstract:
A low cost automatic electromechanical vending machine has been designed and constructed
using components available in the Nigerian local market. It consists of an aluminium beam which was
loaded at the free end with N1 coins while the other end was fixed. The strain on the beam was measured
by means of four strain gauges arranged in a Wheatstone bridge circuit configuration and permanently
bonded to the aluminium beam. An instrumentation amplifier was designed to amplify the output voltage
of the bridge circuit. A comparator circuit was then used to compare the output voltage of the
instrumentation amplifier with a reference voltage of 5.1V. When the output voltage of the
instrumentation amplifier exceeded the reference voltage, a switching and control circuits were triggered
which supplied the product being sold automatically. An electromagnetic mechanical system with a power
circuit was incorporated to empty the coins from the strain gauge system for the next user while a speed
control circuit employing an infrared opto-coupler was also incorporated which ensured that the electric
motor maintained a constant speed of rotation regardless of the torque due to the applied load. In addition,
a lighting system was incorporated in the upper and lower chambers of the machine that switches on
whenever any or both doors of these chambers are opened to illuminate the respective chambers during
loading or retrieval of the money sold for the day. Finally, the machine was completed with an alarm
system was designed to switch on as soon as the product being sold is exhausted. The items sold with this
machine were soft drinks, biscuits and toiletries.
Key Words: Electromechanical Vending Machine, Naira coins, Strain Gauges, Instrumentation
Amplifier, Comparator, Electromagnet control, Motor Speed Control, Lighting System
and Alarm System.
Journal of Science and Technology Research, Volume 8, Number 2, 2009
ISSN:1596-9647
Pages: 121 - 131
2
1. Introduction:
Over the years, drinking parlours, snacks bars, business centres, faculty and departmental offices
often sell items such as soft drinks, biscuits, toiletries, beverages and other related items and these services
normally require sales personnel. However, the operation is bedevilled with many problems. Where the
level of sales is low as in a faculty office, it is inconceivable to employ a full staff for such business. But
in large centres, where the level of sale is high, quite often these services are inefficient due to the
incompetence or the shortage of sales personnel. Also dishonest staff may misappropriate monies
collected from customers. The above shortcomings have led to the invention of automatic vending
machines. A vending machine is an electro-mechanical control device that can be operated by the user and
it is employed in business centres and shops to sell variety of goods. The machine supplies a particular
product whenever it is activated by stipulated the amount of money, either in coins or currency notes.
The advantages of using a vending machine are many. The sale of products is accurate, fast and
efficient as long as there is mains electricity supply. No money is lost to the sales assistant since only the
owner of the machine has access to the money section of the machine. In addition, the introduction of
machines into a business centres will result in more profit, as no personnel is required to operate the
machine. The only activity requiring sales personnel is the loading of the machine with its various
products, a task which can easily be performed by an attendant. This paper presents the techniques
required for producing a vending machine using locally sourced components and parts.
2. Design of the machine:
The machine is divided into two parts namely: the mechanical part and the electronic part. The
electronic part has three sections: the machine control section, the lighting section and the alarm section.
The machine control section has a direct link with the mechanical part of the machine while the lighting
and the alarm systems are two independent sections.
2.1 The mechanical part of the machine:
The mechanical structure is shown in Fig.1. A plastic bowl has twelve holes of equal radius at its
base. The holes have been drilled at equal distances to each other and are equidistant from the centre of the
bowl. Each hole accommodates a single item to be dispensed which included canned and bottled soft
drinks, canned beer, tissue paper, sachet and bottled water and packet biscuits. These holes allowed the
items to rest on the smooth surface of a wooden plywood sheet covered with formica to reduce friction
during delivery. The wooden plywood also has a hole at the same distance from the centre of the shaft as
the holes on the plastic bowl. The shaft is an iron rod R upon which the plastic bowl rest. When the
permanent magnet direct current electric motor (PMDC) is energised, its spindle rotates in a clockwise
direction. This rotation is conveyed to the shaft R through a gear system A and B. As the shaft rotates, so
does the plastic bowl rotates such that whenever one of the holes on it coincides with the fixed hole on the
wooden surface, the item slides out of the vending machine.
Also shown in Fig.1, is a thick aluminium beam which is fixed at one end L and resting on its
other end is a coins receiver. The aluminium beam, separated by a wooden slab (WS) as shown in Fig.2,
was mounted on a fixed wooden beam A (See Fig.2 for an expanded diagram of the aluminium beam,
wooden beam A, aluminium beam and the coins receiver). The coins receiver is a small rectangular
Journal of Science and Technology Research, Volume 8, Number 2, 2009
ISSN:1596-9647
Pages: 121 - 131
3
aluminium container opened at the top and on its rear side is a door which can slide in the vertical
direction. The upper part (a quarter) of the door is made of Γ-shaped steel while the lower (three quarter)
end is made of aluminium since aluminium are non-magnetic but the Naira coins were attracted by
magnets. A slanted aluminium sheet was placed inside the coins receiver with its lower edge touching the
lower edge of the sliding door. When coins are dropped into the box, they rest on the slanted aluminium
sheet. If the sliding door is pulled up, the coins slide down the slanted sheet into a plastic cylindrical coins
collector with foam at it base to reduce noise during the dropping of coins. The coins receiver was able to
receive up to fifty N1 coins without distorting the beam.
Fig.1 The mechanical and structural parts of the vending machine
y
Gear A
Opaque
Segmen
t
Item to be
Dispensed
Gear B
Machine
Control
Panel
Electric
Motor
(PMDC)
Wooden
Beam B
Wooden
Beam A
Coins
Collector
Item
Delivery
Tray
Plastic Bowl
With
Holes
Infrared
Opto-Coupler
Electro-
magnet
Small
Transparent
Gaps
Delivery
Hole on
Plywood
Plywood
gummed
with
Formica
.
.
.
Γ–Shape
Sliding
Door
Coins
Receiver
Aluminum
Beam
Strain
Gauge
Nuts and
Bolts
Fixed End L
With screws
Journal of Science and Technology Research, Volume 8, Number 2, 2009
ISSN:1596-9647
Pages: 121 - 131
4
Fig.2 Mechanical arrangement of the strain gauges on aluminium beam and the coins receiver.
2.2 The electronic part of the machine:
2.2.1 The strain gauge sensing system and the instrumentation amplifier circuit:
The electronic section of the vending machine starts with four strain gauges that are permanently
glued to the surface of the aluminium beam (two on the top surface and two on the lower surface). The
strain gauges were the 120-SRA foil type and each had a resistance of 170 [1]. The strain gauges were
arranged in a Wheatstone bridge circuit configuration as shown in Fig.3 where R
B1
, R
B2
and R
B3
forms a
signal conditioning network for the strain gauge system; and with R
B1
, V
out
was tuned for better
performance during the design process as described in [2]. As N1 coins were dropped into the coins
receiver, the aluminium beam became strained and so were the strain gauges. The output voltage, V
out
,
of
the bridge circuit [3] is given by Eq.1:
E
R
R
Vout
= (1)
where E is the supply voltage, R is the change in resistance of the strain gauges, and R is the resistance
of the strain element without strain. The output voltage, V
out,
from the strain gauge system was very small
as shown respectively in Tables 1, 2 and 3 for each N1 and 50 kobo coins as they were dropped into the
coins receiver. To make V
out
useful for control, it was given further amplification. This was provided by
the instrumentation amplifier [4] shown in Fig.3. The instrumentation amplifier has four op-amps: IC1,
IC2, IC3, and IC4. IC1 and IC2 forms the differential input stage with a voltage gain, A
1
, is given by Eq.2:
( )
GBGA
RR
R
A+
+=
1
1
2
1 (2)
IC3 is the output buffer. It has a voltage gain, A
2
, is given by Eq.3:
+56V as shown and
described in Fig.6
+
Bottom of Plywood
gummed with formica
(See Fig. 1) Electromagnet
2.5cm
1.0cm
0.5cm
0.7cm
25.0cm
7.0cm
7.0cm
5
6
3
4
Wooden Slab (WS)
Strain Gauge (G1)
Open Cavity
(length = 17.5cm)
Aluminum
Beam
Slanted
Aluminum
Sheet
Γ–Shape
Sliding
Door
Coins
Receiver
Screw
Journal of Science and Technology Research, Volume 8, Number 2, 2009
ISSN:1596-9647
Pages: 121 - 131
5
2
3
2R
R
A= (3)
This overall voltage gain, A, of the instrumentation amplifier is given by Eq.4:
( )
+
+=
2
3
1
2
1R
R
RR
R
A
GBGA
(4)
IC4 forms a bootstrapping compensation network [5] that kept the output of the IA at a stable value
regardless of the little vibration of the strain gauge system due to the changes in the load conditions as the
coins were added. Resistance mismatch was corrected by adjusting R
3B
to zero the output of IA during no
load condition.
The IA was designed so as to accommodate up to fifty N1 coins. With the resistors values shown
in Fig.3 and R
GB
= 2.2k, the overall gain of IA was 214. But when R
GB
= 0, the overall gain of the IA
became 1255. Hence, it was possible to vary the overall gain of the IA between 214 and 1225. The IA was
able to accept up to fifty N1 coins (N50) during the experiment (Table1) with by adjusting R
GB
to a value
of 2.12k which gave the IA a gain of 220. Finally, R
GB
was adjusted to 192 to give the IA a gain of
approximately 850 to accept only six N1 coins or an exact equivalent of twelve 50 kobo coins before an
item could be dispensed. The IA was calibrated as follows: the required number of coins decided for a
particular item to be dispensed (for example six N1 coins) was place in the coins receiver and R
GB
was
tuned to set the output voltage (V
01
) to a desired value before the comparator (discussed in the proceeding
sub-section) was calibrated. In this work, the output voltage (V
01
) of the IA was specified by adjusting R
GB
to produce 1.02V for every N1 coins dropped into the coins receiver and the weight of 50 kobo coins
produced 0.51V. The results of this calibration are shown respectively in Tables 2 and 3.
In order to specify the minimum number of coins that must be dropped into the coins receiver
before the product would be delivered, it was necessary to add a comparator.
Table 1: Output voltage for different number of N1coins.
N o . of N 1 . 00
c oi n s
S t ra in Ga ug e Sy s t e m O u t p ut
v o l t ag e ( V o u t , m V)
I n s t ru me n t at io n Am p l i fi er
O ut p u t Vo l t a g e ( V 0 1 ,V )
0 0 .0 0 0 .0 0
2 2 .0 4 0 .4 6
4 4 .0 8 0 .9 1
6 6 .1 2 1 .3 6
8 8 .1 6 1 .8 0
1 0 1 0 . 2 0 2 .2 5
1 2 1 2 . 2 4 2 .7 0
1 4 1 4 . 2 8 3 .1 4
1 6 1 6 . 3 2 3 .6 0
1 8 1 8 . 3 6 4 .0 4
2 0 2 0 . 4 0 4 .4 9
2 2 2 2 . 4 4 4 .9 4
2 4 2 4 . 4 8 5 .4 0
2 6 2 6 . 5 2 5 .8 3
2 8 2 8 . 5 6 6 .2 8
3 0 3 0 . 6 0 6 .7 4
3 2 3 2 . 6 4 7 .1 8
3 4 3 4 . 6 8 7 .6 3
3 6 3 6 . 7 2 8 .0 8
3 8 3 8 . 7 6 8 .5 4
4 0 4 0 . 8 0 8 .8 0
4 2 4 2 . 8 4 9 .4 3
4 4 4 4 . 8 8 9 .8 9
4 6 4 6 . 9 2 1 0 . 3 3
4 8 4 8 . 9 6 1 0 . 8 8
5 0 5 1 . 0 0 1 1 . 2 3
Journal of Science and Technology Research, Volume 8, Number 2, 2009
ISSN:1596-9647
Pages: 121 - 131
6
T a b l e 2 : O u tp u t v ol t a g e f o r d if fe r e nt n u mb e r o f N 1 c oi n s.
N o . of N 1
C o i n s
S t ra in Ga ug e Sy s t e m O u t p ut
v o l t ag e ( V o u t , m V)
I n s t ru me n t at io n Am p l i fi er
O ut p u t Vo l t a g e ( V 0 1 ,V )
0 0 .0 0 0 .0 0
1 1 .0 2 0 .8 7
2 2 .0 4 1 .7 3
3 3 .0 6 2 .6 0
4 4 .0 8 3 .4 7
5 5 .1 0 4 .3 4
6 6 .1 2 5 .2 0
T a b l e 3 : O u tp u t v ol t a g e f o r d if fe r e nt n u mb e r o f 5 0 k ob o c o i ns .
N o . of 5 0 k
C o i n s
S t ra in Ga ug e Sy s t e m O u t p ut
v o l t ag e ( V o u t , m V)
I n s t ru me n t at io n Am p l i fi er
O ut p u t Vo l t a g e ( V 0 1 ,V )
0 0 .0 0 0 .0 0
1 0 .5 1 0 .4 3
2 1 .0 2 0 .8 7
3 1 .5 3 1 .3 0
4 2 .0 4 1 .7 3
5 2 .5 5 2 .1 7
6 3 .0 6 2 .6 0
7 3 .5 7 3 .0 4
8 4 .0 8 3 .4 7
9 4 .5 9 3 .9 0
1 0 5 .1 0 4 .3 4
1 1 5 .6 1 4 .7 7
1 2 6 .1 2 5 .2 0
(To Fig.4(c))
01
V
-15V
3
R3
47.1k
-15V
-15V
-15V
+15V
+15V
+15V
+15V
6
out
V
10k
R
Gauge
5
Gauge
+12V
+
4
IC4
OP07
+IC3
OP07
+
8
IC2
OP07
+
7
IC1
OP07
3B
R
2.2k
R
B1
Gauge
1
R2
1.57k
5k
R2
1.57k
2
R4
10k
3A
R
45k
Gauge
R410k
B2
R
100k
Gauge
R1 7.96k
GB
R1 7.96k
GA
R390R
Activ e G4
Dummy G2
Dummy
G3
B3
R
240R
Active
G1
Fig.3 Electrical arrangement of the strain gauges in a bridge network connected to an instrumentation amplifier
2.2.2 The working of the comparator circuit:
The comparator circuit was built around the LM339 integrated circuit, which contains four
identical separate comparators in a dual-in-line (DIL) package [1] but only three of these comparators
(IC5, IC6 and IC7) were used in this work. The symbol for one of the comparator is shown in Fig 4(a).
Each comparator has an NPN transistor of the open collector type at the output stage. An external pull-up
resistor R
L
was connected between the output terminal and the positive terminal of the supply voltage. V
in
(V
01
) is the differential voltage between the inverting and the non-inverting inputs of the comparator.
When V
in
is negative, the output transistor switches ON and the output voltage is 0V. If V
in
is positive, the
transistor is switched OFF and the output voltage is +V
cc
[6].
The characteristics of the comparator circuit [7] are shown in Fig 4(b). V
LT
and V
UT
are the lower
and upper threshold voltages respectively defined as:
+V
sat
= 12V if V
in
> V
UT
and –V
sat
= 0V if V
in
<V
LT
Journal of Science and Technology Research, Volume 8, Number 2, 2009
ISSN:1596-9647
Pages: 121 - 131
7
The comparator circuit of Fig.4(c) was used in this work and was used to compare the IA’s output
voltage (V
01
) with a reference voltage. V
UT
and V
LT
were selected as follows: Setting V
in
= 0V, the output
voltages of IC5, IC6 and IC7 were 12V, 0V, and 0V respectively and R
UT
was adjusted to place the upper
threshold voltage (V
UT
) at 5.2V. When V
in
= +12V, the outputs of IC5, IC6 and IC7 became 0V, 12V, and
12V respectively and R
LT
was adjusted to put V
LT
at 5.1V. Therefore, for this comparator, the reference
voltage was set to 5.1V.
Thus, V
02
= 0V, when V
in
< 5.1V and V
02
= +12V, when V
in
> 5.1V. IC8 is an operational
amplifier configured as a voltage follower with unity gain and serves as a buffer amplifier to the output of
IC7. However, for the fifty N1, R
UT
was adjusted to place V
UT
at 11.40V while R
LT
was equally varied to
put V
LT
at 11.10V and the results are shown in Table 1.
rail of IC9
suppl y
10k
-12V
+12V
in Fig.5)
V
+IC8
CA314 0
01
(From V
in
set
V
+12V
02
10k
(To the power
10k
10k
10k
UT
R
LT
R
of Fig.3)
V1/4
IC7
LM339
1/4
IC6 LM3 39
1/4
IC5
LM339
Fig.4(c) Circuit for independent setting of upper and lower threshold voltages VUT and VLT respectively
2.2.3 The switching circuit:
The output of the comparator circuit (V
02
) served as the driver to the switching circuit (Fig.5)
which has two NE555 timers wired as astable and monostable multivibrators respectively [8]. However,
for NE555 timers integrated circuits configured as astable multivibrator circuit with a duty cycle of 50%,
(provided R
A
= R
B
as in the circuit of IC20 and IC21 of Fig.8), the output is a perfect square wave of
frequency f given by Eq.5:
ABA
dc CRR
f×+
=)(
44.1 (5 )
But, if BA RR
, as with the circuit of IC9 in Fig.5, the output waveform is not a perfect square wave and
the frequency of the astable multivibrator is give by Eq.6:
ABA CRR
f×+
=)2(
44.1 ( 6 )
Moreover, for NE555 timers configured as monostable multivibrator as in the circuits of IC10 (Fig.5) and
that of IC16 and IC17 (both of Fig.7), the output timing interval t
high
is given by Eq.7:
A
B
V
0
+V
sat
-
V
sat
V
in
V
LT
V
UT
C
D
+
_
V
in
¼ LM339T
V
out
+V
cc
= 5V
1k
RL
E
d
.
.
Fig. 4(a) The symbol of a single comparator Fig.4(b) Characteristic of the LM339T comparator
o
o
Journal of Science and Technology Research, Volume 8, Number 2, 2009
ISSN:1596-9647
Pages: 121 - 131
8
BChigh CRt ×= 1.1 ( 7 )
Finally, for the NE555 timer, the time constant for a monostable multivibrator is given by Eq.8:
CDCRtconsTime =tan (8)
However, it is also necessary that the time constant be very small when compared to t
high
[8]. The
diode D
i
has been included to prevent the 555 timer from triggering on the positive-going edges of the
input clock signals [9]. All the resistors and capacitors values used for both the astable and monostable
multivibrators were calculated using their respective formula from the last four equations. The
potentiometers in some of the multivibrator circuits allowed for precise time critical adjustments.
The logic high output voltage (V
02
) from the comparator of Fig.4(c) acts as the supply voltage to
IC9 which is wired as an astable multivibrator. The output of IC9 (Fig.5) turned on the green LED (LD1),
notifying the user that the required number of coins have been inserted and that the product will be
released once the reed switch (RS) is momentarily closed. The output of IC9 was connected to the input of
IC10 which is configured as a monostable multivibrator. At the mere pressing of RS, the falling edge of
the first pulse from IC9 triggered IC10. The output of IC10 (V
03
) remained logically high for
approximately two seconds. During that period, this logical high signal simultaneously triggered both the
electromagnet (Fig.6) and the motor speed control (Fig.7) circuits; and the coins receiver was instantly
emptied while the dispensed item was automatically simultaneously delivered automatically.
0.01 uF
A
+12V
56k
R
+
B
C
33uF
Gnd
Trg
Out
Rst Ctl
Thr
Dis
Vcc
IC10
NE555
IN40 01
D
+12V
TIP41
Q1
C
C
0.1uF
B
A2
(RS)
Swit ch
Reed
Comparator
From
(LD1)
Green
LED
Gnd
Trg
Out
Rst Ctl
Thr
Dis
Vcc
IC9
NE555
V =+12V
0.01uF
100k
R
To Fig.6
C
0.1uF and Fig.7
V
A1 i
5.6k
D
R
100k
03
C
470R
02
R
56k
of Fig.4(c)
R
56k
Fig.5 The switching circuit
2.2.4 The electromagnet and its control circuit:
When the electric motor rotates, the product was delivered. It was necessary to empty the coins
box in order to set the machine ready for the next user. Thus, an electromagnet (EM) with 80 turns of
SWG 24 wound on a carbon-free cylindrical soft iron core of height 13cm having a radius of 2.5cm was
constructed. Carbon-free soft iron core (obtained from Delta Steel Company, Aladja, Delta State, Nigeria)
was used which ensured that magnetism was not retained by the electromagnet once it has been de-
energised. The electromagnet was energised with 56 V
dc
triggered by the signal V
03
from the monostable
multivibrator (IC10) via a SSR model 240D10 solid state relay (Fig.6) and arranged as shown in Fig.1 and
Fig.2. This action magnetized the carbon-free soft iron core of the electromagnet system which then pulled
(attracted) the steel top of the Γ-shape horizontal surface of the sliding door of the coins receiver upward
from a distance of 5cm below it. As soon as the sliding door moved up, the coins dropped into the coins
collector which was secured on wooden beam B (Fig.1) and the machine was ready for the next user.
Journal of Science and Technology Research, Volume 8, Number 2, 2009
ISSN:1596-9647
Pages: 121 - 131
9
Transformer
Down
Step
of Fig.5
V
From
+
63V
4700uF
Supply
Power
Public (EM)
ac
40V
(SDT1)
ac
220V
Diodes
From
1N5401
Diodes
1N5401
Electromagnet
03
D
CP Q
_
Q
Fig.6 Electromagnet and its control circuitry
2.2.5 The motor speed control circuit:
The rotation of the electric motor was not timed but controlled by an infrared opto-coupler fixed
on a wooden structure and secured in such a way that the upper edge of the plastic bowl was in between
the opto-coupler’s sensor slot (Fig.1). The opto-coupler consists of an infrared transmitter and a receiver
positioned directly opposite each other in a single plastic package [1]. On the upper edge of the plastic
bowl are twelve equal opaque segments separated by small transparent gaps. During construction, the
plastic bowl was positioned in such a way that once the electric motor is stationary, the opto-coupler’s
sensors were always in between one of the opaque segments on the plastic bowl. The motor speed control
circuit is shown in Fig.7 and it took care of the starting torque, the rotary speed as well as ensuring a well-
controlled delivery of the product. It was desired that the electric motor be energised until the product was
supplied and the opto-coupler’s sensors repositioned; immediately after which the motor should be
automatically disconnected. When the required of coins has been loaded, V
03
goes high and the voltage at
point A goes high. At this instant, one of the opaque segments at the top of the bowl isolates the opto-
coupler’s transmitter and receiver; and thus the output voltage of the opto-coupler at point B is high. The
opto-coupler’s output was configured to always be at logic high state except during the delivery operation
when it momentarily goes low but its logic high output state is usually restored by the circuit of IC17.
Therefore, the output of IC12 went high and relay RC2 was triggered, the motor’s rotor was set into
motion and shaft R (Fig.1) on which the plastic bowl rested as well as the plastic bowl began to rotate.
This rotation continues until when one of the holes on the plastic bowl coincides with the hole on the
wooden plywood, the product rolls out of the machine.
At the instant where one of the holes on the plastic bowl coincides with the hole on the wooden
plywood gummed with formica below it, the opto-coupler also encounters the non-opaque gap (small
transparent gap) on the plastic bowl and the output voltage of the opto-coupler at point B immediately
drops to 0V. This negative (0V) pulse places the output of IC12 at logic low while the output of IC14 goes
to a logic high and places the output of IC15 (voltage follower) at +15V which turns on two monostable
multivibrators built around IC16 and IC17. The positive output voltage from IC17 re-triggers relay RC2
and thus causing the rotation of the electric motor for just a second to place the opto-coupler’s transmitter
and receiver in the next opaque segment on the plastic bowl; while the output of IC16 triggers relay RC1
to cut off point A from V
03
as well as the current to the electric motor. However, voltage switching on the
electric motor’s rotor between the actions of IC12 and IC17 was unnoticeable since it was instantaneous
and there was no break in the rotor’s rotation. The entire operation between when RS was closed and the
item’s delivery was less than 2 seconds. D1 and D1 were included to prevent current flow-back either
when IC 12 or IC14 switches on. Hence, the product delivery was independent of neither the motor rotor’s
+ –
SSR
Model
240D10
~ ~
Journal of Science and Technology Research, Volume 8, Number 2, 2009
ISSN:1596-9647
Pages: 121 - 131
10
speed nor the number of items in the plastic bowl (load torque) but was controlled by the opto-coupler’s
sensors positions during and after delivery.
56k
R
56k
NC
+12V
+12V
of Fi g.5
From V
+12V
-15V
-15V
+15V
+15V
i
i
5.6V
Diode
Zener
Zener
Diode
5.6V
CC
100pF
CR
0.01u F
+
B
C
33uF C
C
100pF
+
B
C
33uF
C
0.01u F
+
LM107
IC15
+
LM107
IC13
TIP31 Q4
Elect ric
Motor
Opto-
Coupler
OP4N2 5 BC108
Q3
TIP41
Q2
IN540 1
D2
PMDC
IN400 1
D
IN400 1
D
IN540 1
D1
12Vdc
Gnd
Trg
Out
Rst Ctl
Thr
Dis
Vcc
IC17
NE555
Gnd
Trg
Out
Rst Ctl
Thr
Dis
Vcc
IC16
NE555
Relay RC2
12V
Relay
RC1
12V
B
IC14
TC4011BP
IC12
TC401 1BP
AIC11
TC4011BP
DC
5.6k
( )
Magne t
5.6k
D
R
100k
D
R
100k
Permanent
3.3k
Point
2.2k
Infra red
470R
03
1k
Point
3.3k
NC 2.2k
Fig.7 Motor speed control circuit
2.2.6 The automatic lighting system:
The lighting system is shown in Fig.8 and consists of two 12V 1A white bulbs and its control
circuit. The power supply for the lighting system was built around IC18 (LM317) whose output is give by
Eq.9 with an additional current provided by Q5 [10]. IC18 and Q5 were properly secured on heat sinks.
+=
fix
adj
R
R
V12.1
04 (9)
The bulb WB3 was fixed at the bottom of the top cover of the machine (marked x in Fig.10(b))
while WB4 was fixed to the bottom of the plywood gummed with formica (marked y in Fig.1). The two
switches, SW1 and SW2, were each fixed in between the exterior rear edges of the two doors (Fig.10 (b))
and the right side of the machine in such a way that whenever any or both of these doors are open, the
respective switch completes it’s circuit and illuminates the chamber that has been opened.
on heat
sink
adj
on heat
V04
+
25V
4700 uF
Supply
Powe r
Publi c
ac
15V
(SDT 2)
ac
220V
Diodes
From
1N540 1
Diodes
1N540 1
Transformer
Down
Step
IN
COM
OUT
IC18 on
LM317
IN400 1
+
25V
0.1uF
+
25V
10uF
Q5 2N3 055
+
25V
100u F
2.2k
R
For t heSW 2
Lower
For theSW1
Uppe r
fix
R
240R
(WB4)
Chamber
12V 1A
(WB3 )
Chamber
12V 1A
Fig.8 The interior upper and lower chambers lighting system
2.2.7 The alarm system:
The alarm system is shown in Fig.9 and consists of two 12V 500mA small white bulbs (WB1 and
WB2) and a photodiode (PD), a tone generator (IC20 and IC21), an audio power amplifier (IC22) and an
8 speaker. The alarm sensors are made up of WB1 and WB2 as the transmitters while PD serves as the
receiver. The receiver was positioned directly below the last hole just before the fixed hole where the item
being dispensed is delivered to the user while the transmitter was also fixed (suspended) directly above
this last hole. When the item to be dispensed is in this position (above the receiver), the photodiode can
Journal of Science and Technology Research, Volume 8, Number 2, 2009
ISSN:1596-9647
Pages: 121 - 131
11
not receive light rays from the transmitter and hence the photodiode is off and consequently, the alarm is
also off.
However, when the last product being dispensed rolls out of the machine, the photodiode then
conducts and the result is an output voltage of +12V at the output of transistor Q5, via IC19, which serves
as the supply voltage to the circuit of IC20. IC20 is a 555 timer used as an astable multivibrator. The
output taken at pin 3 is high for one half of a cycle for one second and goes low for the next half cycle [8].
When the output is low, IC21 is inhibited and the loud-speaker is off. During the next half cycle the output
is high. Thus, the output of IC21 oscillates at 1 kHz and this oscillating signal was amplified by a 25
Watts audio power amplifier built around IC22, TDA2050 [11], and passed to the speaker situated on the
far right bottom of Fig.10(b). When this alarm is on, it however notifies the sales personnel to reload the
machine. The choice in the alarm volume adjustment was possible with the volume control potentiometer
(R
Vol
) situated on the front of the machine in Fig.10(a) and available to the sales personnel. The sensitivity
of the photodiode was adjusted for various items with help of the 1M potentiometer (R
M
) which also
available but only to the owner of the machine.
1M
R
+
uF
R
470
A
C
0.1uF
A
R
0.01u F
Gnd
Trg
Out
Rst Ctl
Thr
Dis
Vcc
IC20
NE555 1 00k
Gange d
100k
PotA
+15V
TIP31
Q6
+
LM356
IC19
+12V
-15V
Diode
Photo
(PD)
-2V
+12V
+
B
0.1uF
+
uF
1000
+
uF
1000
+
A
R
22uF
+
100uF
A
C
0.01u F
0.01u F
Gnd
Trg
Out
Rst Ctl
Thr
Dis
Vcc
IC21
NE555
(LD2)
RED
LED
100k
PotB
100k
Gange d
+
22uF
+
TDA20 50
IC22
+
0.47u F
100k
Vol
5W
2.2R
(WB1 & WB2 )
12V 5 00mA
White Bulb s
M
5.6k
5W
2.2R
Speak er
35W
22k
680R
5W
2R2
22k
R
470R
22k
B
R
22k
Fig.9 The alarm system.
x
Door of
Upper
Chamber
Door of
Lower
Chamber
(a) (b)
Fig.10 Photographs of the (a) front and (b) interior views of the vending machine.
Journal of Science and Technology Research, Volume 8, Number 2, 2009
ISSN:1596-9647
Pages: 121 - 131
12
3. Conclusion and Discussions:
An automatic electromechanical vending machine (Fig.10) has been developed with components
sourced from Nigerian local markets and the machine satisfied the objectives of its design. The machine
was designed to accept only coins and is suitable for dispensing items such as canned beer, canned and
bottled soft drinks, sachet and bottled water, packet biscuits and toiletries (soaps and tissue papers). The
IA, comparator and R
M
are adjustable depending on the amount of coins decided by the owner of the
machine for a particular item to be sold.
The following are some of the improvements that can be made on this machine. The inclusion of
heating and cooling systems will make it possible to dispense beverages such as warm snacks, hot coffee
and tea as well as cold drinks. However, the incorporation of a multiprocessor field programmable gate
arrays (FPGAs) into the vending machine to accept Naira note currencies, dispense multiple items, issuing
of change for items bought with higher Naira note denominations as well as changing higher
denominations to lower denominations of the Naira notes currencies for users not buying any of the
dispensed items will be a novel achievement for a future work.
REFERENCES:
[1]. T. Melling. RS Catalogue. East Sussex, U.K: Enigma Corporation Limited, 2003.
[2]. M.T. Babalola and V.A. Akpan, “Experimental Determination of the Poisson’s Ratio (µ ), and the Gauge Factor (k)
Values of a Practical Strain Gauge (120 – SRA Foil Type)”, Ife J. of Sci., Vol. 8, No. 1, pp. 47-58, (2006).
[3]. R.F. Coughlin and F.F. Driscoll. Operational Amplifiers and Linear Integrated Circuits, 4th Ed., New Delhi,
India: Prentice–Hall, 1992.
[4]. S. Franco. Design with Operational Amplifier and Analog Integrated Circuits. 2nd Ed., Singapore: McGraw-Hill
Books Company, 1998.
[5]. P. Horowitz and W. Hill. The Arts of Electronics, 2nd Ed., London: Cambridge University Press, 1997.
[6]. A. Mottershead. Electronic Devices and Circuits. 1st Ed., New Delhi–110001, India: Prentice-Hall, 1981.
[7]. M.H Jones. A Practical Introduction to Electronic Circuits. 1st Ed., London: Cambridge University Press, 1979.
[8]. D.V. Hall. Digital Circuits and Systems. Singapore: McGraw–Hill,1989.
[9]. W.D. Stanley. Operational Amplifier with Linear Integrated Circuits. 2nd Ed., Singapore: Macmillan Publishing
Company, 1990.
[10]. A.R. Ronald. Digital Electronics Through Project Analysis. 2nd Ed., New York 10022, U.S.A.: Macmillan
Publishing Company, 1991.
[11]. Maplin Professional System. A Product Handbook (Project and Modules). Rayleigh, Essex. UK: Maplin
Components, 2003.
Journal of Science and Technology Research, Volume 8, Number 2, 2009
ISSN:1596-9647
Pages: 121 - 131
... In order to protect the Arduino Mega 2560 output ports, the HC-SR04 ultrasonic sensor YJD1602A-1 16-by-2 LCD display module Vin A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 GND PB7 PB6 PB5 PB4 PH6 PH5 PH4 PH3 PE3 PG5 PE5 PE4 TX0 RX0 TX3 RX3 TX2 RX2 TX1 RX1 SDA is a NE555CN timer wired as an astable multivibrator. The output taken at pin 3 of IC1 is high for one half of a cycle for one second and goes low for the next half cycle [35,36]. When the output is low, IC2 is inhibited and the loud-speaker is off. ...
... During the next half cycle the output is high. Thus, the output of IC2 oscillates at 1 kHz and this oscillating signal was amplified by a 25 Watts audio power amplifier built around IC3, TDA2050 [36], and passed to the speaker situated on the far right bottom of Fig. 7. When this electronic alarm is on, it however signifies that an intruder or obstacle has been encountered. ...
Article
Full-text available
This paper presents the development of an enhanced obstacle detection system using Arduino Mega 2560 embedded system development board and tools. The enhanced obstacle detection system consists of a HC-SR04 ultrasonic proximity sensor, an intelligent YJD1602A liquid crystal display (LCD), an electronic alarm system which incorporates a 25-Watt audio amplifier as well as an Arduino Mega 2560 development as the main interfacing platform. The obstacle detection is accomplished using the HC-SR04 ultrasonic proximity sensor. The performance of the proposed enhanced obstacle detection system has been verified as it has been able to measure and display the distances of objects (obstacles) with range from 0 to 4 meters with simultaneous triggering of the electronic alarm system when an object is detected while the alarm is off when no object is detected. The complete experimental setup and the computer program for the implementation of the enhanced obstacle system are presented. The proposed EOD system can be adapted and deployed for obstacle detection and avoidance system design for robotics and mechatronics applications.
... The principle of load-cell operation is similar to normal strained arrangement which is usually in a Wheatstone bridge format [20][21][22][23][24]. The only difference being that in load-cells the strain gauges have already been mounted on a predesigned beam with advanced technologies. ...
... In this work, rather than designing a differential or an instrumentation amplifier as detailed in [21][22][23][24] to amplify the output of the MHT1 load-cell Wheatstone bridge circuit, the readily available HX711 load-cell amplifier module, shown in Fig. 3, has been adopted. Furthermore, the HX711 load-cell amplifier module can readily be interfaced with the Arduino Mega 2560 embedded system development board used in this work [25]. ...
Conference Paper
Full-text available
Obesity, which refers to excess body fat in the body, has become a popular and important public health problem. Body mass index (BMI) is metric currently in use for defining obesity or anthropometric height/weight characteristics in adults and for classifying them in groups. It is unarguable that rather than error-prone manual BMI calculations, an automatic BMI computation is a preferred option. This paper presents the design and development of a low-cost automatic BMI machine for indoor and outdoor use. The proposed automatic BMI machine consists of 7 main sections, namely: 1). MHT1 load-cell arranged in Wheatstone bridge configuration which incorporates internally mounted SR-120 foil-type strain gauges; 2). load-cell HX711 amplifier module; 3). HC-SR04 ultrasonic sensor module; 4). Internet-ready Arduino Mega 2560 real-time embedded system development board; 5). an intelligent YJD1602A-1 liquid crystal display (LCD) module; 6). an automatic two-way backup power supply module; and 7). a mechanical assembly for enclosing the automatic BMI components. The proposed automatic BMI machine have been designed, constructed and deployed for automatic BMI measurements, and the results have been compared with manual measurements. The performance of the proposed low-cost automatic BMI machine shows that it can be used in homes, hospitals, companies as well as in any environments where routine BMI monitoring may be desired. The proposed automatic BMI machine have been designed, constructed and deployed for automatic BMI measurements and the results have been compared with manual measurements where mean errors of the height, weight, and BMI measurements of 0.0133, 1.8125, and 1.0733 respectively were recorded. The performance of the proposed low-cost automatic BMI machine indicates that it can be used in homes, hospitals, companies as well as in any environments where routine BMI monitoring may be desired.
... The strain gauges are then bounded permanently to a carefully machined aluminum beam using an epoxy gum (araldite). The detailed procedures for the preparation and mounting of strain gauges for high precision measurements have been reported in Babalola and Akpan, (2006) and Akpan and Babalola (2008a). The circuit representation of the analogous strain gauge system of Fig. 3(b) is shown in Fig. 4 with its signal conditioning circuit. ...
... By choosing an audio frequency of 1.5 kHz and using (8), the values of R 84 = R 85 = 56kΩ for the tone-burst generator were obtained with a duty cycle of 50% since R 85 = R 85 (Akpan and Babalola, 2008a). The toneburst generator is included here as an alarm system which indicates the absence of PPS and the volume of the alarm reduces as the back-up batteries voltage reduces. ...
Article
Full-text available
The performance monitoring of biogas generation in a biogas digester and the evaluation of the generated bios have been investigated. A temperature and pressure measuring system are designed and constructed for measuring the biogas digester temperature and pressure during biogas generation. A highly sensitive weighing system has also been designed and constructed to measure the mass of the biogas produced. A prototype biogas digester is designed and constructed; and the temperature and pressure sensors are inserted into the biogas digester for performance monitoring. A mixture of water and cattle dung (slurry) is injected into the biogas digester on daily basis for a period of thirty day at a rate proportional to the volume of the biogas digester; and the average daily temperature and pressure inside the biogas digester and that of the environment as well as the total mass of biogas generated were recorded at 1800 GMT throughout the period of the experiment in Abraka, Delta State, Nigeria. The generated biogas is collected over water, purified and stored in a cylinder. The purified biogas, 6,529g (in total), is flared with a laboratory Bunsen burner which lasted for approximately 3 hours 28 minutes (in total). The experimental results obtained shows that the average daily temperatures and pressures in Delta State University, Abraka is 32.17ºC and 14.10psi respectively. The experimental results also shows that the biogas generation started in the third day; and from the fifth day the biogas is generated at an average rate of 261.16g per day with increasing temperature and pressure. This work shows that the inclusion of an electronic monitoring system into biogas generation systems can simplify the evaluation and characterization of biogas digesters for increased biogas production. The work also proposes that an increase in controlled temperature will results in an increased biogas production. The electronic system used in this work can also be adapted for larger biogas digester systems.
... During the next half cycle the output is high. Thus, the output of IC2 oscillates at 1 kHz and this oscillating signal was amplified by a 25 Watts audio power amplifier built around IC3, TDA2050, [28][29][30][31] and passed to the speaker situated on the far right bottom of Figure 7. When this electronic alarm is on, it however signifies that an intruder or obstacle have been encountered The sound level (i.e. the volume) of the audio amplifier is regulated by the 100 kΩ potentiometer (R VOL ). ...
Article
Full-text available
An enhanced obstacle detection system with a intelligent YJD1602A Liquid Crystal Display (LCD) based on the Internet-of-Things (IoT) with electronic alarm system which incorporated a 25-Watt audio amplifier have been proposed development, constructed and tested as detailed in this paper. The obstacle detection is accomplished using HC-SR04 ultrasonic sensor while the IoT technologies are achieved through an Arduino Mega 2560 development platform. The performance of the proposed enhanced obstacle detection system have been verified as it has been able to measure and display the distances of objects (obstacles) with range from 0 to 4 meters with simultaneous triggering of the electronic alarm system when an object is detected while the alarm is off when no object is detected. The proposed EOD system can be adapted and deployed for obstacle detection and avoidance system design for robotics and mechatronics applications.
... During the next half cycle, the output is high. Thus, the output of IC2 oscillates at 1 kHz and this oscillating signal was amplified by a 25 Watts audio power amplifier built around IC4, TDA2050 [23,24] and passed to the speaker situated on the far right bottom of Figure 6. When this electronic alarm is ON, it however signifies that either LPG or smoke has exceeded its threshold level. ...
Article
Full-text available
This paper presents the design, development and deployment of an IoT-based (Internet-of-Things based) real-time embedded system for gas-smoke detection (GASMOD) system with an automatic alarm system. The proposed GASMOD system consist of four major components, namely: 1) MQ-2 smoke sensor for smoke concentration detection; 2) MQ-5 gas sensor for gas concentration detection; 3) Two YJD1602A-1 16-by-2 liquid crystal display (LCD) modules which displays whether or not gas and/or smoke has been detected; and 4) an automatic electronic alarm system which incorporates a 25-Watt audio power amplifier that is triggered whenever gas and/or smoke is detected. The above modules are integrated and interfaced to an Internet-ready real-time embedded Arduino Mega2560 development board for realization of the proposed GASMOD system. The proposed GASMOD system has been designed, constructed and deployed for gas and smoke detection with real-time excellent performance. The proposed GASMOD system can be adapted and deployed in environments to monitor the concentration of hazardous gases and smoke in homes, industrial, research laboratories, amongst others against an acceptable prescribed threshold values.
... A magnetically activated reed switch used as an input to a DS2423 counter allows such events to be easily measured. In stead of using the basic reed switch as in (Awtrey, 1997;Awtrey, 1998), a sophisticated rain gauge system based on strain gauges configurations similar to those described in (Babalola and Akpan, 2006;Akpan and Babalola, 2008;Akpan and Babalola, 2009) can be adapted which is proposed here as shown in Fig. 9. ...
Article
Full-text available
This paper proposes the development and implementation strategies of a hypothetical database-driven web-based meteorological (meteo) weather station with a dynamic datalogger system to provide up-to-the-minute real-time ground-based weather information online to any interested client. The meteo weather station will provide weather data/information for eight parameters namely: relative humidity; solar radiance; wind speed; wind direction; barometric pressure; temperature; nefobasimeter for monitoring and measuring cloud height, thickness and number of layers detection; and rainfall. The hypothetical design present techniques that can be used to capture and log meteo data in a dynamic relational database management system (DRDBMS) and implements a TCP/IP network server. The meteo weather information will be collected from sensors incorporated into measuring instruments and transmitted via 1–Wire network and stored in the TINI's non–volatile static random access memory (NV-SRAM). The TINI processes and uploads the information over a TCP/IP network via a switch, router, common gateway interface (CGI), very small aperture terminal (VSAT) via an Internet service provider (ISP) to the Internet for any interested user in the world. More so, although the acquired data will be made available as they are being logged to both the Internet and the database (DRDBMS) but the data will be automatically deleted every 24 hours at 00:00G MT from the TINI's NV-SRAM to free the memory for the next day data at the same 00:00G MT. As a result of this, the DRDBMS which is an object for data/information storage using the MySQL stores the meteo data/information which can be retrieved by any interested client on request. However, the request will be made possible via the use of web pages, where the each meteo data/information will be displayed and accessed using special user login codes (username and password) upon subscription.
Article
Full-text available
A technique for determining the gauge factor (k) and the Poisson ration (μ) of a typical 120-SRA foil type bounded strain gauge has been experimentally and analytically investigated. The results show that its gauge factor (k) is 1.42, its Poisson ratio (μ) is 0.21, and that the strain gauge is of the zinc material and highly sensitive for measuring loads as low as 1g, based on the methodology as well as the dimensions of the beam employed in this (research) work.
Article
1. Introduction to Op-Amps. 2. First Experience with an Op-Amp. 3. Inverting and Noninverting Amps. 4. Comparators and Controls. 5. Selected Applications of Op-Amps. 6. Signal Generators. 7. Op-Amps with Diodes. 8. Differential, Instrumentation, and Bridge Amplifiers. 9. DC Performance: Bias, Offsets, and Drift. 10. AC Performance: Bandwidth, Slew Rate, Noise, and Frequency Compensation. 11. Active Filters. 12. Modulating and Frequency Changing with the Multiplier. 13. Integrated Circuit Timers. 14. D to A and A to D Converters. 15. Power Supplies. Answers. Index.
Article
Preface to third edition Preface to second edition Preface to first edition 1. Amplification and the transistor 2. The field-effect transistor 3. Thermionic valves and the cathode-ray tube 4. Negative feedback 5. Impedance matching 6. Semiconductor device characteristics 7. Amplification at high frequencies 8. Low-frequency signals, d.c. and the differential amplifier 9. Power supplies and power control 10. Pulse handling and time constants 11. Integrated circuit analogue building bricks 12. Positive feedback circuits and signal generators 13. Digital logic circuits 14. Microcomputer circuits and applications Appendix 1. Component identification Appendix 2. Transistor selection Appendix 3. Op amp data Appendix 4. Digital IC connections Appendix 5. Interfacing to the PC Bibliography Index.
Article
Contenido: Conceptos generales sobre amplificadores; Análisis y diseño de amplificadores operacionales ideales; Amplificadores operacionales de corriente directa, efectos y limitaciones; Amplificadores operacionales de corriente alterna, efectos y limitaciones; Circuitos lineales de amplificadores operacionales; Comparadores; Osciladores y generadores de ondas; Filtros activos; Rectificadores, diodos y circuitos de potencia; Conversión análogo a digital y digital a análogo; Miscelánea de circuitos.
Digital Electronics Through Project Analysis
  • A R Ronald
A.R. Ronald. Digital Electronics Through Project Analysis. 2nd Ed., New York 10022, U.S.A.: Macmillan Publishing Company, 1991.
  • T Melling
  • Catalogue
. T. Melling. RS Catalogue. East Sussex, U.K: Enigma Corporation Limited, 2003.