You are on page 1of 6

Proceedings of the International Conference on Computer and Communication Engineering 2008 May 13-15, 2008 Kuala Lumpur, Malaysia

Web-Based Wireless Data Acquisition System using 32bit Single Board


Computer

R. B. Ahmad1, W. M. A. Mamat1, M. R. Mohamed Juhari2, S. Daud1, N. W. Arshad3


1
School of Computer and Communication Engineering
2
School of Mechatronic Engineering
Universiti Malaysia Perlis
P. O. Box 77, d/a Pejabat Pos Besar, 01007 Kangar, Perlis, Malaysia
3
Faculty of Electrical and Electronic Engineering
Universiti Malaysia Pahang
Karung Berkunci 12, 25000 Kuantan, Pahang, Malaysia
badli@unimap.edu.my

Abstract testing and modification of logic circuitry without


hardware modification [4]. The Digital Signal
The design and architecture of a web-based Processor (DSP) board is also chosen as processor
wireless data acquisition system are presented. This board to handle real-time computation process. The
system provides a web interface for remote monitoring other current trend on embedded technology
of sensors deployed which connected using wireless application is using single board computer (SBC) as
technology. The design utilizes the 32bit single board processor board. One big advantage of using an SBC is
computer as processor board to provide low cost and it can handle multitasking process since its running a
low power data acquisition system. Two main part of modular Operating System (OS) [5]. The development
this system are Sensor Node (SN) and Web Server can be done using high level language such as C, java
(WS). The SN is function as Data Acquisition Unit and Perl and is widely use, flexible and have many
which contains processor board and connected to support from open source community. However, the
analog inputs while WS function as storage unit. The key to select processor board is the purpose of its
transmission of collected data between SN and WS is application so that the functionality should be optimum
using 802.11b wireless network technology. This regarding to processor board specifications.
system is preferably deploy for large monitoring The organization of this paper as follow, Section II
system such as for agriculture and environmental. outlines the architecture of the system. Section III
explains the processor board. The software
development and data transmission are described on
I. INTRODUCTION Section IV and V respectively. Section VI shows the
results and Section VII summarizes the overall
The standard data acquisition system (DAS) research output.
contains three elements, acquisition hardware, storage
unit and data transmission method. Acquisition
hardware play vital role on benchmarking the
II. SYSTEM OVERVIEW
performance of DAS. Most of the previous research is
using PC as acquisition hardware [1, 2]. The trend is The data acquisition system using 32bit SBC is
then changing from standard PC to high speed PC to outlines as shown in Figure 1. This system is separated
provide better performance on data processing and to two parts, Sensor Node (SN) and Web Server (WS).
transferring to storage unit. The microcontroller based
DAS is also most popular platform since it is low cost
and suitable for simple and small application [3].
Several developments using embedded system
platform such as Field Programmable Gate Array
(FPGA) as Data Acquisition Unit (DAU) that enable Figure 1. The data acquisition system using single board computer

978-1-4244-1692-9/08/$25.00 ©2008 IEEE 777


On the SN side, there are two main processes; the C/C++ Compiler (GCC) package by default, therefore
analog input reading and the client process. Data from the source code have to be compiled on development
SN is send to server using client-server programming. desktop. The desktop should be installed with Linux
The analog input reading is describing detail in section distribution that has similar libraries version to TS-
IV while the client-server programming is explain in Linux to avoid mismatch or library incompatible
section V. during running binary file [8].
At WS, the LAMP (Linux + Apache + MySQL + The requirement for WS side is including Apache
PHP) packages are used. For database purpose the server, PHP and MySQL database. All those features
MySQL is choose while PHP is used to develop a web are available within Mandriva 2006. The software
page. The server process is running on WS to received development of this system is using C language
data from SN. including analog input reading and data transmission.
The shell script programming is also uses to handle
administration tasks. Figure 4 outlines the software
III. PROCESSOR BOARD model for this system.
Nowadays the SBC is mostly chosen to be used in
research to reduce the development time. It is also low
power consumption and low cost. The availability to
control via operating system and using high level
programming is also taken into the account [6]. An
embedded Linux platform is widely use because of the
reusable device drivers and application program and
more convenient on solving problems within the open
source community.
The TS-5500 model from Technologic Systems Figure 3. The software model of DAS system
(TS) [7] is use for this research as show in Figure 2. It
running 133 MHz AMD Elan 520 processor and built A. Analog input reading
in using x86 architecture. This power requirement to The analog to digital converter (ADC) embed on
run this board is 5V DC @ 500 mA. It manufactured TS-5500 board is MAXIM197 [9] which support 8
with 64MB of high speed SDRAM. The OS is loaded channel of analog inputs and provide 12-bit digital
and running from Card Flash (CF) which replaced the outputs. Each channel is independently software
hard disk. The system interfaces are COM port (serial), programmable for unipolar or bipolar conversion
USB, digital input/output (DIO), analog to digital within four ranges of analog input: -10V to +10V, -5V
converter (ADC), LCD port and matrix keypad port to +5V, 0V to +10V and 0V to +5V.
(DIO). The 10/100 Ethernet interface and PCMCIA A source code named sensor is written to read
type II slot also included for networking purpose. analog inputs. The 12bits digital output of ADC is
COM2 port is used to communicate between SBC and calculated into decimal value to present the result in
development desktop using emulator program such as voltage reading. The input mode (positive or negative)
minicom and hyperterminal. can be determined by reading MSB bit. If the MSB bit
is ‘0’ then the input is positive and negative if ‘1’. For
negative reading process, there is two’s compliment
process to convert the result into positive mode. All
analog inputs reading will be loaded to shared memory
in SN.

