Grbl source code for Mini Gerbil Board
Quote from Dougbert on June 28, 2019, 3:44 amHello,
Is the latest source code specifically for the Mini Gerbil board available? I see a version of Grbl in https://github.com/paulusjacobus/grbl , but it doesn't seem to say if it is for the Mini or Super Gerbil boards, or something else.
Also, once it is built, how can it be flashed to a Mini Gerbil board?
I am interested in fixing one small issue: When I use LightBurn to cut cardstock at 15% power in M4 mode, the laser can turn off completely at corners, leaving tiny connections that have to be manually cut. I want to configure the M4 vari-power mode to not go below ~10% power, so that the beam does not turn off. (If I edit the generated Gcode and replace M4 with M3, the cuts are fine.)
Doug
Hello,
Is the latest source code specifically for the Mini Gerbil board available? I see a version of Grbl in https://github.com/paulusjacobus/grbl , but it doesn't seem to say if it is for the Mini or Super Gerbil boards, or something else.
Also, once it is built, how can it be flashed to a Mini Gerbil board?
I am interested in fixing one small issue: When I use LightBurn to cut cardstock at 15% power in M4 mode, the laser can turn off completely at corners, leaving tiny connections that have to be manually cut. I want to configure the M4 vari-power mode to not go below ~10% power, so that the beam does not turn off. (If I edit the generated Gcode and replace M4 with M3, the cuts are fine.)
Doug
Quote from Paul on June 28, 2019, 7:28 amHi Doug,
The source code is at https://github.com/paulusjacobus/SuperGerbil
Both Mini and Super run on the same source except that the PWM is inverted for MG and the XABZ limits are tied together since the MG only has two axis.
Cheers, Paul
Hi Doug,
The source code is at https://github.com/paulusjacobus/SuperGerbil
Both Mini and Super run on the same source except that the PWM is inverted for MG and the XABZ limits are tied together since the MG only has two axis.
Cheers, Paul
Quote from Dougbert on June 28, 2019, 10:59 amThanks for pointing me to the code.
What has to be edited to configure it for Super vs Mini Gerbil?
Is there already a header on the board for hooking up a programmer?
And lastly: is there a pre-compiled hex file of the current firmware available? (I only saw one for super gerbil).
Doug
Thanks for pointing me to the code.
What has to be edited to configure it for Super vs Mini Gerbil?
Is there already a header on the board for hooking up a programmer?
And lastly: is there a pre-compiled hex file of the current firmware available? (I only saw one for super gerbil).
Doug
Quote from Paul on June 28, 2019, 1:17 pmHi Doug,
The only different is that you map the pins in the cpu_map (X=A=B=Z pin e.g. 0)
#define STEP_PORT GPIOA
#define RCC_STEP_PORT RCC_APB2Periph_GPIOA
#define X_STEP_BIT 0 //GPIO_Pin_0
#define Y_STEP_BIT 1 //GPIO_Pin_1
#define Z_STEP_BIT 0 //GPIO_Pin_2
#define A_STEP_BIT 0 // GPIO_Pin_3
#define B_STEP_BIT 0 //GPIO_Pin_4
and invert the PWM enable pin (which drives the LO connection) (if you define MG it takes the inverted bit first. #define MG)
#ifdef MG
#define SetSpindleEnablebit() GPIO_WriteBit(SPINDLE_ENABLE_PORT, 1 << SPINDLE_ENABLE_BIT, Bit_RESET)
#define ResetSpindleEnablebit() GPIO_WriteBit(SPINDLE_ENABLE_PORT, 1 << SPINDLE_ENABLE_BIT, Bit_SET)
#else
#define SetSpindleEnablebit() GPIO_WriteBit(SPINDLE_ENABLE_PORT, 1 << SPINDLE_ENABLE_BIT, Bit_SET)
#define ResetSpindleEnablebit() GPIO_WriteBit(SPINDLE_ENABLE_PORT, 1 << SPINDLE_ENABLE_BIT, Bit_RESET)
The precompiled firmware is available on our downloads menu and github https://github.com/paulusjacobus/Awesome.tech
Also I have attached it here as a zip file for convenience.
Currently we have some website issues so bear with me while the website support is looking at it.
The firmware can be flashed via the pin header closest to the Y step stick. Pin assignment is gnd, clk, io and 3V3. You can program them via the ST LINK V2 dongle.
Hi Doug,
The only different is that you map the pins in the cpu_map (X=A=B=Z pin e.g. 0)
#define STEP_PORT GPIOA
#define RCC_STEP_PORT RCC_APB2Periph_GPIOA
#define X_STEP_BIT 0 //GPIO_Pin_0
#define Y_STEP_BIT 1 //GPIO_Pin_1
#define Z_STEP_BIT 0 //GPIO_Pin_2
#define A_STEP_BIT 0 // GPIO_Pin_3
#define B_STEP_BIT 0 //GPIO_Pin_4
and invert the PWM enable pin (which drives the LO connection) (if you define MG it takes the inverted bit first. #define MG)
#ifdef MG
#define SetSpindleEnablebit() GPIO_WriteBit(SPINDLE_ENABLE_PORT, 1 << SPINDLE_ENABLE_BIT, Bit_RESET)
#define ResetSpindleEnablebit() GPIO_WriteBit(SPINDLE_ENABLE_PORT, 1 << SPINDLE_ENABLE_BIT, Bit_SET)
#else
#define SetSpindleEnablebit() GPIO_WriteBit(SPINDLE_ENABLE_PORT, 1 << SPINDLE_ENABLE_BIT, Bit_SET)
#define ResetSpindleEnablebit() GPIO_WriteBit(SPINDLE_ENABLE_PORT, 1 << SPINDLE_ENABLE_BIT, Bit_RESET)
The precompiled firmware is available on our downloads menu and github https://github.com/paulusjacobus/Awesome.tech
Also I have attached it here as a zip file for convenience.
Currently we have some website issues so bear with me while the website support is looking at it.
The firmware can be flashed via the pin header closest to the Y step stick. Pin assignment is gnd, clk, io and 3V3. You can program them via the ST LINK V2 dongle.