Building Smart Devices using Java on the RaspberryPi-An intro to Pi4J.
summary
Shows Java running on tiny boards (Pi Zero 2 W €15 up to Pi 4 with 8GB) using Pi4J v2 to map the 40 GPIOs into Java objects, with concrete code: context/config builders, LED blink with button-accelerated blink, a buzzer using PWM on pin 18 playing note arrays, and a CrowPi that publishes sensor JSON over MQTT (Mosquitto or HiveMQ) to a JavaFX dashboard built with Tiles. All examples run and are on GitHub.
AI-written summary · about
chapters (10)
- 0:00Introduction and personal journey
- 5:00What is the Raspberry Pi
- 12:31Why use Java on Raspberry Pi
- 18:56Introducing Pi4J library
- 24:17First project with Pi4J
- 26:48Building a sensor dashboard
- 31:19Messaging between devices
- 35:19Sending sensor data to MQTT
- 38:50Creating a JavaFX dashboard
- 41:42Summary and next steps
related talks
16mHaving fun with Pi4J and JBang on the Raspberry Pi
46mRaspberry Pi with Java 9
36mHaving fun with Java and JavaFX on the Raspberry Pi
49mHaving fun with Java and JavaFX on the Raspberry Pi.
45mLesson learned from Java modules and Robo4j
08mon Java and the Internet of Things, Lambdas & More
30mMuch Robots Very Java So IoT
35mRobotics on Java Simplified
