Jump to content
Ultimaker Community of 3D Printing Experts

Pin outs clarification


darkglove
 Share

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
     Share

    • Our picks

      • New here? Get ahead with a free onboarding course
        Hi,
         
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 8 replies
    ×
    ×
    • Create New...