GithubHelp home page GithubHelp logo

Comments (3)

Horsboll avatar Horsboll commented on August 28, 2024

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.

fra589 avatar fra589 commented on August 28, 2024

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.

Horsboll avatar Horsboll commented on August 28, 2024

Thanks it would have been helpful πŸ‘πŸ»
But I figured it out already by thinking for a loooong time 🀣

from grbl-mega.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.