Sign Up for Fishpond's Best Deals Delivered to You Every Day
Go
Java on the Raspberry Pi
Develop Java Programs to Control Devices for Robotics, Iot, and Beyond

Rating
Format
Paperback, 558 pages
Published
United States, 1 September 2021

Use 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.


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
Who This Book Is For
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

Show more

Our Price
$107
Ships from USA Estimated delivery date: 14th May - 21st May from USA
  Include FREE SHIPPING on a Fishpond Premium Trial

Already Own It? Sell Yours
Buy Together
+
Buy together with Flurries at a great price!
Buy Together
$150.16

Product Description

Use 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.


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
Who This Book Is For
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

Show more
Product Details
EAN
9781484272633
ISBN
1484272633
Publisher
Other Information
Illustrated
Dimensions
23.4 x 15.6 x 3 centimetres (0.80 kg)

Table of Contents

Chapter 1: Motivations.- Chapter 2: Raspberry Pi. 3 Model B+ Setup- Chapter 3: Raspberry Pi Zero W Setup.- Chapter 4: Setup the Workstation.- Chapter 5: Remote Java Development with NetBeans.- Chapter 6: Device Support in Java.- Chapter 7: The diozero Base I/O API.- Chapter 8: A DC Motor Controller.- Chapter 9: An Inertial Measurement Unit.- Chapter 10: A Lidar Unit.- Chapter 11: An Environmental Sensor.- Chapter 12: An Analog to Digital Converter.- Chapter 13: A Stepper Motor Driver.- Chapter 14: A Project.- Appendix 1: Arduino Command Center.- Appendix 2: Custom Lidar Unit.- Appendix 3: NetBeans and Mavin. 

About the Author

Greg Flurry has worked as a programmer and electronics engineer for IBM. In the span of a 40-year career, his roles have included product development, product architecture, research, and client services. He achieved the title of IBM Distinguished Engineer. Greg has authored over 50 articles in IBM and non-IBM publications on topics ranging from simple programming examples to large scale system architectures. He is an inventor, with over 30 patents. He started programming in Java from the time it became public in 1996, and over time, wrote thousands of lines of Java code. After retirement in 2013, he started working with the Raspberry Pi, with the goal of using it as the brain in autonomous robots. As the robots became more complex, he longed for Java and professional development tools. In 2017, he began using Java on the Raspberry Pi and has done so since, educating himself on the techniques of connecting sundry devices to the Raspberry Pi via Java, as well as identifying techniques useful in building moderately complex robotics systems.

Show more
Review this Product
What our customers have to say
Ask a Question About this Product More...
 
Look for similar items by category
How Fishpond Works
Fishpond works with suppliers all over the world to bring you a huge selection of products, really great prices, and delivery included on over 25 million products that we sell. We do our best every day to make Fishpond an awesome place for customers to shop and get what they want — all at the best prices online.
Webmasters, Bloggers & Website Owners
You can earn a 8% commission by selling Java on the Raspberry Pi: Develop Java Programs to Control Devices for Robotics, Iot, and Beyond on your website. It's easy to get started - we will give you example code. After you're set-up, your website can earn you money while you work, play or even sleep! You should start right now!
Authors / Publishers
Are you the Author or Publisher of a book? Or the manufacturer of one of the millions of products that we sell. You can improve sales and grow your revenue by submitting additional information on this title. The better the information we have about a product, the more we will sell!
Item ships from and is sold by Fishpond.com, Inc.

Back to top