tric strips, radio beams, active infrared, pneumatic
tubes etc. (Ryus et al., 2014)) available for bike
counting. Over the last decade, there has been in-
creasing interest in counting bicycles and establishing
non-motorized counting programs (Nordback et al.,
2016). Three types of commercially available pneu-
matic tube counters (dual and single tube configu-
ration - bicycle-specific, classification and volume
counters) were studied by (Nordback et al., 2016),
where counting accuracy decreased with high traffic
volume and longer tubes. The undercounting problem
is also highlighted by (Ryus et al., 2014) where two
products were compared. Counting can be done man-
ually or in automated way. Automated counting make
it possible to collect data for long time period and to
monitor temporal data variety in volumes more effec-
tively than manual counts (Proulx et al., 2016). Auto-
mated counting can be done using different technolo-
gies, like infrared, radio beam, pneumatic tubes, in-
ductive loops and also image processing (Zangeneh-
pour et al., 2015; Komasilovs et al., 2018). As well
publicly showing the number of bikes going on the
specific roads or comparing speed of bike and car on
the specific part of the road can increase individual
motivation to use the bike next time.
By the data of Latvian Central Sta-
tistical Bureau, 17% of Latvian citizens
almost twice per week are using bikes
(https://www.csb.gov.lv/lv/statistika/statistikas-
temas/socialie-procesi/veseliba/meklet-tema/2141-
17-latvijas-iedzivotaju-vismaz-divreiz-nedela), in
capital Riga number of cyclist’s increases approx. by
10% each year. In Latvia bike counting is mainly
done manually by persons standing at the bike lanes
and counting the bicycles, but this approach has
many disadvantages (https://www.diena.lv/raksts/
latvija/zinas/ritenbrauceju-skaita-izmainas-fikse-ar-
masinredzi -un-maksligo-intelektu-14110736). It is
not possible to collect data on the long time period,
to compare data on different weather conditions and
day periods, as well it require more staff time per
hour of data collected. Therefore, local municipality
is searching for better ways on how to collect data
on the number of bikes using specific roads with
the purpose to build bike lanes on the most popular
roads/sidewalks.
Pneumatic or rubber tubes are commonly used for
gathering short-duration motor-vehicle number (http:
//www.windmill.co.uk/vehicle-sensing.html), but it is
possible to adapt this technology also for bicycle
counting. Equipment for this task consists of two
main elements: rubber tubes to place on the road sur-
face and a data recording and processing unit. As ob-
ject (vehicle or bicycle) pass over the tubes, pulses
of air travel through the tubes to the data recorder,
which detects them due to change in the pressure.
Authors of this research propose a prototype based
on a popular open-source electronic platform Arduino
(https://www.arduino.cc/) for bicycle counting. Main
advantage of such approach could be the price of the
whole system, which gives benefit for local munici-
pality.
2 MATERIALS AND METHODS
Proposed automatic bicycle counting system’s archi-
tecture (see Fig. 1) consists of two pressure sensors
MPX5010DP with rubber tubes, electronics develop-
ment platform Arduino Uno, ESP8266 Wi-Fi module,
remote server with Laravel Framework and MariaDB
in the back end, and HTML, CSS, Javascript, Boot-
strap forming the front end.
Figure 1: Architecture of bicycle counting system’s proto-
type.
Arduino platform acts as a data collector and
at the same time is capable of calculating bicycle
speed, direction and count at the given time. Men-
tioned pressure sensor is a piezo resistive trans-
ducer that outputs analogue signal proportional to
the pressure applied (https://www.nxp.com/docs/en/
data-sheet/MPX5010.pdf). The data collection part is
similar as posted in https://hackaday.io/project/4567-
traffic-counter-road-tube. For testing purposes, a Wi-
Fi technology for wireless data transfer was used. In
remote locations, the Wi-Fi can still be used, when,
for example, a mobile phone is turned into a portable
hotspot and sharing cellular data plan. Other solu-
tion would be to choose a GPRS module. Since
Arduino Uno board itself lacks Wi-Fi functionality,
data were transferred to the remote server by us-
ing a Wi-Fi module (in this case Adafruit HUZZAH
ESP8266), which is connected to the Arduino via Uni-
versal Asynchronous Receiver-Transmitter (UART).
After a certain period of time (defined in the soft-
ware), Arduino communicates with ESP8266 module
and sends the necessary data (direction, count, speed).
Automated Bicycle Counting System’s Prototype to Evaluate the Necessity of New Bicycle Lanes in Jelgava City
421