/Raspberry-Pi-Pi4J-Classes

Various classes using the Pi4J GPIO libraries to facilitate the use of different sensors

Primary LanguageJava

Raspberry-Pi-Pi4J-Classes

Various classes using the Pi4J GPIO libraries to facilitate the use of different sensors

@Frederik Vermaete


**(1) Keyes RGB LED Control (Common Cathode!)


v.0.1.3

Class: KeyesRGBLEDControl.java

Test Class: TestKeyesRGBLEDControl.java


**(2) PIR Motion Detector HC-SR501


v.0.1.7

Class: PIRMotionDetector.java

Test Class: TestPIRMotionDetector.java

Test Class: TestPIRDelay.java [v.1.0.1]

NOTE: The HC-SR501 detector has a screw to manually change the "delay" setting after HIGH status is triggered. The test class "TestPIRDelay.java" can be used to measure this delay, by waving your hand in front of the sensor.

Test Class: TestPIRMotionListener.java [v.1.0.0]

This test class implements a listener and event handler when a state change is triggered on the motion detector pin!

Test Class: TestMotionDetectorWithLED.java

Sensors (1) and (2) can be tested together with this test class. When motion is detected, LED turns red. When PIR sensor is free, LED is green.