# Arduino

**URL:** https://forum.farmbot.org/c/arduino/6.md

[Latest](https://forum.farmbot.org/latest.md) · [Categories](https://forum.farmbot.org/categories.md)

---

## [About the Arduino Category](https://forum.farmbot.org/t/about-the-arduino-category/13)

<div class="topic-metadata">

**Author:** [@roryaronson](https://forum.farmbot.org/u/roryaronson)\
**Replies:** 0

</div>

Use this category to discuss the Arduino side of FarmBot including sensors, software, boards, and more! Some Links: - FarmBot Arduino Controller Code on GitHub - Arduino Homepage

---

## [Duplicate Farmduino MAC addresses?](https://forum.farmbot.org/t/duplicate-farmduino-mac-addresses/8852)

<div class="topic-metadata">

**Author:** [@captainsemtex](https://forum.farmbot.org/u/captainsemtex)\
**Replies:** 2\
**Last updated:** [December 5, 2023, 9:33pm UTC](https://forum.farmbot.org/t/duplicate-farmduino-mac-addresses/8852 "2023-12-05T21:33:42Z")

</div>

Our company has several Farmbots and while whitelisting our latest Farmbot to our network we discovered that the Farmduino has the same MAC address as an existing Farmduino on our network. Can we change the MAC address …

---

## [Arduino Mega with RAMPS not connecting to Raspberry pi 3 in Ver. 15.4.5](https://forum.farmbot.org/t/arduino-mega-with-ramps-not-connecting-to-raspberry-pi-3-in-ver-15-4-5/8823)

<div class="topic-metadata">

**Author:** [@jmLafarga](https://forum.farmbot.org/u/jmLafarga)\
**Replies:** 3\
**Last updated:** [November 23, 2023, 6:42pm UTC](https://forum.farmbot.org/t/arduino-mega-with-ramps-not-connecting-to-raspberry-pi-3-in-ver-15-4-5/8823 "2023-11-23T18:42:00Z")

</div>

The arduino Mega with the ramps does not detect me (I do not have the Farmduino board) How do I solve the error?

---

## [Change steps per mm in case of decimal number](https://forum.farmbot.org/t/change-steps-per-mm-in-case-of-decimal-number/1756)

<div class="topic-metadata">

**Author:** [@Klaus](https://forum.farmbot.org/u/Klaus)\
**Replies:** 3\
**Last updated:** [June 4, 2023, 2:08am UTC](https://forum.farmbot.org/t/change-steps-per-mm-in-case-of-decimal-number/1756 "2023-06-04T02:08:24Z")

</div>

Dear Farmbot Forum, first a huge thanks to the makers of Farmbot and sharing it with the community! I am planning to move my Farmbot by a tooth rack instead of a belt. The idea is that the Farmbot can later move from…

---

## [How do the water pump and vacuum pump work?](https://forum.farmbot.org/t/how-do-the-water-pump-and-vacuum-pump-work/8533)

<div class="topic-metadata">

**Author:** [@skandasprasad](https://forum.farmbot.org/u/skandasprasad)\
**Replies:** 1\
**Last updated:** [March 23, 2023, 7:46am UTC](https://forum.farmbot.org/t/how-do-the-water-pump-and-vacuum-pump-work/8533 "2023-03-23T07:46:06Z")

</div>

Does the vacuum pump have different stages of suction pressure that it can create for each different seed, or is it just a simple on/off mechanism where the on means full high constant pressure and off means zero? As fo…

---

## [Choose USB Port on Raspberry?](https://forum.farmbot.org/t/choose-usb-port-on-raspberry/6264)

<div class="topic-metadata">

**Author:** [@GillesF](https://forum.farmbot.org/u/GillesF)\
**Replies:** 18\
**Last updated:** [September 14, 2021, 1:54pm UTC](https://forum.farmbot.org/t/choose-usb-port-on-raspberry/6264 "2021-09-14T13:54:30Z")

</div>

Hello, I have a fresh installation of version 10.0 and it does not work with megatronics or MKS base 1.6… when flashing, it says " found tty: ttyAMA0 for firmware flash" however the serial port used is ttyUSB0. Anyway t…

---

## [PWM with UTM to control servo](https://forum.farmbot.org/t/pwm-with-utm-to-control-servo/7614)

<div class="topic-metadata">

**Author:** [@MarHell](https://forum.farmbot.org/u/MarHell)\
**Replies:** 17\
**Last updated:** [July 22, 2021, 9:46am UTC](https://forum.farmbot.org/t/pwm-with-utm-to-control-servo/7614 "2021-07-22T09:46:18Z")

</div>

Hello, i work on my barchelor degree thesis. I am creating new head for Farmbot. I have a prototype but i struggle with controls. My head uses MG995 servo. I have it connected to UMT, all pins are ok, I can meassure 5V…

---

## [Farmduino vs RAMPS](https://forum.farmbot.org/t/farmduino-vs-ramps/1974)

<div class="topic-metadata">

**Author:** [@roryaronson](https://forum.farmbot.org/u/roryaronson)\
**Replies:** 25\
**Last updated:** [January 25, 2021, 1:28pm UTC](https://forum.farmbot.org/t/farmduino-vs-ramps/1974 "2021-01-25T13:28:48Z")

</div>

What do you exactly mean, what is the problem with RAMPS? Is there any project plan or something for hard and software that you could share with the community in order to be up to date regarding features and possible i…

---

## [Farduino obj file](https://forum.farmbot.org/t/farduino-obj-file/7062)

<div class="topic-metadata">

**Author:** [@david1](https://forum.farmbot.org/u/david1)\
**Replies:** 4\
**Last updated:** [January 13, 2021, 4:15pm UTC](https://forum.farmbot.org/t/farduino-obj-file/7062 "2021-01-13T16:15:41Z")

</div>

Hallo im building my own farmbot on a budget. I have tried to built it using the ramps 1.4 but it is not working out for me. Is there a obj file of the farmduino and the UTM so i cant open it in easyEDA to edit the pcb f…

---

## [Ardu + RAMPS + DHT11](https://forum.farmbot.org/t/ardu-ramps-dht11/6998)

<div class="topic-metadata">

**Author:** [@Andrzej](https://forum.farmbot.org/u/Andrzej)\
**Replies:** 4\
**Last updated:** [December 8, 2020, 4:43pm UTC](https://forum.farmbot.org/t/ardu-ramps-dht11/6998 "2020-12-08T16:43:00Z")

</div>

Hi I did my robot on Arduino and RAMPS and connected to it a DHT11 sensor and humidity sensor, and set it as analogue inputs in the application. The humidity sensor gives values and using this formula I am able to dete…

---

## [Can we read the Peripheral Current Sensors on the Farmduino v1.5](https://forum.farmbot.org/t/can-we-read-the-peripheral-current-sensors-on-the-farmduino-v1-5/6656)

<div class="topic-metadata">

**Author:** [@jsimmonds](https://forum.farmbot.org/u/jsimmonds)\
**Replies:** 1\
**Last updated:** [August 6, 2020, 2:16pm UTC](https://forum.farmbot.org/t/can-we-read-the-peripheral-current-sensors-on-the-farmduino-v1-5/6656 "2020-08-06T14:16:50Z")

</div>

Searching the Arduino code I didn’t see where the lovely Current Sensors on the switched Peripheral outputs could be retrieved via F/G Codes ? Is this feature yet to be built ? Thanks :slight\_smile:

---

## [Ground level detection](https://forum.farmbot.org/t/ground-level-detection/6302)

<div class="topic-metadata">

**Author:** [@jensGeorgsen](https://forum.farmbot.org/u/jensGeorgsen)\
**Replies:** 32\
**Last updated:** [June 23, 2020, 10:52am UTC](https://forum.farmbot.org/t/ground-level-detection/6302 "2020-06-23T10:52:38Z")

</div>

Hi, I encounter the challenge that the level of the ground is varying despite my efforts to make it smooth and plane. Are there any considerations for the issue in the community how to handle this? Yours Jens

---

## [Arduino Mega / Ramps Shield - Pinout](https://forum.farmbot.org/t/arduino-mega-ramps-shield-pinout/889)

<div class="topic-metadata">

**Author:** [@david\_hickox](https://forum.farmbot.org/u/david_hickox)\
**Replies:** 8\
**Last updated:** [June 21, 2020, 6:50pm UTC](https://forum.farmbot.org/t/arduino-mega-ramps-shield-pinout/889 "2020-06-21T18:50:24Z")

</div>

Is there a pin map for the ramps shield for which motor goes where, and where the vacuum gets hooked up, and the solenoid valve. I remember there used to be one in the docs, but I can't seem to find it, but I have a Farm…

---

## [Detect seed on needle](https://forum.farmbot.org/t/detect-seed-on-needle/6303)

<div class="topic-metadata">

**Author:** [@jensGeorgsen](https://forum.farmbot.org/u/jensGeorgsen)\
**Replies:** 7\
**Last updated:** [May 31, 2020, 7:34pm UTC](https://forum.farmbot.org/t/detect-seed-on-needle/6303 "2020-05-31T19:34:50Z")

</div>

For automated seeding it seems to be important to detect if a seed actually was picked up. Is there a way to detect this?

---

## [Change to DC Motor control](https://forum.farmbot.org/t/change-to-dc-motor-control/1432)

<div class="topic-metadata">

**Author:** [@Nevel](https://forum.farmbot.org/u/Nevel)\
**Replies:** 2\
**Last updated:** [April 6, 2020, 10:16am UTC](https://forum.farmbot.org/t/change-to-dc-motor-control/1432 "2020-04-06T10:16:36Z")

</div>

Dear Farmbot community I just begun to work with your Arduino OS to configure it for my one Farmbot on the rooftop of our house. Due to a design change to DC Motors with encoders, I would like to change the control fun…

---

## [Using Custom Arduino Firmware](https://forum.farmbot.org/t/using-custom-arduino-firmware/2176)

<div class="topic-metadata">

**Author:** [@Loveny](https://forum.farmbot.org/u/Loveny)\
**Replies:** 1\
**Last updated:** [June 27, 2017, 7:18pm UTC](https://forum.farmbot.org/t/using-custom-arduino-firmware/2176 "2017-06-27T19:18:23Z")

</div>

---

## [Using farmDuino Digital Fin](https://forum.farmbot.org/t/using-farmduino-digital-fin/4351)

<div class="topic-metadata">

**Author:** [@lkh1019](https://forum.farmbot.org/u/lkh1019)\
**Replies:** 1\
**Last updated:** [July 18, 2019, 7:27am UTC](https://forum.farmbot.org/t/using-farmduino-digital-fin/4351 "2019-07-18T07:27:31Z")

</div>

Hello, I am a user who lives in Korea and bought a Farmbot. In FarmDuino in FarmBots, we put a relay for Arduino on the digital pin that we have left over and try to control it. 5v for FarmDuino and relay is connected wi…

---

## [Controlling servos](https://forum.farmbot.org/t/controlling-servos/4431)

<div class="topic-metadata">

**Author:** [@Holualoa\_School](https://forum.farmbot.org/u/Holualoa_School)\
**Replies:** 3\
**Last updated:** [January 8, 2019, 6:07pm UTC](https://forum.farmbot.org/t/controlling-servos/4431 "2019-01-08T18:07:06Z")

</div>

Aloha Folks, I am interested in controlling some servos via the UTM for a custom tool. From what I understand, servos require a specific PWM signal that is quite different than a vanilla PWM signal. Is it possible to co…

---

## [Arduino firmware - Custom functions for CAN bus based encoders](https://forum.farmbot.org/t/arduino-firmware-custom-functions-for-can-bus-based-encoders/3926)

<div class="topic-metadata">

**Author:** [@PhobosIndustries](https://forum.farmbot.org/u/PhobosIndustries)\
**Replies:** 3\
**Last updated:** [September 18, 2018, 1:45am UTC](https://forum.farmbot.org/t/arduino-firmware-custom-functions-for-can-bus-based-encoders/3926 "2018-09-18T01:45:57Z")

</div>

Hello everyone, I am currently building our Farmbot and have opted to use a slightly different set up with independent encoders, rather than motor shaft mounted ones. It is most similar to Genesis V1.2 I guess, in that …

---

## [Encoder and stepper operation](https://forum.farmbot.org/t/encoder-and-stepper-operation/1892)

<div class="topic-metadata">

**Author:** [@Loveny](https://forum.farmbot.org/u/Loveny)\
**Replies:** 7\
**Last updated:** [May 14, 2018, 10:07pm UTC](https://forum.farmbot.org/t/encoder-and-stepper-operation/1892 "2018-05-14T22:07:25Z")

</div>

stepper notes.pdf (282.7 KB) The attached document contains some observations following a look at the stepper/encoder operations with a logic analyser. @roryaronson suggested I post this publicly for interest/archive/fee…

---

## [Analog Input Pullup](https://forum.farmbot.org/t/analog-input-pullup/3303)

<div class="topic-metadata">

**Author:** [@Klimbim](https://forum.farmbot.org/u/Klimbim)\
**Replies:** 8\
**Last updated:** [June 20, 2018, 8:26pm UTC](https://forum.farmbot.org/t/analog-input-pullup/3303 "2018-06-20T20:26:54Z")

</div>

Hoi zäme, today I managed with great help from @ascend (thanks soo much!) to rewrite the arduino FW in order to delete the pullup of one analog input. This helped me to measure something meaningful with my Sharp 2Y0A21d…

---

## [Incorrect Soil Sensor value](https://forum.farmbot.org/t/incorrect-soil-sensor-value/2785)

<div class="topic-metadata">

**Author:** [@JoeHou](https://forum.farmbot.org/u/JoeHou)\
**Replies:** 2\
**Last updated:** [October 28, 2017, 3:06am UTC](https://forum.farmbot.org/t/incorrect-soil-sensor-value/2785 "2017-10-28T03:06:08Z")

</div>

Hello there :smile: My Soil Sensor work abnormal when I use the Farmbot Arduino v4.0.0 \*\*UART command “F42 P5 M1” --\> always return “R41 V987 Q0” After I traced it and found below code in farmbot\_arduino\_controller.cp…

---

## [Screen Programming](https://forum.farmbot.org/t/screen-programming/2284)

<div class="topic-metadata">

**Author:** [@steelsfarm](https://forum.farmbot.org/u/steelsfarm)\
**Replies:** 1\
**Last updated:** [July 19, 2017, 8:12am UTC](https://forum.farmbot.org/t/screen-programming/2284 "2017-07-19T08:12:08Z")

</div>

Win i bought my arduino it came with a small screen with the button an nobe. can any one help me with coding on makeing it work . i under stand i have to right a programe for it to say what i wont an win i wont but…

---

## [The TIM1 Troubles of STM32F407](https://forum.farmbot.org/t/the-tim1-troubles-of-stm32f407/2150)

<div class="topic-metadata">

**Author:** [@sleep](https://forum.farmbot.org/u/sleep)\
**Replies:** 2\
**Last updated:** [June 22, 2017, 2:07am UTC](https://forum.farmbot.org/t/the-tim1-troubles-of-stm32f407/2150 "2017-06-22T02:07:36Z")

</div>

Hello~ Please look at the following codes: //TIM8,PC6 PC7 RCC-\>APB2ENR |= 1\<\<1; //TIM8 timer enable RCC-\>AHB1ENR |= 1\<\<2; //GPIO port clock enable GPIOC-\>MODER &= 0xFFFF0FFF; //PC6，PC7 set to be reuse pat…

---

## [What is the F02 command mean?](https://forum.farmbot.org/t/what-is-the-f02-command-mean/1937)

<div class="topic-metadata">

**Author:** [@JoeHou](https://forum.farmbot.org/u/JoeHou)\
**Replies:** 1\
**Last updated:** [May 19, 2017, 6:33am UTC](https://forum.farmbot.org/t/what-is-the-f02-command-mean/1937 "2017-05-19T06:33:17Z")

</div>

I found the F02 command is not ready, so I want to implement it by myself. But, what is the command mean? N is the counter of pulses from flow meter? Example : "Water Flow Sensor - 1/8" SKU: SEN0216": https://www…

---

## [Encoder sampling rate](https://forum.farmbot.org/t/encoder-sampling-rate/1789)

<div class="topic-metadata">

**Author:** [@Loveny](https://forum.farmbot.org/u/Loveny)\
**Replies:** 8\
**Last updated:** [April 28, 2017, 4:17pm UTC](https://forum.farmbot.org/t/encoder-sampling-rate/1789 "2017-04-28T16:17:38Z")

</div>

Just thinking out loud here... You have a speed of 800 steps/sec (incorrectly displayed on the web app as mm/sec). So that's 4 revolutions/sec, or one revolution every 250ms. The encoder is 360 lines per revolution, so t…

---

## [Differential encoder interface](https://forum.farmbot.org/t/differential-encoder-interface/1788)

<div class="topic-metadata">

**Author:** [@Loveny](https://forum.farmbot.org/u/Loveny)\
**Replies:** 1\
**Last updated:** [April 27, 2017, 4:43pm UTC](https://forum.farmbot.org/t/differential-encoder-interface/1788 "2017-04-27T16:43:29Z")

</div>

Hi, I'm wondering why the AQ/BQ signals are connected? If the encoder has a differential output then a differential receiver would make good use of the noise immunity provided, but without the hardware the AQ/BQ signals …

---

## [Connection of water solenoid valve and vacuum pump?](https://forum.farmbot.org/t/connection-of-water-solenoid-valve-and-vacuum-pump/1401)

<div class="topic-metadata">

**Author:** [@jmLafarga](https://forum.farmbot.org/u/jmLafarga)\
**Replies:** 3\
**Last updated:** [February 18, 2017, 2:11am UTC](https://forum.farmbot.org/t/connection-of-water-solenoid-valve-and-vacuum-pump/1401 "2017-02-18T02:11:49Z")

</div>

Hi, Can I connect the solenoid valve and the vacuum pump directly to the ramps or do I use relays? P.S. Is there a connection diagram? regards!!

---

## [Arduino mega2560](https://forum.farmbot.org/t/arduino-mega2560/1310)

<div class="topic-metadata">

**Author:** [@muthu](https://forum.farmbot.org/u/muthu)\
**Replies:** 1\
**Last updated:** [February 5, 2017, 4:50am UTC](https://forum.farmbot.org/t/arduino-mega2560/1310 "2017-02-05T04:50:28Z")

</div>

how to apply weed detection algorithm to arduino?

---

## [Clone Mega2560 Board](https://forum.farmbot.org/t/clone-mega2560-board/979)

<div class="topic-metadata">

**Author:** [@fansa336](https://forum.farmbot.org/u/fansa336)\
**Replies:** 2\
**Last updated:** [November 26, 2016, 6:29pm UTC](https://forum.farmbot.org/t/clone-mega2560-board/979 "2016-11-26T18:29:31Z")

</div>

Hello makers, i had recently buy a clone Mega2560 Board.This board use CH341 as USB-Serial controller and, when i plug-in it on my raspberry, i can't do something, like set to high the pinout 13 for exemple. can you…

[Next page](https://forum.farmbot.org/c/arduino/6.md?page=1)