Figure 2. The TS-5500 SBC B. Shell scripting


Shell script defined as series of command written in
IV. SOFTWARE DEVELOPMENT plain text file. Typical operations performed by shell
The SN is running TS-Linux which has been built scripts include file manipulation, program execution,
by TS Company. This embedded OS is quite similar to and printing text. At SN, shell script is use to run the
standard Linux distribution in terms of configuration sensor and client program. At the same time, shell
but small in capacity because its only includes script is also use to run these programs automatically
important packages so that it can be loaded onto small during the processor board boot up. While at WS, the
device such as CF. TS-Linux does not installed GNU shell script handle the data loading into the database

778
after read the previous client connection status from technology such as radio frequency (RF), infra red (Ir),
status file. Bluetooth, wireless LAN (WLAN) and Zigbee. The
WLAN can be divided to three categories which are
802.11a, 802.11b and 802.11g which differ in term of
C. Web page platform
transfer rate. Table 1 outlines the summary of wireless
The collected data is presenting with graph format on a technologies [10].
web page. Therefore user can view the current and In this research, the transmission of collected data is
previous data through internet. The page is developed done using 802.11b wireless network technology. TS-
using PHP and MySQL database use to store all data. 5500 uses 16-bit PCMCIA model MA401 Wi-Fi PC
In current mode, the graph is fixed to several date card from NetGear Company. The operating range of
parameters which are today, yesterday, previous 7 days this model is up to 500 feet indoors and 1650 feet
and monthly. While in selection mode, the graph is outdoors. The closed area is chosen for this research at
generate regarding to date parameters given by user. this moment. The server is connected to wireless router
to enable the wireless communication between SN and
WS.
V. DATA TRANSMISSION
TABLE 1: TRANSFER RATE OF WIRELESS TECHNOLOGIES
Data from SN is send to server using client-server
programming. The data is sent in string format to the Technology Transfer rate
server for every sensor’s reading. The connection Spike 75.06 / 35.88 kbps
status is always recorded by the client process in a Zigbee 250 kbps
status file as shown in Figure 3. If the network is Bluetooth 768 kbps
broken, the data will be stored in a data-log file at SN. Nanonet 2 000 kbps
The data-log file will be sending to server after the WLAN, IEEE 802.11b 11 000 kbps
network established. WLAN, IEEE 802.11g 22 000 kbps
The server is always listening to the client WLAN, IEEE 802.11 a 54 000 kbps
connection to receive the data. First, it will receive
previous client connection status. If the status received
is ‘0’, the string format data will be received and then VI. RESULT
will be saved in a data-log file. If the status received is
‘-1’ which mean broken status, the server process will The ADC is set up to read all eight analog channels
receive a data-log file from client. using bipolar mode within 5V range. The reading
resolution is calculated as below;

A. Wireless networking ADC resolution = 5/2^(12-1) = 2.44 mV


There are a lot of wireless protocols in current

Figure 4. The reading to check bit error

779
Figure 5. The reading of real value inputs

