Raspberry Pi 3 Projects for Java Programmers

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

Raspberry Pi 3 Projects for Java Programmers

This ebook is included in a Mapt subscription
Pradeeka Seneviratne, John Sirach

2 customer reviews
Learn the art of building enticing projects by unleashing the potential of Raspberry Pi 3 using Java
$0.00
$22.40
$39.99
$29.99p/m after trial
RRP $31.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

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