Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Internet of things with Intel Galileo

You're reading from   Internet of things with Intel Galileo Employ the Intel Galileo board to design a world of smarter technology for your home

Arrow left icon
Product type Paperback
Published in Jul 2015
Publisher
ISBN-13 9781782174585
Length 212 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
 de Sousa de Sousa
Author Profile Icon de Sousa
de Sousa
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Internet of Things with Intel Galileo
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Introducing Galileo FREE CHAPTER 2. Rediscovering the Arduino IDE 3. Monitoring the Board Temperature 4. Creating a Motion Sensing Light 5. Intel IoT Developer Kit Tools 6. Building an Irrigation System 7. Creating Christmas Light Effects 8. The Intel XDK IoT Edition 9. Developing an IoT Quiz 10. Integrating with Muzzley Index

The UPM library


The UPM (https://github.com/intel-iot-devkit/upm) library also comes with the IoT Developer Kit image and acts as a repository for sensors using the MRAA library. With the MRAA library, we were able to read data from the sensor connected to the Galileo analog pin, but the extracted data by itself isn't useful for us. UPM brings a module for Grove sensors, making it possible for us to extract the values that can make sense to us, such as lux values.

While MRAA provides us with low-level methods to read and control the I/O pins, this library makes the development using sensors easier. It supports a list of sensors (http://iotdk.intel.com/docs/master/upm/modules.html), making many useful methods available to facilitate controlling or extracting data from them.

Using the circuit that we just used to test MRAA and the Grove sensors UPM library (libupm-grove), let's see how we can use the UPM library to obtain lux units from the Light sensors. Inside the chapter5 folder, create a...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime
Visually different images