Digital vs. analog pinsEndstops will not trigger using Marlin FirmwareHow to configure Marlin to enable auto-fans with dual extruderZ axis Stepper motors not working correctlySpeeding up the heating of the heated bedTMC2208 drivers - Microsteps configured incorrectlyRAMPS PLUS 2 and E1 socket problem (K200 Delta, but related to the PCB , not printer)Upgrading to silicone heat bed, will it burn my house down?Limit Switch problems on RAMPS 1.4 and custom built 3D Printer running Marlin 1.1.0-rc6TMC2130 External VM RAMPS1.4Display locks when executing G-code for laser cutting using Marlin on RAMPS board

What is the highest achievable score in Catan

Why did I lose on time with 3 pawns vs Knight. Shouldn't it be a draw?

Narset, Parter of Veils interaction with Matter Reshaper

Reading electrical clamp tester higher voltage/amp 400A

How can I convert a linear narrative into a branching narrative?

Is it okay for me to decline a project on ethical grounds?

Is Ear Protection Necessary For General Aviation Airplanes?

Bouncing map back into its bounds, after user dragged it out

Why put copper in between battery contacts and clamps?

What are the closest international airports in different countries?

Embedded C - Most elegant way to insert a delay

What is my clock telling me to do?

How to innovate in OR

How does Asimov's second law deal with contradictory orders from different people?

Scam? Checks via Email

Can I attune a Circlet of Human Perfection to my animated skeletons to allow them to blend in and speak?

Is it possible for a particle to decay via gravity?

Security measures that could plausibly last 150+ years?

How can a circuit not have a neutral?

Exploiting the delay when a festival ticket is scanned

Why does one get the wrong value when printing counters together?

Circle symbol compatible with square and triangle

Boots or trail runners with reference to blisters?

Correct word for a little toy that always stands up?



Digital vs. analog pins


Endstops will not trigger using Marlin FirmwareHow to configure Marlin to enable auto-fans with dual extruderZ axis Stepper motors not working correctlySpeeding up the heating of the heated bedTMC2208 drivers - Microsteps configured incorrectlyRAMPS PLUS 2 and E1 socket problem (K200 Delta, but related to the PCB , not printer)Upgrading to silicone heat bed, will it burn my house down?Limit Switch problems on RAMPS 1.4 and custom built 3D Printer running Marlin 1.1.0-rc6TMC2130 External VM RAMPS1.4Display locks when executing G-code for laser cutting using Marlin on RAMPS board






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








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










share|improve this question











$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

















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










share|improve this question











$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













4












4








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










share|improve this question











$endgroup$




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







ramps-1.4 ramps






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 21 at 17:54









Greenonline

3,9104 gold badges18 silver badges51 bronze badges




3,9104 gold badges18 silver badges51 bronze badges










asked Jul 21 at 2:57









steve antwansteve antwan

1127 bronze badges




1127 bronze badges










  • 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












  • 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







1




1




$begingroup$
MISO/MOSI/SCK are pins for a SPI bus.
$endgroup$
– R..
Jul 21 at 3:02




$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 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




$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




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




$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










1 Answer
1






active

oldest

votes


















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.






share|improve this answer









$endgroup$

















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "640"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2f3dprinting.stackexchange.com%2fquestions%2f10643%2fdigital-vs-analog-pins%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    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.






    share|improve this answer









    $endgroup$



















      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.






      share|improve this answer









      $endgroup$

















        10












        10








        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.






        share|improve this answer









        $endgroup$



        "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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jul 21 at 6:38









        Tom van der ZandenTom van der Zanden

        12k1 gold badge23 silver badges53 bronze badges




        12k1 gold badge23 silver badges53 bronze badges






























            draft saved

            draft discarded
















































            Thanks for contributing an answer to 3D Printing Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2f3dprinting.stackexchange.com%2fquestions%2f10643%2fdigital-vs-analog-pins%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

            Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

            Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?