Build IoT Self Watering Pots & Custom WiFi Cultivation Setups P1: Connect Pumps, Sensors & Relays

I'm going to show you how together self-watering personal cultivation setup that triggers and schedules lighting as well so this is going to water based on soil moisture with a custom watering profile it's going to schedule lighting we're gonna have a water level sensor switch and this level switch will print is designed to protect the pump this pump needs to run fully submerged under water to stay protected so we're going to show you how to connect all these we're also gonna show you how to connect this relay module board to the space i/o board as well as setup the wiring for that we're going to show you how to connect the moisture sensor to the board as well and then we're also going to show you how to add on either a submersible temperature sensor or a second-level switch if you want notifications when the water is getting low as opposed to once it's already out so I'll show you how to set all these up connect them to the board these systems can support submersible water pumps which can be plugged in to one of the two motor switch channels here here you could also plug in an LED strip here if you wanted to so you can do run two pumps you could run an LED strip we don't sell air filter or air pumps but there's a you could also run a smaller air pump here and we'll show you in later videos how to do that but for for this setup for the single self watering pot we're running a pump here and an LED strip here for the one you saw in that video so all you have to do to connect them is simply just plug it in very simple and then just log into the Atocha panel and you would set this up as under the motor switch channel one for the device profile that's where you'd set up and configure it so the water level sensor switch can be plugged in to different places for the lower one we're gonna plug it into this far left pin out right here and that just and the other place you can connect it is on these far two left pins here if you look at that so you could also connect obviously this other second-level switch here so this is what you would use if you wanted a warning level switch as opposed to the stop level switch or you could plug in the submersible temperature sensor on this far left channel and so what you want to do is just make sure you have the yellow wire towards the left of the board like that and now you've got a submersible temperature sensor channel there here's the moisture sensor and it's very simple to connect all you got to do is you've got some analog pins right here you will just want to slide it on this on these three pins there if you can see where I plug that in and with the blue wire down and the black wire closest to the board now we're gonna show you how to connect the relay board to the space i/o board you can buy these already connected if you want him but it's easiest just to pull off the shield and you can see you've got two mounting holes here in here and what you're gonna do is you're gonna take these the board mounts and you want to take the nut put the board mounts through the bottom of the board and then just screw the nut on and it helps to have a tool to tighten them whether you're using pliers or there's special tools to to get these kind of on your firm and tight so once you've got your mounts secured to your i/o shield what you want to do is just basically just kind of screw your base shield on okay so before I connect the relay board it's easiest to go ahead and connect the wiring for the relay and what's cool about this space board is you got some extra pin outs down here and farce farthest two on the left are two ground pins and then you have two 3.3 volt pins to five bolt pins and then 2 VN pins which are the voltage of whatever you've got plugged in the back so these will be 12 volts in the case of everything that we ship and so what we'll do is we're gonna go ahead we're gonna need a ground pin for the relay and we're also going to take a we're gonna be powering it with powering the relay itself with five volts so put one wire on any of these two bottom pins and one wire on any in the second the third or the fourth pin from the right and then it's once you have those plugged in it you can go ahead and close it up okay so now what I'm going to do is I'm going to take my ground pin and I'm just going to bring it around and plug it into this pin here so you can see that labeled yeah ground in one in two and VCC the VCC is where we're gonna go ahead and plug our voltage in so our 5 volts we're going to plug that in to VCC okay so now we've got our ground in our power applied to the relay if we wanted to use a separate power source not from our board itself which you can do to it makes your devices more safe and protects them from the actual electrical current supply that we're gonna plug up to the relay you'd want to do that in more industrial solutions and non mission-critical apps if you guys are running serious setups you'd probably want to use separate power supplies but once you've got those connected all you've got to do is connect your controls in one and in two for this setup where you were using a motion detector in the video but for the relay to control both relays independently we need both of these i/o ports and we're not going to whereas the motion detector takes up one so plug it in both of these in one and in twos to activate those separately we would come right here on this pin and right here on this pin these are the digital i/o pins and if you look at them you get did I oh one did I oh two and the signals are on the far left pins these other two pins is a 3 volt and a ground going from left to right so you've got the digital pin a 3 volt and a ground on each of the digital i/o channels you can see that label underneath right there but that's simple that's how you connect your relay it's just 4 wires it's ready to go and then what you want to do is just plug your shield back in and make sure you get your pins all lined up neatly so that's how you connect your relay okay so wiring up this relay is really easy you've got three places where you can plug in a wire for each relay you've got your normally open pin your comp in which you always use in your normally-closed pin so the difference is just choosing between your normally opening your normally-closed pin for the normally open pin the relay will remain switched off until it's switched on and from the normally closed pin whatever you have plugged the relay will be on and T's switch it off so we're gonna do the normally open and the com so basically we're just going to take our two wires we spliced a wire from our electrical AC wire and you just need one of the wires if you're running on a 2 wire but you just basically cut it in half and you insert one end into the comm and the other end into the we open and you've got screw terminals here up top so you have to unscrew those and then put the wires in and clamp them down we've got a power strip and that's what this is so we're basically plugging a power strip into our relay into the normally open and into the comp ends and that's how you connect your relay up so we'll go ahead and show you how to program this now

One Comment

  1. Tetter said:


    June 30, 2019

Leave a Reply

Your email address will not be published. Required fields are marked *