EX. 04 1D CNC (With a Switch!)

Possibly Arduino Controlled CNC

http://www.instructables.com/id/Homebuilt-DIY-CNC-Router-Arduino-Based-GRBL/step7/Motordrivers-and-wiring/

We are going to try using this later down the line

Initially we were worried about making the 1D CNC machine out of cardboard. We knew that we wanted the machine to be rigid, clamp-able, and possible strong enough to be tinkered with over and over again. With that in mind, we set out making our CNC machine out of MDF.

The dangers with making something out of a rigid material lies in tolerance and precision. In order to guarantee perfect hole precision, we used a CNC Mill to cut out the pieces. Everything was ready to go, until I broke one of the side planks (more on that later)

If you would like to make our version of the machine, HERE are the CNC Files!

Now, on to production!

It's important to make the carriage precisely. In order to guarantee its accuracy, we used both the acme rod, and the two rails as registers for the carriage construction.
It’s important to make the carriage precisely. In order to guarantee its accuracy, we used both the acme rod, and the two rails as registers for the carriage construction.

img_8027

Because I broke one of the side walls, we needed to re-make it! However, the CNC Mill was totally booked up, so we went old school and worked it on the table saw. In order to ensure all three sides had the same registry for our slots, we made them all over again.
Because I broke one of the side walls, we needed to re-make it! However, the CNC Mill was totally booked up, so we went old school and worked it on the table saw. In order to ensure all three sides had the same registry for our slots, we made them all over again.

img_8030 img_8031

And then through the power of friction (and a fun mallet), we held it all together!
And then through the power of friction (and a fun mallet), we held it all together!

 

It’s really important to test the construction before you glue anything (I almost attached the carriage side walls upside down)

 

It's all together! Amazing!
It’s all together! Amazing!

 

Except not…

Even with our precautions, there was a little bit extra friction than the stepper motor could take running off of the power supplied by the USB

But thanks to the friction fitting, I quickly disassembled it and took the bushings off the carriage. It gave enough wiggle room for the carriage to glide across the rails. 
But thanks to the friction fitting, I quickly disassembled it and took the bushings off the carriage. It gave enough wiggle room for the carriage to glide across the rails.

 

Now for the fun part!

Wire your arduino uno and breadboard like they do HERE

and with this diagram

diagram

We wanted to test out our arduino code skills a bit and try something fun. It was simple enough to change speed, or length of travel, so we wanted to add one more variable, a Switch!

 

Arduino Code

Updated Arduino Code (this new code has way less feedback on the limit switch)

spdt_limit_switch
You’ll need one of these
limit-switch-diagram
And you wire it like this (although we don’t use the resistor)

We needed to figure out how to use this interestingly, so we decided to mess up the 2 axis plotter, and make a different type of 2 axis plotter, where one axis is controlled through arduino code, and the other is controlled through the plotter, but they have a relationship.

CHECK OUT HOW IT WORKS HERE

AND CHECK OUT HOW WE MODIFY THIS THING HERE

 

Take-Aways:

1.Hacking two machines together is really really fun

2.Clicking limit switches is ungodly satisfying

3.Machining things needs to be perfect, or else inaccuracies are played out very quickly

Thanks!