How to run two CNC shields (other one as clone) with one Arduino UNO

I learned a nice thing about Arduino CNC shield today. I have a project coming up where I need 3 axes. On each axis, there will be 2 motors (cloned, running in sync). That means I need a total of 6 motors and drives, but CNC shield only supports 4 drives (axes). So I needed two boards somehow to work together with one Arduino. The second one needs to run as a clone/slave. So it would be possible to run a cloned motor for each axis. 
 
I was afraid that I must create some hackish middle layer to route connections to both shields. But actually, there was no soldering or hacking needed. The solution was already there like it’s meant for that. 
Arduino CNC shield pinout for cloning whole board

Arduino CNC shield pinout for cloning whole board

Arduino CNC shield has very convenient pin-outs on its board. Not only for cloning 4th axis but also to clone the whole board. Not sure is it especially for this but it worked for my application. You only need to connect (highlighted) pins from the primary board to the second one and it’s cloned. 

How does this work?

What happens is that we send the same step and direction commands to other board like on the original one. The pins on top of a shield are just passing through signals. The shield does not care that it’s not sitting top of Arduino directly. So it should be possible stack even more shields in such way. 
 
Since other board is not attached to an Arduino we need 3 extra connections. Connect the same pins from primary shield to the same pins on the secondary shield and it’s done. Minimum connections are: 
  • Enable pin (so drives can be activated by software)
  • +5V
  • GND
That’s it. Now you can clone needed axes on other board by connecting corresponding pins from one board to other. And of course, don’t forget to power the cloned board too. Look photo of the example used in this article. Here I have cloned only Z-axis to the second board.
A closer look at example setup

A closer look at example setup

Go check out the quick video on Youtube with this example running.

Comments

  1. By Mupfel

    Reply

    • By ed

      Reply

  2. By Mupfel

    Reply

    • By albworkshop

      Reply

      • By Janar

        Reply

  3. By ProtomakerSprint

    Reply

    • By Janar

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

thirty − = twenty eight

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close