Raspberry Pi 3 projects for Java programmers get the most out of your Raspberry Pie 3 with Java
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 J...
Otros Autores: | , |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Birmingham, [England] ; Mumbai, [India] :
Packt Publishing
2017.
|
Edición: | 1st edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009630229806719 |
Tabla de Contenidos:
- Cover
- Copyright
- Credits
- About the Authors
- www.PacktPub.com
- Customer Feedback
- Table of Contents
- Preface
- Chapter 1: 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
- 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
- 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
- Chapter 4: 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
- Chapter 5: 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
- Chapter 6: 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
- Chapter 7: 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
- Index.