четверг, 9 июля 2015 г.

Arduino Grove WiFi Enabled Greenhouse

Arduino Grove WiFi Enabled Greenhouse
Arduino Grove WiFi Enabled Greenhouse

Picture of 12193738_892568884153285_8465631807944136881_n.jpg

Picture of IMG_7986.JPG
","pageUrl":"http://www.instructables.com/id/Arduino-Grove-Greenhouse/","id":4,"text":"great work, i love mini indoor greenhouses. are you familiar with my work.? http://www.instructables.com/id/the-Plant-Doctor-f...
one thing to point out however, the grow lights you are using will only be enough for seedling stage and even then they must be really close to the plants, you should consider upgrading to high power LEDs; http://www.instructables.com/id/LED-lights-1/

thank you for sharing, don't forget to enter to gardening contest.!!","type":"post"},{"humanLanguage":"en","author":"Peter Tree","authorUrl":"http://www.instructables.com/member/Peter%20Tree","diffbotUri":"post|3|-1117389095","html":"

Hi Fiki2007, love your project! We have a greenhouse and I've been looking at various Arduino projects to automate our greenhouse and your design seems the best for our needs.


I need to import everything needed since we live in Africa. Can you please comment if my shopping list is complete:

1. Grove Indoor Environment Kit for Intel® Edison

2. Arduino Mega2560 Rev3

