PestPulseX

Published Jun 30, 2026
 80 hours to build
 Beginner

An autonomous precision-agriculture robot that fuses thermal sensing and vision to detect pest activity in real time and apply pesticide only at the affected micro-regions. By replacing blanket spraying with targeted actuation, it reduces chemical usage, preserves soil health, and minimizes environmental impact while maintaining crop yield. Built on a scalable, low-cost robotics platform with intelligent detection and controlled spraying, the system is practical for real-world farm deployment.

display image

Components Used

Raspberry Pi 5 8GB
Single Board Computer 2.4GHz 4 Core 8GB RAM Broadcom BCM2712 Arm Cortex-A76
1
MLX90640 Temperature Sensors 32x24 thermal array
Board Mount Temperature Sensors 32x24 thermal array, 55deg FOV
1
Arduino Nano
Arduino Nano
1
Relay Module Two channel
Relay Module Two-channel
1
Connecting Wire Jumper Wires
Connecting Wire Breadboard wires
1
ESP32 DevKitC 32E
ESP32 DevKitC 32E
1
Cooling Fan
DC Fans Spot Cool with 120x120x32mm Fan, Terminal for 120VAC, 1 Guard, Adapter 6' Cord
1
32GB MicroSD Card
Adafruit Accessories 32GB Card with NOOBS 3.1 for Raspberry Pi Computers including 4
1
Raspberry Pi Camera Module v3 + multispectral add-on lens
visual and NDVI capture
1
BTS7960 High-Power Dual Channel 43A DC Motor Driver Module
Drives the DC motors based on control signals from the microcontroller.
1
DC motor 12V
2
wheels
4
12V Diaphragm Pump
1
Pesticide Reservoir
1L can
1
12V Li-ion Battery Pack
1
Buck Converter (12V to 5V)
1
Battery management system for lithium battery
To monitor and control battery parameters rwal time data through UART
1
Power switch
https://www.mouser.com/ProductDetail/Adafruit/3870?qs=qSfuJ%252Bfl%2Fd7MMK5fNS31Ow%3D%3D
1
Mounting Fasteners
1
GPS Neo-6m GPS Module
This is a complete GPS module that is based on the NEO 6M GPS. This unit uses the latest technology to give the best possible positioning information and includes a larger built-in 25 x 25mm active GPS antenna with a UART TTL socket. A battery is also included so that you can obtain a GPS lock faster. This is an updated GPS module that can be used with ardupilot mega v2. This GPS module gives the
1
Description

Step-by-Step Construction of the Autonomous Thermal-Guided Pest Detection and Precision Spraying Rover

The rover is built by integrating the mechanical structure, electronic hardware, sensing system, computer vision, navigation algorithms, and spraying mechanism into a single autonomous platform. The following methodology describes the complete development process.

Step 1: Design the Rover Chassis

 

https://images.openai.com/static-rsc-4/ShbyeAztf7r66rzuM-PAufeC3weU2AFUBlV7EkhP73npH90phWjljbzc3HnwAjJZ4AmMrTJLDtagHDrzSKju7kBd6zMQqyaM6K5YLNiQHvlzL5djjzsS6ay3D6wcpevfLzMTLSids7CYtuJMm8lW86xlAPfXjVFfClNE-z-lyGt9WcDTHL1vQGf1DT7ZF9X4?purpose=fullsize

 

 

 

The first stage involves designing a sturdy mobile platform capable of carrying all electronic components, batteries, pesticide tank, and sensors.

Components Mounted

  • Aluminum/Acrylic Chassis
  • Two DC geared motors
  • Two free wheels/caster wheels
  • Battery holder
  • Raspberry Pi mounting plate
  • Pump mounting bracket

Outcome
A stable four-wheel differential-drive rover capable of moving through agricultural fields.

Step 2: Install the Drive System

The DC geared motors are mounted on the chassis and connected to the motor driver.

Connections

  • Left Motor → Motor Driver
  • Right Motor → Motor Driver
  • Motor Driver → Arduino
  • Battery → Motor Driver

The Arduino receives movement commands from the Raspberry Pi and controls the motor driver accordingly.

Functions

  • Forward
  • Reverse
  • Left Turn
  • Right Turn
  • Stop

Step 3: Install the Thermal Camera

https://images.openai.com/static-rsc-4/KNcm3Mse6mao0cwI2B-NemWOz3X1EkinbdtkSih6Ci85kK7kf2bhbnaK2RdA6BinL9Y83vvFPwCUVAygL0DY9Obyh5onD8KAZzcWC7Ybv-8FKZd3xK0Whvyocsg96cMj80M0cFcUIeQtYLMmWDror3dSppTkchLJ68n0bXL14zumo-aWk3_HAt24uQgwMQpi?purpose=fullsize

 

https://images.openai.com/static-rsc-4/i6FJbRT9kINsqvgCsIiGOoTL7EiyoRxgbLGv0WR8Svu74Mp1_ZZNTLV9WV5ECkP7emt7_gndQpkRb_X4mpjq5Nm_H4ynRgX6pzU-oZNqvSHgIB4lMQDHvPwxDUqAwb03OXJ2sUn3Q2z7xbjlSeeXIPLeVXXHe7NJSBfLFSxzZrlkFUWmwa4XvTbwXK1NRe3f?purpose=fullsize

 

A thermal camera is mounted at the front of the rover with an unobstructed field of view.

Purpose

The camera continuously scans crops and measures temperature variations.

Thermal hotspots caused by pest infestation appear as localized regions with abnormal temperatures.

The camera sends thermal data directly to the Raspberry Pi through the I²C interface.

Step 4: Install the RGB Camera

An RGB camera is mounted beside the thermal camera.

