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

What this book covers

Chapter 1, Setting up Your Raspberry Pi, teaches you about the hardware available with Raspberry Pi and how to prepare to utilize it from the installed Java Virtual Machine. Setting up the NetBeans editor to be able to write Java applications, which can be deployed from the editor, including the in-editor, available console to be able to interact with Java applications on Raspberry Pi.

Chapter 2, Automatic Light Switch Using Presence Detection, explains how to perform analogue readings using digital pins, as the Raspberry Pi has no analog reading capabilities. By adding a 16x2 character display, you will visualize these readings. By adding logic to the code, you will be able to determine when someone is present, and in combination with detecting light levels, you will be able to set a relay state that turns a light on or off.

Chapter 3, A Social and Personal Digital Photo Frame, offers comprehensive guidance on building a social and personal digital photo frame with the Raspberry Pi as the heart. Flickr will be used the social media platform to grab a set of images that will be shown, on the display. FEH will be used an X11 image viewer to display images as a slide show with customizable configurations. Some advanced configurations for the Raspberry Pi will be needed to automate the photo frame to connect with Flickr, download images to local storage, display them on screen, and frequently sync local storage with Flickr.

Chapter 4, Integrating a Real-Time IoT Dashboard, presents a real-time IoT dashboard to display sensor data and Raspberry Pi’s system information on it, and control actuators from it. The dashboard will be built with Adafruit IO, in conjunction with the Eclipse Paho Java MQTT library and Pi4J. The IC2 communication protocol will be used to read data from the sensors by enabling the 12C interface on Raspberry Pi.

Chapter 5, Wireless Controlled Robot, introduces the Zumo chassis kit and how to build a Raspberry Pi brain on it with Java and Pi4J. The robot uses two gear motors to rotate the drive wheels, and the Pi4J library allows us to build various moving and turning mechanisms to control the robot. The built-in Wi-Fi module of the Raspberry Pi 3 allows you to connect the robot wirelessly to the computer, in order to execute the commands through SSH with a keyboard.

Chapter 6, Building a Multipurpose IoT Controller, teaches you how to build a simple web-based IoT controller by installing and configuring a Jetty servlet engine on the Raspberry Pi. Pi4J is used to control an LED or any other actuator from the web interface through a local network or from the Internet, by configuring port forwarding on the router.

Chapter 7, Security Camera with Face Recognition, explains how to build a security camera with face recognition using the OpenCV library for Java and the Raspberry Pi camera module. It uses built-in cascade classifiers to detect human faces and highlights them with a square in real-time video.

lock icon The rest of the chapter is locked
Next Chapter arrow right
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}