Skip to the content
2 layers260 × 149.6 mmAgribot, the printed circuit board in 3D

AgriBot tops out at 1.4 km/h, so you can outwalk it, and that's fine, because its job is to drive to a GPS point, stop, push a soil probe into the ground and read moisture, temperature, pH, salinity (EC) and NPK, then…

Size
260 × 149.6 mm
Copper layers
2
Thickness
1.6 mm
Parts
100
Nets
117
Pads
393
Tracks, vias
1,861, 251
Pours
8
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
13 Aug 2026
Updated
7 Nov 2026

Overview

Agribot is an open-source printed circuit board by Maleksameh61, from the Maleksameh61/Agribot repository on GitHub, published under the MIT licence. It is a 2-layer board of 260 × 149.6 mm with 100 parts on 117 nets, routed with 1,861 tracks and 251 vias.

It is built around the MBR4045CT. Its parts include 29 capacitors, 22 resistors, 16 connectors, 12 ICs and 6 diodes. It belongs with the ESP32 boards of this library.

Main components

1

README

README.md

The AgriBot rover

AgriBot rover, full assembly in Fusion

AgriBot board, 3D render

View PCB in KiCanvas

Stardance reviewers: the part I'm submitting is the PCB, which is everything in PCB/ and production/. I started AgriBot before I'd even heard of Hack Club, so the chassis, motors and the rest were already underway. They're here so you can see what the board plugs into, but please review the board on its own.

AgriBot tops out at 1.4 km/h, so you can outwalk it, and that's fine, because its job is to drive to a GPS point, stop, push a soil probe into the ground and read moisture, temperature, pH, salinity (EC) and NPK, then go do it again somewhere else.

This repo is the board that runs all of that: three ESP32s, five buck converters, the motor driver links, the stepper for the probe, GPS, a SIM800L and two speakers, on 260 x 150 mm of 2 oz copper.

How it works

The idea is that nobody drives it most of the time. You give it a list of GPS points and it goes to each one, with two HC-SR04s up front so it doesn't drive into a tree. When it gets there it stops, and a NEMA 17 on a rack and pinion pushes the RS485 soil probe down. Sensors reads the probe and saves the numbers with the GPS position. While it's parked the ESP32-CAM can look at the crops, and if it's too far out for WiFi, the Audio ESP32 texts me through the SIM800L.

You can also drive it from your phone, mostly to get it to the field or out of a ditch. The phone joins the WiFi that Sensors puts up and sends throttle and steering about 20 times a second. Sensors passes that down a UART to Motion, and Motion turns it into left and right speeds for the two Cytron MDD10A drivers. Video goes straight from the ESP32-CAM to your phone over the same WiFi, and two servos aim the camera.

Motion only moves while Sensors keeps talking to it. If 150 ms go by without a command, the motors stop, and that's the entire safety system. Yes, I thought about a real e-stop. At walking pace you can just catch it, and pulling an XT60 kills everything.

Sensors also reads temperature, humidity, pressure, light and an MPU6050, and shows what's going on on a 2.8" Cheap Yellow Display over a 4-pin cable. Audio plays sounds off a microSD through two speakers.

Why I made it

Salty soil is the big problem on small farms in Egypt, and checking a field means walking it with a probe or sending samples to a lab. I wanted a rover to do the walking. I also wanted every part to come from shops in Cairo. The board and everything that plugs into it, with the JLC order and shipping, comes to about $167. The whole rover is more like $560, and most of that is the four gearmotors (1,200 EGP each at Makers) and the soil probe (3,750 EGP). I didn't see that coming when I picked them.

I took AgriBot to RobotChallenge in Beijing this August and came 4th in FreeStyle Senior. After that I redid the electronics. The plan was three separate boards (Motion, Sensors, Audio) talking over ESP-NOW, and I didn't like the chip that drives the motors depending on radio, so now it's one board with the three ESP32s wired together over UART and Sensors in the middle. Before you ask why there are still three: I counted about 39 GPIOs for everything on here, and a DevKit gives you about 24 you can actually use.

Pictures

These are renders of the real board file. The boards aren't ordered yet, so no photos.

PCB layout

Red is top copper, blue is bottom. The big red areas are the 12 V pour and the bottom is almost all ground.

