• If you need help identifying a pepper, disease, or plant issue, please post in Identification.

working on my Arduino automatisation

If it can give ideas to some people, I leave it here
 
Considering that my greenhouse is at the other end of my land and that the electricity does not go so far, I have no choice to automate the control of my greenhouse on the 12 volts.
So I need solar panels to charge the batteries,  so I searched quite a lot on the web and my choice stopped on the Arduino Sun Tracking / Heliostat Program (The Open Sun Harvesting Project)
 
"The Arduino Sun Tracking / Heliostat Program is a program for the Arduino that is able to control multiple types of sun tracking machines and heliostats. It is able to control not just one machine but several, each with its own set of design parameters. It has a myriad of other features as well such as manual control, stepper motor acceleration, and wind protection mode just to start.
To learn more about this program: https://www.cerebralmeltdown.com/open-sun-harvesting-project and the discussion board "
sFvQ0rX.png

 
It's good to follow the sun but you have to get the most from the solar panels, so I will add Arduino Based MPPT (Maximum power point tracking) Solar Charge Controller
for now i'm lokking at this project done by Tim Nolan
reUtvW6.png

 
https://web.archive.org/web/20140531202902/http://www.timnolan.com/index.php?page=arduino-ppt-solar-charger
 
 
 I need a weather station: Wind direction - Wind speed – Temperature – Humidity - Air pressure - Light levels - Rain gauge
it will be all homemade I will detail when I have some picture.
 
and now for the greenhouse:  soil Temperature – soil Humidity - automatic irrigation - automatic roll up side - and more
 
 
if you want an ARDUINO MEGA 2560 REV3 got mines from Go Cyber Shooping at (US) $14.95 
 
 
For the auto-irrigation, are you planning to go with soil moisture sensors, or just irrigate on a timed basis? I found a few sensor based controllers for around $100, but not sure just how reliable they are.
 
Hafners said:
For the auto-irrigation, are you planning to go with soil moisture sensors, or just irrigate on a timed basis? I found a few sensor based controllers for around $100, but not sure just how reliable they are.
 
with the soil moisture capacitive sensors, after lots of reading on the subject my choise is the Giess-o-mat https://www.mikrocontroller.net/topic/169824?goto=new#new
FNIdJE5.png

 
you can buy the kit here https://www.ramser-elektro.at/shop/bausaetze-und-platinen/giesomat-kapazitiver-bodenfeuchtesensor-erdfeuchtesensor-mit-beschichtung/
 
 
 
edit: some sensor test here : https://wwwvs.cs.hs-rm.de/vs-wiki/index.php/Internet_der_Dinge_WS2015/SmartPlant#Messmethode_2:_Kapazitiv
 
1.2.1 Messmethoden & Sensoren für Bodenfeuchte
1.2.1.1 Messmethode 1: Resistiv
1.2.1.2 Messmethode 2: Kapazitiv
1.2.1.3 Messmethode 3: Saugspannung
1.2.1.4 Messmethode 4: Wasserpotential
 
the weather station 
 
wind vane and anemometer
all parts are made from pvc schedule 40
 
wind speed and direction : AS5040 - Magnetic, Rotary Position Sensor Board
nSN7U17.png
lEhLqjR.png

 
rain detection¨:
LM393 Rain Drops Sensor
 
BXAwIDK.png

rain gauge:
MS5540-CM 10-1100mbar Digital Pressure Sensor Module
xVLFkQD.png

light:
TSL2591 High Dynamic Range Digital Light Sensor
ATUixf5.png

 
edit:   almost forgot the  BME280
External Temperature
Humidity
Barometric Pressure
CTK4W4U.png

 
 
Master Arduino
sEQohOr.png
ZBV5qFg.png

 
i2c 20X4 Character LCD Module Display
tutorial
 
i2c 4x4 matrix Keypad (PCF8574)
tutorial
 
15 step/pulses rotary encoder Breakout board
rotary (b) click with led 
or Cytron Rotary Switch Breakout Board
 
a72NJN2.png

 
1 DS18B20 One Wire Digital Temperature Sensor
 tutorial
 
2 OMRON 16 Channel 12V Relay Module
 tutorial
 
3 Water flow meter
 tutorial
 
4 Rain sensor
 tutorial
 
5 Soil humidity sensor
 Giess-o-mat
 
