万本电子书0元读

万本电子书0元读

顶部广告

Raspberry Pi 3 Projects for Java Programmers电子书

售       价:¥

67人正在读 | 0人评论 9.8

作       者:Pradeeka Seneviratne,John Sirach

出  版  社:Packt Publishing

出版时间:2017-05-31

字       数:23.0万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:此类商品不支持退换货,不支持下载打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Learn the art of building enticing projects by unleashing the potential of Raspberry Pi 3 using Java About This Book ? Explore the small yet powerful mini computer in order to run java applications ? Leverage Java libraries to build exciting projects on home automation, IoT, and Robotics by leveraging Java libraries ? Get acquainted with connecting electronic sensors to your Raspberry Pi 3 using Java APIs. Who This Book Is For The book is aimed at Java programmers who are eager to get their hands-on Raspberry Pi and build interesting projects using java. They have a very basic knowledge of Raspberry Pi. 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 In Detail 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. Style and approach The book will contain projects that ensure a java programmer gets started with building interesting projects using the small yet powerful Raspberry Pi 3. We will start with brushing up your Raspberry Pi skills followed by building 5-6 projects
目录展开

Title Page

Copyright

Credits

Foreword

About the Authors

www.PacktPub.com

Customer Feedback

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

Setting up Your Raspberry Pi

Getting started with the Raspberry Pi

Getting a compatible SD card

Preparing and formatting the SD card

Installing Raspbian

Configuring Raspbian

Installing Java

Installing and preparing the NetBeans Java editor

Our first remote Java application

Running our application on the Raspberry Pi

Summary

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

A Social and Personal Digital Photo Frame

Bill of materials

Waveshare HDMI display

Assembling with Raspberry Pi

Selecting video source

Correcting display resolution

Mounting on desktop

Connecting with Flickr

Obtaining a Flickr API key

Creating an album

Finding Flickr photoset_id

REST request format

Invoking flickr.test.echo

Invoking flickr.photosets.getPhotos

Constructing photo source URL

Writing Java program

Accessing Flickr image URL

Installing feh on Raspberry Pi

Scheduling your application

Writing shell script for Java application

Testing the digital_photo_frame.sh with the terminal

Scheduling digital_photo_frame.sh with crontab

Testing digital_photo_frame.sh with crontab

Writing shell script for slideshow

Starting digital photo frame on Raspberry Pi boot

Photo frame in action

Summary

Integrating a Real-Time IoT Dashboard

Adafruit IO

Bill of materials

Sign in with Adafruit IO

Finding your AIO key

Creating news feed

Understanding topics

Creating a dashboard

Creating a block on a dashboard

Raspberry Pi and I2C pins

Connecting an I2C-compatible sensor to the Raspberry Pi

Serial bus addresses

Configuring the Raspberry Pi to use I2C

Searching I2C devices attached to the Raspberry Pi

Accessing I2C with Pi4J

Eclipse Paho Java client

Writing Java program to publish data to a feed

Publishing temperature sensor data

Publishing system information

Subscribing to a feed

Creating a toggle button on Adafruit dashboard

Subscribe to the button feed

Controlling an LED from button feed

Summary

Wireless Controlled Robot

Prerequisites

The Zumo chassis kit

Assembling Zumo chassis

Preparing motors to reducing the effects of electrical noise

Attaching Raspberry Pi to Zumo chassis

Building the circuit

Wiring them together

Moving and turning

Moving

Turning

Swing turn

Writing your Java program

Running and testing your Java program

Summary

Building a Multipurpose IoT Controller

Prerequisites

Preparing your Raspberry Pi board

Installing and configuring Jetty servelet engine

Writing your first Java web application

Creating a Maven project from Archetype

Creating a servlet

Copying iot.war file to the Raspberry Pi

Summary

Security Camera with Face Recognition

Raspberry Pi camera module

Connecting the camera module to the Raspberry Pi

OpenCV

Downloading and installing OpenCV on Windows

Creating the Java project

Adding the OpenCV library to your Java project

Downloading and building OpenCV on Raspberry Pi

Working with video

Facial recognition

Build and run

Summary

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部