开源改变世界

Running grbl with UNL2003 #144

推推 grbl 3年前 (2023-01-21) 122次浏览

 Closed

Running grbl with UNL2003#144

Lloydy opened this issue on Nov 27, 2012 · 3 comments

Comments

Running grbl with UNL2003 #144

Hi,

Not sure if this is the place to ask this so apologies in advance.

I’m trying to get grbl running with 3 stepper motors each connected to a UNL2003 control board (http://tinyurl.com/cgold8v). The board takes 4 inputs for controlling the motor instead of the step and direction

I’ve downloaded v0.6 and replaced the files according to “H Bridge as stepper driver” in the wiki pages, i then compiled the code and flashed it onto the arduino, but when i run a test the pin still seem to be set to the old configuration.

Is there a more upto date version of the 3 files i need to change that will run with v0.8?
Does anyone know of any resource that might help?
In documentation it says The pin definitions can be adjusted in stepper.c, does this mean i simply change #define STEPPER_X_A1 (0x01<<PINB0)

Sorry for the newbish questioning, just a bit stuck and need a point in the right direction

Thanks

Running grbl with UNL2003 #144

Grbl now expects to talk to a full-blown stepper motor driver, one that uses the STEP/DIR interface. The code doesn’t calculate the state transitions itself and cannot be used, as is, with a bare H bridge like the ULN2003, at least because there aren’t enough pins on the ATmega328p to drive three axes using H bridge inputs.

Running grbl with UNL2003 #144

@csdexter : looking up the page the OP mentioned would have revealed there is indeed such a page in the grbl wiki mentioning discrete H-bridge driving, with some patches linked.

@Lloydy : I’m afraid the wiki page you saw isn’t exactly describing an officially supported feature – grbl is indeed developed for DIR/STEP style drivers only as has been mentioned above. I’m afraid you’ll have to contact the author of the patches you copied for help, but keep in mind that grbl has seen a lot of development & changes in version 0.8, so how those files still fit and with which version (or indeed if they ever actually worked) is anybody’s guess – what that wiki page describes should definitely not be taken as official, up-to-date-and-sure-to-work instructions for what you’re trying to do.

Running grbl with UNL2003 #144
Author

Thanks for the quick reply @csdexter @blinkenlight really appreciate it.

Think the easiest thing is for me to get hold of some of the easydriver boards

thanks again

Running grbl with UNL2003 #144 Lloydy closed this as completed on Nov 27, 2012
喜欢 (0)