I purchased an Adjustable PIR Motion Sensor (product code RB-lte-116) and an Electronic Brick 5v Relay (product code RB-lte-39) from the RobotShop. I want the relay to close and activate an actuator when the motion sensor detects movement.
How do I wire the relay to the sensor? Do I connect the 2.54 3-pin from the relay and connect those 3pins (Ground, Voltage, Signal) to the PIR motion sensor?
How do I power the relay? Do I connect my power supply to Ground and Voltage pins of the 4-pin Grove on the relay?
The specs say the PIR motion sensor has an output signal of 0.3V or 5V. How do I make it have the 5v output?
I do know how use the ouput from the relay by connecting it inline to my actuator, so it completes the circuit when it is high.
From the datasheet of the Adjustable PIR Motion Sensor, the sensor outputs high (5V) when a motion is detected. The Electronic Brick 5V Relay activates the relay when a 5V is present on S (Signal Pin).
Therefore, you can power both boards with the same 5V supply (both boards will share the same 5V and Ground pins) and connect the S pin from the Relay Board to the S pin on the PIR Board.
You will need a separate DC power supply for your actuator.
Thank you for the reply! But I have a couple more questions.
The Brick 5V Relay has Voltage and Ground pins on both the 2.54 3 pin interface and the 4 pin Grove interface, does it matter which interface I connect the power supply to?
I am powering the Adjustable PIR Motion sensor with a 9 volt battery. Is it ok to use this 9 volt
power supply to power the Brick 5 volt relay?
It doesn’t matter in which connector you connect the power supply. Both connectors share the same Vcc and Gnd pins.
The manufacturer indicates an operating voltage of 5V (5.5V maximum) for the Electronic Brick 5V Relay. A 9V battery might damage the coil of the relay.
You can use this 5V, 3A Step-down Voltage Regulator for example to step-down from 9V to 5V and power your relay board.