PCB layout

Front and back

Front of the board

Back of the board

The three ESP32s

Motion, Sensors and Audio, left to right. Sensors is the only one with its WiFi on.

The three ESP32s

Schematic

Full schematic

Full-size PDF: production/schematic.pdf

Wiring

Every cable that leaves the board. The numbers on the board map match the plug names underneath. Wire colours are only suggestions, so go by pin number (pin 1 is the marked end of each plug).

Wiring diagram

What's on the board

Power

  • 2x XT60 inputs, one per 12 V 12 Ah battery pack
  • A 20 A fuse on each pack before they join, so a shorted pack can't get fed by the good one
  • 2 screw terminals that send 12 V out to the motor drivers
  • A 5 A fuse and an MBR4045CT Schottky in front of everything that isn't a motor
  • 5x LM2596 buck modules: 5 V for each ESP32, 5 V just for the servos, and 4.0 V for the SIM800L. Every rail has its own LED so you can see when one dies
  • Battery voltage sense on Motion and Sensors (100k/22k dividers)
  • 12 V pour on top, ground pour on the bottom, 2 oz copper because up to 20 A comes through here

Motion ESP32

  • Signal connectors for 2x Cytron MDD10A, which run four 5840-31ZY worm gearmotors
  • DRV8825 for the NEMA 17 that lowers the soil probe
  • 2 servo headers for the camera pan/tilt
  • 2 HC-SR04 connectors, with dividers so the 5 V echo doesn't cook the ESP32

Sensors ESP32

  • AHT20 + BMP280, BH1750 and MPU6050 on one I2C bus
  • NEO-6M GPS
  • MAX485 module for the RS485 soil probe, plus a 12 V terminal to power the probe
  • Cable to the CYD touchscreen
  • 8 spare pins on a header for whatever I forgot

Audio ESP32

  • 2x MAX98357A amps on one shared I2S bus, gain picked with a jumper on each
  • microSD
  • SIM800L
  • 8 more spare pins

Stuff I'm not sure about yet

A lot of this board is educated guesses, and one guess already nearly went wrong. The first LM2596 footprint was mirrored, so 12 V would have gone straight into the output side of every buck. I only caught it when I swapped in real 3D models and the module didn't line up with its pads. The pads are now 4 mm squares that fit every clone I could find, but I still want to measure one.

  • The probe is the part I'm least sure about. A NEMA 17 on a rack and pinion pushes maybe 20 to 50 N, and the rover can't push down harder than it weighs anyway. Soft or tilled soil should be fine. Dry, packed clay, I don't know yet.
  • The 5 A fuse covers every buck plus the stepper. My estimate is around 4 A worst case from 12 V, and I haven't measured anything.

If you build one

  • Set every LM2596 to its voltage before it's connected to anything, then hot glue the trimmer. 12 V into a MAX98357A kills it instantly, and the SIM800L wants 4.0 V, not 5.
  • Set the DRV8825 current limit before you plug the stepper in.
  • Use ceramic 20 A fuses, not glass, and zip tie them down. The clips hold by friction and this thing shakes.
  • The camera power terminal has ground on pin 1, the opposite of the other power terminals. It's marked − / + on the board, so look before you screw the wires in.
  • Put some kapton tape under each buck module. They sit flat on the board and their bottom pins can scratch through the solder mask.

AI declaration

Short version: the board is mine, and AI helped me check it.

I drew the schematic, picked every part, and did the placement and routing myself. I used AI kind of like a second pair of eyes. It helped me clear DRC errors and catch problems I missed, and it told me about parts I'd forgotten, mostly passives like decoupling caps, dividers and pull-ups. It also helped me plan which ESP32 pin goes where and what track width to use on the power paths. Some of the custom KiCad symbols and footprints were made by AI, and I checked those against the real modules before using them.

The firmware is where I needed AI the most. It's big, and there were errors I couldn't fix on my own, so AI helped write and debug parts of it, usually one small section at a time. I worked on it for weeks, but you'll only see one commit, because I pushed the wrong versions before and had to upload it all again. There are a lot of comments in the code. I know that can look like AI, but I put them there so you can follow what each part does.

