Smart Greenhouse Sensors

About: Everyone has been made for some particular work, and the desire for that work has been put in every heart. Rumi

This Instructable is now in Microcontroller contest, please vote for it :D

Hello everyone,

Today I will show you my little project that I built for couple of days.

This set is made of 4 (four) different sensors and I think that every greenhouse owner should have it, and it should make his life a bit easier.

LCD sensors output is in Bosnian, but I will translate it for you in the code and here. :)

Total cost of this project: $16 or €13,5 (does not include tools and you can go cheaper if you salvage some parts).

I will post items that I bought from Aliexpress, and they are the cheapest and best quality ones that you can find on Aliexpress.

ENJOY! :)

Caution:
I am not responsible if you hurt yourself or others around you!

Step 1: Gathering Items and Tools

For this project you will need:

Arduino board (I used "Nano"): https://goo.gl/wBj3nj

LCD I2C screen: https://goo.gl/PHX9F6

Photoresistor for light sensor: https://goo.gl/o1VDUq

Soil moisture sensor: https://goo.gl/F9DRF2

DHT11 temperature and humidity sensor: https://goo.gl/1v9bfk

Mini Solar panel https://goo.gl/c6woCL

3.7V battery (best to use one from an old phone or LiPo because of space) https://goo.gl/YDvYov

TP4056 battery charge/dishcharge protection: https://goo.gl/9bTYqU

Boost buck converter 3.7V to 5V (manually fixed): https://goo.gl/NZsrv7

LEDs: https://goo.gl/9B4aW6

Tactile switch for reset (optional): https://goo.gl/j61LXh

Switch (you can use any, I used these): https://goo.gl/tMKrPk

Heatshrink tubing, duct tape, wire and installation box you can probably buy in your local store.

Step 2: Schematics

I made this detailed schematics for you, I hope that it's not too complicated, but I will write all connections.

If you can't see, I uploaded my .fzz Fritzing schematics or you can download my high resolution schema: https://goo.gl/Fj4tNY

- I2C LCD screen

SDA --- Arduino A4

SCL --- Arduino A5

VCC --- Arduino 5V

GND --- Arduino GND

- DHT11/DHT22 temperature and humidity sensor

From left to right

First pin --- 5V

Second pin --- D4

Third pin --- nothing

Fourth pin --- GND

- Soil moisture sensor

VCC --- Arduino 5V

GND --- Arduino GND

D0 --- nothing

A0 --- Arduino A1

(+ and -) --- probe (polarity doesn't matter)

- 6V 1W solar panel

Positive wire (+) --- TP4056 INPUT (+) (it's next to Micro USB port)

Negative wire (-) --- TP4056 INPUT (-) (same)

- 3.7V rechargable battery (don't make a mistake here)

Positive wire (+) --- TP4056 (B+)

Negative wire (-) --- TP4056 (B-)

- Boost buck converter

(VIN+) --- TP4056 (OUT+)

(VIN-) --- TP4056(OUT-)

(VOUT+) --- Arduino VIN

(VOUT-) --- Arduino GND

-For light sensor please see schematics-




Step 3: Uploading the Code to Arduino

You will need to download some libraries:

DHT sensor library: https://github.com/adafruit/DHT-sensor-library

LCD I2C library: https://github.com/fdebrabander/Arduino-LiquidCrys...

LIGHT SENSOR LIBRARY: http://robotsbigdata.com/assets/downloads/RBD_Ligh...

Copy them to: ...\Arduino\libraries

And upload the code to Arduino.

Step 4: Connecting Everything

Be sure to use short wire and good quality solder.

For the box part, I uploaded a picture which shows you how to connect signal LEDs.

Desolder small SMD LEDs from boost converter and TP4056 module, glue your own LEDs to box and solder them to modules.

Reset button is optional, connect one end of tactile switch to GND and the other to RST pin on Arduino.

Be sure to turn the photoresistor to the sky.

Best box to use is the installation box for the electrical cables. They can withstand high temperatures and will protect electronics in it. (You can use hot glue to glue everything and it will not even get warm in this box)

Measure the LCD screen and cut the installation box to fit the LCD screen. Then glue it tightly with hot glue or epoxy.

Glue the solar panel with syntelan or epoxy (don't use hot glue here because it will melt on sun) on the top and take the cables from it through the box and into the box.

Step 5: Done!

Place it somewhere in your greenhouse. The best place to place it is somewhere in the middle of the greenhouse.

If you look closely at the bottom of wooden pole you can see that I made a coil of wire that is connected to the soil moisture sensor, so I can unwind it and measure the moisture anywhere in the greenhouse.

Translation of video:

Temperatura - temperature

Vlaznost zraka - humidity

Vlaznost tla - Soil moisture

Svjetlost - Light

Feel free to ask any questions.

Have a nice day :D


This Instructable is now in Microcontroller contest, please vote for it :D

Share

    Recommendations

    • PCB Contest

      PCB Contest
    • First Time Author

      First Time Author
    • Make it Glow Contest 2018

      Make it Glow Contest 2018

    Discussions