JavaFX on Raspberry Pi: Some fun with stepper motor

Recently had some fun when controlling my stepper motor with my Raspberry Pi. The motor: a 28BYJ-48 with ULN2003 driver unit: Cool: Pi4J has a ready to use GpioStepperMotorComponent. Let’s assume this architecture: Thus we start with the StepperMotorAdapter using this component. First some helpfull defines: private final int oneRevolution = 2038; private final int…

RasPi does the Home Automation (Part III): ‘Let’s Put It All Together’

Hi, now it’s time to put it all together: 1st: a mini Custom Control for each gear, looking like this: Its controller takes a Device to trigger DeviceControl to switch the radio controlled gears: public class DevicePane extends AnchorPane { @FXML private Button offButton; @FXML private Button onButton; @FXML private Text deviceNameText; public DevicePane(Device device)…