CNC machine controller
Project description
PyCNC
Video demo - YouTube video
Current command support
Config
Hardware
Currently, this project supports Raspberry Pi 1-3. Tested with RPI2. But there is a way to add new boards. See hal.py file. Note: Current Raspberry Pi implementation uses the same resources as on board GPU(memory). So video output will not work with this project. Use ssh connection to board. And do not connect HDMI cable, otherwise project would not run. Probably, increasing of GPU dedicated memory(at least to 64 MB) could solve it and allow to work project and GPU together, but it was never tested.
Usage
sudo pip install .
in repo root directory to install it. After than, pycnc command will be added to system path. To remove installation, just run:
sudo pip remove pycnc
Performance notice
wget wget https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.7.1-linux-armhf-raspbian.tar.bz2
sudo mkdir /opt/pypy
sudo tar xvf pypy2-v5.7.1-linux-armhf-raspbian.tar.bz2 --directory /opt/pypy/ --strip-components=1
sudo ln -s /opt/pypy/bin/pypy /usr/local/bin/pypy
Project architecture
Dependencies
Nothing for runtime. Just pure Python code. For uploading to PyPi there is a need in pandoc:
sudo dnf install pandoc
sudo pip install pypandoc
GCode simulation
Just a link, mostly for myself :), to a nice web software for gcode files emulation (very helpful for manual creating of gcode files): https://nraynaud.github.io/webgcode/
License
see LICENSE file.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.