Instant ebooks textbook Beginning Sensor Networks with XBee, Raspberry Pi, and Arduino: Sensing the World with Python and MicroPython 2nd Edition Charles Bell download all chapters
Instant ebooks textbook Beginning Sensor Networks with XBee, Raspberry Pi, and Arduino: Sensing the World with Python and MicroPython 2nd Edition Charles Bell download all chapters
com
https://textbookfull.com/product/beginning-sensor-networks-
with-xbee-raspberry-pi-and-arduino-sensing-the-world-with-
python-and-micropython-2nd-edition-charles-bell/
OR CLICK BUTTON
DOWNLOAD NOW
https://textbookfull.com/product/beginning-robotics-with-raspberry-pi-
and-arduino-using-python-and-opencv-2nd-edition-jeff-cicolani/
textboxfull.com
https://textbookfull.com/product/beginning-robotics-with-raspberry-pi-
and-arduino-using-python-and-opencv-2nd-edition-jeff-cicolani-2/
textboxfull.com
https://textbookfull.com/product/beginning-robotics-with-raspberry-pi-
and-arduino-using-python-and-opencv-jeff-cicolani/
textboxfull.com
https://textbookfull.com/product/biota-grow-2c-gather-2c-cook-loucas/
textboxfull.com
Raspberry Pi Home Automation with Arduino 2nd Edition
Andrew K. Dennis
https://textbookfull.com/product/raspberry-pi-home-automation-with-
arduino-2nd-edition-andrew-k-dennis/
textboxfull.com
https://textbookfull.com/product/hacking-electronics-learning-
electronics-with-arduino-and-raspberry-pi-2nd-edition-simon-monk/
textboxfull.com
https://textbookfull.com/product/get-started-with-micropython-on-
raspberry-pi-pico-1st-edition-gareth-halfacree/
textboxfull.com
https://textbookfull.com/product/action-movement-light-and-sound-with-
arduino-and-raspberry-pi-first-edition-monk/
textboxfull.com
https://textbookfull.com/product/internet-of-things-with-raspberry-pi-
and-arduino-first-edition-edition-rajesh-singh/
textboxfull.com
TECHNOLOGY IN AC TION™
Beginning Sensor
Networks with
XBee, Raspberry Pi,
and Arduino
Sensing the World with Python
and MicroPython
—
Second Edition
—
Charles Bell
Beginning Sensor
Networks with XBee,
Raspberry Pi, and
Arduino
Sensing the World with Python
and MicroPython
Second Edition
Charles Bell
Beginning Sensor Networks with XBee, Raspberry Pi, and Arduino:
Sensing the World with Python and MicroPython
Charles Bell
Warsaw, VA, USA
v
Table of Contents
vi
Table of Contents
vii
Table of Contents
viii
Table of Contents
ix
Table of Contents
Arduino Tutorial�������������������������������������������������������������������������������������������������288
Learning Resources�������������������������������������������������������������������������������������289
The Arduino IDE�������������������������������������������������������������������������������������������290
Project: Hardware “Hello, World!”����������������������������������������������������������������294
Hosting Sensors with Arduino���������������������������������������������������������������������������300
Project: Building an Arduino Temperature Sensor���������������������������������������������302
Hardware Setup�������������������������������������������������������������������������������������������302
Software Setup��������������������������������������������������������������������������������������������304
Writing the Sketch���������������������������������������������������������������������������������������306
Test Execution���������������������������������������������������������������������������������������������310
Project: Using an Arduino As a Data Collector for XBee Sensor Nodes�������������312
XBee Sensor Node���������������������������������������������������������������������������������������312
Coordinator Node�����������������������������������������������������������������������������������������313
Arduino with XBee Shield����������������������������������������������������������������������������314
Testing the Final Project������������������������������������������������������������������������������326
For More Fun�����������������������������������������������������������������������������������������������328
Component Shopping List���������������������������������������������������������������������������������328
Summary����������������������������������������������������������������������������������������������������������331
x
Table of Contents
xi
Table of Contents
xii
Table of Contents
xiii
Table of Contents
Appendix�������������������������������������������������������������������������������������������683
Consolidated Shopping Lists�����������������������������������������������������������������������������683
Alternative Connection Systems�����������������������������������������������������������������������691
Grove�����������������������������������������������������������������������������������������������������������������691
Qwiic�����������������������������������������������������������������������������������������������������������������695
STEMMA QT������������������������������������������������������������������������������������������������������700
Summary����������������������������������������������������������������������������������������������������������701
Index�������������������������������������������������������������������������������������������������703
xiv
About the Author
Charles Bell conducts research in emerging
technologies. He is a principal software
developer of the Oracle MySQL Development
team. He lives in a small town in rural Virginia
with his loving wife. He received his Doctor
of Philosophy in Engineering from Virginia
Commonwealth University in 2005.
Dr. Bell is an expert in the database field
and has extensive knowledge and experience in
software development and systems engineering.
His research interests include microcontrollers, three-dimensional printing,
database systems, software engineering, and sensor networks. He spends his
limited free time as a practicing maker focusing on microcontroller projects
and refinement of three-dimensional printers.
xv
About the Technical Reviewer
Sai Yamanoor is an embedded systems engineer working for an industrial
gases company in Buffalo, NY. His interests, deeply rooted in DIY and
open source hardware, include developing gadgets that aid behavior
modification. He has published two books with his brother, and in his
spare time, he likes to contribute to build things that improve quality of
life. You can find his project portfolio at http://saiyamanoor.com.
xvii
Acknowledgments
I would like to thank all of the many talented and energetic professionals
at Apress. I appreciate the understanding and patience of my managing
editor, Natalie Pao; coordinating editor, Jessica Vakili; and development
editor, James Markham. Each was instrumental in the success of this
project. I appreciate their encouragement and guidance as well as patience
in dealing with my many questions. I would also like to thank the small
army of publishing professionals at Apress for making me look so good in
print. Thank you all very much!
I’d like to especially thank the technical reviewer, Sai Yamanoor, for
his patience, insight, and impressive attention to detail. Most importantly,
I want to thank my wife, Annette, for her unending patience and
understanding during the many hours I spent hunched over my laptop or
conducting science experiments on the dining table.
xix
Introduction
The world of microcontrollers and increasingly capable and popular small
computing platforms is enabling many more people to learn, experience,
and complete projects that would previously have required dedicated (and
expensive) hardware. Rather than purchase a commercial or made-for-
consumers kit, enterprising developers can now build their own solutions
to meet their needs. Sensor networks are just one example of how these
small, powerful, and inexpensive components have made it possible for
anyone with a moderate skill set to build their own sensor network.
This book presents a beginner’s guide to sensor networks. I cover topics
including what types of sensors exist, how they communicate their values
(observations or events), how they can be used in Arduino and Raspberry Pi
projects, and how to build your own home temperature sensor network.
I also include an introduction to the MySQL database server and how
you can connect to, store, and retrieve data. Why, I even show you how to
do it directly from an Arduino!
Better still, this edition has been updated to include updated tools
and software, project examples, as well as the latest use and programming
of the XBee 3 modules. Yes, we’re writing code to control them in
MicroPython. There’s an entire chapter dedicated to MicroPython as well
as extended coverage of the XBee platform.
xxi
Introduction
Strategies
I have tried to construct the projects so that the majority of readers can
accomplish them with little difficulty. If you encounter topics that you are
very familiar with, I recommend working through the projects anyway
instead of simply reading or skipping through the instructions. This is
because some of the later projects build on the earlier projects.
xxii
Introduction
On the other hand, if you encounter topics that you are unfamiliar
with, I recommend reading through the chapter or section completely at
least once before attempting the project. Take some time to fully absorb
the material, and pay particular attention to the numerous links, tips, and
cautionary portions. Some of those are pure gold for beginners.
Perhaps the most significant advice I can offer when approaching the
projects is to attempt them one at a time. By completing the projects one
at a time, you gain knowledge that you can build on for future projects.
It also helps you establish a pace to work through the book. Although
some accomplished readers can probably complete all the projects in a
weekend, I recommend working through the book at a pace best suited for
your availability (and enjoyment).
With some exceptions, the earlier chapters are independent and can be
tackled in any order. This is especially true for the Raspberry Pi (Chapter 5)
and Arduino (Chapter 6) chapters. Regardless, it is a good idea to read the
book and work on the projects in order.
xxiii
Introduction
The lists include the name of each component and at least one link
to an online vendor that stocks the component. In addition, I include the
quantity needed for the chapter and an estimated cost. If you add up all
the components needed and sum the estimated cost, the total may be a
significant investment for some readers.
The following sections are for anyone looking to save a little on the cost
of completing the projects in this book or wanting to build up their own
inventory of sensor network hardware on a budget.
Online Auctions
One possible way to save money is to buy your components at a discount
on online auction sites. In many cases, the components are the very same
ones listed. In other cases, the components may be from vendors that
specialize in making less expensive alternatives. I have had a lot of success
in buying quality hardware from online auction sites (namely, eBay).
xxiv
Introduction
If you are not in a hurry and have time to wait for auctions to close
and the subsequent shipping times, you can sometimes find major
components like Arduinos, shields, power supplies, and the like at a
reduced price by bidding for them. For example, open source hardware
manufacturers sometimes offer their products via auctions or at special
pricing for quantities. I have found a number of Arduino clones and
shields at nearly half the cost of the same boards found on other sites or in
electronics stores.
The projects in this book are designed for a current, readily available
version of the Arduino as well as the most recently retired boards. The
projects can be completed with the Uno or Mega 2560 boards without
modification. Although you can use the Leonardo (see specific notes in the
chapters about the differences), you should consider the newer boards
carefully before buying.
1
nd replace the components you implode, explode, or otherwise turn into silicon
A
slag. Hey, it happens.
xxv
Introduction
D
ownloading the Code
The code for the examples shown in this book is available on the Apress
website, www.apress.com. A link can be found on the book’s information
page under the Source Code/Downloads tab. This tab is located
underneath the Related Titles section of the page.
R
eporting Errata
Should you find a mistake in this book, please report it through the Errata
tab on the book’s page at www.apress.com. You will find any previously
confirmed errata in the same place.
xxvi
CHAPTER 1
Introduction
to Sensor Networks
Sensor networks are no longer expensive industrial constructs. You can
build a simple sensor network from easily procured, low-cost hardware.
All you need are some simple sensors and a microcontroller or computer
with input/output capabilities. Yes, your Arduino and Raspberry Pi are
ideal platforms for building sensor networks. If you’ve worked with either
platform and have ever wanted to monitor your garden pond, track
movement in your home or office, monitor the temperature in your house,
monitor the environment, or even build a low-cost security system, you’re
halfway there!
As inviting and easy as that sounds, don’t start warming up the
soldering iron just yet. There are a lot of things you need to know about
sensor networks. It’s not quite as simple as plugging things together and
turning them on. If you want to build a reliable and informative sensor
network, you need to know how such networks are constructed.
In addition, you may have heard of something called the Internet of
Things (IoT). This phrase refers to the use of devices that can communicate
over a network (local or Internet). IoT devices are therefore network-aware
devices that can send data to other resources, thereby virtualizing the
effects of the devices on users and their experience. Sensor networks play
a prominent role in the IoT. What you will learn in this book will provide a
firm foundation for building IoT solutions using sensor networks.
If you want to know more about IoT in general, several books have
been written on the topic, including the following. If you’re interested in
learning more about the IoT and how sensor networks are used, check out
some of these titles:
• Building Internet of Things with the Arduino by
Charalampos Doukas (CreateSpace Independent
Publishing Platform, 2012)
2
Chapter 1 Introduction to Sensor Networks
A
utomotive
Almost every modern automobile has a network of sophisticated sensors
that monitor the performance of the engine and its subsystems. Some
cars have additional sensors for monitoring external air temperature, tire
pressure, and even proximity to objects and other vehicles. Newer vehicles
have a host of safety mechanisms including lane departure, obstacle
avoidance, auto braking, and more.1
If you take a late-model car in for service and get a chance to look in
the garage area, you may notice several machines that resemble computer
terminals, tablet computers, or in some cases an iPad. These systems
are diagnostic machines designed to connect to your car and read all the
data the sensors and computer have stored. Some manufacturers use the
industry standard interface called onboard diagnostics (OBD).2 There are
several versions of this interface and its protocols; most dealerships have
equipment that supports all the latest protocols.
1
I nterestingly, I have heard a few motorists who despise some of these features
because their driving habits place the vehicle more to one side of the road
or another, which triggers the lane departure warning. Similarly, those that
habitually cross the center line when driving on curving roads tend to turn off
the departure warning. Clearly one of these is an understandable annoyance,
whereas the other is exactly why the feature is needed.
2
http://en.wikipedia.org/wiki/On-board_diagnostics
3
Chapter 1 Introduction to Sensor Networks
4
Chapter 1 Introduction to Sensor Networks
Notice the level of detail displayed. The image shows three metrics in
the trace, but if you look at the top of the screen, you will see many more
metrics that can be monitored. The data shown in the graph was gathered
in real time and displayed using the sophisticated sensor networks Porsche
employs.
The use of sensors in automobiles has begun to spill over into related
machinery such as motorcycles, boats, and even the venerable farm
tractor. Many modern farm machines such as combines have sophisticated
sensors that enable amazing capabilities such as auto header height, auto
pilot, and more.
For example, modern combines can be purchased with a suite of GPS-
based tools that permit the operator to plot the boundaries of the harvest
field and calculate the best paths for minimal time and maximum harvest.
In the case where the harvest field is very large, the operator can practically
5
Chapter 1 Introduction to Sensor Networks
take a nap while the combine does the work.3 This is a far cry from older
combines that required manual adjustment of the header.
E nvironment
The environment is on many peoples’ minds, and many scientists are
actively monitoring it. Motives for monitoring the environment range
from checking a specific area or room for gases and tracking the area’s
temperature and humidity to monitoring and reporting anomalies
for sensitive equipment, such as running chemical analyses for clean
rooms. Examples of environment sensor networks include those used
to monitor air pollution, detect and track forest fires, detect landslides,
provide earthquake early warnings, and provide industrial and structural
monitoring.
Sensor networks are ideal for all forms of environmental monitoring.
Due to the sensors’ small size, low energy requirements, and low cost, they
can be easily installed at specific locations or on specific machines for
precise reporting. For example, a clean-room environment often requires
very precise temperature and humidity control as well as extremely
low levels of contaminants (loose particles floating in the air). Sensors
can be used to measure these observations at key locations (windows,
doors, air vents, and so on); the data is sent to a computer that records
it and generates threshold alerts. Most sophisticated clean rooms tie the
filtration, heat, and cooling systems into the same computer system (using
their own sensors) to control the environment based on the data collected
from the sensor network.
3
I t may be hard to imagine a 46,000-pound plus machine that resembles a
medieval torture device or a serial killer’s weapon being driven by a computer,
but it’s true. Some of the most expensive combines have more sophisticated
technology than your favorite sports sedan including air conditioning, cruise
control, and fully adjustable seats.
6
Another Random Scribd Document
with Unrelated Content
szeretettel tudakozódott hát napi munkája előtt: – Hogy vagy, kis
galambom? – de ezen kivül hagyta őt valóságos vadgalambnak.
Többször pedig a nagytiszteletü asszony már nem lephette meg,
mert az ő egyszerü, türő, szerető lelkét egészen odaadta kicsi kis
leányának, kinek bölcsője az ő koporsójának örök mozdulatlansága
mellett kezdett ringani. A professzor urat a dolgok e szomorú
változása mélyen megillette. Ebédjénél és vacsorájánál hosszu időn
keresztül némán ült és el-elmerengett Seneca vigasztaló igéin. –
Boldog ő, ki mindazokat már ismeri! – mondogatá magában a római
bölcscsel néma elmélkedései végén és a gyászfátyolt, melyet Örzse
asszony varrott kalapjára, évek során át ottfeledte.
A család e szerint tulajdonképen csak három tagból állott: a
professzorból, Mátyásból és Mariból. Negyediknek szokta számítani
magát Örzse asszony, ki úgy tudott a bibliához, akár csak egy pap,
és nagy tudományán kivül álmokat is látott, mint Jákob Hárán városa
alatt. Ide tartoztak még némileg azok a tanuló ifjak, kiket szülőik a
messzehirü paedagogus keze alá adtak szállásra, hogy faragjon
belőlük embereket. Ezek palotája a mályvarózsákkal körülültetett
kerti ház volt, honnan az urfiak nappal rendesen a kapun, éjjelenkint
pedig a kerítésen keresztül távoztak.
II. FEJEZET.
A bimbó fakad.
A kis Mari nőtt, nőtt, mint az ilyen anyátlan árvák szoktak, kiket
mosolytalanul öltöztetnek, egész nap magukra hagynak és
parancsszóra este megimádkoztatnak. Ki ne látott volna akárhányat
közülök? Hajuk borzas, fésüt ritkán lát, ruhájuk ráncza mindig le van
szakadva, czipőjük gyakran lyukas, nagyok elől a sutba bujnak,
gyermekek közt ők a legvakmerőbbek. Épen ilyen volt Mari. Több
dolgot adott Örzse asszonynak, mint az egész ház. A prédikátori
könyvet minduntalan félre kellett tennie a pápaszemmel együtt és
kitekinteni, vajjon nem törte-e még ki nyakát a kis borzas galamb.
Hasztalan rémítgette az Elizeust csufoló betheli rossz gyermekek
szörnyü sorsával, hiába emlegette a szorgalmas Márta csábító
példáját; az akaratos, vidám, féktelen kis madár csak akkor fogadott
szót az anyókának, mikor neki tetszett. Pedig ritkán tetszett. Örzse
asszony különösen nagy megbotránykozással vette észre, hogy
Marinak sem a doktorék Terkája, sem a vörös boltos Régije nem
kellenek, hanem mindig a fiuk között szaladgál, a kiknek csontja
pedig oly gonosz, a milyen csak valaha Rubené, Simeoné és
testvéreiké lehetett. Olyan éhesek a pénzre, hogy bizonyára ők is
eladnák Józsefet. A fönnebb említett kisasszonyokat, merev szemü,
sipogó, buta bábuikkal és kotyvasztó készülékeikkel együtt, Mari
mindjárt elzavarta, ha jöttek; hanem a kiabáló, lapdázó, verekedő
férfigyerekek közt elemében volt. És rokonszenve a deákok iránt
nem maradt viszonzatlan. A kerti ház csavargó lakóinak mindig
kitüntetett kegyencze volt. Kálozdy Béla, – erejénél, eszénél és
gazdagságánál fogva a kollégium bálványa, – nem tartotta
méltóságán alulinak el-elkötekedni a kis vadgalambbal; olykor még
fogócskára is vállalkozott s ilyenkor a szerencsés vadász mindig
csókot követelt áldozatától; de Mari akkorákat sikoltott, hogy Béla
tanácsosnak tartotta elbocsátani, mielőtt Örzse asszony fölemelt
ujjával, pápaszemével és bibliájával megjelennék a konyhaajtóban.
Egy pufók theologus – valami jó módu pap fia – legszivesebben a kis
Mari orra alá fujta pipája füstjét, erősen meg levén győződve róla,
hogy már ennél nagyobb nyájasságot nem tanusíthat iránta. Hát
még a mendikás Bihari Gida, ki az urfiak ruháit szokta tisztitani és a
nagytiszteletü úr könyveit utána hordani az iskolába! Milyen kész
gyönyörüséggel tisztogatta az apró kis czipellőket s ha olykor lyukat
talált rajtok, bárminő magasra tört s bármint gyűlölte apja
mesterségét, (az öreg csizmadia volt), a hajnali szürkületben neki ült
és úgy megfoltozta, hogy jobban sem kellett. Szellős köpönyegjében
és majdnem átlátszó czérna-nadrágjában csikorgó téli délutánokon
egész büszkeséggel tolta ki Marit kis szánkáján ereszkedni a gombai
töltésre. Ez apró szivességek folytán azonban határozott
reményeket táplált. Egy téli ereszkedő után, a mint örökké vigyorgó
arczával a konyhában üldögélt és gémberedett kezeit jókedvüen
melengette, egy párbeszéd folyamán, melybe Örzse asszony
meggondolatlanul keveredett, Gida gyerek határozottan
kinyilatkoztatta, hogy szeretné tudni, miért ne vehetné ő Marit
feleségül, majd annak idején, ha pap lesz? E haszontalan beszédre
Örzse azonnal megszüntette a diskurzust és közönyösen tovább
lapozott a mécs világánál bibliájában. A mendikás pedig olyan
jóizüen vigyorgott a jó meleg szurdikban, mintha a legjobb rendben
lenne szénája.
Ilyen környezetben bocsátkozott a kis Mari mindig lejebb és
lejebb abba a völgybe, melyben a legszebb és legtitkosabb virágok
nyilnak. Ő is megkapta a magáét. Egy nevenapján – talán a
tizennegyediken – szép bokrétát adott neki Kálozdy Béla. Az
ajándékot a lányka elfeledte ugyan megköszönni, de szép piros
üvegpohárban az asztalára állította. Ettől a naptól kezdve
rendesebben öltözködött; hanem hogy veleszületett gondatlanságát
nem volt képes teljesen levetkezni, azt eléggé bizonyítja, hogy az
ajándék-bokrétából egy rózsabimbót egész addig a hajában feledett,
mignem elhervadt.
Már az új névnap közelgett, mikor egy éjszaka tűz ütött ki a
városban. A deákok régi hirü tüzoltó csapata termett legkorábban a
veszedelem szinhelyén, közte Béla. Az éj hideg volt, a rémület nagy,
az ifju vér vakmerő. A szegény lakatosmester kis porontyát kihozta a
roskadozó gerendák közül, hanem aztán forró lázat kapott rá és
másnap éjjel már félrebeszélt. Az ijedelem nagy lett a háznál. A
professzor úr bizonyos diadallal emlegette, hogy ő mindenkor
határozott ellensége volt a tüzoltó komédiázásnak, mely utóvégre is
csak a kéményseprőknek való mulatság. Ugy látszik azonban, maga
is megrémült diadalának ama bekövetkezhető teljességétől, hogy
Béla bele is haljon a tüzoltó komédiába; és nyugtalankodó arczczal
futtatott el kollegájáért, dr. Barkóért, ki a természetrajzot tanította és
orvosi mellékes működésével – hála a fiatal természet
szivósságának – a deákok között jelentékenyebb pusztítást nem
okozott. Dr. Barkó, kinek különben a legjobb torka és melle volt a
világon, a betegágy előtt sokat köhécselt, szokása szerint egész
előadást tartott és keveset mondott. Miután azonban egész
határozottsággal állította, hogy Béla nincs normális állapotban, a
nagytiszteletü úr jónak találta nehány óvatos sorral tudósítani az
aggodalmas eseményről Kálozdy Benedek urat, a beteg nagybátyját.
Harmadnapra megérkezett a levél Kálozdról, melyben Pallér István
olvashatatlan fehér tintával és érthetetlenül czikornyás mondatokban
azt jelenti, hogy Benedek úr meg van döbbenve a váratlan
balesemény fölött, de miután köszvénye miatt karszékéből mozdulni
nem tud, legjobb akarata mellett sem látogathatja meg a beteget,
kinek hogylétéről azonban gyakori tudósítást óhajt. A tudósítások
megindultak; de nem voltak igen vigasztalók. Béla láza nem
csillapult s amint éj és nap váltakoztak ágya körül, úgy álltak
közelebb ahhoz hol az élet, hol a halál. Dr. Barkó úr még mindig nem
tartotta az állapotot normálisnak, a mi abból is kitetszett, hogy
naponkint oly hosszú reczepteket irt, mint valami hősköltemény. A
szegény beteg sokat volt egyedül a kerti lak egy kis szobájában. A
pipás theologus, Mátyással meg a többi deákkal másik szobába
huzódott; a nagytiszteletü úr nem igen mozdult ki várából. Mikor
Örzsének más dolga nem volt, az csak be-benézett; de nem igen
lehetett jó mulattató, mert e fiatal, minden földi és lelki jóval
megáldott s csak egy vihartól fenyegetett életnek mindig az ó-
testamentomi Jób történetét mesélte vigasztaló példának, mely az ő
bajánál mindenesetre nagyobb volt, miután Jóbnak mezitelenül,
hamuban ülve, éles cseréppel kellett dörzsölnie sebeit.
Egy este – a kert bokrai már szövetkeztek az esti szürkülettel,
hogy jól elrejtsék a közöttük bolyongót, – félénken leskelődött Mari a
beteg szobájának ablaka alatt. Nevenapja volt. Tavaly ilyenkor tüzte
hajába a rózsabimbót. Hiába keresett nyilást. Magának csak azt
vallotta meg, hogy a szobába szeretne látni, pedig a jövendőbe
szeretett volna látni. Nem látott semmit. A homály már elfoglalta a
szobát s a mint a lemenő napnak egy pár sugara csillogott az
ablaküvegen, ez mitsem árulhatott el a belső, szomorú képből. A
leány megindult az ajtó felé, meg visszatért. Kezeivel izgatottan
gyűrte ruhája fodrát és sebes lélegzeteket szedve, pillanatokra el-
elbámult a kert alatt folyó Duna nyugodt tükrére. Egyszer-kétszer föl
és lejárt, mignem gyors elhatározással, de csöndes lépésekkel benn
termett a szobában. Az ajtónyitás zajára összerezzent és egy
perczre vissza akart térni. De már benn volt.
– Béla – suttogta az ajtóban – nem jól esnék, ha én adnám be az
orvosságot?
A beteg nem hallotta. Talán Mari maga sem; csak képzelte, hogy
mondta. A felelet csak a csend volt, a magány, az elhagyatottság.
Ezek azt mondták, hogy: jól esnék. Mari megértette és lábujjhegyen
az ágyhoz lépett. Béla ott feküdt egy új, eldöntetlen pör tárgyául a
két örök viaskodó között. Ereje megcsufolva, elméjéből játék űzve,
gazdagsága tehetetlen. Mi segít hát rajta? E sáppadt, beesett arczra
az este már oly mély árnyakat vetett, mintha az egész ifju élet az
árnyékok birodalmáé lenne. Ki tartja vissza? Keze, vékony, átlátszó,
eres keze lecsüng az ágy oldalán, mintha már készülne le, le. Ki
emeli föl? Semmi nesz nem volt a szobában a beteg hullámzó
melléből fölszakadó, hörgő lélegzésen és egy vén óra egyhangu
ketyegésén kivül. A kis Mari meg-megreszketett az ágy lábánál.
Látta, hallotta és érezte a jeleket. Soká szinte mozdulatlan, mereven
állt, arcza kipirult, szemei ragyogni kezdtek és elrévedeztek a
homályban. Nem tudta, mit tesz, csak azt érezte, hogy van oka e
kinlódásra. Kuszált tekintete végre megállapodott a beteg arczán.
Szemei elvesztették lázas világukat, nedvesedtek és két tiszta
könycseppel tették nehezebbé a mennyei mérleg jobbik serpenyőjét.
A két könycsepp meg-megakadva futotta végig fényes utját a két kis
rózsás arczon és a beteg párnáján pihent meg. Marinak nem jutott
eszébe többé körülnézni, ha nem látja-e meg valaki? A két fényes
csepp megmutatta neki az utat, melyet szivének ismeretlen vágyai
heves dobogással kerestek. Lehajlott. Megcsókolta Béla izzó
homlokát. A beteg csöndesen fölnyitotta szemeit. Párnáján lágy és
sötét fürtök omlottak szét s két kis remegő kéz kulcsolta egymásba
ujjait. Ki ez a tünemény? Bizonyára angyal, ki azért küldetett, hogy őt
a menybe vezesse. Szeretné látni arczát és lecsukta szemeit, hogy
háborítatlanul álmodhassék tovább. Mikor újra föltekintett, a fekete
fürtök és imádkozó kis kezek már nem voltak sehol. A szoba sötét
volt. A jelenés eltünt. Az ablakon repült-e ki, vagy a menyezeten
emelkedett föl? Mindegy. Csakhogy itt volt. Béla soká-soká, betegen
és lábadozva, ébren és álmában, éjjel és nappal, pihentében és
munkája közt, jó perczeiben és rossz óráiban úgy érezte, mintha az
angyal csakugyan eljött volna és itt lenne és itt maradna, hogy őt a
menyországba vezesse. Karosszékéből, mely betegágyát felváltotta
s melyen a kis kerti ablak mellett szokott üldögélni – halaványan és
gyöngén – sokszor követte merengő figyelemmel egy kis rózsaszin
szoknya tünő suhanásait.
Mari meg-megreszketett az ágy lábánál.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
textbookfull.com