# RAMPS wiring diagram needed.😀

**URL:** <https://forum.farmbot.org/t/ramps-wiring-diagram-needed/7794>\
**Category:** DIY\
**Created:** [October 11, 2021, 7:46am UTC](https://forum.farmbot.org/t/ramps-wiring-diagram-needed/7794 "2021-10-11T07:46:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Itanc1](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/i/f19dbf/32.png) [@Itanc1](https://forum.farmbot.org/u/Itanc1)\
**Post date:** [October 11, 2021, 7:46am UTC](https://forum.farmbot.org/t/ramps-wiring-diagram-needed/7794/1 "2021-10-11T07:46:11Z")

</div>

Hi everyone, I have started a diy build this weekend and am going with ArduinoRamps but have been unable to find a wiring diagram. Can anyone point me in the right direction? I’m fine with motors and power supplies but unclear about the encoders and peripherals

Cheers

Tanc

---

<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:** [October 12, 2021, 6:32am UTC](https://forum.farmbot.org/t/ramps-wiring-diagram-needed/7794/2 "2021-10-12T06:32:14Z")

</div>

Hi @Itanc1

The on-line Documentation maintained by the FarmBot Team is **excellent** and actively curated.  
I’m thinking you’ll find your answers for your DIY kit in [these pages](https://genesis.farm.bot/v1.2/FarmBot-Genesis-V1.2/intro) 🙂

---

<div class="post-metadata">

**Author:** ![Itanc1](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/i/f19dbf/32.png) [@Itanc1](https://forum.farmbot.org/u/Itanc1)\
**Post date:** [October 12, 2021, 7:20am UTC](https://forum.farmbot.org/t/ramps-wiring-diagram-needed/7794/3 "2021-10-12T07:20:21Z")

</div>

hi @jsimminds,

thanks for another answer, i cant tell you how much i appreciate your help! you’re in austrailia? which model do you have and how is it working for you?

, i have made some good progress today…rpi is flashed and talking to the webapp, arduino has its firmware. I am a wacking 6% configured! in the process of wiring up motors and encoders but…i have a gap in my knowledge here. are you in any way familiar with the encoder topology? i have AS5600 magnetic angle sensing encoders that i believe to be of a quadrature nature (2 phase shifted square wave outputs that encode for speed and direction but i am unclear if these will interface directly with the RAMPS. might you have any insights?

secondly the RAMPS wiring that i have found only takes and encoder input from 1 of the x motors so im wondering if you can tell me if only one of the motors needs an encoder or if they both have them and are in some way combined before they connect to the RAMPS board?

thanks so much again John

cheers

tanc

---

<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:** [October 14, 2021, 2:58am UTC](https://forum.farmbot.org/t/ramps-wiring-diagram-needed/7794/4 "2021-10-14T02:58:34Z")

</div>

> [@Itanc1](#):
>
> i have AS5600 magnetic angle sensing encoders

Hi @Itanc1  
I did not know that shaft angle encoder but I found a [nice explanation and video here](https://curiousscientist.tech/blog/as5600-magnetic-position-encoder). Hope you find it useful 🙂  
That AS5600 has an I2C interface and produces **_absolute_** angle integer values so may not work with RAMPS using the standard FarmBot-supplied firmware (?) Are you up for making your own “Custom” firmware for the Arduino ?

---

<div class="post-metadata">

**Author:** ![Itanc1](https://forum.farmbot.org/letter_avatar_proxy/v4/letter/i/f19dbf/32.png) [@Itanc1](https://forum.farmbot.org/u/Itanc1)\
**Post date:** [October 14, 2021, 3:58am UTC](https://forum.farmbot.org/t/ramps-wiring-diagram-needed/7794/5 "2021-10-14T03:58:44Z")

</div>

Mornin @jsimmonds How you doing? Thanks for your reply. I am familiar with that video and have made contact with the author. I agree that these units will not be suitable without an extra stage to convert absolute to quadrature. Bummer.

As to writing custom firmware, yes in principle but I’d rather not have to do this to get started. The year is moving on and I really want to see the machine planting next spring. And my time is limited. Having said that there is one thing that springs to mind. I can’t for the life of me see why there is only 1 encoded x motor and if I was going to and able to write custom firmware this would be my first job. As a builder of Cnc machines the twin motors on each end of the x axis would seem to be the most important place to have feedback to prevent racking. These motors are tiny for such a large frame and I would think that even bird poo on one side could cause a jam but if that jam occurs on the unencoded side then this would result in serious racking and system failure. Do you agree? Or (hopefully) I have not fully understood?

Anyway today I hope to see the x and y axis of my machine moving under power

Cheers again chap

Tanc

---

<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:** [October 14, 2021, 4:23am UTC](https://forum.farmbot.org/t/ramps-wiring-diagram-needed/7794/6 "2021-10-14T04:23:27Z")

</div>

> [@Itanc1](#):
>
> an extra stage to convert absolute to quadrature

Yup, and that could be challenging to build 😉

I assume you’ve discovered [the rotary encoder specs](https://drive.google.com/file/d/15dSqr_hQTXAQGIvw-YeDLIOC6dB0Y26n/view) for the integrated NEMA17 motors that FarmBot supplied ? ( I think they’re wired for **differential** A and B “line driver” because of the very long cables )

. . and the [“Plug Everything In” page](https://genesis.farm.bot/v1.2/FarmBot-Genesis-V1.2/electronics/plug-everything-in) which clearly shows that the X2 motor encoder is **_not_** connected and a text block which says

```plaintext
Only one x-axis encoder is currently implemented in the firmware, so
the X2 encoder wires do not need to be plugged in to the RAMPS board at this time.

```

> [@Itanc1](#):
>
> the twin motors on each end of the x axis would seem to be the most important place to have feedback to prevent racking

Yup, agree. Again that’s Custom firmware . . **_provided_** that the AtMega MCU can handle the additional CPU / interrupt load when all 4 encoders are signalling at _max_ axis speeds ! (???)

---

<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:** [October 14, 2021, 8:13am UTC](https://forum.farmbot.org/t/ramps-wiring-diagram-needed/7794/7 "2021-10-14T08:13:15Z")

</div>

> [@Itanc1](#):
>
> if that jam occurs on the unencoded side then this would result in serious racking and system failure. Do you agree?

@Itanc1 … Yes, I do, though as I mentioned elsewhere, I’ve not yet operated any physical Farmbot machine with actual active motors !

It’s only the recent Farmduino PCBs with the TMC2130 stepper driver chips that support Stall Detection ( in software/firmware ) _a.f.a.i.k._

---

<div class="post-metadata">

**Author:** ![system](https://forum.farmbot.org/user_avatar/forum.farmbot.org/system/32/4564_2.png) [@system](https://forum.farmbot.org/u/system)\
**Post date:** [November 13, 2021, 8:13am UTC](https://forum.farmbot.org/t/ramps-wiring-diagram-needed/7794/8 "2021-11-13T08:13:33Z")

</div>

Closed on November 13, 2021, 8:13am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
