New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grbl + (2 Stepper motor) + (standard servo) = Mugbot. #220
Comments
RC servos are controlled via a PWM-type signal and Grbl (on the ATmega328p) hasn't any resources left to do that for you. It should be possible to make a frequency-to-PPM/PWM converter from a few analog components (so that you can use the speed of the third axis to control the servo), but that's a job for an analog electronics genius and I'm not it :-( |
There is a mod/fork of an old 0.8 grbl version which can use a servo on the Z-Axis: Here is the link top the article, but you'll have to buy ist: |
HMMM.. @derFrickler I'll give the hex a try, so to move my servo that will be Z5,"down" and Z0 "up" ... hope it works. |
@tutuemma2001 How about using an ATTINY45 to drive the servo? Am I right to assume the Penlift only has two position states? If so you could use one of the spair pins on TINY45 for command input from grbl. Lift, Engage... Not sure if that is helpful, but cheap alternative to hacking the grbl code. |
@tutuemma2001 did you get this working? What was your solution? I tried flashing the forked grbl (with servo support on pin 4) to 3 or 4 different arduinos and none of them would work. They all came up with a verification error... can anyone verify that hex file is not corrupted? Thanks! |
I can try it this evening or tomorrow. |
No luck yet!!, I did email the German guy " GRBLDRILL" for some english explanation on how I can use it. If any one try please let me know. to get my stuff up n running I will replace the servo with a spare stepper (though a waste but avoid heads banging!!). |
what about just using a tiny stepper motor? see: https://www.sparkfun.com/products/10551 But I have seen smaller/cheaper ones before. Or maybe a solenoid would work better: https://www.sparkfun.com/products/11015 |
Using a tiny stepper isn't a bad idea. For my application, if I could find The solenoid is probably more in line with the idea of a binary position My other though is to just use a second arduino to drive the servo. I could I'm going to spend some time layer and try compiling the existing modified -Edward Sent from my iPhone On Apr 18, 2013, at 6:32 AM, rawkstar320 notifications@github.com wrote: what about just using a tiny stepper motor? see: But I have seen smaller/cheaper ones before. Or maybe a solenoid would work better: — |
Good call, a second arduino is pretty expensive...check out the Digispark: http://digistump.com/ At ~$10 per Arduino, it looks perfect to me. You dont really need the 30 pins an Uno offers. |
Just tested the hex file with the servo option on an arduino nano - works fine. btw, you can get an arduino for 6USD: |
Hi guys thanks!! , been ill a few days... but this morning I tried out the correct hex file @derFrickler with the servo on analog 4 works ok. @shapeoko just use the hex file and you should be fine. Once I clean up all my cabling, I'll post a movie/files of it working. Comparing all the other option this is simply the best, simplest and cheapest. |
good to hear! |
It's been quite a while since I chimed in on this thread, but I thougth I'd post back with an update: 1.) Thanks for the file derFrickler! That did the trick. Here is a link to the shield's data sheet and pinout. ftp://imall.iteadstudio.com/IM120417015_Dual_Step_motor_driver/DS_IM120417015_Dual_Step_motor_driver_shield.pdf Can anyone take a stab at what needs to be done to make it work with grbl? So far, I have tried remapping the pins in config.h to match the shield, BUT I'm afraid that some of the other pins are messing with the functionality of the build. Most noteably:
Any thoughts on any of this? -Edward |
ANy news on it? cOuld you elaborate how a solution with a attiny could work? Thank you |
I came across Z-Axis servo driver today. It looks like a very simple circuit to wire and uses a cheap ATtiny to convert stepper signals output from GRBL, to servo PWM. |
Hello guys! Sorry for stupid question, how to flash the firmware what @derFrickler and @shapeoko says about? I mean this https://github.com/heise/GRBLDRILL/raw/master/GRBL/grbl.hex . I see in a repository archive a bat-file for AVRDude, but it is not working. Of course, I changed com-port name to actual name. I have no any programmer device, just connect my Arduino Uno r3 to PC via USB. Could you help me, please. Oh, I forgot, AVRDude says "avrdude: stk500_getsync(): not in sync: resp=0x00" |
I write a GRBL 0.9i change to support a servo motor with M03 Sxxx and M05 command. The link is: https://github.com/robottini/grbl-servo |
I'm looking into the possibility of diving more than one servo using grbl. Has anyone encountered this? Is there a straight forward solution? |
robttini, i've tried your code, many thnx. I've just have a problem, when i send M03 S010 for exemple, the motor start, but never stop... (uno R3 and a parallax servo). Any idea? |
(it was a continous servo, not a servo) have to find a real servo now. |
hello, i have a problem when using GRBLDRILL, the y axis sometimes moves back and forth , and some other times it only moves one way, and it doesnt really work, ive tried using the regular grbl v.9 and it works perfectly, both axis move perfectly. so its a grbldrill problem, anyone has solved this?? thank you |
Awesome !! Now I have the GRBL flashed and works like a charm controlling my X,Y axis on my mugbot/painter like I want.
Now I need to make it control a simple standard servo for the penlift "http://www.adafruit.com/products/155 " . Any info/direction on how to do this will be well appreciated!!.
The text was updated successfully, but these errors were encountered: