Arduíno nano CNC shield v4

3,465 views
Skip to first unread message

Adrian Freiberger

unread,
Jul 13, 2015, 1:20:38 PM7/13/15
to cyclone-p...@googlegroups.com
hello people, excuse my English, "google translator". I'm building a cyclone, and today was my plate Arduino Nano and the CNC shield v4, but I have no idea what to install it. Any own firmware for it? and connections as I do? I am beginner in this matter.

Nando

unread,
Jul 13, 2015, 1:58:53 PM7/13/15
to cyclone-p...@googlegroups.com
Hi Adrian,

I don't know or have that particular shield (I have the one for Arduino Uno/Duemiellenueve) but I'd suspect that you can load
the GRBL firmware in it as basically what changes it the board layout. Capability wise it's all the same IC.

Check here: https://github.com/grbl/grbl


-Nando
Sent from my Sinclair ZX81

On 13 July 2015 at 18:20, Adrian Freiberger <sdfrei...@gmail.com> wrote:
hello people, excuse my English, "google translator". I'm building a cyclone, and today was my plate Arduino Nano and the CNC shield v4, but I have no idea what to install it. Any own firmware for it? and connections as I do? I am beginner in this matter.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.
To post to this group, send an email to cyclone-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/cyclone-pcb-factory.
To view this discussion on the web, visit https://groups.google.com/d/msgid/cyclone-pcb-factory/4be797f9-5ded-4921-b09e-a57d2efa169e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Samuel Kranz

unread,
Jul 15, 2015, 4:33:01 AM7/15/15
to cyclone-p...@googlegroups.com
Hi Adrian,

Firmware:
I guess you have bought this board (cnc v4). If so your setup is quite easy since this board is designed for grbl (so the pin mapping is already correct).
as nando said just download the latest grbl firmware and upload it via arduino IDE (tut). 
If you want to use carlos' marlin firmware you have to slim it down to 32kB (maybe not possible). 

Connections:
I think connecting the motors is quite clear. There are some other pin-headers labeled with XYZ+- I those are for the limit switches (can be left unconnected - note: you have to use grbl v0.9 because of the pin mapping of the spindle and z limit switch info)
the headers labeled with coolant and stuff are not needed to be connected (unless you want to use them)
D12 D13 are for your spindle . If you switch it on/off manually you can also leave them unconnected.

tldr:
download grbl -> flash it -> connect motors

Nando

unread,
Jul 15, 2015, 6:23:18 PM7/15/15
to cyclone-p...@googlegroups.com
Any advantage in using the Marlin version?
I'm using GRBL as I have the Arduino shield and when tried to load Marlin I couldn't as it was taking much space (even after disabling lots of options)

Also for the ones using GRBL, can someone share their settings?
I have started turning steps/mm as it's easy to get that but I'm a bit unsure in regards the other settings
like acceleration and feed rates.

Thanks


-Nando
Sent from my Sinclair ZX81

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.
To post to this group, send email to cyclone-p...@googlegroups.com.

Samuel Kranz

unread,
Jul 16, 2015, 4:00:22 AM7/16/15
to cyclone-p...@googlegroups.com
Yeah there is one big benefit by using marlin.. Probing.. Currently most of the hostsoftwares do not support the grbl probing. I was writing a host application for windows which supports marlin and grbl but due to the lack of time the development is very slow.. For configuring grbl. Firstofall make sure that ur steps/ mm are correct. After that u can set the feedratets to 300mm/min at maximum and about 2mm/s^2 acceleration. If u cant move your axis and the motor looses steps try to reduce the feedrate in gcode for example g01 x100 f10 until the axis moves properly. Dont fortget to reset grbl after every parameter change.
Good luck

Yiannis Mandravellos

unread,
Jul 16, 2015, 4:55:49 AM7/16/15
to cyclone-p...@googlegroups.com
Probing is supported by grbl too Samuel, all you need is a software that supports it (e.g. bCNC).

As for the grbl settings Nando, go with what Samuel suggested. Except that it's not necessary to reboot grbl after every parameter change...

FWIW, here are my settings for grbl v0.9i:

$0=10 (step pulse, usec)
$1=25 (step idle delay, msec)
$2=0 (step port invert mask:00000000)
$3=0 (dir port invert mask:00000000)
$4=0 (step enable invert, bool)
$5=1 (limit pins invert, bool)
$6=0 (probe pin invert, bool)
$10=3 (status report mask:00000011)
$11=0.020 (junction deviation, mm)
$12=0.002 (arc tolerance, mm)
$13=0 (report inches, bool)
$20=0 (soft limits, bool)
$21=1 (hard limits, bool)
$22=1 (homing cycle, bool)
$23=3 (homing dir invert mask:00000011)
$24=300.000 (homing feed, mm/min)
$25=300.000 (homing seek, mm/min)
$26=100 (homing debounce, msec)
$27=1.000 (homing pull-off, mm)
$100=2880.000 (x, step/mm)
$101=2880.000 (y, step/mm)
$102=2880.000 (z, step/mm)
$110=750.000 (x max rate, mm/min)
$111=750.000 (y max rate, mm/min)
$112=200.000 (z max rate, mm/min)
$120=10.000 (x accel, mm/sec^2)
$121=10.000 (y accel, mm/sec^2)
$122=10.000 (z accel, mm/sec^2)
$130=160.000 (x max travel, mm)
$131=150.000 (y max travel, mm)
$132=40.000 (z max travel, mm)

Note that you may want to start lower with feedrates/acceleration.
Also, don't copy my steps/mm as I 'm using custom belt with pulleys drive gearing so those steps would most certainly NOT work for you...

Nando

unread,
Jul 16, 2015, 5:07:52 AM7/16/15
to cyclone-p...@googlegroups.com
@Samuel, thanks!

