Jump to content

Pin outs clarification


darkglove

Recommended Posts

Posted · Pin outs clarification

Can someone help me understand the pin outs in the pins.h file? (Marlin)

 

They don't seem to match up.

 

I'm pretty sure I am looking at the correct section of the file (* Ultiboard v2.0 pin assignment) as I have swapped my Z axis port to the E2 port (E1 in the file) and it worked.

 

But the pin numbers on the base of my board (from and Ultimaker Original+) don't match.

 

For example, in the pins.h file

 

#define X_STEP_PIN 25
#define X_DIR_PIN 23
#define X_STOP_PIN 22
#define X_ENABLE_PIN 27

 

but printed on the board they are pins TP46 - TP49

 

What am I missing?

 

 

 

  • Link to post
    Share on other sites

    Posted · Pin outs clarification

    The schematics can be found here:

     

    https://github.com/Ultimaker/Ultimaker-Original-Plus/tree/master/1091_Main_board_v2.1.1_(x1)

     

    It seems like TP46-TP49 are connected to the output pins of the stepper driver.

    ...while the pin numbers from pins.h are related to pins of the mega2560 (this are just two different things).

     

    In addition: Marlin firmware uses the Arduino pin mapping:

    https://www.arduino.cc/en/Hacking/PinMapping2560

     

    For example:

    #define X_DIR_PIN 23

     

    You can see in the schematics that pin PA1 from the mega2560 is connected to the "DIR" input on the stepper driver for the x-axis.

    And the Arduino pin mapping shows that PA1 = digital pin 23.

     

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • UltiMaker Cura 5.8 beta released
        Another Cura release has arrived and in this 5.8 beta release, the focus is on improving Z seams, as well as completing support for the full Method series of printers by introducing a profile for the UltiMaker Method.
          • Like
        • 1 reply
      • Introducing the UltiMaker Factor 4
        We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
          • Thanks
          • Like
        • 3 replies
    ×
    ×
    • Create New...