#JavaOnRaspberryPi

2025-05-26

We have a very explanatory new featured project on our website: "Spring Boot Alarm System" by Mihai Buleandra. It's a simple wired alarm system, with a movement sensor, LEDs, a numeric keypad, etc., created with Pi4J, #SpringBoot, and #Thymeleaf, on a #RaspberryPi.

pi4j.com/featured-projects/spr

#JavaOnRaspberryPi

2025-05-08

New blog post: Starting with a Desktop Icon

Richard Norrie created an oscilloscope with Pi4J and was looking for a way to start his application with a desktop icon. Unfortunately, he encountered a few issues as the icon led to a “Java not found” error. This blog describes the steps to get this fixed.

pi4j.com/blog/2025/20250507-st

#JavaOnRaspberryPi

Screenshot showing the desktop icon and running application.
2025-03-24

The first V3 release of Pi4J is now available! It bumps the project to Java 21 to prepare us for more improvements with the Foreign Function and Memory API later this year with the next LTS release, Java 25.

Check the release notes for more info: pi4j.com/about/release-notes/

#JavaOnRaspberryPi @RaspberryPi #Java #OpenJDK

2025-02-18

Join me live in one hour on YouTube for the Riyadh JUG: "Building Smart Devices using Java on the RaspberryPi - An intro to Pi4J"

youtube.com/live/PnBij5SRRKM

@pi4j #raspberrypi #JavaOnRaspberryPi

2025-02-17

Will you join me tomorrow (virtually) at the Riyadh JUG? I will talk about "Building Smart Devices using Java on the RaspberryPi - An intro to Pi4J" With some cool demos and the current state of @pi4j. Register here: meetup.com/riyadh-java-users-g - #JavaOnRaspberryPi

2025-02-14

A new featured project was published on our website:
pi4j.com/featured-projects/sma

Dave Duncanson created the SmartCoop, a fully automated Chicken Coop Controller solution to significantly reduce the amount of regular and routine tasks required to keep a small flock (~30) of chickens on a hobby farm.

#JavaOnRaspberryPi

RFID rings for the chickensAutomated slider doorPCBWeb interface
2025-02-11

Pi4J is moving to #Java 21! This allows us to move on and use better and more performant Java code with the latest Long Term Support (LTS) version. We already look forward to bumping to LTS 25 to further optimize the interaction with the GPIOs of the #RaspberryPi, thanks to improvements brought by the Foreign Function & Memory API. More info and all changes in the project are described in this blog post: pi4j.com/blog/2025/20250211-we

#JavaOnRaspberryPi

2025-02-06

Join me (online) at the Riyadh JUG for a talk about building smart devices with #Java and @pi4j! #JavaOnRaspberryPi

🗓️ Date: Tuesday, February 18
✅ Free Registration: meetup.com/riyadh-java-users-g
🕢 Time: 6:15 PM (KSA Time)

2025-01-28

A new version has been published! V2.8.0 adds a LinuxFS SPI provider to support the #RaspberryPi 5, detects more (and new) board codes, and a lot more! Check the release notes and thanks to everyone who contributed!!!

pi4j.com/about/release-notes/

#JavaOnRaspberryPi

2025-01-09

On Tuesday, the 14th of January, I will be virtually traveling to the Miami #JVM Group (#JUG, Java User Group): "Introduction to @pi4j (#JavaOnRaspberryPi)." Will you join me?

We'll have some fun with electronic components and displays with a Spring app.

Register here:
meetup.com/miami-java-user-gro

2025-01-08

I created a small #Java application on a Raspberry Pi Zero 1 to turn it into a controllable HDMI camera. I use such cameras in my setup with an ATEM Mini video switcher. This allows me to have four different inputs for a very affordable price to create videos, tutorials, etc. The Java application has an API, making changing the zoom level of these Raspberry Pi cameras very easy.

Video on YouTube:
youtube.com/watch?v=w1aCGmXrCg.

More info:
webtechie.be/post/2025-01-08-r

#JavaOnRaspberryPi

