Custom GRBL pinouts? 2417 cnc. - Page 1
Forum section: electronics / general

author: step_s
author_rank: Regular Contributor
timestamp: May 06, 2017, 03:06:53 pm
content: 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 stepD5, D6, D7 = X, Y, Z directionThe board for the machine is connected as:D2, D4, D6 = X, Y, Z stepD3, D5, D7 = X, Y, Z directionAnyone know of any firmware that will match up with this?

author: rob77
author_rank: Super Contributor
timestamp: May 06, 2017, 03:47:17 pm
content: 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.

author: rob77
author_rank: Super Contributor
timestamp: May 06, 2017, 03:52:56 pm
content: to be more exact... cpu_map.h header file..Code:// 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)

author: step_s
author_rank: Regular Contributor
timestamp: May 06, 2017, 05:16:10 pm
content: 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.

author: rob77
author_rank: Super Contributor
timestamp: May 06, 2017, 05:19:49 pm
content: you have to configure the firmware - edit the various header files and compile it . there are several howtos available - just google it.

author: step_s
author_rank: Regular Contributor
timestamp: May 06, 2017, 06:51:07 pm
content: 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.

author: miSAKe
author_rank: Newbie
timestamp: May 18, 2017, 02:28:53 pm
content: These are what you are looking for:https://github.com/1wise/grblv1.1-laseraxe&https://github.com/1wise/grbl-laseraxe-arduino-nanov3From 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.

author: halfluck
author_rank: Newbie
timestamp: January 05, 2018, 05:56:41 am
content: 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.

author: sbcssbcs
author_rank: Newbie
timestamp: April 23, 2018, 03:51:11 am
content: 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=400Like described here:https://github.com/zlakomanoff/grbl-cnc-2417

author: halfluck
author_rank: Newbie
timestamp: April 23, 2018, 03:59:28 am
content: Hi sbssbcs.I've since moved the CNC 2417 on and can't find my notes anywhere...damn!Rob.

author: sbcssbcs
author_rank: Newbie
timestamp: April 27, 2018, 08:24:38 am
content: 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!

author: Flaviongc
author_rank: Newbie
timestamp: March 14, 2021, 02:07:19 am
content: 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 herehttps://photos.app.goo.gl/3yKM4TsrTqzbDrUe6