Raspberry Pi 3 Projects for Java Programmers

Learn the art of building enticing projects by unleashing the potential of Raspberry Pi 3 using Java
Preview in Mapt

Raspberry Pi 3 Projects for Java Programmers

Pradeeka Seneviratne, John Sirach

2 customer reviews
Learn the art of building enticing projects by unleashing the potential of Raspberry Pi 3 using Java
Mapt Subscription
FREE
$29.99/m after trial
eBook
$22.40
RRP $31.99
Save 29%
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$22.40
$39.99
$29.99 p/m after trial
RRP $31.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Raspberry Pi 3 Projects for Java Programmers Book Cover
Raspberry Pi 3 Projects for Java Programmers
$ 31.99
$ 22.40
Raspberry Pi: Amazing Projects from Scratch Book Cover
Raspberry Pi: Amazing Projects from Scratch
$ 59.99
$ 42.00
Buy 2 for $35.00
Save $56.98
Add to Cart

Book Details

ISBN 139781786462121
Paperback286 pages

Book Description

Raspberry Pi is a small, low cost and yet very powerful development platform. It is used to interact with attached electronics by the use of it's GPIO pins for multiple use cases, mainly Home Automation and Robotics.

Our book is a project-based guide that will show you how to utilize the Raspberry Pi's GPIO with Java and how you can leverage this utilization with your knowledge of Java. You will start with installing and setting up the necessary hardware to create a seamless development platform. You will then straightaway start by building a project that will utilize light for presence detection. Next, you will program the application, capable of handling real time data using MQTT and utilize RPC to publish data to adafruit.io. Further, you will build a wireless robot on top of the zuma chassis with the Raspberry Pi as the main controller. Lastly, you will end the book with advanced projects that will help you to create a multi-purpose IoT controller along with building a security camera that will perform image capture and recognize faces with the help of notifications.

By the end of the book, you will be able to build your own real world usable projects not limited to Home Automation, IoT and/or Robotics utilizing logic, user and web interfaces.

Table of Contents

Chapter 1: Setting up Your Raspberry Pi
Getting started with the Raspberry Pi
Installing Raspbian
Installing Java
Installing and preparing the NetBeans Java editor
Our first remote Java application
Summary
Chapter 2: Automatic Light Switch Using Presence Detection
Introduction to and installing Fritzing
Billing of materials
How to emulate reading analog values on digital pins
Starting our project and installing the necessary libraries
The Pi4J libraries
Adding the HD44780-compatible 16x2 character display
Showing data on the HD44780-compatible display
Adding the light-dependent resistor to the setup
Reading and displaying the values from the LDR
Using digital out to switch and display a relay status
Automatic switch based on environment lighting
Using the Bluetooth chip on the Raspberry Pi
Bluetooth device discovery
Putting it all together, our first automation project
Summary
Chapter 3: A Social and Personal Digital Photo Frame
Bill of materials
Waveshare HDMI display
Summary
Chapter 4: Integrating a Real-Time IoT Dashboard
Adafruit IO
Summary
Chapter 5: Wireless Controlled Robot
Prerequisites
The Zumo chassis kit
Writing your Java program
Running and testing your Java program
Summary
Chapter 6: Building a Multipurpose IoT Controller
Prerequisites
Preparing your Raspberry Pi board
Writing your first Java web application
Summary
Chapter 7: Security Camera with Face Recognition
Raspberry Pi camera module
OpenCV
Working with video
Summary

What You Will Learn

  • Use presence detection using the integrated bluetooth chip
  • Automatic light switch using presence detection
  • Use a centralized IoT service to publish data using RPC
  • Control a robot by driving motors using PWM
  • Create a small web service capable of performing actions on the Raspberry Pi and supply readings
  • Image capture using Java together with the OpenCV framework

Authors

Table of Contents

Chapter 1: Setting up Your Raspberry Pi
Getting started with the Raspberry Pi
Installing Raspbian
Installing Java
Installing and preparing the NetBeans Java editor
Our first remote Java application
Summary
Chapter 2: Automatic Light Switch Using Presence Detection
Introduction to and installing Fritzing
Billing of materials
How to emulate reading analog values on digital pins
Starting our project and installing the necessary libraries
The Pi4J libraries
Adding the HD44780-compatible 16x2 character display
Showing data on the HD44780-compatible display
Adding the light-dependent resistor to the setup
Reading and displaying the values from the LDR
Using digital out to switch and display a relay status
Automatic switch based on environment lighting
Using the Bluetooth chip on the Raspberry Pi
Bluetooth device discovery
Putting it all together, our first automation project
Summary
Chapter 3: A Social and Personal Digital Photo Frame
Bill of materials
Waveshare HDMI display
Summary
Chapter 4: Integrating a Real-Time IoT Dashboard
Adafruit IO
Summary
Chapter 5: Wireless Controlled Robot
Prerequisites
The Zumo chassis kit
Writing your Java program
Running and testing your Java program
Summary
Chapter 6: Building a Multipurpose IoT Controller
Prerequisites
Preparing your Raspberry Pi board
Writing your first Java web application
Summary
Chapter 7: Security Camera with Face Recognition
Raspberry Pi camera module
OpenCV
Working with video
Summary

Book Details

ISBN 139781786462121
Paperback286 pages
Read More
From 2 reviews

Read More Reviews

Recommended for You

Raspberry Pi: Amazing Projects from Scratch Book Cover
Raspberry Pi: Amazing Projects from Scratch
$ 59.99
$ 42.00
Python Programming with Raspberry Pi Book Cover
Python Programming with Raspberry Pi
$ 27.99
$ 19.60
Raspberry Pi Zero Cookbook Book Cover
Raspberry Pi Zero Cookbook
$ 31.99
$ 22.40
Python Data Structures and Algorithms Book Cover
Python Data Structures and Algorithms
$ 35.99
$ 25.20
Raspberry Pi Robotic Projects - Third Edition Book Cover
Raspberry Pi Robotic Projects - Third Edition
$ 31.99
$ 22.40
Modern C++ Programming Cookbook Book Cover
Modern C++ Programming Cookbook
$ 39.99
$ 28.00