2024-12-02

@thejvmbender you're yet-another-person-inspired-by @geerlingguy ;-)

There are many project ideas for RPi! As it is a full Linux computer, you can run any Java app. Or automate your home with home-assistant.io/. Or combine it with electronics, starting with a simple LED using #JavaOnRaspberryPi, @pi4j and @jbangdev: pi4j.com/examples/jbang/jbang_. Or build a user-interface with #JavaFX or one of the many other blogs I wrote: webtechie.be/tags/javaonraspbe

2024-11-14

I was a guest on the Floss Weekly #podcast. I talked with @JP_Bennett and @therealruggles about @pi4j, the friendly Java libraries for the Raspberry Pi that expose GPIO, SPI, I2C, and other IO interfaces. Why would anyone want to use Java for the Pi? And what’s changed since the project started? Video on YouTube at youtube.com/watch?v=jqTopQ4keU, or listen in your favorite podcast app. Shownotes and more info at hackaday.com/2024/11/13/floss- #javaonraspberrypi

2024-11-12

Our website has a new "Prepare a Raspberry Pi" section. This helps you to get started with #JavaOnRaspberryPi quickly:

pi4j.com/prepare/

More improvements are coming soon, such as a script to install Java and related tools automatically, a script to generate a desktop wallpaper with useful info using @jbangdev, and more!

2024-11-06

Should we bump the minimum supported Java version in Pi4J V2? At this moment, it is built with Java 11 as the target. This means we miss out on many Java language and runtime improvements in newer versions. Newer versions (22) make, e.g., calling C code to interact with the GPIOs easier with JEP 454: Foreign Function & Memory API.

Please join the discussion here:

github.com/Pi4J/pi4j-v2/discus

#openjdk #java #javaonraspberrypi

2024-10-04

Are you ready for the #Devoxx conference next week? Join @rdehuyss and me for a workshop on Monday where we will schedule "virtual" beer brewing tasks with #JobRunr, @pi4j, #Azul #Zulu, and #RaspberryPi! The test setup is ready, and the code is on GitHub waiting for you. Now we only need the "conference gods" not to mess up our demo ;-) And yes, this setup is suffering from the #TooManyWiresException.

More info on:
devoxx.be/talk/batch-processin

#JavaOnRaspberryPi

2024-10-03

We just released a new version 2.7.0! This release brings quite a few fixes and makes development on your #Java workstation easier as it detects your environment and doesn't load native libraries. Especially great for all those #Spring devs out there!

Go check it out at:
pi4j.com/about/release-notes/

#JavaOnRaspberryPi

2024-09-27

#Blogged + #Video: From time to time, I see questions about signed versus unsigned values and how this can be confusing in #Java. Based on a chapter of my book in which I experiment with bits, bytes, and an LED segment display, I wrote a tutorial blog post with a code demo video.

Watch the video on YouTube:
youtube.com/watch?v=PcKRJqo-c9.

Or read the blog post with more info here:
webtechie.be/post/2024-09-26-j

@pi4j #tutorial #javaonraspberrypi

2024-09-11

My ebook "Getting Started with Java on the Raspberry Pi" is on sale on Leanpub! Its suggested price is $19.99; get it for $7.99 with this coupon:

leanpub.com/gettingstartedwith

#JavaOnRaspberryPi #JavaOnEmbedded #RaspberryPi #EmbeddedSystems #Java #Messaging #HomeAutomation #JavaFX @pi4j @Raspberry_Pi_Official

2024-09-02

I want to share my last weekend project: "My first experiments with #Java and @pi4j on a @Raspberry_Pi_Official Compute Module 4". Of course, it works, as Java runs everywhere ;-) And thanks to the step-by-step by @geerlingguy, burning the OS to the eMMC on the Compute Module is a piece of cake!

The video explanation is available here: youtube.com/watch?v=HgiSusMYjR.

The blog post with more info is here: webtechie.be/post/2024-09-01-f

#JavaOnRaspberryPi #waveshare #azul

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst