Posts

Showing posts with the label motion

PIR Sensor with Wemos D1 Mini and Tasmota

Image
I ordered a couple of these AM312 PIR sensors from Banggood recently, to test using them in a multi-function sensor with Tasmota . There is some good information on configuring Tasmota with these sensors , and the manual can be found here . You can see an image of the sensor below, along with pin assignments. Thanks to the creator of this image; unfortunately I can't find the original source to offer credit, but am happy to do so if you reach out to me! These PIR modules simply behave as a switch. To experiment, I've simply connected the OUT pin to D2 (GPIO4) on a Wemos D1 Mini module, and have configured the LED on D4 (GPIO2) on the Wemos to turn on when the PIR sensor is triggered, as a visual indicator. You can see the setup on a small breadboard here. The configuration is Tasmota is here. Note that the LED is on D4 (GPIO2) but needs to be pulled high to turn the LED off, and pulled low to turn the LED on. Hence, the need to invert the signal using RelayX...

Sonoff S20, RF Bridge and PIR2 Motion Detector

Image
With a lot of smart home products coming on the market, and being discussed in my various news feeds, I was keen to start experimenting with some devices. There appeared to be a lack of products intended for the Australian market, and so after a bit of reading I learnt about Sonoff products manufactured by a company named  ITEAD  and purchased the following items. Sonoff S20 Smart Plug Sonoff RF Bridge Sonoff PIR2 Infrared Motion Detector My thinking was that I would use the S20 Smart Plug to experiment with some home automations, and use the RF Bridge and IR Motion Detector as the beginnings of a home security system. Configuration required installation of the eWeLink app by Sonoff. Unfortunately, when I sat down to start configuring the RF Bridge, I realised that potentially I was giving away more information through the app than I was willing to provide. My first pause point was the need to provide the password to my WiFi network. I also consi...