Está en la página 1de 5

ISSNIP Biosignals and Biorobotics Conference 2010

Theme: Biosignals and Robotics for Better and Safer Living


Vitoria, Brazil - 4-6 January 2010

Environmental odor perception: an evaluation of a


platform based on LabVIEW and the LEGO NXT
Alejandro R. García Ramírez #1, Andy Blanco Rodríguez *2, Armando O. López López *3, Douglas W. Bertol#4
Alejandro Durán Carrillo de Albornoz*5
#
Departamento de Engenharia de Computação, Universidade do Vale de Itajaí
Rodovia SC 407, Km 4, CEP 88120-000, São José, SC, Brazil
1
ramirez@sj.univali.br
4
dwbertol@gmail.com
*
Laboratorio de Investigaciones en Electrónica del Estado Sólido, Instituto de Ciencia y Tecnología de Materiales,
Universidad de La Habana
Zapata y G S/N, 10400, Vedado, La Habana, Cuba
2
andy@imre.oc.uh.cu
3
mandy@imre.oc.uh.cu
5
duran@imre.oc.uh.cu

Abstract— Environmental pollution, due to the man activity, the environment, is a complex problem because it includes the
has generated an increasing interest in the development of navigation, localization and the robot hardware/software
automated and intelligent systems for monitoring and analyzing control [2], but the design of a custom made electronic nose
environmental variables. In this field, recent applications of (e-nose) [3], [4] as well as a data acquisition system [5], and
mobile robotics systems as well as electronic tongues and
the processing [6], localization [7] and odor recognition
electronic noses, based on an array of non-selective sensors and
artificial intelligence techniques (i.e. pattern recognition tools), algorithms [8]. Research is very promissory in this field, being
should be mentioned. There are known several practical the biology a new discipline to consider [9], [10] and it is
applications in demining tasks, exploring caves or tunnels, rescue focused on improve the sensors response, to obtain a better
missions, drugs detection, toxic gas, explosive and human performance extracting the main features from the signals [11]
detection and monitoring waters and air; as well as in as well as developing new bio-inspired algorithms which also
biotechnology, dairy, and food industries, among others. Also, it improve the odor localization task [12]. This comprises the
is reported a great variety of mobile robotic hardware/software use of computational fluid dynamics (CFD) tools [13], the
platforms that has been studied by researchers nowadays. In this development of a robot architecture with its control algorithms
work it is proposed an studied a mobile robotic architecture, for
[14], [15] and also the simulation techniques [16]. Kowadlo
odor detection, based on LabVIEW and the commercial LEGO
platform. So, it describes different concepts, the principal and Russell [17] review the state of the art in this topic.
methods and tools, as well as hardware features and software There are reported different hardware/software platforms
algorithms commonly employed for the detection and for implementing mobile robots at universities and research
localization of odors which supports the proposed architecture. centers. These platforms can be divided into commercial or
custom made robotics systems. Custom made robots are
I. INTRODUCTION frequently microcontroller-based and the mechanical elements
It is well known that the man, by means of his senses, and are designed and assembled by the user [18]. Commercial
usually helped by animals like dogs, performs the detection of robots can be also divided in domestic i.e. AIBO and LEGO
several chemical substances i.e. explosives, butane gas leaks, RCX [19] or research robots like the Pioneer [20], Khepera
fire smokes, etc. This is a complex task which, in some [21] or Koala [22] (www.k-team.com/). In general,
applications, could involve certain risks also when the time of commercial robots are used to be closed platforms with
detection constitutes a variable of interest i.e. localization of proprietary hardware/software resources. Recently there is a
people in catastrophic situations; when there is necessary long trend to use the so called “development robotic platforms”
periods of exposure (drug detection in airports) or when it is (hardware independent) and to migrate towards non-
impossible the man exposure as in source fire detection or propietary software like the Linux-based Player/Stage/Gazebo.
toxic gas leaks in tunnels. In this point, mobile robotics is In this paper was proposed and validated some functional
being considered an interesting tool for helping man, saving features of a mobile robot architecture which is designed to
time, improving human security and a better performance [1]. performs an odor localization task. The robot is based on the
The development of robots is faster comparing to animals, LEGO NXT platform [23] and it also comprises two ethanol
robots cost lower, they can work for a long period of time, sensors. The LEGO NXT offers some flexibility, but limited,
don´t suffer fatigue and they can move in risky or toxic areas. over its antecessor RCX and other closed platforms
The development of a mobile robotic system, which concerning the mechanical project. It also allows the direct
performs the localization or detection of toxic substances in connection of sensors from other manufacturers and it is also

