
IoT USB Powered Motion Sensor
prusaprinters
<p>I designed this IoT USB powered motion sensor so it could be powered by any old USB phone charger laying around the house. It requires soldering and It uses the following components:</p> <p>Electronics perf board<br/> 22Ga. wire<br/> 2.54mm female pin headers<br/> 2-Pin Screw Terminal Block Connector 2.54mm Pitch<br/> AM312 Mini Pyroelectric PIR Human Sensor Module Infrared IR Sensor Detector<br/> ESP8266 ESP-01 (Black) WiFi Serial Transceiver Module with 1MB Flash (NOT ESP-01S)<br/> HT7333-A Voltage Regulator<br/> 1000uF Electrolytic Capacitor<br/> 100nF Ceramic Capacitor<br/> Jabinco Type A Male USB 4 Pin Plug Socket Connector with Black Plastic Cover</p> <h3> Post-Printing</h3> <p><strong>A little more info on how I set mine up...</strong></p> <p><div><p>There are three variants of the of ESP-01 WiFi Serial Transceiver Module</p> Revision Flash Power LED Blue LED Blue ESP-01 512k None TX/GPIO1/low Black ESP-01 1M Red TX/GPIO1/low Black ESP-01S 1M Red IO2/low The Black ESP-01 is what I used and will work with this project. The ESP-01S will not work with the wiring diagram I provided that uses GPIO 0 for the PIR motion sensor. It might work if you change the wiring to use GPIO 02, but I haven't tested it. Best to bread board it first. I discovered that there is a surface mount resistor on the ESP-01S that can be removed which will enable the PIR motion sensor to work on GPIO 0.</div></p> <p>STEPS:</p> <p>-Installed Tasmota on the ESP-01 (Black) and used the custom Tasmota config from here:<br/> <a href="https://templates.blakadder.com/ESP01.html">https://templates.blakadder.com/ESP01.html</a></p> <p>-Setup a user account for the motion sensor on my Mosquitto MQTT server</p> <p>-Ran the following Tasmota console commands:</p> <p>My Custom rule (console) : KitchenMotionSensor<br/> Rule1 0<br/> Rule1 ''<br/> SwitchTopic 0<br/> Switchmode1 1<br/> Rule1 ON Switch1#State=1 DO Backlog publish motion/house/kitchen True; RuleTimer1 1800 ENDON ON Rules#Timer=1 DO publish motion/house/kitchen False ENDON</p> <p>Rule1 1 (enable rule)</p> <p>RuleTimer1 (show timer)</p> <p>-Create an automation in Node-RED to connect the motion/house/kitchen topic with the Sonoff Mini controlling the light switch for my over the sink light in the kitchen.</p> <h3> How I Designed This</h3> <p><strong>About the design process...</strong></p> <p>I run Ubuntu Linux on all my home computers. This limits my choices for CAD software so I have taught myself how to use FreeCAD since there is a native Linux version that seems to be getting more stable as time goes by.</p> Category: 3D Printing
With this file you will be able to print IoT USB Powered Motion Sensor with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on IoT USB Powered Motion Sensor.