Jump to content

Pin outs clarification

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?




Share this post

Link to post
Share on other sites
Posted · Pin outs clarification

The schematics can be found here:




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:



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.


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Our picks

    • Ultimaker Cura 4.0 | Stable available!
      Ultimaker Cura 4.0 is mainly focused on the improved user interface and cloud integration.
      As always, we want to collect your user feedback for this release. If there are any improvements you can think of, feel free to mention it here and help us to shape the next release.
      • 96 replies
  • Create New...

Important Information

Welcome to the Ultimaker Community of 3D printing experts. Visit the following links to read more about our Terms of Use or our Privacy Policy. Thank you!