@Yiannis, perfect thank you.
The steps/mm was the only param I had sure about as I calculated it from a previous post for Carlos.

I'll give the suggested settings a try.

Thanks again to both.


-Nando
Sent from my Sinclair ZX81

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.
To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/cyclone-pcb-factory.

Samuel Kranz

unread,
Jul 16, 2015, 6:57:33 AM7/16/15
to cyclone-p...@googlegroups.com
@yiannis i know its supported since 0.9. I meant there are only a few hostprograms that support probing from grbl like jscut (didnt know bcnc also supports it)

Yiannis Mandravellos

unread,
Jul 16, 2015, 8:23:11 AM7/16/15
to cyclone-p...@googlegroups.com
I know you know :)
It's good that you also clarified this applies to grbl v0.9 and up because I tend to forget that other people may be using earlier versions...

Adrian Freiberger

unread,
Jul 16, 2015, 2:51:50 PM7/16/15
to cyclone-p...@googlegroups.com
Show... Thanks

Adrian Freiberger

unread,
Jul 16, 2015, 4:51:41 PM7/16/15
to cyclone-p...@googlegroups.com
someone would have the hex file to send me

Nando

unread,
Jul 16, 2015, 4:57:21 PM7/16/15
to cyclone-p...@googlegroups.com
You can get eh .hex files directly form the github page.

9i (Default) - http://bit.ly/1EiviDk

Full list here down the page: https://github.com/grbl/grbl


-Nando
Sent from my Sinclair ZX81

On 16 July 2015 at 21:51, Adrian Freiberger <sdfrei...@gmail.com> wrote:
someone would have the hex file to send me
--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.
To post to this group, send an email to cyclone-p...@googlegroups.com.

Adrian Freiberger

unread,
Jul 16, 2015, 10:33:52 PM7/16/15
to cyclone-p...@googlegroups.com
hello , sorry the insistence but am not very good at programming , what changes should I make the Arduino to use with cyclone ? I managed to install the GRBL version in nano Arduino

Samuel Kranz

unread,
Jul 17, 2015, 5:21:17 AM7/17/15
to cyclone-p...@googlegroups.com
1) read the post of yiannis
2) read this site Configuring GRBL
3) copy those settings onto your machine
4) enjoy

Adrian Freiberger

unread,
Jul 17, 2015, 12:49:58 PM7/17/15
to cyclone-p...@googlegroups.com
OK thanks!

Adrian Freiberger

unread,
Jul 23, 2015, 1:42:44 PM7/23/15
to Cyclone PCB Factory, secu...@gmail.com
Hello friend, managed to install grbl, and altered the same configurations to the yiannis, but how do I calculate the values of the steps / mm. thanks

Samuel Kranz

unread,
Jul 23, 2015, 2:02:05 PM7/23/15
to Cyclone PCB Factory, sdfrei...@gmail.com
Hi,
I assume you're using the 8mm threaded rod. It has a thread pitch (wrong word?) of 1.25mm per rotation. If you have a 1.8° steppermotor your nut will move 1.25mm per 200 steps.
So you have 200 steps  / 1.25mm -> but you need the steps for 1mm so u have to divide the steps by 1.25. This equals the steps/mm if you're using full stepps, if you enable microstepping
you have to multiply the result by that factor.

Example: 
Motor 200steps/rotation (1.8°)
Threaded rod: M8 1.25mm/rotation
Microstepping :8
               
 
                     Motorsteps per rotation * microstepping           200 steps/rot * 8 (microstepping)
steps/mm = -------------------------------------------------------------- = -------------------------------------------------------- = 1280 steps/mm
                             Thread pitch per rotation                                 1.25mm/rot


Nando

unread,
Jul 26, 2015, 2:59:17 PM7/26/15
to cyclone-p...@googlegroups.com, sdfrei...@gmail.com
Got some time and added the shared settings, now it's working correctly.
Thanks again for the help!

One some more questions in regards to gbrl, you guys mentioned the probing.
I was trying to do it using bCNC but question is, where do I plug the probe in the Arduino shield?

Couldn't find any decent docs, only thing I found was for a different shield.




-Nando
Sent from my Sinclair ZX81

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.
To post to this group, send email to cyclone-p...@googlegroups.com.

Samuel Kranz

unread,
Jul 27, 2015, 6:30:11 AM7/27/15
to Cyclone PCB Factory, sdfrei...@gmail.com, nan...@gmail.com
Im not 100% pls recheck

Nando

unread,
Jul 27, 2015, 6:45:31 AM7/27/15
to Samuel Kranz, Cyclone PCB Factory, Adrian Freiberger
Thanks.
I ended up looking into the code and confirming that. It is correct is analog pin 5 (A5).

I did something similar routed A5 and GND to two of the pins for stepper A that is not in use in my shield
and got it working now in bCNC.


-Nando
Sent from my Sinclair ZX81

Adrian Freiberger

unread,
Jul 27, 2015, 10:29:09 AM7/27/15
to Nando, Samuel Kranz, Cyclone PCB Factory

The connection of the figure is wrong, is the SCL pin

Samuel Kranz

unread,
Jul 27, 2015, 10:33:03 AM7/27/15
to Cyclone PCB Factory
Acually i wrote scl.. ;)

Nando

unread,
Jul 27, 2015, 10:36:06 AM7/27/15
to Cyclone PCB Factory

Danm...I forgot A5 is SCL. :)
Oh well it will be easier then as I can use the exposed iCSP pins in the shield.

On 27 Jul 2015 3:33 p.m., "Samuel Kranz" <secu...@gmail.com> wrote:
Acually i wrote scl.. ;)


--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.
To post to this group, send an email to cyclone-p...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages