INSPIRATION

We basically built did DIY CNC machine to help us complete our hand written assignments. It may also be used to design or sketch some amazing artwork in realtime using any pen or pencil.

HOW WE BUILT IT

Parts Required ATmega328p (with Arduino Bootloader)* 28 pin DIP IC Socket 16MHz Crystal Oscillator 2x 22pF and 1x 100nF capacitors 10K resistor USB to Serial adapter** 2x L293D ICs Mini Servo Motor 2x DVD/CD Drives Prototyping PCB Circuit Board Stripboard 4x 2pins Screw Terminal Connector (or 2x 4 pins Screw Terminal Connector)

Assembling Steps First step to start building this cnc machine is to disassemble the dvd/cd drives and take off them the stepper motors. Use the screwdriver to open and take off them the rails.

Now that we have the two stepper motors we need to solder some cables on them. Now we need to find the correct combination to drive and use them correctly, so take a multimeter with alligator clips and put it on "short-circuit" function . Usually, the first and second cables are closing the circuit - the led is turned on and a beep sounds - this means that we have found the fist phase-motor of stepper motor. The other two cables, third and forth, uses the second phase-motor of stepper motor.

In my case, one of stepper motors uses the first and third cable for first phase-motor and the second and forth cable for second phase-motor.

Microcontroller We used an Arduino NANO as the microcontroller along with two L293D Motor driver to control the stepper motor and some IC sockets and female pins for connection.

G-Code We also coded a program for G-code conversion. G-code is basically a programming language for CNC that instructs machines where and how to move. Most machines speak a different “dialect” of g-code, so the codes vary depending on type, make, and model. Each machine comes with an instruction manual that shows that particular machine’s code for a specific function.

Built With

Share this project:

Updates