Author Topic: Custom GRBL pinouts? 2417 cnc.  (Read 14642 times)

0 Members and 1 Guest are viewing this topic.

Offline step_sTopic starter

  • Regular Contributor
  • *
  • Posts: 138
  • Country: dk
Custom GRBL pinouts? 2417 cnc.
« on: May 06, 2017, 03:06:53 pm »
Hi EEV.

I just ordered and assembled a 2417 cnc machine from eBay, and it's all fine, but there is a small problem.
It runs on a copy mega328p, and it's working and programmable, but what firmware do i use?
I have tried the different GRBL versions, but they all have the same pinout, which is not compatible with the pinout of the machine.

The normal GRBL pinout is something like:
D2, D3, D4 = X, Y, Z step
D5, D6, D7 = X, Y, Z direction

The board for the machine is connected as:
D2, D4, D6 = X, Y, Z step
D3, D5, D7 = X, Y, Z direction

Anyone know of any firmware that will match up with this?
 

Offline rob77

  • Super Contributor
  • ***
  • Posts: 2085
  • Country: sk
Re: Custom GRBL pinouts? 2417 cnc.
« Reply #1 on: May 06, 2017, 03:47:17 pm »
just change the pin assignment in the header file and compile GRBL. as long as the direction and step signals are on the same port of the atmega GRBL will not complain.
 

Offline rob77

  • Super Contributor
  • ***
  • Posts: 2085
  • Country: sk
Re: Custom GRBL pinouts? 2417 cnc.
« Reply #2 on: May 06, 2017, 03:52:56 pm »
to be more exact... cpu_map.h header file..

Code: [Select]
  // Define step pulse output pins. NOTE: All step bit pins must be on the same port.
  #define STEP_DDR        DDRD
  #define STEP_PORT       PORTD
  #define X_STEP_BIT      2  // Uno Digital Pin 2
  #define Y_STEP_BIT      3  // Uno Digital Pin 3
  #define Z_STEP_BIT      4  // Uno Digital Pin 4
  #define STEP_MASK       ((1<<X_STEP_BIT)|(1<<Y_STEP_BIT)|(1<<Z_STEP_BIT)) // All step bits

  // Define step direction output pins. NOTE: All direction pins must be on the same port.
  #define DIRECTION_DDR     DDRD
  #define DIRECTION_PORT    PORTD
  #define X_DIRECTION_BIT   5  // Uno Digital Pin 5
  #define Y_DIRECTION_BIT   6  // Uno Digital Pin 6
  #define Z_DIRECTION_BIT   7  // Uno Digital Pin 7
  #define DIRECTION_MASK    ((1<<X_DIRECTION_BIT)|(1<<Y_DIRECTION_BIT)|(1<<Z_DIRECTION_BIT)) // All direction bits

  // Define stepper driver enable/disable output pin.
  #define STEPPERS_DISABLE_DDR    DDRB
  #define STEPPERS_DISABLE_PORT   PORTB
  #define STEPPERS_DISABLE_BIT    0  // Uno Digital Pin 8
  #define STEPPERS_DISABLE_MASK   (1<<STEPPERS_DISABLE_BIT)
 
The following users thanked this post: step_s

Offline step_sTopic starter

  • Regular Contributor
  • *
  • Posts: 138
  • Country: dk
Re: Custom GRBL pinouts? 2417 cnc.
« Reply #3 on: May 06, 2017, 05:16:10 pm »
The firmware I had on the ATmega328p was from a GRBL 1.1 hex file, loaded with XLoader, and it worked, but every library for the arduino IDE I have tried, never work. . .
The IDE uploads, and says it's done, but there is no feedback from the arduino when I open up candle. It connects, and then, nothing. No signals on the pinouts either.
 

Offline rob77

  • Super Contributor
  • ***
  • Posts: 2085
  • Country: sk
Re: Custom GRBL pinouts? 2417 cnc.
« Reply #4 on: May 06, 2017, 05:19:49 pm »
you have to configure the firmware - edit the various header files and compile it . there are several howtos available - just google it.
 

Offline step_sTopic starter

  • Regular Contributor
  • *
  • Posts: 138
  • Country: dk
Re: Custom GRBL pinouts? 2417 cnc.
« Reply #5 on: May 06, 2017, 06:51:07 pm »
I have changed the pins, compiled it, and uploaded it, but there is no change in the pinout at all.
I have checked everywhere in the GRBL folder, readded the folder to arduino library, and nothing works.
 

Offline miSAKe

  • Newbie
  • Posts: 1
  • Country: gb
Re: Custom GRBL pinouts? 2417 cnc.
« Reply #6 on: May 18, 2017, 02:28:53 pm »
These are what you are looking for:
https://github.com/1wise/grblv1.1-laseraxe
&
https://github.com/1wise/grbl-laseraxe-arduino-nanov3

From the last few commits you can see a few more changes than just swapping the pins around.
I can take no credit for this work just found the git repos after digging around.

I also have a 2417 cnc, and can confirm that these work for me.
I foolishly overwrote the original firmware with the vanilla Grbl assuming the Arduino was blank, took me a while to find firmware that worked correctly.

If you still have the original Grbl settings for the 2417, would you mind posting them here? Would help me get my config/calibration right... it is still not quite right.
« Last Edit: May 18, 2017, 02:31:03 pm by miSAKe »
 

Offline halfluck

  • Newbie
  • Posts: 2
  • Country: au
Re: Custom GRBL pinouts? 2417 cnc.
« Reply #7 on: January 05, 2018, 05:56:41 am »
Hello,

I grabbed my GRBL settings before flashing the firmware you posted a link to, if you still need it let me know?
I am a bit confused by the microstepping dipswitches, this is mine from the factory.

Which suggest to me that they are all set to "LOW" which would be a full step, isn't 1/16 desirable?



Cheers Rob.
 

Offline sbcssbcs

  • Newbie
  • Posts: 2
  • Country: de
Re: Custom GRBL pinouts? 2417 cnc.
« Reply #8 on: April 23, 2018, 03:51:11 am »
Hi halfluck, do you still have the grbl settings you grabbed from the original firmware for the 2417?

Also your settings for the microstepping dip switches should be no problem, they're set up the same on my 2417 and I'm having no problems so far.

What you do have to do is configure grbl via a serial terminal with the following commands:

$3=4
$100=400
$101=400
$102=400

Like described here: https://github.com/zlakomanoff/grbl-cnc-2417
 

Offline halfluck

  • Newbie
  • Posts: 2
  • Country: au
Re: Custom GRBL pinouts? 2417 cnc.
« Reply #9 on: April 23, 2018, 03:59:28 am »
Hi sbssbcs.

I've since moved the CNC 2417 on and can't find my notes anywhere...damn!

Rob.
 

Offline sbcssbcs

  • Newbie
  • Posts: 2
  • Country: de
Re: Custom GRBL pinouts? 2417 cnc.
« Reply #10 on: April 27, 2018, 08:24:38 am »
No problem! Was just curious about the original settings, probably nothing in there that couldn't be found out by understanding and playing around with the config values. Thanks anyway!
 

Offline Flaviongc

  • Newbie
  • Posts: 1
  • Country: br
Re: Custom GRBL pinouts? 2417 cnc.
« Reply #11 on: March 14, 2021, 02:07:19 am »
I loved the post. It served to better understand the cnc and extra configurations. I made this scheme for the shield card that comes with the 2417. The configuration switches are still missing, but these have no effect on the circuit, so I didn't draw it. The scheme makes it easy to map and create new functions for the machine. Schematic here https://photos.app.goo.gl/3yKM4TsrTqzbDrUe6
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf