Smart Farming Robot Simulator

Interactive Educational Tool for Agriculture 4.0

Robotics for Good Youth Challenge Tanzania Stemisha Josephian Schools

Introduction

ROBOFARM is a multi-functional, eco-friendly robot platform for the automation of large-scale agricultural activities such as sowing seeds, irrigation watering, spraying pesticides, and ploughing. The ROBOFARM, a single-source machine, is solar-powered, and therefore, it is an economic and eco-friendly option for future precision agriculture. The robot employs DC motors and motor drivers for the control of wheels and ploughing mechanism. It employs independent modules for sprinkling pesticides and water using mini-pumps and nozzles. It employs a seed dispenser mechanism for planting seeds in the ground at regular intervals. It is controlled by Arduino or other microcontrollers, providing smooth and automated control of agriculture, reducing human labor and increasing efficiency.


This project is especially useful in small and medium-sized farms and demonstrates the capability of agricultural automation, renewable energy integration, and IoT-based smart farming techniques. Today’s farmers invest a significant amount of money in machinery aimed at increasing crop yield while reducing labor requirements. Although there are numerous machines available for tasks such as ploughing, harvesting, and spraying pesticides, each machine typically performs a single function and must be manually operated. This leads to increased costs, and when compared to the investment, the yield and profit returns are relatively low. Another major challenge is the growing demand for food due to the expanding global population. According to the World Health Organization, the global population is expected to reach 9 billion within the next 35 years, resulting in a massive increase in the demand for food crop production. To address these challenges, automation offers the most effective solution by enabling the development of machines that can perform multiple tasks with minimal human intervention, thereby increasing yield at scale. The ROBOFARM not only reduces the input cost and time spent in the field but also enhances productivity and promotes smart farming practices. By combining automation, IoT, and AI-based decision-making, this robot represents a major step toward sustainable and intelligent agriculture.

Connection Diagram

The wiring diagram has been moved to the bottom of the page for better visibility.

Components Required

Arduino UNO (Microcontroller Brain)
Wheels (x4)
Chassis (Using MDF Board)
L Clamp (For Motor & Wheel Support)
12V DC Motor (x2)
L293D Motor Driver Module
Water Motor Pump
Water Container
Seed Dispenser Unit
Servo Motor (x3)
Jumper Wires (Male-to-Male, Male-to-Female)
Bluetooth Module HC-05
Battery/Power Supply (7.4V Li-Ion recommended)
Voltage Regulator IC 7805 (5V Regulator)
1kΩ Resistor
Capacitors (1000µF 25V, 100µF 25V)
Diode 1N4007
Zero PCB (Prototype Board)
LEDs (Status Indicators)
Berg Sticks (Male Headers)
Switches (Power/Control)

Software Required

ARDUINO IDE: For programming the microcontroller
EMBEDDED C: Programming language
ANDROID APP: For Bluetooth control

Project Information

Robotics for Good Youth Challenge Tanzania

This project is designed for the Robotics for Good Youth Challenge - the leading UN-based global robotics championship organized by the International Telecommunication Union (ITU). The competition focuses on food security and invites students aged 10-18 to develop AI and robotics-based solutions to tackle this critical global challenge.

Competition Categories:
  • Junior Category: Ages 10-14
  • Senior Category: Ages 15-18
Benefits for National Event Winners:
  • Grand Finale ticket at AI for Good Global Summit 2026 (Geneva)
  • Practice area with equipment (table, chairs, power, WiFi)
  • Lunch pack for each team member at Grand Finale
  • Complimentary General Pass to AI for Good Global Summit 2026
  • Networking opportunities with the UN and global partners
  • Global media coverage and awareness
Event Location:

Dar es Salaam Institute of Technology (DIT), Morogoro Rd, Dar es Salaam

More Information:

Visit Official Event Page

Key Code Variables

DRY_THRESHOLD = 500: Soil value below this triggers watering
PEST_DISTANCE = 30: Distance in cm to detect pests
WATER_TIME = 3000: Watering duration in milliseconds
Serial.begin(9600): Start serial monitor for debugging

Competition Tips

Test Early: Test each component separately before combining
Backup Power: Bring extra batteries and charged spares
Practice Demo: Rehearse your 5-minute presentation
SDG Focus: Emphasize Zero Hunger (SDG 2) impact
SCENARIOS:

Smart Farm Field

Temp: 28°C
Humidity: 65%
Light: High
Normal

Live Sensor Readings

Soil Moisture
Good
Pest Detector
Clear
Bird Detector
Clear
Distance
> 100cm
Plants
32
Kills
0

Robot Controls

Use WASD or Arrow keys!
Scenarios
ROBOFARM (You)

System Wiring Diagram

Li-Ion Battery
7.4V
7805
Regulator
ARDUINO
UNO
(Brain)
Bluetooth
HC-05
Relay
Module
Pump
Driver 1
(L298N)
M1
Servo 1
Servo 2
Servo 3
Driver 2
(L298N)
M2/M3
DHT11
Temp/Hum
Rain
Sensor
Soil
Moisture
Ultrasonic
HC-SR04
VIN
TX/RX
D4
~D5,6
~D9
~D10
~D11
D7,8
A0
A1
A2
D2,D3
RX/TX
IN
IN1,2
SIG
SIG
SIG
IN3,4
DATA
AO
AO
TR/EC
*Arrows indicate signal/power flow. Fully expanded view available.