6 SIM 900 gms modul
 tutorial
 
7 Data Logging shield
 tutorial 
 
8 XBee  -  Stalker v3.1
 tutorial
 
 
Slave
axh9z9V.png

i2c 20X4 Character LCD Module Display
 
thumb joystick
tutorial
 
Toggle switch
tutorial
 
8 buttons keyboard
 
wKjdpLb.png

 
1 AS5040 adapter board
 code   library  code
 
2 TCRT5000 IR sensor
 tutorial
 
3 Rain detector sensor
 tutorial
 
4 Temperature, Humidity, Barometric Pressure (BME280)
 tutorial
 
5 Water Depth (Level) Sensor (MS5540C)
 tutorial
 
6 Light Level sensor (TSL2591)
 tutorial
 
7 DS18B20 One Wire Digital Temperature Sensor
 
8 Maximum power point tracking Solar Charge Controller (MPPT) 
 
9 XBee
 
 
 
 
*** Project with good Idea
 
Timer With On/Off Set Point
Timer Relay
Irrigation Controller
Greenhouse Automation Project         <-     good start for my project
Arduino Greenhouse Video Code       <-
 
now have to do the flowchart  to help me do the programming
bA5AIF1.png

 
 
 
With all of the work you have ahead, I'm not sure you'll have time to grow peppers !!! ?   Kidding of course :)
 
I've use Arduino for robotics and it can be a LOT of fun.  I had one project that used a digital compass, but I couldn't get past the 0/360 crossover with any degree of.... grace  :P   Other than that I had a fairly autonomous bot that would move without hitting anything.
 
Perhaps instead of a WDT, you could just perform a "restart" at sunrise or at a given interval.  If the code is solid, the WDT timer may not be needed since the function of the system doesn't involve any real danger. Just a thought.
 
Awesome Tech !!!   Good luck on your project.
 
Jeff
 
MNXR250R said:
With all of the work you have ahead, I'm not sure you'll have time to grow peppers !!! ?   Kidding of course :)
 
I've use Arduino for robotics and it can be a LOT of fun.  I had one project that used a digital compass, but I couldn't get past the 0/360 crossover with any degree of.... grace  :P   Other than that I had a fairly autonomous bot that would move without hitting anything.
 
Perhaps instead of a WDT, you could just perform a "restart" at sunrise or at a given interval.  If the code is solid, the WDT timer may not be needed since the function of the system doesn't involve any real danger. Just a thought.
 
Awesome Tech !!!   Good luck on your project.
 
Jeff
I take the time that I have lousse during the winter to do that, automation will take away a lot of work during the summer
Using the WatchDog is the simplest way of accomplishing it and and surely the safest.
I have more than 800 plants in production that will be maintained in part by my arduino I put all the chances on my side
 
I'm curious about the DS18B20 Temp probe.  I've been working on my small indoor grow.  Mixing hydro solutions and pumping it around is the easy part. Keeping a constant temperature and humidity inside of the grow tent is the challenge.
 
I'd like to have a system where I can monitor the incoming air temperature (from outdoors), the room temperature (outside of the tent) and of course the internal tent temperature and the hydro solution temperate. Write some predictive code that would be able to turn this fan on or that vent off.... to keep the temp constant.  I'm also trying to keep the humidity above 60 percent, so simple venting isn't an option. If you're curious, here is a link to my current project  http://thehotpepper.com/topic/66093-new-setup-hots/page-1
 
So the probe then, how quickly does it respond to temperature changes ?  What would you say the maximum length of the wires should be ?
 
Good Luck !
 
Jeff
 
MNXR250R said:
I'm curious about the DS18B20 Temp probe.  I've been working on my small indoor grow.  Mixing hydro solutions and pumping it around is the easy part. Keeping a constant temperature and humidity inside of the grow tent is the challenge.
 
I'd like to have a system where I can monitor the incoming air temperature (from outdoors), the room temperature (outside of the tent) and of course the internal tent temperature and the hydro solution temperate. Write some predictive code that would be able to turn this fan on or that vent off.... to keep the temp constant.  I'm also trying to keep the humidity above 60 percent, so simple venting isn't an option. If you're curious, here is a link to my current project  http://thehotpepper.com/topic/66093-new-setup-hots/page-1
 
So the probe then, how quickly does it respond to temperature changes ?  What would you say the maximum length of the wires should be ?
 
