Author: Frank Delporte
Frank Delporte (@frankdelporte) is a Java developer, blogger, author of "Getting started with Java on Raspberry Pi", and contributor to Pi4J. Frank blogs about his experiments with Java, sometimes combined with electronic components, on the Raspberry Pi.
-
Create Music Bingo Cards with iText
This weekend we had a party and wanted to organize a music bingo. A small Java project seemed to be the best solution!
Frank Delporte -
Blink a LED on Raspberry Pi with Vaadin
Thanks to Vaadin, you can get a fully running application with a few clicks. And Adding GPIO-interaction is easy with the Pi4J library.
Frank Delporte -
Controlling Electronics with JBang on the Raspberry Pi
JBang is a great way to create your first program to control electronic components connected to the Raspberry Pi’s GPIO pins.
Frank Delporte -
Installing Java with SDKMAN on Raspberry Pi
Java on Raspberry Pi has always been possible, but SDKMAN makes the getting-started process a lot easier.
Frank Delporte -
Template to Get Started with Pi4J and JavaFX on Raspberry Pi
How to use the same architecture to implement a JavaFX-based GUI, a PUI attached to a Raspberry Pi, and integrate both in a clean, modular way.
Frank Delporte -
MQTT on Raspberry Pi (Part 3): Sending sensor data from Raspberry Pi Pico to HiveMQ Cloud
Let’s learn about adding some more data to our messaging system with another member of the Raspberry Pi family: the Pico.
Frank Delporte -
Java Modules in the Pi4J Project?
Java modules have been a big discussion point before in many places. And this is now also causing some headaches in the Pi4J project…
Frank Delporte -
MQTT on Raspberry Pi (Part 2): Using MQTT and Raspberry Pi to Visualize Sensor Data on a TilesFX Dashboard
In the 2nd part of the series, learn how to use MQTT and the Raspberry Pi to visualize sensor data on a TilesFX dashboard!
Frank Delporte -
MQTT on Raspberry Pi (Part 1): Send Sensor Data to HiveMQ Cloud with Java and Pi4J
Publish the data of up to 100 devices to an always-on, maintenance-free message broker for free!
Frank Delporte -
JavaFX Templates for Desktop Applications
Both for Maven and Gradle lovers there are different possibilities to build Java executables and GitHub provides the free tools to do so!
Frank Delporte -
Java 17 on the Raspberry Pi
As part of the Foojay Virtual OpenJDK 17+ JUG Tour, I was asked to present the state of Java and JavaFX 17 on the Raspberry Pi.
So, a perfect opportunity to freshen up my #JavaOnRaspberryPi presentation with some hot-off-the-press versions.
Frank Delporte -
Pi4J V.2 Released!
The Pi4J Project was started in 2012 by Robert Savage, the same year the Raspberry Pi was introduced.
After long rework, the Pi4J library (a friendly object-oriented I/O API and implementation libraries for Java Programmers to access the full I/O capabilities of the Raspberry Pi platform) has taken a big step with the first release of the V.2.
Frank Delporte -
Foojay Podcast #2: Embedded Java
Foojay community members and beyond discuss embedded Java, featuring the following speakers:
James Gosling, creator of Java and embedded enthusiast; Frank Delporte, engineer with Toadi, an autonomous lawn-mowing robot; Johan Vos, founder of Gluon, helping make fully cross-platform applications.
Hosted by Erik Costlow, developer relations for Contrast Security, locating security flaws in backend systems.
-
Java in Education: Combining Java with Raspberry Pi and the Pi4J Library
Although a lot of universities and high schools focus on Python and C# in their program, there are luckily a lot of others who go “full Java”.
Don’t get me wrong, I definitely don’t want to start a “programming-languages-war”, but Java is the language I used myself more than any other for the last 10 years.
Setting up a new project or building a proof-of-concept for a new idea, is a matter of hours. And there is always a solution for the problem I need to solve.
This is probably true for each developer who has enough experience in the language used the most. But having used and experimented with many other languages, I still keep returning to my “one true love”, being Java, as it always delivers the result I’m aiming for, with the right amount of code to be readable, understandable, and testable!
Frank Delporte -
JavaFX: Gluon Status Update, Dual Screen on Raspberry Pi Sample, IntelliJ New JavaFX Project Wizard
Since Java switched to a 6-month release cycle, JavaFX has done the same, so next version will be number 17.
Keep in mind, although Java and JavaFX are on the same version-number, you can still use Java 11 and combine it with the JavaFX 17 runtime if you want to benefit from its improvements. Up till now, there were no breaking changes in either of the frameworks which force you to use a Java-version higher than 11.
Frank Delporte -
Interviews with Robert Savage and Johan Vos on the State of Java on Raspberry Pi
Here on Foojay.io, you can find already a long list of articles about Java on the Raspberry Pi.
As you may know, already I’m a big fan of this combination. The Raspberry Pi on one side is a very cheap computer that allows you to experiment with electronic components thanks to the Pi4J library.
And on the other hand, JavaFX is the ideal framework to build user interfaces that can directly control these components, all in one application!
But maybe you don’t have / want to believe me? So let’s ask two experts what they think is the future of #JavaOnRaspberryPi.
Frank Delporte -
Controlling an LCD Display with Spring and Thymeleaf on the Raspberry Pi
Igor De Souza shares on his blog a lot fun and inspirational experiments with Java on Raspberry Pi. Some of those were already shared here on Foojay.io.
This time we want to highlight his work which combines a web app made with Spring and Thymeleaf, to control an LCD display connected to a Raspberry PI.
Frank Delporte, Igor De Souza -
Creating a Snake Game with JavaFX FXGL in Three Pair-Programming Sessions
In this article, Almas and Frank show you how to start with an idea for a game and bring it to life in a prototype application. We will then modify the application to run on a Raspberry Pi and on a mobile device.
To give some background, some time ago my 10y old son challenged me to create a Snake-like game with emojis. He selected the emoji images and I “only” needed to do the programming bit, the easy part… Luckily Almas asked me if I had a topic for some pair-programming for his YouTube channel, and his question turned into a three-part series. My son is delighted because his idea is now a real game!
Almas Baimagambetov, Frank Delporte -
JavaFX Running in Kiosk Mode on the Raspberry Pi
Combined with an inexpensive touch screen, the Raspberry Pi makes for a perfect controller for a machine or game console.
Let’s see how we can use Java and JavaFX to build a test application that also communicates with the pins of the Raspberry Pi to control a LED.
Frank Delporte -
Java Development with VS Code on the Raspberry Pi
Recently we published a full getting started guide for Java with VS Code together with a list of tips and plugins for Java development with Visual Studio Code.
But… did you know you can also use it on the ARM-processor-powered Raspberry Pi?
Until recently this was not available in an official version for the Raspberry Pi, but luckily Microsoft decided to release new versions with installers for both 32-bit and 64-bit Raspberry Pis.
Let’s install and test them!
Frank Delporte -
Device Monitoring with JavaFX and FXGL
In a previous post, Getting Started with FXGL Game Development, we already have taken a look at the FXGL game development framework developed by Almas Baimagambetov.
But, this game engine can also be used for other use cases. In this post, we will be building a system monitoring dashboard, which can run on a Raspberry Pi.
The dashboard can be used to keep an eye on any device that can report its state to a queue. And, for me personally, it finally solves the problem of finding the IP addresses of all my Raspberry Pi’s when my router decided to shuffle them.
Almas Baimagambetov, Frank Delporte