Embedded
-
- 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
- Raspberry Pi
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.
-
- 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
- MQTT
- Raspberry Pi
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.
-
- 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!
-
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.
-
- Embedded
- Pi4J
- Raspberry Pi
- Release Notes
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.
-
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!
-
- Embedded
- Gluon
- IntelliJ IDEA
- JavaFX
- Pi4J
- Raspberry Pi
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 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.
-
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.
-
- 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.
-
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!
-
- Embedded
- Performance
- Security
Safe Writing to Files in IoT and Industrial Systems
Especially on IoT devices, file corruption on shutdown is a common concern.
This article discusses how to write to disk safely in Java, combining disk sync, shutdown hooks, and atomic renaming of files.
-
Vert.x Example on the Raspberry Pi with a Virtual Potentiometer
The Raspberry Pi allows us to do a lot of electronic projects without having to wait for ordered components… or even buy them at all… by using virtual components.
Today, I want to show a way to play with a potentiometer. A potentiometer is a three-terminal resistor with a sliding or rotating contact that forms an adjustable voltage divider. If only two terminals are used, one end and the wiper, it acts as a variable resistor or rheostat.
-
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.
-
- 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
- JavaFX
- Raspberry Pi
JavaFX 3D: A Look Back Through History & Some Experiments
After my virtual conference talk “Java and JavaFX on the Raspberry Pi” at the “Oracle Groundbreakers APAC Virtual Tour 2020”, I got in touch with some people who were working on JavaFX 3D in the past, and were curious how that would behave on the Raspberry Pi.
JavaFX 3D really is a hidden gem! I’ve been using JavaFX already for a long time now but wasn’t aware of these 3D features… And the demos presented here really impressed me.