Good Luck !
 
 
DS18b20 is relatively fast about 93.75ms- 9 bits resolution 750ms-12 bits https://datasheets.maximintegrated.com/en/ds/DS18B20.pdf
if the sensor is encapsulate time may be longer for temp change because of the air insulation.
The wire length can be reach up to 100m and more https://www.maximintegrated.com/en/app-notes/index.mvp/id/148 Guidelines for Reliable Long Line 1-Wire Networks
 
to keep humidity high in my germinor box I'm using a Warm Mist Humidifier with huidity sensor
 
MNXR250R said:
.  I'm also trying to keep the humidity above 60 percent, so simple venting isn't an option. 
Jeff
 
Jeff for humidity control you can use a ultrasonic transducer
 
https://www.seeedstudio.com/Grove-Water-Atomization-v10-p-2542.html
or
https://www.ebay.com/itm/Ultrasonic-Mist-Maker-Atomizing-Transducer-Ceramic-Fogger-for-Air-Humidifier-lot/381987573855?hash=item58f03bd05f:m:m0DrIV_FJDpZeUAUCQKW3Gg
 
9oFxADy.png

 
Step by Step Introduction             video
 
So how is the project coming along ?
 
I received both the DHT11 humidity sensor and the 18D20 temperature sensor in the mail on Friday.  I got both running on a ATMega 2560.  Getting a few 5V coil (15amp contacts) relays coming tomorrow.
 
As to your project, when you talked about "automation".... are you hoping to leave your system unattended ?  To TOTALLY automate ?  Like, to leave the garden to itself and when you visit two months later.... all is well ???
 
Your project is interesting to me for sure !!.  Keep posting.
 
Jeff
 
MNXR250R said:
So how is the project coming along ?
 
I received both the DHT11 humidity sensor and the 18D20 temperature sensor in the mail on Friday.  I got both running on a ATMega 2560.  Getting a few 5V coil (15amp contacts) relays coming tomorrow.
 
As to your project, when you talked about "automation".... are you hoping to leave your system unattended ?  To TOTALLY automate ?  Like, to leave the garden to itself and when you visit two months later.... all is well ???
 
Your project is interesting to me for sure !!.  Keep posting.
 
Jeff
 
Jeff,
I'm still waiting for parts, the postman started to deliver me some last week.
so in the meantime I sort through the code, I take the sections I need.
I made myself a little software that allows me to have 12 editors in the same page
9jQJfq1.png

 
can try it here for now https://codepen.io/Pierre_Hamel/full/aJemMj/
still have coding to do but by the end of the week it should work as I want.
 
given that I work full time and that I'm not there to make sure to open the natural ventilation of the greenhouse, I needed to automate so do everything with arduino. I am often away for 3-4 days during the week and I want to have the best growing condition for the pepper plants in the greenhouse and in the field.
 
floricole, very cool idea.  Be like having a garden on a spaceship with nobody aboard. 
 
That ACE editor background color would dive my eyes batty !!  Do like the idea of having multiple files open for edit.  I'm using Atmel Studio, and I just found out that I can "split" the screen so that one file is broken out into two editing pages/panes. VERY cool !!  Don't have to constantly scroll between two parts of the code anymore  :dance:
 
Got my ATMega set up now. Nothing permanent though. Still in test mode.  So far the system has one task, and that is to keep the tent at 80degF. Heater on at night and exhaust fan during lights on. Simple but effective for my germination project. So for three days now the temp inside of the germination dome (which is inside of the tent), has been between 80-80.2 degF.  Me thinks me very happy !
 
Have the DHT11 running too, but I don't have anything written for it yet. Should be a week or so before I get the humidifiers running.
 
Good luck !!
 
Jeff
 
 
 
 
 
Jeff,
 
I like dark theme for my project, but the Ace editor have a lot of theme ( I will add the option to change them as in the demo page https://ace.c9.io/build/kitchen-sink.html
I did change for you loll https://jsfiddle.net/obo510sk/show/ no jsfiddle header https://fiddle.jshell.net/obo510sk/1/show/light/
 
if you click on the ace_gutter just left of the line number, this will remove the line from the code but you can still see it but blur text.
I'm working on the code to get a new file with those line remove from original code.
 
have to do :
file upload / download
search all tab
 
Back
Top