Files

  • production/ - what you send off to get one made: gerbers.zip (Gerbers + drill files), schematic.pdf and a copy of the firmware
  • production/printables/ - STEP files for the 3D-printed parts: the four motor mounts and the ESP32-CAM pan/tilt
  • PCB/ - KiCad 10 project (agribot.kicad_sch, agribot.kicad_pcb, agribot.kicad_pro, custom footprints, symbols and 3D models)
  • CAD/agribot-pcb.step - STEP of the assembled board with every module on it. It's 54 MB, which the GitHub website won't take, so I pushed it with git instead. The module models are real ones (Espressif, KiCad library, Sector7GP, a SIM800L repo, openbikesensor, and the JLCEDA/EasyEDA Official Library for the fuses and the KF128 terminals), credits are in PCB/libraries/3dmodels/CREDITS.md
  • CAD/agribot-full-assembly.step - the whole rover exported from my Fusion file (agribot v15): the plywood chassis with everything mounted on it, including the CYD. 32 MB, so this one went up with git too. Open it if you want to see how it all fits before cutting any wood
  • firmware/ - code for all 5 chips: the Motion, Sensors and Audio ESP32s, the CYD and the ESP32-CAM. How to flash and test it is in firmware/README.md
  • BOM.csv - the bare board: everything on the PCB or plugged into it, from Makers Electronics, Micro Ohm and Free Electronics, with links, USD and EGP prices, shipping, and the JLC quote I got on Nov 3 ($68.80 for 5 boards in 2 oz copper). About $167. The drivers, motors, batteries, probe and chassis aren't in it, since they're not part of the board
  • BOM/AgriBot_Entire_Project_Cost.xlsx - the whole rover, board plus everything else (motors, drivers, batteries, probe, CYD, camera, chassis, screws). The totals work themselves out, and if you change the EGP rate at the top all the USD numbers change with it

Parts

100
QtyValueFootprintReferences
18100nF 50VCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC1, C2, C3, C4, C5, C6, C7, C10, C11, C12, C13, C14, C15, C16, C17, C18 +2
510kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR14, R15, R16, R17, R18
5220Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1, R2, R3, R4, R5
5LEDLED_THT:LED_D5.0mmD1, D2, D3, D4, D5
5LM2596S_ModuleAgriBot:LM2596S_Module_FlatMount_SMDM3, M4, M5, M6, M7
41000uF 16VCapacitor_THT:CP_Radial_D10.0mm_P5.00mmC25, C26, C27, C28
4MountingHole_6mm_Pad_TopBottomMountingHole:MountingHole_6mm_Pad_TopBottomH1, H2, H3, H4
3100uF 16VCapacitor_THT:CP_Radial_D6.3mm_P2.50mmC20, C21, C22
31kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR6, R7, R8
3ESP32 DevKit 30-pinAgriBot:ESP32_30pin_D1.0mmU10, U11, U12
2100kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR21, R22
220AAgriBot:Fuseholder_Clip-5x20mm_Littelfuse_100_Inline_P20.50x4.60mm_D1.30mm_HorizontalF2, F3
222kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR19, R20
22kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR9, R10
24.7kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR12, R13
2470uF 16VCapacitor_THT:CP_Radial_D10.0mm_P5.00mmC23, C24
2Conn_01x03_PinConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ7, J8
2MAX98357A_ModuleConnector_PinSocket_2.54mm:PinSocket_1x07_P2.54mm_VerticalU6, U7
2MDD10A_SignalConnector_JST:JST_XH_B5B-XH-A_1x05_P2.50mm_VerticalJ12, J13
2Motor_ServoConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalM1, M2
2XT60Connector_AMASS:AMASS_XT60-M_1x02_P7.20mm_VerticalJ5, J6
2ultrasonicConnector_JST:JST_XH_B4B-XH-A_1x04_P2.50mm_VerticalU2, U3
11000uF 35VCapacitor_THT:CP_Radial_D13.0mm_P5.00mmC29
110uF 16VCapacitor_THT:CP_Radial_D5.0mm_P2.00mmC19
13.3kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR11
1AHT20_BMP280_Conn_1x04Connector_JST:JST_XH_B4B-XH-A_1x04_P2.50mm_VerticalJ9
1BH1750_GY302_ModuleConnector_JST:JST_XH_B5B-XH-A_1x05_P2.50mm_VerticalU4
1DRV8825_CarrierAgriBot:Pololu_Breakout-16_15.2x20.3mm_D1.0mmU9
1Display link (CYD)Connector_JST:JST_XH_B4B-XH-A_1x04_P2.50mm_VerticalU1
1M1_PWRAgriBot:KF128-7.5_1x02_P7.50mm_HorizontalJ1
1M2_PWRAgriBot:KF128-7.5_1x02_P7.50mm_HorizontalJ2
1MAX485_Auto_ModuleConnector_JST:JST_XH_B4B-XH-A_1x04_P2.50mm_VerticalM8
1MBR4045CTPackage_TO_SOT_THT:TO-220-3_VerticalD6
1MPU6050_GY521Connector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_VerticalU5
1MicroSD_Conn_1x06Connector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_VerticalJ14
1NEMA17_Conn_1x04Connector_JST:JST_XH_B4B-XH-A_1x04_P2.50mm_VerticalJ10
1NEO6M_GPSConnector_JST:JST_XH_B4B-XH-A_1x04_P2.50mm_VerticalJ11
1SIM800L_ModuleAgriBot:SIM800L_ModuleU8
1SOIL_PROBE_PWRTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-3-5.08_1x03_P5.08mm_HorizontalJ3
1Screw_Terminal_01x02TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_HorizontalJ4
1T5AFuse:Fuseholder_Clip-5x20mm_Littelfuse_111_Inline_P20.00x5.00mm_D1.05mm_HorizontalF1
1spare audio pinsConnector_PinSocket_2.54mm:PinSocket_2x05_P2.54mm_VerticalJ15
1spare sensor pinsConnector_PinSocket_2.54mm:PinSocket_2x05_P2.54mm_VerticalJ16

