4
$\begingroup$

In the RAMPS v1.4 board, it seems like the X, Y, and Z motors all use at least one analog pin, while the extruder motors are entirely digital. See just the top left block of this photo:

RAMPS 1.4 connectors

Is there any advantage to using analog vs. digital pins in the motors?

As far as I can tell the traditional thermistors have to be have an Analog pin input because of the way they are read and processed. The MOSFETs for the heated bed and hot ends (and fans) should be digital because of the way transistors work. The end-stops are also digital because they are on-off switches.

But besides that, I can't tell if there is any other requirements or advantages to using some pins in analog / digital, especially for the motors which have seemingly contradictory pin assignments.

There are also three digital pins I don't recognize: MISO, MOSI, and SCK.

Right now I'm looking to add 2 new motors using 8 total pins (6 Digital pins, 2 for ground). It seems to me I could use any combination of the D pin available in the image:

Pin connection diagram AM350 v.9.5.1

$\endgroup$
  • 1
    $\begingroup$ MISO/MOSI/SCK are pins for a SPI bus. $\endgroup$ – R.. Jul 21 at 3:02
  • $\begingroup$ I might pose this as another question, but is it possible to connect two 3D printer boards of the same kind through that SPI and communicate through one to the other using G code? I couldn't find any tutorials online, but when I googled SPI just now it seems like that is exactly what it is for. $\endgroup$ – steve antwan Jul 21 at 3:05
  • $\begingroup$ I just want to basically have double the pins of every pin on my current board... Right now I am collecting MOSFETs, thermisters, motors, etc, but the simplest possible circuit would help a lot. I don't want there to be a significant delay from one command to the other (like using Repetier-Host's "execute" command would entail) $\endgroup$ – steve antwan Jul 21 at 3:08
  • 1
    $\begingroup$ I don't think that would work for synchronizing them at a reasonable precision, but I may be mistaken. SPI is rather awful. $\endgroup$ – R.. Jul 21 at 3:19
10
$\begingroup$

"Analog pin" is misleading nomenclature. Every pin is a digtal pin, but some digital pins happen to also be connected to the analog-to-digital converter and can thus also handle measuring analog signals.

Every analog pin can also serve as a perfectly good digital pin. The reverse is not true; if something requires an analog pin you cannot use a digital pin. The only things that require analog pins are the thermistors, for the rest (motors, MOSFETS, endstops,...) you can use either a digital pin or an analog pin.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.