The DIY Smart Garden System

I’m going to take you on a tour of Do It Yourself Smart Gardening

My name is Cory, I’m a Technical Craftsman specializing in creative problem solving within electronics and software engineering.  Professionally, I’ve worked as an electronics engineer, a plastics fabricator, software engineer, an industrial laser technician, and, of course, a coffee barista.  I’ve spent the last several years working on a Smart Garden System project I named, hydroMazing.  I’m sharing my work with you because I would like to empower everyone who is interested in a “Smart” approach to gardening.

What we’ve covered so far:cropped-hydromazing_smart_garden_system

 

Are you interested in following me on this journey?

Now that we have an understanding of what it takes to provide an optimum indoor growing environment we can start analyzing the cost-benefit of further optimizing and automating the system.  Please share with friends and follow to receive a notification when I publish the next section.

Section 1:  Let’s start by using an Arduino Nano on an Expansion Board to monitor the indoor gardening environment.  We will measure light intensity, ambient temperature, relative humidity, nutrient/water temperature.

Section 2:  Continue working with the Arduino Nano on an Expansion Board to control appliances in the indoor gardening environment.  We can continue working directly wired or we can start working with wireless communications.  Wired or Wireless?

Section 3:  Add an Arduino Uno using an LCD with Buttons Shield to provide a display and alerts.

Section 4:  Add the Raspberry Pi for remote access, notifications, data collection, and analytics.

Section 5:  More sensors:  moisture probe, pH, E.C., carbon dioxide level, flow-rate, liquid, float (liquid level switch).Peristaltic Pump

Advanced:  Using Dosing/Peristaltic Pumps for Nutrient Solution Management.

Using a Raspberry Pi and USB Camera  Use Raspberry Pi to monitor or collect snapshots of the garden using a USB webcam.

Coming Soon:  hydroMazing Smart Garden System Kit

Kit includes wired and ready sensors and components for making the Controller Module (Arduino Nano) and Web Services Module (Raspberry Pi)?

Please share with friends and follow to receive a notification when I publish the next section.

Using a Raspberry Pi and USB Camera

You have a Raspberry Pi, or are comfortable with the idea of using one, and you want to use it to capture video or images using a USB camera.  Even though the Raspberry Pi has a port designed specifically for using a camera, it’s not as low-cost, nor as convenient as the USB corded camera.

CanaKit Raspberry Pi 3 B+ (B Plus) Starter Kit (32 GB EVO+ Edition, Premium Black Case)

It would be a lot nicer if you had a web interface to access, view, and manage the content you’ve capture using the USB camera.  Learn to set up a LAMP (Linux, Apache, MySQL, PHP) stack on your Raspberry Pi and configure it to work as a web server and set up a basic website which you can access on any device on the same network as your Pi.  This is a link to a nice tutorial for setting-up a L.A.M.P. server on your Pi, the WordPress portion is optional, you can stop after installing PHP. 

Motion

Motion is the tool that you will want to use if you want to live stream, record video, capture motion, and grab a lot of snapshots.  More options means a lot more configuration options making setup more complex.

download and install:

  • sudo apt-get update
  • sudo apt-get upgrade
  • sudo apt-get install motion

usage:  See /etc/motion/ for configuration file(s).  The documentation for Motion is contained within the file motion_guide.html.

The offline version of this file is available in the doc/motion directory. The online version of the motion_guide.html file can be viewed here

growrm2

fswebcam

fswebcam is a simple tool for grabbing snapshots using a USB connected camera and  can be configured to execute routinely using the operating system’s cron job scheduler.

download and install:

  • sudo apt-get update
  • sudo apt-get upgrade
  • sudo apt-get install fswebcam

usage:  https://www.raspberrypi.org/documentation/usage/webcams/

Make a Touch Screen Kiosk

touch screen

Raspberry Pi 7″ Touchscreen Display

AND

SmartiPi Touch case for The Official Raspberry Pi 7″ Touchscreen Display – Adjustable Angle

 

Online Example:

https://coreconduit-device.dataplicity.io/hydroMazing/viewer/index