Purpose

  • Capture high-resolution crop images
  • Validate thermal detections
  • Support future AI pest classification (YOLO)
  • Improve localization using thermal-RGB sensor fusion

Step 5: Mount Obstacle Detection Sensors

 

https://images.openai.com/static-rsc-4/CP3_jAI4cOgAqBwZY1gNv7aEAV79mZP1DkLEv6GlvXZQ2fw7W24MGcWujva5Wb7ZZD8F-1VJuHY6bR7wl8EGhupCDoRGTqnCiRpI49AqdvOb-1r0hpVWjxDvNoos1Gjvy-MR5lmnd0dqrM95mNMDJ-PCSMvlHZd6--RzetTifrAXGcU5-76T4LUlEZX-n9Jv?purpose=fullsize

Three ultrasonic sensors are installed:

  • Front
  • Left
  • Right

Function

The sensors continuously measure surrounding distances.

Whenever an obstacle is detected within approximately 20 cm, the rover:

  • Stops
  • Calculates a new route
  • Continues navigation safely

Step 6: Install the Spraying System

https://images.openai.com/static-rsc-4/w-8OfZ6PJGFQLT54M2MrJm7qZ30a7UsH6VsxsQfYyHpJ0iOvhorblvyYnlc6gNZoY-XcOsvgHHoAZZlsdE3MZK2wXSs4OL6sCaxf3kJjwFu7iJ4Km8qnLJ-GH7qtXwDEmkNp22vnqgFIA8Oa6oPlJ6vB5Rrn7FxjsL4gG2tv_9U4FXHZgQmZcwDoBY_RThLB?purpose=fullsizeThe spraying subsystem consists of:

  • Pesticide reservoir
  • 12 V diaphragm pump
  • Relay module
  • Spray nozzle
  • Silicone tubing

Working

The relay switches the pump ON only when the rover reaches the infected plant.

The nozzle sprays pesticide for approximately 3 seconds before switching OFF.

This minimizes chemical usage.

Step 7: Connect the Electronics

The complete electronic system is assembled.

Raspberry Pi

Responsible for:

  • Thermal image processing
  • Computer vision
  • AI inference
  • Path planning
  • High-level decision making

Arduino

Responsible for:

  • Motor control
  • Pump activation
  • Reading ultrasonic sensors
  • PWM generation

Communication between Raspberry Pi and Arduino is established using USB Serial or UART.

Step 8: Develop the Software

The software stack is implemented on the Raspberry Pi.

Major Modules

  1. Thermal Image Acquisition
  2. Thermal Thresholding
  3. Hotspot Detection
  4. Centroid Calculation
  5. Coordinate Generation
  6. Path Planning (A*)
  7. Obstacle Avoidance
  8. Motion Control
  9. Spray Control
  10. Data Logging

The software continuously processes sensor data and makes autonomous decisions.

Step 9: Thermal Pest Detection

 

https://images.openai.com/static-rsc-4/-OQfDjGQNRYURiOKbm3SCoFmjZj25ZjccYtBbiVmJuZfB0MCKVHvQ58kzx73Tw2zF7wWYBoMO6-Kf2bnzfNGLeH8rpN4lO3slFG91RtUPfY6o3Tu_ZhhgxZXurEfnBYa4UThHQrCStRYHLlsScfSEgUfdI_jy_jTZwDvKHUwSimp4cnYePN5MAUz01JjtoRM?purpose=fullsize

The thermal camera generates a temperature map of the crop.

The software:

  • Reads every temperature pixel
  • Applies a threshold
  • Detects abnormal regions
  • Identifies potential pest hotspots
  • Calculates the center coordinates of the hotspot

These coordinates become the navigation target.

Step 10: Autonomous Navigation

Once a hotspot is identified:

  1. Target coordinates are generated.
  2. The A* algorithm computes the shortest collision-free path.
  3. The rover moves toward the infected plant.
  4. Ultrasonic sensors monitor for obstacles.
  5. If an obstacle is encountered, the route is recalculated.
  6. Navigation resumes until the rover reaches the target.

Step 11: Precision Spraying

 

 

 

When the rover is within approximately 30 cm of the target:

  • The motors stop.
  • The relay activates the pump.
  • The nozzle sprays pesticide for the predefined duration.
  • The pump turns OFF automatically.
  • The rover resumes scanning for the next hotspot.

Only infected plants receive pesticide, reducing chemical usage and environmental impact.

Step 12: Field Testing and Validation

 

 

 

The completed rover is tested under real or simulated field conditions.

Validation includes:

  • Thermal hotspot detection accuracy
  • Navigation performance
  • Obstacle avoidance
  • Spray targeting precision
  • Battery endurance
  • Response time

Based on the results, the thermal threshold, navigation parameters, and spraying duration are fine-tuned to improve overall performance.

Overall Workflow

Power ON
      │
      ▼
Thermal Camera scans crops
      │
      ▼
OpenCV detects hotspot
      │
      ▼
Target coordinates generated
      │
      ▼
A* computes shortest path
      │
      ▼
Rover navigates autonomously
      │
      ▼
Obstacle detected?
      │
 ┌────┴────┐
 │         │
No        Yes
 │         │
 ▼         ▼
Continue  Recalculate path
 │
 ▼
Reach target
 │
 ▼
Activate pump
 │
 ▼
Spray pesticide
 │
 ▼
Resume scanning
 │
 ▼
Repeat until all hotspots are treated

 

This workflow follows the architecture described in your project report: thermal sensing identifies pest hotspots, the Raspberry Pi performs image processing and path planning, the rover navigates autonomously with obstacle avoidance, and the relay-controlled pump performs localized pesticide spraying to minimize chemical use.

Codes

Downloads

Autonomous Thermal-Guided Pest Control Rover Download

Institute / Organization

Indian Institute of Technology Madras
Comments
Ad