3. Wifi Shield V2.0 (http://www.seeedstudio.com/depot/Wifi-Shield-V20-p...

4. Grove - Universal 4 Pin Buckled 50cm Cable (5 PCs Pack)

5. Grove - Universal 4 Pin Buckled 20cm Cable (5 PCs pack)

6. SainSmart iMatic 8 Channels Relay I/O Remote Control Controller Module


I will basically mainly use soil moisture, temperature and humidity to automatically switch on a pump and/or if certain levels are reached. Other than that I'll be using wifi to connect to the system. Your design seems ideal!


Kind Regards,


Petrus

","pageUrl":"http://www.instructables.com/id/Arduino-Grove-Greenhouse/","id":5,"text":"Hi Fiki2007, love your project! We have a greenhouse and I've been looking at various Arduino projects to automate our greenhouse and your design seems the best for our needs.
I need to import everything needed since we live in Africa. Can you please comment if my shopping list is complete:
1. Grove Indoor Environment Kit for Intel® Edison
2. Arduino Mega2560 Rev3
3. Wifi Shield V2.0 (http://www.seeedstudio.com/depot/Wifi-Shield-V20-p...
4. Grove - Universal 4 Pin Buckled 50cm Cable (5 PCs Pack)
5. Grove - Universal 4 Pin Buckled 20cm Cable (5 PCs pack)
6. SainSmart iMatic 8 Channels Relay I/O Remote Control Controller Module
I will basically mainly use soil moisture, temperature and humidity to automatically switch on a pump and/or if certain levels are reached. Other than that I'll be using wifi to connect to the system. Your design seems ideal!
Kind Regards,

Petrus","type":"post"},{"date":"Sat, 19 Dec 2015 00:00:00 GMT","humanLanguage":"en","author":"Razor 911","authorUrl":"http://www.instructables.com/member/Razor%20911","diffbotUri":"post|3|-2027796105","html":"

Hi Petrus check this out


http://www.geewiz.co.za/specials

","pageUrl":"http://www.instructables.com/id/Arduino-Grove-Greenhouse/","id":6,"text":"Hi Petrus check this out

http://www.geewiz.co.za/specials","type":"post","parentId":5},{"humanLanguage":"en","author":"Fiki2007","authorUrl":"http://www.instructables.com/member/Fiki2007","diffbotUri":"post|3|105406765","html":"

Everything looks correct! Sorry for the late reply. Also after testing mine for a while ai noticed I need more lights for my design.

","pageUrl":"http://www.instructables.com/id/Arduino-Grove-Greenhouse/","id":7,"text":"Everything looks correct! Sorry for the late reply. Also after testing mine for a while ai noticed I need more lights for my design.","type":"post","parentId":5},{"humanLanguage":"en","author":"meeraa1","authorUrl":"http://www.instructables.com/member/meeraa1","diffbotUri":"post|3|-1567774356","html":"

What are hypotheses of your idea?

","pageUrl":"http://www.instructables.com/id/Arduino-Grove-Greenhouse/","id":8,"text":"What are hypotheses of your idea?","type":"post"},{"humanLanguage":"en","author":"SteampunkN","authorUrl":"http://www.instructables.com/member/SteampunkN","diffbotUri":"post|3|394694633","html":"

nice project dude...


anyway,can i ask some question regarding on u project??


what is the function of this project??

","pageUrl":"http://www.instructables.com/id/Arduino-Grove-Greenhouse/","id":9,"text":"nice project dude...
anyway,can i ask some question regarding on u project??

what is the function of this project??","type":"post"},{"humanLanguage":"en","author":"Fiki2007","authorUrl":"http://www.instructables.com/member/Fiki2007","diffbotUri":"post|3|1337537763","html":"

Its just a simple greenhouse. The measurements are for anyone who is interested in growing statistics and conditions. This was originally meant for legal marijuana grow operations but I use mine for cooking herbs :). But you're right the function is not so useful for growing oregano and basil. It would be useful for other plants and herbs that do need monitoring.

","pageUrl":"http://www.instructables.com/id/Arduino-Grove-Greenhouse/","id":10,"text":"Its just a simple greenhouse. The measurements are for anyone who is interested in growing statistics and conditions. This was originally meant for legal marijuana grow operations but I use mine for cooking herbs :). But you're right the function is not so useful for growing oregano and basil. It would be useful for other plants and herbs that do need monitoring.","type":"post","parentId":9},{"humanLanguage":"en","author":"SteampunkN","authorUrl":"http://www.instructables.com/member/SteampunkN","diffbotUri":"post|3|1701632348","html":"

ty for the explanation. im looking forward another project from u...

ty anyway.

","pageUrl":"http://www.instructables.com/id/Arduino-Grove-Greenhouse/","id":11,"text":"ty for the explanation. im looking forward another project from u...
ty anyway.","type":"post","parentId":9},{"humanLanguage":"en","author":"Seeed Studio","authorUrl":"http://www.instructables.com/member/Seeed%20Studio","diffbotUri":"post|3|180142411","html":"

Looks very cool.

","pageUrl":"http://www.instructables.com/id/Arduino-Grove-Greenhouse/","id":12,"text":"Looks very cool.","type":"post"},{"humanLanguage":"en","author":"tzikis","authorUrl":"http://www.instructables.com/member/tzikis","diffbotUri":"post|3|-2146494935","html":"

Hey Fiki2007, awesome tutorial! Just wanted to let you know, you can also embed your codebender sketch right in your instructable!


Here's how: http://www.instructables.com/id/Include-your-codeb...


P.S. Disclosure: I'm the founder of codebender

","pageUrl":"http://www.instructables.com/id/Arduino-Grove-Greenhouse/","id":13,"text":"Hey Fiki2007, awesome tutorial! Just wanted to let you know, you can also embed your codebender sketch right in your instructable!
Here's how: http://www.instructables.com/id/Include-your-codeb...

P.S. Disclosure: I'm the founder of codebender","type":"post"},{"humanLanguage":"en","author":"Fiki2007","authorUrl":"http://www.instructables.com/member/Fiki2007","diffbotUri":"post|3|-177866184","html":"

Thanks! I actually did post it on codebender right before I posted this instructables. Nice to meet you by the way :D, I frequent your site quite often.

","pageUrl":"http://www.instructables.com/id/Arduino-Grove-Greenhouse/","id":14,"text":"Thanks! I actually did post it on codebender right before I posted this instructables. Nice to meet you by the way :D, I frequent your site quite often.","type":"post","parentId":13},{"humanLanguage":"en","author":"tzikis","authorUrl":"http://www.instructables.com/member/tzikis","diffbotUri":"post|3|-740429704","html":"

oh yeah, i saw that, just wanted to let you know that instead/on-top-of linking to the sketch, you can embed it inside the instructalbe, so that people can see the code and run in on their Arduino straight from your page :)

