<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hydroponics &#8211; ChilliChump</title>
	<atom:link href="https://chillichump.com/hydroponics/feed/" rel="self" type="application/rss+xml" />
	<link>https://chillichump.com</link>
	<description>Your Ultimate Guide to Growing Chillies &#38; Making Hot Sauce! Est. 2006</description>
	<lastBuildDate>Wed, 23 Aug 2023 16:16:04 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://chillichump.com/wp-content/uploads/2023/08/Untitled-100x100.png</url>
	<title>Hydroponics &#8211; ChilliChump</title>
	<link>https://chillichump.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">166150923</site>	<item>
		<title>Hydroponics Automation &#8211; Ebb &#038; Flood Basic</title>
		<link>https://chillichump.com/hydroponics-automation-ebb-flood-basic/</link>
					<comments>https://chillichump.com/hydroponics-automation-ebb-flood-basic/#comments</comments>
		
		<dc:creator><![CDATA[Shaun aka ChilliChump]]></dc:creator>
		<pubDate>Mon, 11 Mar 2019 19:00:25 +0000</pubDate>
				<category><![CDATA[Automation and Technology]]></category>
		<category><![CDATA[Hydroponics]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[hydroponics]]></category>
		<guid isPermaLink="false">https://chillichump.com/?p=332</guid>

					<description><![CDATA[Learn about Ebb &#038; Flood Hydroponics system and build your own!]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">The future of sustainable farming is not solely in sprawling fields or massive greenhouses, but it&#8217;s also being realized in compact, urban spaces using innovative methods such as hydroponics. Among the many hydroponic systems available, the ebb and flood (or flood and drain) system stands out due to its efficiency and simplicity. This system allows plants to get the perfect balance of nutrients, water, and oxygen by periodically flooding the plant roots and then draining the water back.</p>



<h2 class="wp-block-heading">Video Explanation of the Automated Ebb &amp; Flood System</h2>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="Automated Ebb and Flood Hydroponic: Code and Schematics Included!" width="1600" height="900" src="https://www.youtube.com/embed/ldvtDrwesoo?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
</div></figure>



<p class="wp-block-paragraph">Our recent video showcase dives deep into the intricacies of the &#8220;Hydroponics Automation &#8211; Ebb &amp; Flood&#8221; system, offering viewers a hands-on guide on how to build an automated version of this traditional method. Why automate, you ask? Automation ensures that plants receive the right amount of water at precise intervals, maximizing growth while minimizing resource wastage. Moreover, the convenience of automation means you can maintain a thriving hydroponic garden with minimal daily intervention. For those eager to implement this system, the accompanying article provides the complete code used in the video. Dive in and explore the seamless amalgamation of nature&#8217;s wisdom and modern technology.</p>



<h2 class="wp-block-heading">Schematic for this basic Automated Ebb &amp; Flood System</h2>



<figure class="wp-block-image"><img fetchpriority="high" decoding="async" width="1024" height="576" src="https://chillichump.com/wp-content/uploads/2019/03/electrical-schematic-Copy-1024x576.jpg" alt="Schematic - Ebb and Flood Automation- Basic" class="wp-image-340" title="Hydroponics Automation - Ebb &amp; Flood Basic 1" srcset="https://chillichump.com/wp-content/uploads/2019/03/electrical-schematic-Copy-1024x576.jpg 1024w, https://chillichump.com/wp-content/uploads/2019/03/electrical-schematic-Copy-1000x563.jpg 1000w, https://chillichump.com/wp-content/uploads/2019/03/electrical-schematic-Copy-800x450.jpg 800w, https://chillichump.com/wp-content/uploads/2019/03/electrical-schematic-Copy-300x169.jpg 300w, https://chillichump.com/wp-content/uploads/2019/03/electrical-schematic-Copy-768x432.jpg 768w, https://chillichump.com/wp-content/uploads/2019/03/electrical-schematic-Copy-1536x864.jpg 1536w, https://chillichump.com/wp-content/uploads/2019/03/electrical-schematic-Copy-480x270.jpg 480w, https://chillichump.com/wp-content/uploads/2019/03/electrical-schematic-Copy-206x116.jpg 206w, https://chillichump.com/wp-content/uploads/2019/03/electrical-schematic-Copy.jpg 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">Code for the Automated Ebb &amp; Flood Hydroponic System</h2>


<pre>/*
Author: Shaun AKA Chillichump
chillichump.com
www.youtube.com/chillichump
*/
const String swName = "ChillichumpIO Ebb&amp;Flood Basic";
const String swVer = "1.1";
const String swRel = "09/03/19";

/* Common Millis equivalents
   4 hours = 14400000; 2 hours = 7200000; 1 hour = 3600000
   10 minutes = 600000; 5 minutes = 300000; 2 minutes = 120000; 1 minute = 60000
*/

const long floodIntMillis = 60000; //millis between flooding
const long floodDurMillis = 5000; //millis for flood duration
const long longestDelayBetweenFlooding = 43200000; //longest acceptable delay between flooding. This ensures flooding occurs even if lights fail etc. 43,200,000 is 12 hours
const int lightLevel = 600; //this value indicates whether the sun is up. Value out of 1023. higher = lighter (indirect sun is around 850; normal indoor lighting is around 650)
const long lightLevelDelay = 20000; //delay before deciding it is daylight. To avoid lights, torches etc. causing issues
const byte pumpPin = 6; //pin number for activating relay for pump
const byte pinLightSensor = A2; //pin number for light sensor

unsigned int lightSensorNow = analogRead(A2);
unsigned long sunUpMillis = 0;
unsigned long sunDownMillis = 0;
unsigned long pumpLastOn = floodIntMillis + lightLevelDelay; //ensuring pump comes on when device is turned on and it is light
unsigned long pumpOffAt = 0;
boolean sunUpCheck = false;
boolean sunDownCheck = false;
boolean sunUp;
boolean lastState = false;


void setup() {
  pinMode(pumpPin, OUTPUT);
  digitalWrite(pumpPin, LOW); //pump off
}


void loop() {
  lightSensorNow = analogRead(pinLightSensor);
  if (lightSensorNow &gt;= lightLevel &amp;&amp; sunUp == false) {
    sunUp = true;
  }
  if (lightSensorNow &lt; lightLevel &amp;&amp; sunUp == true) {
    sunUp = false;
  }

  if (sunUp == true &amp;&amp; sunUpCheck == false) { //checking if sun is up or lights on
    sunUpMillis = millis();
    sunUpCheck = true;
  }
  if (sunUp == false &amp;&amp; sunDownCheck == false) { //checking if sun is down or lights are off
    sunDownMillis = millis();
    sunDownCheck = true;
  }
  if (sunUp == true &amp;&amp; millis() - sunUpMillis &gt; lightLevelDelay &amp;&amp; sunDownCheck == true) { //checking if sun has been up or lights have been on longer than lightLevelDelay
    sunDownCheck = false;
  }
  if (sunUp == false &amp;&amp; millis() - sunDownMillis &gt; lightLevelDelay &amp;&amp; sunUpCheck == true) { //checking if sun has been down or lights have been off longer than lightLevelDelay
    sunUpCheck = false;
  }

  if (millis() - sunUpMillis &gt; lightLevelDelay &amp;&amp; sunUpCheck == true ) { //checking that there has been light longer than the lightLevelDelay
    if (millis() - pumpLastOn &gt; floodIntMillis || millis() &lt; pumpLastOn) { //checking when the pump was last on. also checking if the sun has just come up or lights are on to ensure a flooding at first light.
      pumpLastOn = millis();
      pumpOffAt = millis() + floodDurMillis; //pumpOffAt has been added so that the pump doesn't switch off during a cycle if the lights go our or sun goes down
    }
  }

  if (millis() - pumpLastOn &gt; longestDelayBetweenFlooding &amp;&amp; millis() &gt; longestDelayBetweenFlooding) { //ensuring there is water at least every x hours
    pumpLastOn = millis();
    pumpOffAt = millis() + floodDurMillis;
  }

  if (millis() &lt; pumpOffAt) { //turning the pump on
    digitalWrite(pumpPin, HIGH); //pump on
  } else {
    digitalWrite(pumpPin, LOW); //pump off
  }


}
</pre>


<h2 class="wp-block-heading">Download the Arduino Code</h2>



<div class="wp-block-file"><a id="wp-block-file--media-15afa9c0-c314-4256-a5ea-fe2717070a72" href="https://chillichump.com/wp-content/uploads/2019/03/Hydro_EBBFLOOD_basic_v1.1.ino_.txt">Hydro_EBBFLOOD_basic_v1.1.ino</a><a href="https://chillichump.com/wp-content/uploads/2019/03/Hydro_EBBFLOOD_basic_v1.1.ino_.txt" class="wp-block-file__button wp-element-button" download aria-describedby="wp-block-file--media-15afa9c0-c314-4256-a5ea-fe2717070a72">Download</a></div>
]]></content:encoded>
					
					<wfw:commentRss>https://chillichump.com/hydroponics-automation-ebb-flood-basic/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">332</post-id>	</item>
	</channel>
</rss>
