PiCNC

Raspberry pi CNC machine.

This project consist of three parts: PiCNC main program, PiCNCEngraver for engrave bitmap images and PiCNCServer for controlling machine from mobile phone over wifi.

Each this part interacts whith kernel module that directly manage stepper motors over his drivers.

All this programs written and tested only on raspberry pi 3 model B.

PiCNC interface
raspberry pi CNC machine

PiCNCEngraver interface
raspberry pi CNC machine

PiCNCServer (mobile) web interface
raspberry pi CNC machine

PiCNCServer (mobile) web interface interface
raspberry pi CNC machine

Raspberry pi pin out


XStep 19
XDir  13
XMin  6
XMax  5

YStep 16
YDir  12
YMin  7
YMax  8

ZStep 11
ZDir  9
ZMin  10
ZMax  22

Spdl  18

Installation

User space

  1. Download installation package.
  2. Open a terminal and go to package folder.
    cd /package folder
  3. Make
    dpkg -i PiCNC.deb
    to remove PiCNC user space programms mack:
    dpkg -r PiCNC
    By default the PiCNCServer installing in “/usr/bin” directory. And You can run the server with the icon in main manu. Or start the server automaticly at the boot time, please folove this guide.

Kernel space

Today the project does not support the latest version of the kernel so there is no chance that this module is right for you. In any case, you can compile the module yourself.
To automatically load the module while booting the operating system, follow these steps:

  1. Add module name (picnc.ko) to:
    /etc/modules
    sudo nano /etc/modules
  2. Add “picnc.ko” file to
    /lib/modules/(uname -r)
    cp /module/folder/picnc.ko /lib/modules/(uname -r)
  3. cd to “/lib/modules/(uname -r)” and make:
    depmod -a

    If you are interested in this project and you have ideas for its further development, please write to me by e-mail mbajor1313@gmail.com.