No. Train Condition Train passes The gate system LCD display Buzzer
Sensor 3 Open "Please walk" OFF
6. Non Metal – coated Trains
Sensor 1 Open "Train crossing" OFF
Sensor 2 Open "Train crossing" OFF
Sensor 3 Open "Train crossing" OFF
7. Metal – coated Trains
Sensor 1 Open "Watch out for trains" ON
Sensor 2 Closed "Train speed" ON
Sensor 3 Open "Please walk" OFF
8. Non metal – coated Trains
Sensor 1 Open "Train crossing" OFF
Sensor 2 Open "Train crossing" OFF
Sensor 3 Open "Train crossing" OFF
9. Metal – coated Trains
Sensor 1 Open "Watch out for trains" ON
Sensor 2 Closed "Train speed" ON
Sensor 3 Open "Please walk" OFF
10 Non Metal – coated Trains
Sensor 1 Open "Train crossing" OFF
Sensor 2 Open "Train crossing" OFF
Sensor 3 Open "Train crossing" OFF
3.4 Discussion of the Functional Test
Results of Inductive Proximity Sensors
The results of the functional test of inductive
proximity sensor showed that the inductive proximity
sensor can only detect objects made of metal. While,
the sensor cannot detect the passing train that was not
coated with a metal.
The inductive proximity sensor
could only work with the distance of sensor to the
train = 0.1 mm - 0.4 mm, at a distance of 0.5 mm - 1
cm inductive proximity sensor could not detect the
train. Therefore, the maximum detection distance of
the inductive proximity sensor is 0.4 mm.
This
detection distance in line with the datasheet on the
inductive proximity sensor which stated that the
sensor can only detect metal objects with a maximum
detection distance of 0.4 mm.
3.5 Discussion of Functional Test
Results of Speed and Train Speed
Measurement
From the data regarding train speed control,
the results showed that the train could be controlled
by using a potentiometer.
The test was performed by
varying the potentiometer resistance value from the
highest resistance value to the lowest resistance
value, the train speed can change from fast to
slow.
From the results of train speed testing, the
highest train speed was at 10 KΩ potentiometer
resistance, a voltage on a dc motor of 3 V and has a
measured system speed of 21.7 cm / s with the
theoretically measured speed is 22 cm/s. On the other
hand, the lowest train speed is at 1 KΩ, the voltage on
the dc motor is 0.3 V and has a speed of 11 cm / s
while the theoretical measurement is 10.9 cm / s.
The test on the train speed measurement
revealed that there is a difference in the error on the
train speed measurements measured by the system
with the theoretical train speed measurement.
The
average of difference in the measurement results by
the system and theory is 1.3 cm / s.
The difference
from the results was obtained from the calculation of
the speed formula using the sensor then it was
inputted into the program and processed by arduino
uno microcontroller compared to theoretical speed
measurement by using a
stopwatch. The difference
was caused by the operation of the
stopwatch during
the manual train speed measurement.
3.6 Discussion of Research Results of
the Overall Performance of the
Design
The results of study revealed that the automatic
railroad-crossing gate could work according to the
expected system design.
The test was carried out by
using a metal-coated and a non metal – coated train
for 10 times.
The automatic railroad-crossing gate
opened and closed the gate manually and
automatically according to the programmed system.
The system could only detect the metal-coated trains.
When sensor 1 detected the train then the buzzer
was
active. The system started calculating the travel time
of the train until it reacheed sensor 2 and the LCD
displayed "watch for the train". When sensor 2
detected the train, it began calculating the travel time
from sensor 1 to sensor 2 and started opening the gate
and LCD displayed the results of train speed
measurement as "Train speed". When sensor 3
detected a train, the system waited until the train was
not detected as a sign the train has passed, then the