","pageUrl":"http://www.instructables.com/id/Arduino-Grove-Greenhouse/","id":15,"text":"oh yeah, i saw that, just wanted to let you know that instead/on-top-of linking to the sketch, you can embed it inside the instructalbe, so that people can see the code and run in on their Arduino straight from your page :)","type":"post","parentId":13}],"tags":[{"score":0.82,"count":2,"label":"Arduino","uri":"http://dbpedia.org/resource/Arduino","rdfTypes":["http://dbpedia.org/ontology/InformationAppliance","http://dbpedia.org/ontology/Device","http://www.w3.org/2002/07/owl#Thing"]},{"score":0.65,"count":2,"label":"Wi-Fi","uri":"http://dbpedia.org/resource/Wi-Fi","rdfTypes":["http://www.w3.org/2002/07/owl#Thing"]},{"score":0.53,"count":2,"label":"Light-emitting diode","uri":"http://dbpedia.org/resource/Light-emitting_diode","rdfTypes":["http://www.w3.org/2002/07/owl#Thing"]},{"score":0.51,"count":1,"label":"Seedling","uri":"http://dbpedia.org/resource/Seedling"}],"participants":10},"type":"article","title":"Arduino Grove WiFi Enabled Greenhouse","tags":[{"score":0.7,"count":4,"label":"Wi-Fi","uri":"http://dbpedia.org/resource/Wi-Fi","rdfTypes":["http://www.w3.org/2002/07/owl#Thing"]},{"score":0.51,"count":1,"label":"Peripheral","uri":"http://dbpedia.org/resource/Peripheral"}],"numPages":7,"humanLanguage":"en","pageUrl":"http://www.instructables.com/id/Arduino-Grove-Greenhouse/","html":"
Arduino Grove WiFi Enabled Greenhouse

5600e9ab67400ccd7a00008a.jpeg

IMG_2523.JPG

5600ee5b937ddb6ed300080e.jpeg

The Essentials:


Grove


Alternative: Grove Indoor Environment Kit for Edison if you're budget conscience


Controllers and Shields


Peripherals


Tools


  1. Drill
  2. Stepper Bits + Normal Bit Set
  3. Screw Drivers
  4. Wire Strippers
  5. Dykes
  6. Screws/Nuts for Mounting

The Bluno is a great way of transferring data through its apps of sensor readings. Its not too expensive and provides much more utility than a normal Mega. The only reason I am not using it is because the need of a mountable case.


The WiFi controlled relay makes this an IoT project and it works great. The only downfall of the relay is that it requires a LAN cable hook up. There are now true WiFi relays on the market but I haven't gotten the opportunity to use one yet. If you chose this option you will need a LM7805 however they heat up rather quickly so you either want a Murata 5v regulator or a large heatsink for the 7805 or perhaps they have a 12V flavor now. I have a video of the WiFi relays in use but for now Im going for the much cheaper IR Relays.


Placement

IMG_2533.JPG

Power Distribution

IMG_2536.JPG

IMG_2560.JPG

IMG_2552.JPG

IMG_2554.JPG

IMG_2558.JPG

So to recap we have an Arduino, lights, a pump (in the future), four relays, and a ventilation fan all needing power. There are two schools of thought; just make it workor making it clean rather than a rats nest. So I opted for a terminal block and a push button switch ( had some problems with the switch I will talk about later).As a power supply I used a 3 amp 12 volt supply which is sufficient. The LEDs surprisingly draw a lot of power. After looking at how power hungry each item was I figured the minimum would be a three amp supply or even better a 4 amp supply. Even my 3 amp supply is getting warm during my burn in test. Probably a good 130 degrees Fahrenheit.


I also included a type of tape everyone needs. Its a fuzzy cloth electrical tape made by TESA that also serves as abrasion tape. I use it to wrap up wires I'm routing or for wires that will experience some nicking from use like these holes you route the wires through. Alternatively you can use spiral harness cable wrap you see me use on some photos.


I also began to mount the sensors just to see how it looked and in my opinion it looks great. The power distribution block is serving its purpose and is cleaning up the wiring. The only thing that looks messy at this point are the grove connectors.


I may be leaving something out. Please PM or comment if you have ANY questions.


Extracting it from its paper prison and making thought reality

IMG_2545.JPG

IMG_2585.JPG

