Quantcast
Viewing all articles
Browse latest Browse all 10211

Re: Arduino CNC Shield V3.0

I dont know grbl, but does not matter if you use marlin, just leave grbl aside and to make the pins.h for marlin you need to check the hardware only. The grbl pin allocation i think uses a style to enumerate the port and the number represents which pin of that port is the pin in question. Marlin does not use that style, it just numbers all the pins as they are (why bother which port are they on). So grbl reference is not so useful, and to be frank its actually not even needed.

#if MOTHERBOARD == 99
#define KNOWN_BOARD 1

#ifndef __AVR_ATmega328P__
#error Oops! Make sure you have 'Arduino Duemilanove w/ ATMega328' selected from the 'Tools -> Boards' menu.
#endif

#define X_STEP_PIN 2
#define Y_STEP_PIN 3
#define Z_STEP_PIN 4

#define X_DIR_PIN 5
#define Y_DIR_PIN 6
#define Z_DIR_PIN 7

#define X_ENABLE_PIN 8
#define Y_ENABLE_PIN 8
#define Z_ENABLE_PIN -1
#define E0_ENABLE_PIN -1

#define X_MIN_PIN 9 // investigate whats the deal with the asterisk in the image there
#define Y_MIN_PIN 10
#define Z_MIN_PIN 11

#define X_MAX_PIN -1 // max endstops are not used
#define Y_MAX_PIN -1
#define Z_MAX_PIN -1

// following are proposals 

#define E0_STEP_PIN 12 // or other which you can wire it onboard
#define E0_DIR_PIN 13 // or other which you can wire it onboard

#define HEATER_0_PIN 0 // extruder (digital numbering)
#define HEATER_BED_PIN 1 // bed (digital numbering)

#define TEMP_0_PIN 4 // 4 is A4, this or other pin that has nothing attached to it MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
#define TEMP_BED_PIN 5 // 5 is A5, this or other pin that has nothing attached to it MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
This is what i think for now, at very least to test the compilation size this should suffice for being as close as possible. If you get it to compile to a workeable size then this can be further refined.

Hardware check at this stage, pins with stp/dir/en are linked to stepper drivers accordingly. And all the other pins like min/max/heaters/thermistors, should have absolutely no other circuitry on board connected to them.

Viewing all articles
Browse latest Browse all 10211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>