Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Raspberry Pi 3 Projects for Java Programmers

You're reading from  Raspberry Pi 3 Projects for Java Programmers

Product type Book
Published in May 2017
Publisher Packt
ISBN-13 9781786462121
Pages 286 pages
Edition 1st Edition
Languages
Authors (3):
Rajdeep Chandra Rajdeep Chandra
John Sirach John Sirach
Profile icon John Sirach
Pradeeka Seneviratne Pradeeka Seneviratne
Profile icon Pradeeka Seneviratne
View More author details

Table of Contents (8) Chapters

Preface Setting up Your Raspberry Pi Automatic Light Switch Using Presence Detection A Social and Personal Digital Photo Frame Integrating a Real-Time IoT Dashboard Wireless Controlled Robot Building a Multipurpose IoT Controller Security Camera with Face Recognition

Integrating a Real-Time IoT Dashboard

The Raspberry Pi is great for working with sensor systems and controlling actuators in both indoor and outdoor environments. The data can be gathered from local sensors attached to the Raspberry Pi, or sensors connected to a cloud computing environment. Adafruit IO is a system that makes data useful, and it provides useful features to work with your data, such as real-time graphs and sets of UI controls that can be used to either display data from a feed or produce data for a feed on a specific topic.

In this chapter, you will:

  • Create feeds and a dashboard with Adafruit IO
  • Connect the TMP102 temperature sensor with the Raspberry Pi through an I2C bus
  • Get data from the temperature sensor through the I2C with the Pi4J library
  • Work with the Eclipse Paho Java MQTT client library
  • Publish data to the feed on a specific topic
  • Display data on the Adafruit IO dashboard
  • Subscribe to...

Adafruit IO

Adafruit IO is a system that makes your data useful and provides easy-to-use, simple data connections. Basic programming is required to work with the Adafruit IO system, which includes client libraries that wrap its REST and MQTT APIs. Currently, Adafruit provides client libraries to work with following programming languages:

  • Arduino
  • Ruby
  • Python
  • Node.js

Still, there is no official Adafruit client library to work with Java. So, you can use the Eclipse Paho MQTT Java client to work with Adafruit IO.

You can visit Adafruit IO at https://io.adafruit.com/.

Bill of materials

To build all the projects that will be discussed in this chapter, you will need to have the following things in your tool box:

  • One Raspberry Pi 3 (SparkFun part number: DEV-13825)
  • One...

Summary

In this chapter, you have learned how to build a sensor-based IoT dashboard with Adafruit IO and the Eclipse Paho MQTT Java client. You can improve this project by adding more sensors and actuators to your dashboard to build a rich IoT application. Also, you can use Adafruit IO to control and monitor your home appliances remotely with a handheld device such as a mobile phone, iPad, or iPod.

Chapter 5, Wireless Controlled Robot, is based on robotics, and you'll build a wirelessly-controlled robot with a Pololu Zumo chassis robot kit. Have fun!

lock icon The rest of the chapter is locked
You have been reading a chapter from
Raspberry Pi 3 Projects for Java Programmers
Published in: May 2017 Publisher: Packt ISBN-13: 9781786462121
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 $15.99/month. Cancel anytime}