AZ-Delivery Soil Moisture Sensor Ebook

Advertisement

Quick Links

Soil Moisture Sensor
ebook
Soil Moisture Sensor
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Soil Moisture Sensor and is the answer not in the manual?

Questions and answers

Summary of Contents for AZ-Delivery Soil Moisture Sensor

  • Page 1 Soil Moisture Sensor ebook Soil Moisture Sensor...
  • Page 2: Operating Conditions

    Areas of application Education and teaching: Use in schools, universities and training institutions to teach the basics of electronics, programming and embedded systems. Research and development: Use in research and development projects to create prototypes and experiments in the fields of electronics and computer science. Prototype development: Use in the development and testing of new electronic circuits and devices.
  • Page 3 consult a doctor. Caution: Keep the product out of the reach of children and pets to avoid accidental contact and swallowing of small parts. Note: Store the product in a safe, closed container when not in use. Attention: Avoid contact of the product with food and drinks.
  • Page 4: Table Of Contents

    Features Applications Examples Hardware Overview Board Schematic How Soil Moisture Sensor Works? How to Use a Soil Moisture Sensor ? Test with Microcontroller : Connection Diagram using analog port Test the Arduino Code Setting up the Raspberry Pi and Python...
  • Page 5: Introduction

    Soil Moisture Sensor Introduction Thank you for purchasing our AZ-Delivery Soil Moisture Sensor.The Sensor uses analog resistance to detect the moisture content of the soil. It is a good plant helper to let you know if your plants are thirsty and it can also be used in the automatic watering system, garden, greenhouse, etc.
  • Page 6: Features

    Soil Moisture Sensor Features Size of the board 36×15×6mm/1.42×0.59×0.23 inches (L × W × H) Length of the sensor chairman 8.8 cm/3.46 inches WEIGHT 20 g Operating voltage DC 3.3-5V Working current <20mA (starting current: <30ma) Sensor connection XH2.54 2P...
  • Page 7: Applications Examples

    Soil Moisture Sensor Applications Examples ● Gardening ● Irrigation Systems ● Used in Controlled Environments...
  • Page 8: Hardware Overview

    Soil Moisture Sensor Hardware Overview Digital Value Output This soil moisture detector outputs a low level from the DO port when the detecting humidity reaches the threshold value. Good to work with Arduino. Analog Value Output The AO port on the soil humidity sensor outputs an analog value(voltage), and you can acquire the real-time data via the AD port of your single-chip microcomputer(MCU).
  • Page 9: Board Schematic

    Soil Moisture Sensor Board Schematic How Soil Moisture Sensor Works? ● "+" is the positive power connection, "-" is the negative connection. Do not connect upside down, otherwise the chip burns through. ● There is an LED stream display on the “P” mark on the circuit board. It shines when the module works normally.
  • Page 10: How To Use A Soil Moisture Sensor

    Soil Moisture Sensor How to Use a Soil Moisture Sensor The uses of this product are very simple. In this section of this article, we will discuss how we can hook up a sensor and work with it, so first of all we need...
  • Page 11 Soil Moisture Sensor -Soil moisture sensor -jumper Wire...
  • Page 12 Soil Moisture Sensor -breadboard -LED : -Resistor: LED and Resistor optional as we use the onBoard LED on the Microcontroller...
  • Page 13: Connection Diagram Using Analog Port

    Soil Moisture Sensor Connection Diagram using analog port Please check the pinout printed on the Module as it can be mirrored Module Microcontroller Led anode←→pin13...
  • Page 14: Software Installation

    Soil Moisture Sensor Software installation Download the latest version of Arduino IDE here: https://www.arduino.cc/en/software After starting the Arduino IDE installation file the license conditions of the “arduino-ide_2.0.0_Windows_64bit.exe” software must be read and accepted.
  • Page 15 Soil Moisture Sensor In the next step, different options can be selected for installation. Finally, the destination folder must be specified. The installation requires approx. 500MB of free disk space. Click on "Install" to start the installation.
  • Page 16 Soil Moisture Sensor After successful installation, the installation programme can be terminated via the "Finish" button.
  • Page 17 Soil Moisture Sensor The starting window:...
  • Page 18 Soil Moisture Sensor Select the UNO Board...
  • Page 19: Test The Arduino Code

    Soil Moisture Sensor Test the Arduino Code sensorPin = A0; sensorValue; dryAnalogValue = 1023; wetAnalogValue = 0; DryValuePercent = 0; WetValuepercent = 100; void setup() Serial.begin(9600); pinMode(13, OUTPUT); // Led Output void loop() sensorValue = analogRead(sensorPin); Serial.println("Analog Value : ");...
  • Page 20 Soil Moisture Sensor If everything is fine, you should see something similar on the serial monitor...
  • Page 21 Soil Moisture Sensor...
  • Page 22: Setting Up The Raspberry Pi And Python

    Soil Moisture Sensor Setting up the Raspberry Pi and Python For the Raspberry Pi, the operating system must first be installed, then everything must be set up so that it can be used in headless mode. Headless mode allows remote connection to the Raspberry Pi without the need for a PC screen monitor, mouse or keyboard.
  • Page 23: Connection Diagram

    Soil Moisture Sensor Connection Diagram Please check the pinout printed on the Module as it can be mirrored Soil Module Raspberry GND pin 9 3.3V GPIO21...
  • Page 24: Python Code

    Soil Moisture Sensor Python Code #!/usr/bin/python import RPi.GPIO as GPIO import time #GPIO SETUP sensorpin = GPIO.setmode(GPIO.BCM) GPIO.setup(sensorpin, GPIO.IN) Checkmoinsture_cb(sensorpin): GPIO.input(sensorpin): print "no water detected" else: print "water detected" # detect pin goes HIGH or LOW GPIO.add_event_detect(sensorpin, GPIO.BOTH, bouncetime=300) # Lunch callback GPIO.add_event_callback(sensorpin, Checkmoinsture_cb)
  • Page 25 If you are looking for the high quality microelectronics and accessories, AZ-Delivery Vertriebs GmbH is the right company to get them from. You will be provided with numerous application examples, full installation guides, eBooks, libraries and assistance from our technical experts.

Table of Contents