Irrigation & Pest Control System
| Component | Arduino Pin | Notes |
|---|---|---|
| Motor Driver IN1 | Pin 5 | Left motor forward |
| Motor Driver IN2 | Pin 6 | Left motor backward |
| Motor Driver IN3 | Pin 9 | Right motor forward |
| Motor Driver IN4 | Pin 10 | Right motor backward |
| Ultrasonic TRIG | Pin 7 | Sends sound pulse |
| Ultrasonic ECHO | Pin 8 | Receives echo |
| Soil Sensor SIG | A0 | Analog reading |
| Buzzer (+) | Pin 11 | Pest alarm sound |
| LED (+) | Pin 12 | Use 220Ξ© resistor! |
| Relay IN | Pin 4 | Controls water pump |
| All VCC | 5V | Power supply |
| All GND | GND | Ground/negative |
Attach 4 motors to chassis, add wheels. Test that it rolls smoothly.
Connect L298N outputs to motors. Connect IN1-IN4 to Arduino pins 5,6,9,10.
Secure Arduino on top. Keep USB port accessible for programming.
Ultrasonic at front (pins 7,8). Soil sensor underneath (pin A0).
Connect buzzer (pin 11) and LED with resistor (pin 12).
Connect pump through relay (pin 4). Add water tank and tube.
Install Arduino IDE. Connect USB. Select board. Click Upload.
Test movement, sensors, watering, and pest alarm separately.
Our Smart Farming Robot supports these global goals: