# Farmduino\_monitor - new github code - development console

**URL:** <https://forum.farmbot.org/t/farmduino-monitor-new-github-code-development-console/10089>\
**Category:** Software Development\
**Created:** [May 22, 2026, 10:45am UTC](https://forum.farmbot.org/t/farmduino-monitor-new-github-code-development-console/10089 "2026-05-22T10:45:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jan.janson](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jan.janson](https://forum.farmbot.org/u/jan.janson)\
**Post date:** [May 22, 2026, 10:45am UTC](https://forum.farmbot.org/t/farmduino-monitor-new-github-code-development-console/10089/1 "2026-05-22T10:45:30Z")

</div>

# farmduino\_monitor – a developer console for Farmduino diagnostics

Hi everyone,

I’ve been having issues with my motors on Genesis v1.6 and needed a way to talk directly to the Farmduino over USB – without FarmBot OS in the way – so I could test individual motors, read driver status and debug my own custom firmware.

I ended up writing a small terminal tool and thought it might be useful to others, so I’m sharing it here.

**GitHub:** [GitHub - jan2son/farmduino\_monitor: Interactive serial monitor for Farmduino (FarmBot Genesis v1.x) – real-time telemetry, command shortcuts, scripts and session logging over USB serial. · GitHub](https://github.com/jan2son/farmduino_monitor)

 ![image](https://forum.farmbot.org/uploads/default/original/2X/c/ce5066322af1fd8b827382f5dfd4eacf5f976cba.png)

* * *

## What it does

`farmduino_monitor` is an interactive serial console for Farmduino. It connects over USB and gives you a full-screen terminal UI (think `mc` or `htop`) with:

- **Real-time status line** – position, encoder values, endstops, motor load, stall detection
- **Scrolling event log** – all firmware responses decoded and colour-coded
- **Built-in shortcuts** – `approve`, `pos`, `home`, `unlock`, `lock`, `ver`, `params` and more
- **Raw command input** – type any G/F-code directly (`F22 P36 V63 Q0` etc.)
- **Command annotations** – type `ann` to toggle inline descriptions from the firmware README next to every command and response
- **Scripts** – put a `.txt` file in `scripts/`, one command per line, run it by name; inline `#` comments supported
- **Session log** – everything saved to `logs/` with kernel-style timestamps

Tested against firmware **v6.6.26** (`52053ec8`, `FARMDUINO_V32 + K16`) on Genesis v1.6.

* * *

## Why I built it

FarmBot OS does a great job but when something goes wrong at the hardware level – a driver not responding, a motor with no torque, endstops reading wrong – it’s hard to isolate the problem through the web UI. I needed to:

- send commands to a single motor without the others connected
- read TMC2130 driver status (DRV\_STATUS via the patched firmware)
- iterate quickly on parameter changes without restarting FBOS

This tool fills that gap. It’s essentially a smarter `minicom` that speaks Farmduino’s R/F/G-code protocol.

* * *

## Requirements

```bash
pip install pyserial
python3 farmduino_monitor.py /dev/ttyACM0

```

Python 3.8+, Linux/macOS.

* * *

Happy to hear if anyone finds it useful or has suggestions. If you’re debugging motor or driver issues on Genesis v1.5/1.6 (TMC2130 boards) it might save you some time.

---

<div class="post-metadata">

**Author:** ![jan.janson](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jan.janson](https://forum.farmbot.org/u/jan.janson)\
**Post date:** [May 22, 2026, 11:21am UTC](https://forum.farmbot.org/t/farmduino-monitor-new-github-code-development-console/10089/2 "2026-05-22T11:21:12Z")

</div>

Here is script example - Y motor/driver/cabling test

- spare farmduino expected with PC on USB-B, motor connected on Y connector, 24V powering
- script disable first : encoders, homing and endstops
- then move - watch motor

scripts/y-driver-test.txt

```auto
approve
F22 P101 V0 Q0
F22 P102 V0 Q0
F22 P103 V0 Q0
F22 P36 V63 Q0
F22 P37 V63 Q0
F22 P38 V63 Q0
F22 P51 V0 Q0
F22 P52 V0 Q0
F22 P53 V0 Q0
F22 P54 V0 Q0
F22 P55 V0 Q0
F22 P56 V0 Q0
F22 P18 V0 Q0
F22 P19 V0 Q0
F22 P20 V0 Q0
#F12 Y200 Q0
G00 X0 Y200 Z0 Q0

```

---

<div class="post-metadata">

**Author:** ![jsimmonds](https://forum.farmbot.org/user_avatar/forum.farmbot.org/jsimmonds/32/1470_2.png) [@jsimmonds](https://forum.farmbot.org/u/jsimmonds)\
**Post date:** [May 24, 2026, 9:32am UTC](https://forum.farmbot.org/t/farmduino-monitor-new-github-code-development-console/10089/3 "2026-05-24T09:32:16Z")

</div>

> [@jan.janson](#):
>
> If you’re debugging motor or driver issues on Genesis v1.5/1.6 (TMC2130 boards) it might save you some time.

Wow😃

Maybe the Arduino IDE gives more basic but similar features ?

Love your Python 3 skills !

---

<div class="post-metadata">

**Author:** ![jan.janson](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jan.janson](https://forum.farmbot.org/u/jan.janson)\
**Post date:** [May 24, 2026, 6:41pm UTC](https://forum.farmbot.org/t/farmduino-monitor-new-github-code-development-console/10089/4 "2026-05-24T18:41:23Z")

</div>

Hi, python is just rapid prototyping, I like C. Maybe next step. Now I wish to manage the farmduino this way and drop the farmbot web server and farmbot OS because a) does nothing b) MIPI and openCV or interference of a video on remote ai host is soo difficult c) reliability and difficulty of the code is over complicated d) modularity of the architecture is very poor e) error handling is very bad for rpi voltage, mipi camera, farmduino hw issues (my X2 driver is dead and I want to switch to AUX which 1. is unsupported even in farmduino code 2. there is no way to link the drivers a different way). So I want to change the architecture completely, drop the buildroot and use yocto instead with mender and strong security and finally run it on real embedded HW like intel. I want more from the farmbot…

---

<div class="post-metadata">

**Author:** ![jan.janson](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jan.janson](https://forum.farmbot.org/u/jan.janson)\
**Post date:** [May 24, 2026, 10:54pm UTC](https://forum.farmbot.org/t/farmduino-monitor-new-github-code-development-console/10089/5 "2026-05-24T22:54:30Z")

</div>

The farmbot frontend is super heavy…

---

<div class="post-metadata">

**Author:** ![alfarm](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/a/ed655f/32.png) [@alfarm](https://forum.farmbot.org/u/alfarm)\
**Post date:** [September 9, 2026, 4:03pm UTC](https://forum.farmbot.org/t/farmduino-monitor-new-github-code-development-console/10089/6 "2026-09-09T16:03:31Z")

</div>

> [@jan.janson](#):
>
> (my X2 driver is dead and I want to switch to AUX which 1. is unsupported even in farmduino code 2. there is no way to link the drivers a different way)

Couldn’t one simply swap the pin assignments in farmbot-arduino-firmware-main\src\pins.h like this:

```auto
    // X2-AXIS
  #define E_STEP_PIN 15 // X2_STEP_PIN
  #define E_DIR_PIN 30 // X2_DIR_PIN
  #define E_ENABLE_PIN 14 // X2_ENABLE_PIN
  #define E_CHIP_SELECT 29 // X2_CHIP_SELECT

```

changes to:

```auto
    // X2-AXIS
  #define E_STEP_PIN 40 // X2_STEP_PIN
  #define E_DIR_PIN 41 // X2_DIR_PIN
  #define E_ENABLE_PIN 37 // X2_ENABLE_PIN
  #define E_CHIP_SELECT 43 // X2_CHIP_SELECT

```

and

```auto
    // Auxiliary motors
  #define AUX_STEP_PIN 40
  #define AUX_DIR_PIN 41
  #define AUX_ENABLE_PIN 37
  // #define AUX_CHIP_SELECT 43

```

changes to:

```auto
    // Auxiliary motors
  #define AUX_STEP_PIN 15
  #define AUX_DIR_PIN 30
  #define AUX_ENABLE_PIN 14
  // #define AUX_CHIP_SELECT 29

```

and connect the X2-motor to the AUX-output (leaving encoder circuitry connected as is)?  
If I understand correctly this would just replace the broken TMC2130 of the X2-module with the (hopefully intact) TMC chip of the AUX module

-Franz

---

<div class="post-metadata">

**Author:** ![alfarm](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/a/ed655f/32.png) [@alfarm](https://forum.farmbot.org/u/alfarm)\
**Post date:** [September 14, 2026, 10:17am UTC](https://forum.farmbot.org/t/farmduino-monitor-new-github-code-development-console/10089/7 "2026-09-14T10:17:11Z")

</div>

I tested it, and it works well, see [here](https://forum.farmbot.org/t/replace-y-axis-motor-drive-by-aux-drive-in-software/10228/3)

-Franz

---

<div class="post-metadata">

**Author:** ![fallonheulwengodiva1](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/f/49beb7/32.png) [@fallonheulwengodiva1](https://forum.farmbot.org/u/fallonheulwengodiva1)\
**Post date:** [November 20, 2026, 9:04pm UTC](https://forum.farmbot.org/t/farmduino-monitor-new-github-code-development-console/10089/8 "2026-11-20T21:04:22Z")

</div>

Good to see the pin-swap confirmed. One caveat for anyone copying it: after swapping the defines, the firmware’s AUX channel now points at the old (dead) X2 driver, so don’t enable or test AUX until that hardware is repaired or the defines are reverted. Keep the X2 encoder wiring unchanged; only the step/dir/enable/chip-select path moves to the AUX connector.