209
ISSNIP Biosignals and Biorobotics Conference 2010
Theme: Biosignals and Robotics for Better and Safer Living
Vitoria, Brazil - 4-6 January 2010

versatile during programming, which is very useful during the B. Software


experimental research. Different operating systems like Linux Different development environments were previously
or Windows; programming languages i.e. Java, C, G, mentioned though LabVIEW Toolkit for LEGO
assembler and application programs (LabVIEW, Robolab, MINDSTORMS NXT (National Instruments) was used for
Matlab) can be used during programming and simulation programming and validating the application results, i.e.
stages. In 2006 the LEGO group released as open source the ethanol sensors reading and robot movement toward the odor
firmware of the LEGO® MINDSTORMS® microprocessor as source.
well as the Software, Hardware and Bluetooth Developer Kits.
This proposal makes use of the proper NXT 1) LabVIEW interface: The LabVIEW software
hardware/software (ARM7/LabVIEW) resources during the development environment allows implementing the so called
sensor conditioning, signal acquisition and processing stages VI (virtual instrument): a kind of software-based instrument
without the need of external circuits or processing boards. supported by the PC hardware or by different devices or even
This paper comprises six different sections. Section 1 instruments connected via serial, USB, Bluetooth, PCI or
addressed the odor source localization problem. Section 2 other hardware PC link interfaces. So the whole PC resources
includes a description of the hardware and software resources could be used i.e. keyboard, mouse, communication ports,
which supports the proposed architecture for odor detection. display, network and Internet resources, processing
The section 3 presents the robot design and the simple Virtual capabilities, etc. At the same time a custom made instrument
Instrument developed using LabVIEW. In section 4 are with flexible architecture (software-based), reusability,
discussed the experimental results obtained through two modularity, and lower maintenance and development costs
different experiments performed and in Section 5 are comparing to traditional hardware-based instruments is
presented the conclusions of this work and the future research. achieved.
At the last section, the bibliographic references are listed. 2) NXT Toolkit: The Toolkit for LEGO MINDSTORMS
NXT is compatible with LabVIEW version 7.1 or higher. It
II. HARDWARE
allows programming and controlling the NXT from the
This work proposes the design of a LEGO NXT and LabVIEW environment, acquiring the signals on real time
LabVIEW-based mobile e-nose for odor detection (ethanol) in from sensors and motors via USB/Bluetooth connection and
a laboratory environment. displaying they on the screen, to reutilize and design new
A. LEGO NXT blocks (VIs) with new sensors or actuators, expanding the
system capability. This Toolkit presents two different toolset
In 2006 the LEGO group put on the market the LEGO or operation modes: NXT Toolkit and Direct Commands. The
Mindstorms NXT Robotic Kit. This set improves its RCX first one includes controls, indicators and functions which
previous version, still in use, allowing more complex allow programming the NXT from LabVIEW. In this mode
structures, designs and behaviors for robots and also useful in the program is compiled and downloaded to the NXT for its
sciences, technology, computing and engineering learning execution. It is also possible to send or receive data from the
[24]. The new NXT is based on the ARM-32-bit processor PC (VI in execution) which is useful during debugging or
AT91SAM7S256 and the ATMEGA48 co-processor. It also testing the application software running on the NXT. The
comprises four inputs and three outputs ports as well as USB second operation mode allows programming and also running
and Bluetooth communication with the PC, as it is depicted in the software in the PC under the LabVIEW environment, so
Figure 1 (The LEGO group) [25]. there are available the whole LabVIEW functions and its
programming resources (for developing more complex
projects), including the USB/Bluetooth connection too.

III. EXPERIMENTAL SET-UP


