Welcome to our home automation hacks series #3, for so many times I had problems with watering my plants while traveling abroad and I have always needed a way to control it remotely, then I decided to do it with one of the fanciest ways you may ever hear off, cause I’m gonna water my plant using Twitter, that’s right, I’m gonna make an Arduino Plant Watering System using the Arduino Twitter Shield. So let’s start with
1- Arduino Plant Watering System Components
1- Arduino Uno
3- Relay board
4- Arduino Water pump
5- Female to Male jumpers
6- USB cable
9- Plant Pot
10- DC Adaptor
You can find all these components at most of the electronics stores in your city, except the Plant Pot of course 🙂
The circuit is so simple, you only have one component that needed to be connected to 1Sheeld which is the water pump. And as it only operates on 12v which the Arduino board can’t provide so we needed an extra relay board to make our circuits separator.
It will separate our power circuit “12v adaptor” from the control circuit having the Arduino and 1Sheeld to power up the water pump with sufficient power and at the same time, protecting the Arduino board from the high voltage coming from the adaptor.
Here’s the full working code. The code is checking all the tweets being tweeted over the globe since you run the code. And once a tweet detected with the targeted phrase, the Arduino water pump which is connected to pin #13 will be turned on for two seconds.
Arduino Plant Watering System
/* Arduino Plant Watering System using 1Sheeld */
/* Calling the Custom settings for the shields in use to save the Arduino board's memory */
/* Including 1Sheeld's library */
/* Establish 1Sheeld communication */
/* Set the phrase which Twitter will be tracking to control the arduino water pump */
/* Call this function once a new tweet detected*/
/* Set the arduino water pump control pin to output */
/*The function being called once a new tweet detected */
/* Check If any tweet detected tweet has this phrase "watermyplants"*/
/* Turn on the Arduino Water Pump */
/* Turn off the Arduino Water Pump */
1- Now plug your Arduino to your PC/Laptop and upload the code (make sure first to put your 1Sheeld to uploading mode preventing errors).
2- Open the 1Sheeld application and connect to 1Sheeld board.
3- Now switch back the 1Sheeld to “Operating mode”.
4- Choose Twitter shield, and check make sure you have an internet connection.
5- Now open any twitter account on any device and tweet and tweet but should include this phrase “watermyplants”.
6- And the Arduino water pump will work for 2 seconds.
That was it, try it out yourself and if you need any help, just let me know in the comments down below. The third hack is done, stay tuned for the fourth and don’t forget to check the previous hacks in the links below 😉
Adding motion as an input for your project is going to be so much fun! You can do this by using an Accelerometer Module that measures acceleration in three linear axes (X, Y, Z) and then you can translate it into actions. Today, our topic is all about Arduino Accelerometer projects. In fact, Arduino Accelerometer …
Whenever it’s time to get off the office, I always check the traffic status to choose the best time to go home. But I couldn’t find a way to do that autonomously. So then …. I was up to make a system that shows me the current traffic status with the help of a simple tool that is used …
The newer version of 1Sheeld (1Sheeld+) built to support both iOS and Android devices,but not just that …! There’s another secret feature supported to solve the problem of using extra shield/board over 1Sheeld+, and this shield/board have the same way of communication used by 1Sheeld+ (The hardware UART serial pins pin0&pin1) with your Arduino. Exactly …
Nowadays people started integrating stuff with the internet for their daily uses, and fortunately, it’s not hard to do so..! as there are a lot of hardware/software tools that ease the development of such applications. One of these tools is the 1Sheeld’s Internet shield, which allows your arduino board to connect to a mobile application …
It’s now the age were the word “Hack” is a relevant word we see and hear everywhere, and i don’t mean the software cyber hacks,I am talking about DIY hacks 😀 . We made this Home Automation Hacks series to help you add fun features to your home stuff by doing it yourself 😉 . …
Welcome to our home automation hacks series #2, today I am going to show you how to hack your home outlets with Arduino and a phone gesture 😉 .This time I used Accelerometer sensor shield from 1Sheeld application. And with a simple gesture it will open\close the outlet to trigger the fan on or off …