Description
Book SynopsisUse Java to do whatever you want to do with the Raspberry Pi and the devices you need for your project. In theory, it should be possible, and even easy, to work with on the Pi. Unfortunately, reality is a bit different. This book features an extensive set of techniques that allow you to get close to bringing this theory to fruition.
You''ll review some limitations on using Java imposed by the Raspberry Pi and Raspberry Pi OS, and even Java itself, and examine which ones might apply to your projects and your devices. You''ll also explore solutions to address the limitations and l look at efficient development of Java for the Raspberry Pi.
Java on the Raspberry Pi shows how to interact with a range of devices useful in robotics and IOT, overcoming the hurdles in doing so. It also covers off-loading work from the Raspberry Pi to an Arduino, leveraging its close-to-real time capabilities.
Wha
Table of Contents
Chapter 1: Motivation
● Why the Raspberry Pi?
● Why Java?
● Why NetBeans?
Chapter 2: Setting up the Raspberry Pi
● Raspberry Pi OS
● Enabling device support
● Java
● Remote control via ssh
Chapter 3: Setting up NetBeans
● Installing NetBeans
● Configuring NetBeans for remote development on the Raspberry Pi
● The first program
● Debugging
● Additional techniques
Chapter 4: Connecting an Inertial Management Unit (IMU)
● Testing using an Arduino
● Pi4J
● Porting an Arduino library
● Gyroscope
● Accelerometer
● Magnetometer
Chapter 5: Using the Gyroscope
● The Gyroscope class
● Testing Gyroscope
Chapter 6: Connecting a Servo Controller
● Testing and configuring Maestro via Control Center
● Porting an Arduino library
● The Maestro class
● The Servo class
Chapter 7: Using the Maestro
● Extending the Maestro class
● The Servo class
Chapter 8: Connecting a DC Motor Controller
● Testing and configuring RoboClaw via Motion Studio
● Testing with Python
● Porting a Python library
● The RoboClaw class
Chapter 9: Connecting a Temperature/Humidity Sensor
● Porting an Arduino library
● The DHT22 class
● The TeHu class
Chapter 10: Connecting an Arudino
● The command structure
● The Arduino class
Chapter 11: Connecting LIDAR sensor to the Arduino
● Getting the Arduino library
● Testing
Chapter 12: Connecting the servo controller to the Arduino
● Configuring Maestro via Control Center
● Getting the Arduino library
● Testing
Chapter 13: Creating a LIDAR Subsystem on the Arduino
● Creating the subsystem
● Testing on the Arduino
● The Lidar class
Chapter 14: Communicating with other programs.
● Establishing the communication protocols
● Establishing the data exchange
● The Python program
● The Java program