The robot architecture is based in a simple vehicle; it is
built using plastic LEGO blocks. Just two commercial ethanol
sensors were added (bilateral) to a known mobile robot design,
called TriBot, to carry out the application. It is also possible
to connect the optical and ultrasonic sensors from LEGO
manufacturer for obstacle avoidance, for example.
A. Sensors and actuators
The NXT input ports (1-4) allow connecting several digital
and analogue sensors. In this proposal two resistive ethanol
sensors, TGS2620, SnO2 based, from
(http://www.figaro.co.jp/) were employed. Figure 2 depicts
Fig. 1. NXT hardware block diagram
the gas sensor conditioning circuit. Sensor pins, 1 and 4,
supply a D.C. voltage level (VH=+5V / 40mA) to the filament

210
ISSNIP Biosignals and Biorobotics Conference 2010
Theme: Biosignals and Robotics for Better and Safer Living
Vitoria, Brazil - 4-6 January 2010

heater, necessary to carry out the physical transduction. The B. The Robot
sensor acts like a variable resistor, Rs, depending on the The robot architecture (TriBot) is based on a two motor
ethanol concentration. This resistance variation is converted differential drive and a resting passive wheel, Figure 4. In this
into a voltage signal by a simple voltage divider attached to paper the control algorithm for the odor localization task is
the NXT analogue inputs 1-2, through the NXT internal based on the LEGO [26].
resistors R=10KΩ (connected to +5V), as it is depicted in
Figure 3. The NXT inputs 3 and 4 were reserved for
connecting the ultrasonic and optical sensors.
The output signal voltage at resistor RS corresponds to an
ethanol vapor concentration level.

Fig. 4. Robot picture and ethanol sensors

C. Programming
The control software was implemented by using the
Fig. 2. Gas sensor, TGS2620, conditioning circuit LabVIEW 7.1 platform via NXT Toolkit functions, which
The NXT output interface includes PWM as well as built-in support sensor data acquisition and motors control. Figure 5
rotation sensors for localization tasks by using odometry. Two depicts a Braitenberg vehicle program for acquiring signals
NXT D.C. motors were connected to the output ports 1 and 3, from the gas sensors. The code was downloaded and executed
via output interface, so control commands and encoders on the Lego NXT.
information can be sent and acquire, respectively, without
using any additional hardware.

Fig. 5. A Braitenberg vehicle program using LabVIEW

This code reads, converts and displays (via debugging


mode), the gas sensory raw data to power, previously scaled.
Fig. 3. Hardware schematics Then, the motors run for an specified amount of time.
It means that the concentration value moves the robot,
The motor power consumption, according to the LEGO which turns in the direction of the higher concentration level
manufacturer, could reach 340 mA without load and 3A with of ethanol. Also if both sensors readings are equal (into
the motor loaded. A test were performed using six Lithium certain limits) the robot moves forward.
batteries for energizing two motors to the maximal speed and
then changing the rotation sense after five seconds. In that test IV. RESULTS
the battery charge remains about one hour. Considering the
Preliminary test were carried out to validate the acquisition
sensors power consumption (40 mA each) is it possible to
system. Figure 6 depicts the temporal profile corresponding to
carry out the experimental works within one hour. Longer
a sequence presenting ethanol vapor at a distance of 20 cm to
working time could be achieved using the rechargeable LEGO
the sensors. Following the graphs on the VI front panel it can
NXT battery.
be noted that the sample is first presented to the left sensor

211
ISSNIP Biosignals and Biorobotics Conference 2010
Theme: Biosignals and Robotics for Better and Safer Living
Vitoria, Brazil - 4-6 January 2010

(SENSOR 2), then to the right sensor (SENSOR 1) and at last


it is presented in front of the robot, almost at the same
distance from both sensors. It can be observed that the voltage
signal decrease when the ethanol vapor is detected.

Fig. 7. E Set-up for the odor tracking test


Fig. 6. Temporal profile corresponding to a sequence presenting ethanol
vapor to the sensors In this case the vehicle exhibited a bad performance, as can
be concluded from the results showed in Table 1.
Two different experiments were carried out, as discussed in TABLE I
the next subsections. ODOR TRACKING TEST RESULTS

Number of Reaching Goal best Goal worst


A. Reactive behavior test
Test the goal time (s) time (s)
When the program started, the vehicle moved slowly on performed (+/-4 cm)
the floor, because there was a power value even in absence of 15 6 (40%) 17 28
the analite (i.e.: air atmosphere.). When a plastic pot
containing ethanol was presented to each sensor in an The vehicle turns slightly to right even when it is not
alternated sequence, 2 cm away, the vehicle turned in exposed to the ethanol stimuli due to the difference in the
response. Also, a turning delay was observed due to the gas amplitude responses between both sensors. In order to
sensor slow response, which is related to the recovering time improve this performance it would be possible to compensate
of the sensors. The delay will be increased if the sample is the sensor responses applying some reported methods (i.e.
presented when the previous turning is not finished. Once the normalization, baseline correction, etc.). Also the adequate
recovering time had elapsed, when the sensors were receiving processing of the signals could be accomplished by using i.e.
the same stimuli or in absence of it, the vehicle moved straight transient responses analysis, Wavelet or Fourier transforms
forward. The experiment showed a slight difference in the and would be also recommendable to apply more complex
signal amplitudes and recovering times (order of seconds) robot control algorithms.
between both sensors, which also disturb the vehicle LabVIEW environment offers several advantages
performance. The effectiveness percent for 50 tests was 98 %, (processing tools, displaying data, control functions, etc.)
so, it can be concluded that our proposed vehicle reacts and when Direct Command functions are employed, but this set
turns in response to the gas stimulus according to the offers a limited number functions for sensing and controlling
Braitenberg principle. the NXT motors. On the other hand, the LEGO Toolkit
B. Odor tracking test comprises several functions in order to control the motors and
sensing but the processing tools are only a limited subset of
As it is depicted on Figure 7, the Braitenberg vehicle was LabVIEW resources.
placed on the shorter side of a table (117 x 73 cm) and a
plastic pot containing ethanol was place at 88 cm away of it. V. CONCLUSIONS
A straight line (goal line) was drawn perpendicularly to the Odor detection represents a serious challenge in mobile
shorter side of the table, passing through the plastic pot and robotics and its research and development have important
two fans were located 5 cm behind the pot. Once the fans human and social applications. This research, even when it
were powered, the pot was shaken and 10 seconds later the was used a non research platform like LEGO NXT, confirms
program started. The time the vehicle spends to reach the goal different problems related to the task of odor localization, also
line and the sensors reading was registered. The system was common to research robotic platforms: gas sensor and
refreshed between the experiments by removing the pot for 1 conditioning circuits selection, navigation algorithms as well
minute. as the robotic architecture employed in this application.
In this work, on the first stage, it was presented and
validated a LEGO NXT and LabVIEW-based robotic

212
ISSNIP Biosignals and Biorobotics Conference 2010
Theme: Biosignals and Robotics for Better and Safer Living
Vitoria, Brazil - 4-6 January 2010

architecture, also comprising two ethanol commercial MOS using gas sensors and anemometric sensors,” Sensors and Actuators A,
vol. 45(2), pp. 153–157, 1994.
gas sensors for an odor detection task. The robot was
[6] D. Compton, “Application of an Olfactory Data-Preprocessing
constructed using LEGO pieces, implementing a simple Algorithm to Chemotactic Robotic Navigation,” Journal of Young
Braitenberg vehicle, and the software control is a VI Investigators, [Online]. Available:
programmed under LabVIEW platform, which supports http://www.jyi.org/research/re.php?id=1564, vol. 19(2), July 2008.
[7] A. T. Hayes, A. Martinoli and R. M. Goodman, “Distribution Odor
LEGO NXT commands.
Source Localization,” IEEE Sensors Journal, vol. 2(3), pp. 260—271,
The presented results confirm the LEGO NXT as a viable June 2002.
platform to research in mobile robotic for odor detection in a [8] R. L. Stewart, R. A. Russell and L. Kleeman, “Recognition and
laboratory environment, but some limitations should be keep Discrimination of Ethanol and Methanol Odour with Applications for
Robotic Swarm Control,” Monash University, Victoria, Australia,
in mind: limited resolution of the internal ADC (10 bits) for
Academic Research Forum of the Department of Electrical And
low concentration vapor levels, nonlinearity introduced by the Computer Systems Engineering, Feb. 2003.
conditioning voltage divider circuit, because the gas sensor is [9] W. J. Bell and T. R. Tobin, “Chemo-orientation,” Biological Reviews
connected directly to NXT input pins, the cost (about 300 of the Cambridge Philosophical Society, vol. 57, pp. 219–260, 1982
[10] N. Vickers, “Mechanisms of animal navigation in odor plumes,”
Euros) and also the LEGO fragility which limits its use in the
Biological Bulletin, vol. 198, pp. 203–212, 2000.
field under real conditions (ground, moisture, temperature, [11] R. Gutierrez, “Pattern Analysis for Machine Olfaction: A Review,”
etc). However, LEGO NXT offers several advantages due to IEEE Sensor Journal, vol. 2(3), pp. 189-202, 2002.
the power of its computing ARM7 microprocessor: open [12] T. Lochmatter and A. Martinoli, “A. Theoretical Analysis of Three
Bio-Inspired Plume Tracking Algorithms,” in Proc. IEEE International
source hardware and software firmware, the possibility to
Conference on Robotics and Automation, Kobe, Japan, May 12-17,
expand the system connecting new sensors and actuators and 2009.
also their integration with LabVIEW software which allows [13] J.A. Farrell, J. J. Murlis, X. Long, W. Li, and R. T. Cardé, “Filament-
(by default) multitask programming for robotics, visualization, Based Atmospheric Dispersion Model to Achieve Short Time-Scale
Structure of Odor Plumes,” Environmental Fluid Mechanics, vol. 2, pp.
processing and offers powerful debugging tools. So, the latter
143–169, 2002.
make LEGO NXT and LabVIEW scalable to professional [14] V. M. Oliveira, E. R. Pieri and W. F. Lages, “Wheeled Mobile Robot
robotic studies. Control Using Sliding Modes and Neural Networks,” Learning and
Future works will consider improving and linearizing the Nonlinear Models, vol. 2, pp. 1-18, 2003.
[15] N. A. Martins, D. W. Bertol, W. C. Lombardi, E. R. Pieri and E. B.
sensors responses, to add more complex control techniques
Castelan, “Trajectory Tracking of a Nonholonomic Mobile Robot with
exploiting the ARM7 resources, implement complex Parametric and Nonparametric Uncertainties: A Proposed Neural
navigation tasks as well as obstacle avoidance algorithms. Control,” International Journal of Factory Automation. Robotics and
MatLab/ Simulink and the Player/Stage open source platform Soft Computing, vol. 2, pp. 103-110, 2008.
[16] Z. Liu and T-F. Lu, “A Simulation Framework for Plume-Tracing
will be also other choices to explore for simulation and
Research,” in Proc. Australasian Conference on Robotics and
implementation using the LEGO NXT. Automation, Canberra, Australia, Dec. 3 - 5, 2008.
[17] G. Kowadlo, and R. A. Russell, “Robot Odor Localization: A
ACKNOWLEDGMENT Taxonomy and Survey,” The International Journal of Robotics
Research, vol. 27, pp. 869-894, 2008.
This work was supported in part by the “Red Piloto de [18] Meng, Q., Li, F., Sun, J., Bai, S. e Zeng, M. (2009). Multi-Robot
Cooperación Universitaria mediante Red multidisciplinaria Based Odor Source Localization. RAS Newsletter – University of
con ámbito regional” (08CAP2.0655) and the “Universidad de Waterloo, Issue 7, January.
Alcalá de Henares” (Spain) for the support information, stay [19] B. Webb, “Robots, crickets and ants: models of neural control of
chemotaxis and phonotaxis,” Neural Networks 11(7-8), pp. 1479-1496,
and training resources put at the disposal of the authors. We 1998.
also thank the “Proyecto CAPES-MES 069/09 (Brazil): [20] (2009) The mobile robots website. [Online]. Available:
Desarrollo de plataforma de robótica móvil y narices http://www.activrobots.com/robots.html.
electrónicas para la detección de sustancias en el medio [21] T. Lochmatter, N. Heiniger, N. and A. Martinoli, “Localizing an odor
source and avoiding obstacles: Experiments in a wind tunnel using real
ambiente”, Mr. Raúl Coyula and Mss. Liliam Becherán. Our robots,” Proc. of the 13th International Symposium on Olfaction and
acknowledgments to Mr. Edson Roberto De Pieri and to the Electronic Nose, Brescia, Italy, April 15-17, 2009.
Departamento de Automação e Sistemas, at Universidade [22] D. Martinez, O. Rochel, and E. Hugues, “A biomimetic robot for
Federal de Santa Catarina, by the support. tracking specific odors in turbulent plumes,” Autonomous Robot.
Special Issue on Mobile Robot Olfaction, vol. 20(3), pp. 185-195, 2006.
[23] (2009) LEGO Mindstorm website. [Online]. Available:
REFERENCES http://mindstorms.lego.com/
[1] H. Ishida, T. Nakamoto, T. Moriizumi, T. Kinas and J. Janata, “Plume- [24] B. Bagnall, Maximum LEGO NXT: Building Robots with Java Brains.
Tracking Robots: A New Application of Chemical Sensors,” Ed. Variant Press, 2007.
Biological Bulletin, vol. 200, pp. 222-226, April 2001. [25] The LEGO Group. (2006) “LEGO Mindstorm NXT Hardware
[2] J. Borenstein, H. R. Everett and L. Feng, Where am I? Sensors and Developer Kit”, [Online]. Available:
Methods for Mobile Robot Positioning, J. Borenstein, Ed. The http://mindstorms.lego.com/Overview/nxtreme.aspx pp. 1-25, 2006.
University of Michigan, 1996. [26] V. Braitenberg, (1984). Vehicles: Experiments in Synthetic Psychology.
[3] K. Arshak, E. Moore, G.M. Lyons, J. Harris and S. Clifford, “A review Boston, MA, Ed. The MIT Press, 1984.
of gas sensors employed in electronic nose applications,” Sensor
Review, vol. 24(2), pp. 181-198, 2004.
[4] L. Marques, A. Almeida, “Mobile robots olfaction,” Autonomous
Robot, vol. 20, pp. 183-184, April 2006.
[5] H. Ishida, K. Suetsugu, T. Nakamoto and T. Moriizumi, “Study of
autonomous mobile sensing system for localization of odor source

213

También podría gustarte