Arduino UNO-Based Smart Soil Moisture and Distance Sensing System with Servo Control
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller interfacing with a Servo motor, an Ultrasonic Sensor, and a SparkFun Soil Moisture Sensor. The circuit is powered by a 18650 Li-ion Battery. The Arduino UNO controls the Servo motor and reads data from the Ultrasonic Sensor and Soil Moisture Sensor.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
Servo
- Description: A motor that can be controlled to rotate to a specific angle.
- Pins: GND, VCC, PWM
Ultrasonic Sensor
- Description: A sensor used to measure distance by using ultrasonic waves.
- Pins: +VCC, Trigger, Echo, GND
SparkFun Soil Moisture Sensor
- Description: A sensor used to measure the moisture level in the soil.
- Pins: VCC, GND, SIG
18650 Li-ion Battery
- Description: A rechargeable lithium-ion battery.
- Pins: -, +
Wiring Details
Arduino UNO
5V is connected to:
- Servo (VCC)
- Ultrasonic Sensor (+VCC)
- SparkFun Soil Moisture Sensor (VCC)
GND is connected to:
- Servo (GND)
- Ultrasonic Sensor (GND)
- SparkFun Soil Moisture Sensor (GND)
- 18650 Li-ion Battery (-)
Vin is connected to:
- 18650 Li-ion Battery (+)
A0 is connected to:
- SparkFun Soil Moisture Sensor (SIG)
D10 is connected to:
- Servo (PWM)
D9 is connected to:
- Ultrasonic Sensor (Trigger)
D8 is connected to:
- Ultrasonic Sensor (Echo)
Servo
VCC is connected to:
- Arduino UNO (5V)
GND is connected to:
- Arduino UNO (GND)
PWM is connected to:
- Arduino UNO (D10)
Ultrasonic Sensor
+VCC is connected to:
- Arduino UNO (5V)
GND is connected to:
- Arduino UNO (GND)
Trigger is connected to:
- Arduino UNO (D9)
Echo is connected to:
- Arduino UNO (D8)
SparkFun Soil Moisture Sensor
VCC is connected to:
- Arduino UNO (5V)
GND is connected to:
- Arduino UNO (GND)
SIG is connected to:
- Arduino UNO (A0)
18650 Li-ion Battery
+ is connected to:
- Arduino UNO (Vin)
- is connected to:
- Arduino UNO (GND)
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Documentation (documentation.txt)
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the Arduino UNO microcontroller.