Pi4J
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.
-
- Embedded
- Pi4J
- Raspberry Pi
- Spring
- Vaadin
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.
-
- Embedded
- Pi4J
- Raspberry Pi
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.
-
- Embedded
- JavaFX
- Pi4J
- Raspberry Pi
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.
-
- Embedded
- Pi4J
- Raspberry Pi
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…
-
- Embedded
- MQTT
- Pi4J
- Raspberry Pi
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!
-
- Embedded
- MQTT
- Pi4J
- Raspberry Pi
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!
-
- JavaFX
- Pi4J
- Raspberry Pi
- VS Code
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.
-
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.
-
Schedule for Foojay Virtual OpenJDK 17+ JUG Tour
As announced last month, to celebrate the OpenJDK 17 and Foojay.io as a vendor-neutral community platform for its users, we’re kicking off the Virtual Foojay JUG Tour to be held during and around its release month of September.
And here’s the schedule, note that it will change as more meetups are confirmed, and if your JUG is missing, i.e., you’d like to still be included in the tour, no worries, let’s see what can be done!
-
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.
-
- Campaigns
- Pi4J
- Release Notes
Virtual Foojay OpenJDK 17+ JUG Tour
To celebrate OpenJDK 17 and Foojay.io as a community platform for its users, we’re kicking off the Virtual Foojay OpenJDK 17+ JUG Tour. Ari Waller, JFrog’s Event Manager, well known to many JUGs, will continue to wear a second hat—that of Foojay Event Manager.
During September and October, contributors to Foojay will be making a whistle stop tour through as many JUGs as possible, via their virtual meetups! (And if you’re not holding virtual events or don’t have the facilities for this, we can support by making these available as needed.)
-
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!
-
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.
-
- Interviews
- JavaFX
- Pi4J
- Raspberry Pi
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.
-
- Game Development
- JavaFX
- Pi4J
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!
-
- Embedded
- JavaFX
- Pi4J
- Raspberry Pi
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.
-
Virtual Foojay JUG Tour
To celebrate the OpenJDK and Foojay.io as a community platform for its users, we’re kicking off the Virtual Foojay JUG Tour. Ari Waller, JFrog’s Event Manager, well known to many JUGs, now wears a second hat—that of Foojay Event Manager. During March and April, contributors to Foojay will be making a whistle stop tour through as many JUGs as possible, via their virtual meetups!
At each stop of the tour, there’ll be a brief introduction to Foojay.io followed by a session of 30 minutes on a topic presented by a Foojay community manager.
-
- JavaFX
- Pi4J
Java Predictions for 2021: Raspberry Pi
To celebrate the world of Java and predict some highlights for 2021, several key Foojay participants share their thoughts, starting with Frank Delporte, Foojay Community Manager for Raspberry Pi.
“Looking back to my Java adventures in 2020, I can only conclude it has been a wonderful journey.
By writing my book “Getting Started with Java on the Raspberry Pi” and blogging for Foojay, I discovered Java in the embedded world has a very bright future. With the 6-month release cycle of both Java and JavaFX, a lot of improvements and new features that impact the use of Java on Raspberry Pi, are introduced with every new version.”
-
- Embedded
- Pi4J
- Raspberry Pi
Light Up your Christmas Tree with Java and Raspberry Pi
Are you a serious Java-developer looking for a fun project?
Or want to learn something completely new and use your Java-knowledge to control electronic components?
Here we go with this small project to get you introduced to the world of electronics programming!
-
- Embedded
- Pi4J
- Raspberry Pi
Electronics & Micronaut Velocity with Raspberry Pi
In this article we present you with another great example of Java on Raspberry Pi. It shows how to create a Micronaut Velocity demo using an 8×8 LED matrix display.
Both on hardware as software level, you have different possible approaches, but the result is the same… a fun project to learn new software technologies and getting introduced into electronics.
-
- Pi4J
- Raspberry Pi
- Tutorials
Electronics & Quarkus Qute on Raspberry Pi
The “Hello World” version of electronics programming is a blinking LED. But, in this post, we will go a few steps further and control 8 LEDs inside a number display.
Igor De Souza, Dublin based Principal Big Data Consultant at Oracle, set up an interesting experiment in which he combines a LED number display with the Raspberry Pi and Quarkus.