How to build a cheap wi-fi controlled water valve #IoTuesday #AdafruitIO
Kyle Price from Make used adafruit.io on this wi-fi controlled water valve.
One day a co-worker of mine asked me if I knew of a way to control an irrigation system from a smartphone or computer. We did some research and quickly found that it was very expensive to purchase a system with this capability, so we wondered if we could build it. This happened to be right around the time the ESP8266 first came out, and some quick searching revealed DC water valves that could be used to control water flow to the irrigation system.
When the ESP8266 Wi-Fi module first hit the street, it was very cheap, but the initial attempts to use it included all AT-commands from another microcontroller, so it was a bit clunky. I’d used it like that a couple of times, but never really felt that I could make something reliable enough to use for a project. At this point, we had obtained a DC water valve and done some testing with the ESP8266, then we shelved the project for some months. In those months, some people had ported ESP8266 support to the Arduino IDE, and a new version added the board manager which made programming the Wi-Fi chips easier.
We dusted off the parts we’d ordered and set out with a simple goal: Build a water valve that could be turned on and off remotely. The pictures below are our first working prototype, which used a 3D printed box to hold everything together, and a 12V DC “wall-wort” that I had at my house.
Here at Adafruit, we sell all of these amazing components, but we couldn’t find a good way to interact with them over the internet. There are certainly a lot of great services out there for datalogging, or communicating with your microcontroller over the web, but these services are either too complicated to get started, or they aren’t particularly fun to use. So, we decided to experiment with our own system, and that is how Adafruit IO got started.
To make it easy for people to get started using Arduino or ESP8266 we have starter packs with just about everything you may want to connect to the internet, with known-working WiFi modules! ESP8266 Huzzah Kit CC3000 Huzzah Kit
Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, or even use Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for MakeCode, CircuitPython, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.