Similar boards

  • 2 layers390 × 37 mmButtonsLEDs, the printed circuit board in 3D

    ButtonsLEDs

    shanteacontrols/OpenDeck

    A platform for building interactive control and sensing devices using MIDI and OSC built with Zephyr RTOS.

    100 parts960Apache-2.0
  • 2 layers196.3 × 118.7 mmMotherboard, the printed circuit board in 3D

    Motherboard

    Redherring32/OpenTendo

    An Open-Source HardWare (OSHW) recreation of the original 1985 front-loading NES Motherboard

    100 parts860
  • 2 layers76 × 40 mmProto ufl pi board, the printed circuit board in 3D

    Proto ufl pi board

    PantsForBirds/adsbee

    Open Source Embedded ADS-B Receiver

    100 parts344GPL-3.0
  • 2 layers155.8 × 76.2 mmGamepad, the printed circuit board in 3D

    Gamepad

    vsfteam/vsf

    Versaloon Software Framework -- a tiny preemptive-capable event-driven incremental software framework for embedded systems

    100 parts341Apache-2.0
  • 2 layers103.3 × 63.7 mmUsb power hub, the printed circuit board in 3D

    Usb power hub

    dilshan/usb2-power-hub

    4-Port High Power USB 2.0 Hub

    100 parts189MIT
  • 2 layers174 × 96 mmSgkb right, the printed circuit board in 3D

    Sgkb right

    sago35/tinygo-keyboard

    USB HID keyboard firmware for tinygo

    100 parts119MIT
  • 2 layers65 × 30 mmSynthtest, the printed circuit board in 3D

    Synthtest

    cnlohr/cnhardware

    My dumping grounds for all my kicad projects and random hardware bringup.

    100 parts114
  • 2 layers50 × 70 mmLcdtap rp2350, the printed circuit board in 3D

    Lcdtap rp2350

    shapoco/lcdtap

    A tool for mirroring or capturing I2C/SPI LCD displays

    100 parts85

Questions

How big is the Agribot PCB?

It measures 260 × 149.6 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Agribot use?

100 parts, built around the MBR4045CT. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Agribot KiCad files?

From the Maleksameh61/Agribot repository on GitHub, at the commit this page was made from: the board is PCB/agribot.kicad_pcb and its schematic PCB/agribot.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Agribot design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).