Skip to content

96boards-projects/automated-indoor-irrigation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Automated Indoor Irrigation

Table of Contents

1) Hardware

1.1) Hardware Requirements

1.2) Hardware Setup

  • Plugin the LinkSprite Mezzanine on the CE Board.
  • Plug in the LCD scree to the LinkSprite Mezzanine as follows:
I2C 16x2 LCD LinkSprite Mezzanine
VCC IIC VCC
GND IIC GND
SDA IIC SDA
SCL IIC SCL
  • Plug in the Soil Moisture Sensor to the LinkSprite Mezzanine as follows:
Soil Moisture Sensor LinkSprite Mezzanine
VCC ADC1 VCC
GND ADC1 GND
A0 ADC1 A0
  • Plug in the L298n Motor Controller to the LinkSprite Mezzanine as follows:
L298n LinkSprite Mezzanine
VCC D1 VCC
GND D1 GND
IN 1 D1 DA
IN 2 D1 GND
  • Plug in the L298n Motor Controller to the 5v Pump as follows:
L298n Water Pump
OUT 1 +5v
OUT 2 GND
  • Add bury the Probes of the Soil Moisture sensor in the Pot.

2) Software

This guide assumes that Debian OS is running on a Dragonboard410c. How ever the instructions hold true for other 96Boards CE Boards running Debian.

This project is compatible with other Linux based OS, but they might have to be tweaked accordingly.

2.1) Setup Environment

2.2) Code Customization Options

  • Calibrate Senor

    • Insert sensor into dry and then wet soil and modify the in_min and in_max values here:
      • line 119: water_level = map(adc_value, 550, 10, 0, 100);
    • Do this till dry soil reads 0% and wet soil reads 100%
  • Soil Moisture Percentage

    • The target moisture percentage can also be modified by editing line 127 and 133.

2.3) Running the Digital Calendar and Photo frame

  • Build Project:
    • gcc src/pot.c -o pot -lmraa -lupmc-lcm1602 -lupmc-utilities -I/usr/include/upm

The LCD screen should now show the current Pump status and Moisture Level in the soil. And the pump should start pumping water once the moisture level drops.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages