English
Login

Accessory connectors (MK4)

Relevant for

MK4
5 comments
Article is also available in following languages
English
Čeština
Polski
Deutsch
Français
Español
Italiano
日本語

This article describes connectors on the Original Prusa MK4, which can be used to connect your own or any 3rd party accessory. 

Warning: Keep in mind the maximum allowable electric current (I) and voltage (V) limits. Failure to do so may result in permanent damage to the board. This article is intended for experienced users only!

xBuddy

ConnectorPinTypeFunctionGPIOLimitations
J29 (ACCELEROMETER)

1

open drain outputSPI2 CSPA10max 3.3V/5mA
J29 (ACCELEROMETER)2input/outputSPI2 SCLPB10max 5V/5mA
J29 (ACCELEROMETER)3input/outputSPI2 SDIPC3max 5V/5mA
J29 (ACCELEROMETER)4input/outputSPI2 SDOPC2max 5V/5mA
J29 (ACCELEROMETER)53V3POWERXmax 50mA
J29 (ACCELEROMETER)6GNDPOWERX-
J23 (I2C)1input/outputI2C2 SCLPF1max 5V/5mA
J23 (I2C)2input/outputI2C2 SDAPF0max 5V/5mA
J23 (I2C)33V3POWERXmax 50mA
J23 (I2C)4GNDPOWERX-
J15(A_TEMP)1analog inputTHERM 3PF5max 3.3V
J15(A_TEMP)2GNDPOWERX-
J6 (MMU)1input/outputUSART6 TXPC6max 5V/5mA
J6 (MMU)2RS485-USART6Xmax 3.3V/250mA
J6 (MMU)3input/outputUSART6 RXPC7max 5V/5mA
J6 (MMU)4RS485+USART6Xmax 3.3V/250mA
J6 (MMU)5MMU 5V (switchable)POWERPG2max 5V/0.5A
J6 (MMU)6open drain outputMMU RESETPG8max 5V/5mA
J6 (MMU)7GNDPOWERX-
J6 (MMU)8outputnAC FAULTXmax 3.3V/5mA
J6 (MMU)9GNDPOWERX-
J6 (MMU)10MMU 24V (switchable)POWERPG2max 24V/3.6A
J6 (MMU)11GNDPOWERX-
J6 (MMU)12MMU 24V (switchable)POWERPG2max 24V/3.6A

 

xLCD

ConnectorPinTypeFunctionGPIOLimitations
P1113.3VPOWER-max 3.3V/50mA
P112open drain outputLCD 1wirePD11max 5V/18.5mA
P113input/outputI2C3 SCLPA8max 3.3V/5mA
P114input/outputI2C3 SDAPC9max 3.3V/5mA
P115GNDPOWERX-
P1165VPOWERXmax 5V/100mA
 

5 comments

Log in  to post a comment
Fil4ment
Of note: the firmware does not currently support defining any of these pins as analog outputs, for use with the M42 command. Even though several are capable of supporting the PWM output.
Fil4ment
Just FYI, for those in the future: I think the answer is well documented in this thread. Short version is that they've released the schematic here, and the marlin gCode addressing of pins should follow the following scheme:     "#define MARLIN_PORT_PIN(port, pin) ((16 * (port)) + (pin))"     With Port A=0, B=1, etc.
Fil4ment
From the recently released schematic, we need PA15, PE2-PE6, PE12, and if possible to use, nAC_FAULT
Fil4ment
I also am interested to know the M42 P-numbers for these pins, as well as the "expansion" (J9?) header, if we can get those numbers as well. Previously reverse engineered to be PE2-PE5, PA15, and PF8. Would much prefer to use pins that aren't already being used for anything else in the ecosystem.
me
what are the corect "p" parameters for each gpio pin when using the m42 gcode comand?