Comments (3)
I have solved the problem my self
I couldn't wrap my head around how I could determine which pins it has on X step and dir and on E0 step and dir and then have them swapped around.. I succeed by finding a GRBL that is set up to 5 akas and then went through what kind of pins it calls for the E0 axis and put them into the X axis on my own cpu_map file.. and I just went out and tried it out and now run my laser in all 3 axes ..!!
#define STEP_PORT_0 F // F-->A
#define STEP_PORT_1 F
#define STEP_PORT_2 L
#define STEP_BIT_0 0 // X Step - Pin A0 - _0 0 --> _0 4 = Pin D26
#define STEP_BIT_1 6 // Y Step - Pin A6
#define STEP_BIT_2 3 // Z Step - Pin D46
#define STEP_BIT(i) STEP_BIT##i
#define STEP_BIT(i) _STEP_BIT(i)
#define STEP_DDR(i) DDR(STEP_PORT##i)
#define _STEP_PORT(i) PORT(STEP_PORT##i)
#define STEP_PORT(i) _STEP_PORT(i)
#define STEP_PIN(i) PIN(STEP_PORT##i)
// Define step direction output pins.
#define DIRECTION_PORT_0 F // F-->A
#define DIRECTION_PORT_1 F
#define DIRECTION_PORT_2 L
#define DIRECTION_BIT_0 1 // X Dir - Pin A1 - _0 1 --> _06 Pin D28
#define DIRECTION_BIT_1 7 // Y Dir - Pin A7
#define DIRECTION_BIT_2 1 // Z Dir - Pin D48
#define DIRECTION_BIT(i) DIRECTION_BIT##i
#define DIRECTION_BIT(i) _DIRECTION_BIT(i)
#define DIRECTION_DDR(i) DDR(DIRECTION_PORT##i)
#define _DIRECTION_PORT(i) PORT(DIRECTION_PORT##i)
#define DIRECTION_PORT(i) _DIRECTION_PORT(i)
#define DIRECTION_PIN(i) PIN(DIRECTION_PORT##i)
// Define stepper driver enable/disable output pin.
#define STEPPER_DISABLE_PORT_0 D //D-->A
#define STEPPER_DISABLE_PORT_1 F
#define STEPPER_DISABLE_PORT_2 K
#define STEPPER_DISABLE_BIT_0 7 // X Enable - Pin D38 - _0 7 --> _02 Pin D24
#define STEPPER_DISABLE_BIT_1 2 // Y Enable - Pin A2
#define STEPPER_DISABLE_BIT_2 0 // Z Enable - Pin A8
#define STEPPER_DISABLE_BIT(i) STEPPER_DISABLE_BIT_##i
#define STEPPER_DISABLE_DDR(i) DDR(STEPPER_DISABLE_PORT##i)
#define STEPPER_DISABLE_PORT(i) PORT(STEPPER_DISABLE_PORT##i)
#define STEPPER_DISABLE_PIN(i) PIN(STEPPER_DISABLE_PORT##i)
from grbl-mega.
Hi @Horsboll,
The pinout mapping in cpu_map.h is describe here : https://github.com/fra589/grbl-Mega-5X/wiki/Pinout-mapping-in-cpu_map.h
@++;
Gauthier.
from grbl-mega.
Thanks it would have been helpful ππ»
But I figured it out already by thinking for a loooong time π€£
from grbl-mega.
Related Issues (20)
- Can i use Bluetooth/RS232 Adaptor? HOT 1
- How to Compile for Arduino Mega and Ramps 1.4 HOT 5
- EEPROM Checksum is either last char or last char+1 HOT 2
- Insufficient dynamic range on AMASS HOT 1
- change z-max pin to a-min pin
- change USART 2
- Help!! convert to GRBL **Spindle Connection. HOT 3
- Can't get any output in serial monitor HOT 2
- Timeout while uploading for Ramps 1.4 HOT 1
- Sg90 on mks base 1.6 with grbl HOT 8
- Jog does not respect G90 absolute HOT 2
- Laser doesnΒ΄t turn ON
- Warnings on platformIO HOT 1
- any reason for 1.9khz instead 1khz? HOT 1
- What's the enhancement compared to the original version of grbl?
- Getting position data from grbl (on Arduino Mega) on another Arduino Uno HOT 1
- Pins don't align with #define statements HOT 3
- Automate multiple lines of Gcode HOT 1
- Possible feature request? Integral Torch Height Controller For Plasma...
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grbl-mega.