Upgrade the DIY Self Watering Pot With WiFi Into a DIY Motion Detect Sentry Alarm Planter
by fedwester in Circuits > Gadgets
591 Views, 0 Favorites, 0 Comments
Upgrade the DIY Self Watering Pot With WiFi Into a DIY Motion Detect Sentry Alarm Planter
![DIY Motion Detect Sentry Vacation Alarm Hidden Inside Self Watering WiFi Pot with Remote Monitoring](/proxy/?url=https://content.instructables.com/FPV/JE7Q/JXCCU99S/FPVJE7QJXCCU99S.jpg&filename=DIY Motion Detect Sentry Vacation Alarm Hidden Inside Self Watering WiFi Pot with Remote Monitoring)
In this article we will show you how to upgrade your DIY Self Watering Pot with WiFi into a DIY Self Watering Pot with WiFi and Motion Detect Sentry Alarm.
If you haven’t read the article on how to build a DIY Self Watering Pot With WiFi, you can find that article here.
Supplies
Detaching the WiFi Board From the Baseboard
![motion_SWP_18.png](/proxy/?url=https://content.instructables.com/FC6/9RJK/JXAO3YAY/FC69RJKJXAO3YAY.png&filename=motion_SWP_18.png)
The first thing you will want to do is disconnect the WiFi board from the planter. Just simply and carefully unplug all the wirings from the board and remove the board from the enclosure.
Where to Attach the Buzzer and Motion Detector Wires
![motion_SWP_00.png](/proxy/?url=https://content.instructables.com/F0T/X8JG/JXAO3YPK/F0TX8JGJXAO3YPK.png&filename=motion_SWP_00.png)
![motion_SWP_01.png](/proxy/?url=https://content.instructables.com/FAI/UVTD/JXAO3YPJ/FAIUVTDJXAO3YPJ.png&filename=motion_SWP_01.png)
Now we will show you how to connect a waterproof motion detector and digital buzzer alarm to the board. To attach the motion detector and digital buzzer alarms to the Adosia board, use the boards’ Digital IO Channel 1 and Digital IO Channel 2 (pictured above). The channels are interchangeable, so you can use either connector, just remember which channel you use as you will need to know this when you login to Adosia to setup your control system.
The two holes at the bottom of the upper IO board are used to mount peripheral components. We will use one of them to mount our digital buzzer alarm.
Attaching the Buzzer to the WiFi Board
![motion_SWP_02.png](/proxy/?url=https://content.instructables.com/FCR/LX13/JXAO3YPI/FCRLX13JXAO3YPI.png&filename=motion_SWP_02.png)
The first thing you need to do to attach the buzzer alarm, is to disconnect the Adosia WiFi board from the baseboard. The Adosia SPACE IO board pulls out of the WiFi control baseboard easily, so you can work on attaching sensors to the IO board without damaging the WiFi baseboard.
To mount the buzzer onto the IO board just simply screw the buzzer onto the board using the PBC mounts that came with the kit.
Connecting the Buzzer Wire to the WiFi Board
![motion_SWP_03.png](/proxy/?url=https://content.instructables.com/F4Q/EXPD/JXAO3YPC/F4QEXPDJXAO3YPC.png&filename=motion_SWP_03.png)
Once the buzzer is attached, we attach the wire connectors to the buzzer alarm and route it to Digital IO Channel 2 on our Adosia IO board.
Reattaching the WiFi Board to the Baseboard
![motion_SWP_04.png](/proxy/?url=https://content.instructables.com/FL7/8N8P/JXAO3YPB/FL78N8PJXAO3YPB.png&filename=motion_SWP_04.png)
After plugging in the buzzer alarm, you can now plug the WiFi board back onto the baseboard controller (look while plugging in to make sure the pins line up on both sides).
Reattaching the Board Back Into the Enclosure
![motion_SWP_05.png](/proxy/?url=https://content.instructables.com/FIL/ZLIC/JXAO3YP4/FILZLICJXAO3YP4.png&filename=motion_SWP_05.png)
Now we can insert our Adosia board back into our enclosure assembly and reattach the wires.
Plugging in the Wires
![motion_SWP_06.png](/proxy/?url=https://content.instructables.com/FHR/G4CX/JXAO3YOZ/FHRG4CXJXAO3YOZ.png&filename=motion_SWP_06.png)
Plug the board back up that way it was when it was just a WiFi self watering pot. The level sensor switch (yellow wires) plugs into the top left connector. The water pump (red/black wires) plugs into the center-left connector, and the analog soil moisture sensor (black/red/blue wires) plug into the top right connector.
Drilling a 3/8" Hole Into the Planter
![motion_SWP_09.png](/proxy/?url=https://content.instructables.com/F7R/T0QK/JXAO3YMT/F7RT0QKJXAO3YMT.png&filename=motion_SWP_09.png)
Now we drill another 3/8" hole into the upper soil container of our self watering pot. This is where we will hide the motion detector.
Inserting the Motion Detector Wires Through the 3/8" Planter Hole
![motion_SWP_07.png](/proxy/?url=https://content.instructables.com/F5N/J2CY/JXAO3YNN/F5NJ2CYJXAO3YNN.png&filename=motion_SWP_07.png)
Feed the motion detector wires through the hole with the soil moisture sensor and tubing, as pictured above. Now insert the motion detector through the 3/8" hole we just drilled and bury the connector wire in the bark mulch to conceal it.
Connecting the Motion Detector to the Board
![motion_SWP_08.png](/proxy/?url=https://content.instructables.com/FSG/6BJZ/JXAO3YNI/FSG6BJZJXAO3YNI.png&filename=motion_SWP_08.png)
To connect the motion detector to the Adosia board, plug it into the Digital IO Channel 1. Make sure the green wire is on the left and the black wire is on the right.
Making Sure the Motion Detector Is Placed Correctly
![motion_SWP_10.png](/proxy/?url=https://content.instructables.com/FRB/ESEQ/JXAO3YMQ/FRBESEQJXAO3YMQ.png&filename=motion_SWP_10.png)
Pictured above is the motion detector placed in the 3/8" hole. Make sure it is inserted correctly and that the tip of the detector is through the hole for it to work correctly.
Concealing the Motion Detector Wires
![motion_SWP_11.png](/proxy/?url=https://content.instructables.com/F9W/NWU2/JXAO3YMP/F9WNWU2JXAO3YMP.png&filename=motion_SWP_11.png)
To make the motion detector wires barely noticeable, move some bark around to hide the wires even better.
The Water Pump
![motion_SWP_12.png](/proxy/?url=https://content.instructables.com/FNP/1L25/JXAO3YMI/FNP1L25JXAO3YMI.png&filename=motion_SWP_12.png)
Login to Adosia - pictured above is the WiFi control profile setup for the water pump. We set it to operate on a trigger and to run for 20 seconds when it gets triggered.
The Water Level Sensor Switch
![motion_SWP_13.png](/proxy/?url=https://content.instructables.com/FYN/PFXK/JXAO3YLM/FYNPFXKJXAO3YLM.png&filename=motion_SWP_13.png)
This is the water level sensor switch. We set it up to protect our pump and to alert us when the water reservoir is empty.
Configuring the Buzzer and Alarm
![motion_SWP_14.png](/proxy/?url=https://content.instructables.com/FF7/F497/JXAO3YLF/FF7F497JXAO3YLF.png&filename=motion_SWP_14.png)
This is the motion detect setup. We set up the buzzer alarm to trigger Digital IO Channel 2 (image not shown), which is configured to be a General Digital Output with mode "triggers HIGH". Once done configuring your profile, save it and assign it to your device.
Reading the Data
![motion_SWP_15.png](/proxy/?url=https://content.instructables.com/FYA/CW39/JXAO3YKG/FYACW39JXAO3YKG.png&filename=motion_SWP_15.png)
![motion_SWP_16.png](/proxy/?url=https://content.instructables.com/F1V/SXDP/JXAO3YJY/F1VSXDPJXAO3YJY.png&filename=motion_SWP_16.png)
The data on the left is the data from the first few hours our new planter is operating. It shows the number of motion detect triggers.
The data on the right shows how long the buzzer alarm was active relevant to the number of motion detect triggers.
The Final Product
![motion_SWP_17.png](/proxy/?url=https://content.instructables.com/FRD/0OCB/JXAO3YJ8/FRD0OCBJXAO3YJ8.png&filename=motion_SWP_17.png)
This is the completed DIY WiFi Sentry Pot with Motion-Activated Alarm, we have it growing a Bloodgood Japanese Maple in the kitchen by the back door, and we will activate alert once we head out for vacation.