Welcome! Log In Create A New Profile

Advanced

Marlin Firmware pinout

Posted by timholum 
Marlin Firmware pinout
August 07, 2013 07:11PM
Today I was browsing the source for the marlin firmware ( I am trying to port it over to the Makerbot Mightyboard ) And I noticed in pins.h you can set what the pin's are based on which board you have, ( IE #define Y_STOP_PIN 67 )
Is pin 67 the arduino pin 67, or the atmega pinout, Basicly I would like to know which pin's I should use, I found the mightyboard schimatics [thingiverse-production.s3.amazonaws.com], But I dont know which of the 3 numbers to use, I think I would use Pin 89 Z-AXIS-DIR or pin 97 for X-AXIS-DIR but I want to double check before I fry my board smiling smiley
Re: Marlin Firmware pinout
August 07, 2013 08:22PM
this should help

[arduino.cc]

Edited 1 time(s). Last edit at 08/07/2013 08:23PM by jamesdanielv.
Attachments:
open | download - PinMap2560big.png (386.6 KB)
Re: Marlin Firmware pinout
August 07, 2013 08:36PM
So the pin's in the config correspond to the pin on the chip? ( IE if I was looking for Digital Pin 4 I would put 1 in the config )
Re: Marlin Firmware pinout
August 07, 2013 08:50PM
the pins corespond to the pins on the arduino it represents, so the ide is preset in the wiring.h file to map a certian way.
then there also is the fact that analog pins also map to digital pins.

Port - Pin - Function
PF 0 - 54 A0
PF 1 - 55 - A1
PF 2 - 56 - A2
PF 3 - 57 - A3
PF 4 - 58 - A4
PF 5 - 59 - A5
PF 6 - 60 - A6
PF 7 - 61 - A7
PK 0 - 62 - A8
PK 1 - 63 - A9
PK 2 - 64 - A10
PK 3 - 65 - A11
PK 4 - 66 - A12
PK 5 - 67 - A13
PK 6 - 68 - A14
PK 7 - 69 - A15



so pin 67 is the same pin used for A13, and is placed as pin 84 on the ic chip. does this added information help?


the ic pin 1, is mapped in software to be digital i/0 4 or digitalWrite(4).

Edited 4 time(s). Last edit at 08/07/2013 08:54PM by jamesdanielv.
Re: Marlin Firmware pinout
August 21, 2014 10:27AM
Tim, did you have any luck creating the pins.h file? I also would like to use marlin to program the mightyboard.

Thanks!

Charles.
Sorry, only registered users may post in this forum.

Click here to login