
Java on the Raspberry Pi: Develop Java Programs to Control Devices for Robotics, IoT, and Beyond
Greg Flurry
Résumé
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.
What You'll Learn
- Develop with Java remotely using NetBeans
- Leverage available libraries to enable device interaction, and what to do if they don't work
- Implement multi-processing, using an Arduino as a co-processor
- Build sophisticated projects with multiple threads of execution, multiple processes, and even multiple systems
Experienced programmers who appreciate the benefits of Java and world class tools for application development and want to build robotics or IOT projects using the low cost, low power, and portability of the Raspberry Pi.
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
Caractéristiques techniques
PAPIER | |
Éditeur(s) | Apress |
Auteur(s) | Greg Flurry |
Parution | 27/09/2021 |
Nb. de pages | 558 |
EAN13 | 9781484272633 |
Avantages Eyrolles.com
Consultez aussi
- Les meilleures ventes en Graphisme & Photo
- Les meilleures ventes en Informatique
- Les meilleures ventes en Construction
- Les meilleures ventes en Entreprise & Droit
- Les meilleures ventes en Sciences
- Les meilleures ventes en Littérature
- Les meilleures ventes en Arts & Loisirs
- Les meilleures ventes en Vie pratique
- Les meilleures ventes en Voyage et Tourisme
- Les meilleures ventes en BD et Jeunesse