At this point add your mesh planting pots, I had to cut them down the side to get a tight fit on the internal lip of the pods. (Pods might need a redesign!)

The final scripting exercise.

What we need to do is set the timings on the actuators so they will automatically control our system!

The LED Grow Light should come on between 08:00 and 22:00.

The Filter should be activated when the Pump is not in use.

The Pump needs 50 secs to refill the pods every 300 secs.

To do this we can create a program similar to the Test,py. Download the attachment called iPrunes_RelayCode_V2,0.py. You can read the annotated script to better understand it!

Once you understand it, upload it to the Pi and execute the program.

Remember you can set your own timings for however you want to control your system.

Once your happy with the way your control system is scheduled you can add it to the Cron Jobs file.

This will allow the program to run on restart automatically! Use the link below to understand this better! No point me repeating what's been written better elsewhere!

https://www.ostechnix.com/a-beginners-guide-to-cro...

Remember we are in BETA.

You're done and congratulations for getting yourself this far.

Please proceed to the last step.