Class BrickletMotionDetector


  • public class BrickletMotionDetector
    extends Device
    Passive infrared (PIR) motion sensor with 7m range
    • Constructor Detail

      • BrickletMotionDetector

        public BrickletMotionDetector​(java.lang.String uid,
                                      IPConnection ipcon)
        Creates an object with the unique device ID \c uid. and adds it to the IP Connection \c ipcon.
    • Method Detail

      • getMotionDetected

        public short getMotionDetected()
                                throws TinkerforgeException
        Returns 1 if a motion was detected. How long this returns 1 after a motion was detected can be adjusted with one of the small potentiometers on the Motion Detector Bricklet, see :ref:`here <motion_detector_bricklet_sensitivity_delay_block_time>`. There is also a blue LED on the Bricklet that is on as long as the Bricklet is in the "motion detected" state.
        Throws:
        TinkerforgeException
      • setStatusLEDConfig

        public void setStatusLEDConfig​(short config)
                                throws TinkerforgeException
        Sets the status led configuration. By default the status LED turns on if a motion is detected and off is no motion is detected. You can also turn the LED permanently on/off. .. versionadded:: 2.0.1$nbsp;(Plugin)
        Throws:
        TinkerforgeException
      • getIdentity

        public Device.Identity getIdentity()
                                    throws TinkerforgeException
        Returns the UID, the UID where the Bricklet is connected to, the position, the hardware and firmware version as well as the device identifier. The position can be 'a', 'b', 'c', 'd', 'e', 'f', 'g' or 'h' (Bricklet Port). A Bricklet connected to an :ref:`Isolator Bricklet <isolator_bricklet>` is always at position 'z'. The device identifier numbers can be found :ref:`here <device_identifier>`. |device_identifier_constant|
        Specified by:
        getIdentity in class Device
        Throws:
        TinkerforgeException