I like trying to make things tidy and visually appealing. So when you're at this stage, take a look at what you built and see if you can make it cleaner and more robust if it were to get tampered with. I used spiral harness cable wrap for extended lengths and and the short runs going to Bus to Relay and are all a conformal Z shape measured well and ziptied. The Grove sensors will always look a little messy unfortunately but they make projects so much easier.


I wired up the relays to be controlled by IR so the relay coil just goes to power and ground with no switch in between. The momentary switch I mentioned ended up being just an on/off but with power passing through the LED; it nerfed the voltage to 5v so nothing worked.The breadboard volt rails act as my screw terminal buss bar.


I may be leaving something out. Please PM or comment if you have ANY questions.


Here is the code in fully working order as an attachment. Make sure you follow instruction on next step.


Or use Codebender! For whatever reason I cannot put the code here in text since some elements are not allowed.


You will also want to install this Github Library, These libraries are important or else this does not work! To use, click "Download Zip". When you open up your Arduino IDE click SKETCH>IMPORT LIBRARY> ADD LIBRARY


It will ask you to find the zip file you just downloaded. Find it and click it. You now have the libraries needed for this to work!


If the link does not work search in Github this "Grove_Indoor_Environment_Arduino"


Code tips to get working

Edison_Indoor_Wire_Figure.png

First I'am using Arduino IDE V1.7.6 This is important if you have a new WiFI sheild, if you use a different IDE for your WiFi shield that works. Be my guest. (You also don't necessarily need WiFi)


In the code box you must find where you need to place your network name and password. I added it in CAPS where you need to look. It is towards the top. Here is what it says so you can do a CONTROL-F


"typedef int (*pgetSensorValue)(void);


rgb_lcd lcd;

boolean isBackLightOn = true;


char cmdstr[CMDSTR_MAX_LEN];


char ssid[48] = "ENTER YOUR NETWORK NAME HERE BETWEEN QUOTE MARKS"; // your network SSID (name) char psw[48] = "ENTER YOUR WIFI PASSWORD BETWEEN THE QUOTE MARKS"; // your network password"


Here are pin assignments you can alter if you so choose. The digital pin configuration does not refer to actual pins rather connector position you can see in the picture. As you can see this code allows for even more grove sensors which I opted not to choose like a button, servo, buzzer, relay, and PIR


"const int LightSensorIndex = 1;

const int UVSensorIndex = 2; const int THSensorIndex = 3; const int LocalIPIndex = 4;


const int pinSound = A0; const int pinMoistrue = A1; const int pinUV = A2; const int pinLight = A4; const int pinButton =5; const int pinEncoder1 = 2; const int pinEncoder2 = 3; const int pinBuzzer = 4; const int pinRelay = 8; const int pinPIR = 6; const int pinServo = 6;"


I used the default:


Temperature&Humidity SensorI2C


Moisture SensorA1Light


SensorA2UV


SensorA3PIR Motion


SensorD7EncoderD2ButtonUART(D1)


LCD RGB BacklightI2C


RelayD5


ServoD6


BuzzerD4


I may be leaving something out. Please PM or comment if you have ANY questions.


The Final Product

IMG_2580.JPG

IMG_2581.JPG

IMG_2582.JPG

IMG_2583.JPG
Show All Items

IMG_2586.JPG


Using the relay remote control you can now activate LED strips, 12V Venting Fan, and the Arduino Sensors/WiFi.


The display will show you Moisture, Temperature and Humidity, UV Light, Visual Light, and the coolest thing of all the WiFi IP address so you may monitor elsewhere in the home. Just enter the IP address in an Internet Program URL and you may need to add a :1234 to define the port. This should work.


It is the Edison's Garden Wiki which is actually pretty compatible with this Arduino conversion.


One recommendation is to use the WiFi shield above the Grove shield, it helps with transmission for some reason. If you choose grove on top, you will need a M/F SPI connector on the WiFi shield as it only has the female portion.


Check the video I made with WiFi relays!


I kind of already glossed over issues I had trying to fix. Here is what I can add...


Original article and pictures take http://www.instructables.com/id/Arduino-Grove-Greenhouse/ site


Комментариев нет:

Отправить комментарий