An analysis of bit error and reading persistence has used to measure several chemical elements in water.
been tested. All channels are given 0V by connecting The sensors were used are Cu2+, Hg+, Cr(VI) and Fe3+
to the SBC ground. Figure 6 show the result from SN ion selective electrodes. The output of these sensors is
that has been taken from sensor process. The average in voltage when the sensors react with reference
of bit error is one step resolution or 0.05%. electrode in medium used. A signal conditioning
circuit is used to buffer the impedance of the sensor
% bit error = 2.44 mV / 5V * 100% = 0.05 % before attaching to SBC.
Two reading is viewed in graph format with two
The reading consistency is also been analyzed. modes which are current reading and selected reading
Channel 0 and channel with even number is given as shown in Figure 6. The current reading includes
+0.5V while all channel with odd number is given - today, yesterday, previous 7 days and monthly date
0.5V. The output of this reading is show on Figure 5. parameters. Figure 7 shows the current reading of
today which retrieved from the database. While in
For testing application, the chalcogenide based selected mode, user can view data for specific date and
potentiometry electrode from Sensor Systems [11] is time as shown in Figure 8.

Figure 6. The data centre page

780
Figure 7. The today reading in current reading mode

Figure 8. The reading of the selected date and time

781
VII. CONCLUSIONS [2] Mooney, D. M. et al., “A PC-Controlled Data Acquisition
System for Transabdominal Recording of Cardiac Activity in
This paper describes a web-based data acquisition the Human Fetus”. ACM Symposium on Applied Computing,
system using 32bit SBC. The system is divided into 1993, pp. 622-626.
two parts, Sensor Node (SN) and Web Server (WS). [3] M. Popa, M. Marcu, and A.S. Popa, “A Microcontroller based
Data Acquisition System with USB Interface”, International
The software development of the system is focus on Conference on Electrical, Electronic and Computer
analog input reading, data transmission and data access Engineering (ICEEC ’04), Cairo, Egypt, 2004, pp. 206-208.
using web page. The sensor reading is reliable and [4] Laymon, C. M., Miyaoka, R. S., Park, B. K., Lewellen, T. K..,
precise. User can access to the data collected which Simplified FPGA-based Data Acquisition System for PET.
IEEE Transaction on Nuclear Science, Volume 50, Issue 5,
viewed in graph format since it is connected with 2003, pp. 1483-1486.
internet. This system can be deployed to monitor river [5] R. Badlishah Ahmad, Wan Muhamad Azmi Mamat, Ahmad
or beach, and large scale such monitoring such as in Nasir Che Rosli, “Advances of Embedded System Application
agriculture and environment fields. It also can be Development: Single Board Computer (SBC) and GNU/Linux
for Robotic Application”, Proceedings of the International
deploy to read any analog sensors such as for sewer or Conference on Underwater System Technology: theory and
septic early warning system. Application, Penang, Malaysia, 2006, pp. 48-52.
[6] A. Perera, R. Gutierrez-Osuna, and S. Marco, “IPNOSE: A
Portable Electronic Nose based on Embedded Technology for
ACKNOWLEDGMENT Intensive Computation and Time Dependent Signal
The authors acknowledge Universiti Malaysia Perlis Processing”, Proceeding of the 8th Intl. Symp. On Olfaction an
(UniMAP) and Ministry of Science, Technology and Electronic Nose, Washington DC, 2001, pp. 120 -124.
[7] Technologic Systems, http://www.embeddedarm.com.
Innovation for providing the Science fund research [8] Dan Hoopes, Tyler Davis, Kelly Norman and Richard Helps,
grant (9005-00004) that enabled the production of this “An Autonomous Mobile Robot Development Platform for
research project. Teaching a Graduate Level Mechatronics Course”, 33rd
ASEE/IEEE Frontiers in Education Conference. Provo, UT,
USA, 2003, pp. F4E-17-F4E22.
REFERENCES [9] MAXIM, http://www.maxim-ic.com.
[1] I. Korotaev, “The PC based Control and Data Acquisition [10] Sakari Junilla and Jarkko Niittylahti, “Wireless Technologies
System of LEPTA”, International Conference on for Data Acquisition Systems”, Proceedings of the 1st
Accelerometer and Large Experimental Physics Control International Symposium on Information and Communication
Systems, Trieste, Italy, 1999, pp. 648-650. Technologies. Dublin, Ireland, 2003, pp. 132-137.
[11] Sensor Systems, http://www.sensorsystems.spb.ru

782

You might also like