How to connect a Soil moisture sensor to Arduino
Contents
Toolkit
- 1x Arduino Uno
- 1x Soil Moisture Sensor For arduino
- 1x Soil Hygrometer Detection Module
- Wires to connect the sensor to Arduino
Specification
This is a simple water sensor, can be used to detect soil moisture. Module Output is high level when the soil moisture deficit,or output is low. This sensor is inexpensive and easy to use but very accurate so the starters and the experts can use all of it's functions.
Can be used in module plant waterer device, and the plants in your garden no need people to manage. Adjustable sensitivity by adjusting the digital potentiometer.
- Operating voltage: 3.3V~5V
- Dual output mode,analog output more accurate.
- A fixed bolt hole for easy installation
- Panel PCB Dimension: 30mm * 16mm
- Soil Probe Dimension:60mm*30mm
- With power indicator (red) and digital switching output indicator (green)
- Having LM393 comparator chip, stable
PIN Assignment
- VCC : 3,3V to 5V
- GND : External GND
- DO : Digital output interface (0 and 1)
- AO : Analog output interface
- The local circuit - simple, voltage flipping style sensor
Example Code
Arduino Code:
void setup() { // initialize serial communication at 9600 bits per second: Serial.begin(9600); } void loop() { // read the input on analog pin 0: int sensorValue = analogRead(A0); Serial.println(sensorValue); delay(100); }
References
More information
- ربط مجس درجة الحرارة والرطوبة DHT11
- كيفية توصيل قارئ NFC بأردوينو
- كيفية توصيل مجس رطوبة التربة بأردوينو
- كيفية توصيل مجس درجة الحرارة TMP36 بأردوينو
- توصيل مجس هول US1881 بأردوينو
- كيفية توصيل مجس الضغط BMP085 بأردوينو
- كيفية توصيل مجس الإضاءة TSL2561 بأردوينو
- كيفية توصيل مجس قطرات المطر YL-83 بأردوينو
- كيفية توصيل مجس الرياح من Modern Device بأردوينو
- كيفية توصيل مجس الأشعة فوق البنفسجية SI1145 بأردوينو
- كيفية توصيل ريموت الأشعة تحت الحمراء