-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 on arduino nano #1517
Comments
Is there a specific reason you're using the nano?
If it's the size that's the issue, you could go for a Teensy instead. The Teensy 2.0 is about the same, but the Teensy++ 2.0 has 4x the space but is slightly longer.
(The 3.x series are kind of silly overpowered with up to 1MB program space and clock speeds in the 120Mhz+ ranges, and also mostly 3.3V devices, so just ignore those... )
<https://www.pjrc.com/teensy/>
Den 25. mars 2019 kl. 09.24.28 +01.00 skrev Roy de Kleijn <notifications@github.com>:
… Hi,
I like to install GRBL on a Arduino Nano.. In my project I only need 2 steppers + 1 servo (for Z-axis movement) + 2 limit switches
I get the following error:
Sketch uses 30880 bytes (100%) of program storage space. Maximum is 30720 bytes.
Global variables use 1472 bytes (71%) of dynamic memory, leaving 576 bytes for local variables. Maximum is 2048 bytes.
Sketch too big;
Is there a way I can comment some code? since I only need 2 steppers and 1 servo + 2 limit switches.
I hope this is possible, since changing the bootloader gave me different issues.
Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#1517>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AIue9zegK9ZCf2yQr2SiQUZMdj6gswP3ks5vaIe8gaJpZM4cGT5v>.
|
It loads to Nano's ? Are you using GRBL IDE to load the code or XLoader. |
What version are you using, this seems to be a huge code for the ATMEGA328 IC based GRBL |
Thanks for the comments! I have the 328P version. The reason I use a nano is that I'm building a mini CoreXY plotter with this board: cnc shield V4 (I don't think Teensy fits on this board) I uncommented the following 2 lines:
and I changed the homing settings to:
If I comment |
Are you changing #define VARIABLE_SPINDLE because your hardware is configured for ver 0.9 of grbl |
I was changing Are my thoughts wrong here? How else can I control the servo ? |
The spindle output by default is pwm for variable spindle, i believe there is some trickery involved with setting up for lasers but out of the box it should do exactly what you want M3 and M5 will control a spindle with speed set by S*** speed (gcode - M3 S1000 will start a spindle running at 1000 Rpm all be it that the output signal will be 0-255 pulse width.) I'm confused by the requirement of a spindle when you are using a plotter pencil. |
@MeJasonT Thanks, maybe I misunderstood the implementation... I will read through your links and see if that helps for a solution. |
Weird, my servo is not moving on the M3 and M5 commands.. |
Please can you send details of the servo you are using and how you are connecting it. |
Sure, I tried both SG90 and MG90S. Connecting to 5V and GND and the yellow wire to pin Z+ and Z- (both gave the same result) of the cnc shield v4. Do I need to change something in config.h? The cnc shield v4 has also a A6,A7,D12,D13 maybe that can be of some use? My last try was a default GRBL with only I use these GRBL settings: |
umm interesting, is this your board by any chance. |
yes, that is my board! CoreXY is working fine, however the servo isn't.. |
Has the guy in the second link explained how he got his servo working. |
I like to point also to this thread: bdring/Grbl_Pen_Servo#1 (comment) |
Have you tried any of the suggestions made in that thread. It sounds like the board programmed to run just a servo code works using -Z pin (pin 11 which also corresponds to GRBL Spindle ver 1.1). You have a choice of either Z axis Step output or Spindle output for your pen operation, Fix the decision in your mind and don't get side tracked, i did whilst typing this reply. Start talking about spindle control when what you really need is Z axis, however the spindle operation is the most straight forward as you don't need to mess with steps and acceleration settings. If i get a chance i will set up a demo board and try it myself and pass on my findings, Unfortunately i'm a bit busy at present helping a neighbour move house and full-fill my work requirements. My good lady goes away on Saturday and suddenly my life gets easier ? |
https://github.com/robottini/grbl-servo Its for the older grbl version |
@MeJasonT all your links redirect to https://github.com/grbl/grbl/issues/url or is that just me? |
I had the same problem with the |
Hi,
I like to install GRBL on a Arduino Nano.. In my project I only need 2 steppers + 1 servo (for Z-axis movement) + 2 limit switches
I get the following error:
Is there a way I can comment some code? since I only need 2 steppers and 1 servo + 2 limit switches.
I hope this is possible, since changing the bootloader gave me different issues.
Thanks
The text was updated successfully, but these errors were encountered: