No description, website, or topics provided.
CSS JavaScript Other
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
raspberry pi

KNK Force

An open Python software interface to the KNK Force


This software hopes to provide an open and hackable software interface for anyone to install on to their KNK Force and come up with some really amazing uses!

The KNK Force is a desktop CNC cutter/plotter with a built-in Raspberry Pi for the brains and a serial-connected motor controller board to interface to the stepper motors. The on-board Raspberry Pi connects to your home WiFi network via a USB wifi dongle and acts as a local web server for you to upload files to cut. The dual head is not simply an up/down driver like a normal cutter but offers an incremental Z-axis motion. It has a rotary bit attachment which allows cutting of plastics or wood material too. The head also has a camera built-in (!) which when the drivers get working will allow being able to put in a piece of paper with a shape, capture it on the camera, then automatically cut it.

Interface screenshot

KNK Forcepython hack interface


When I got my cutter I very quickly cracked it open and tried to customise the code but it was written in Ruby and is encrypted :( I removed the default SD card and installed my own version of Raspbian on it and wrote a Python driver to convert SVG to the custom PLT instruction format. This offers the basic cutter tools but there is so much more that this could do.

The backend software is written in Python and is used for both the webserver and serial comms.

  • The webserver for this project is Flask, as it is super light weight, easy to use, and allows easy file and serial operations
  • Serial communications to the motor driver board use pySerial on /dev/ttyAMA0 using a defined set of commands
  • SVG parsing is performed by svg.path (with a bit of extra cleaning up)
  • Github has been chosen as a method of not only backup but also hopefully future automated software deployments to Raspbian images with a cron job running in the background checking for tagged versions to pull down.


The front web interface uses a standard HTML/CSS/JS

  • Semantic UI is used for the CSS styles to make the site look slick and provide some mobile/tablet compatiblity.


This has been tested on Raspbian Jessie. Download a fresh Raspbian image and follow the installation instructions in the installation.txt file

The future

The first priority would be getting this project to to a usable and functional cutter/plotter Raspbian image download for anyone, with automated software deployments based on a cron job running in the background checking for tagged versions to pull down. The documentation, TODO list, and some sort of community forum (or other) would be useful for co-ordinating multiple contributors (hopefully it gets to be more than just me!), and possibly a proper name!

I have a hardware background and what I personally would like to do with this is turn it into a PCB factory! Using the rotary bit, I want to be able to export proto boards from Eagle and cut them on this cutter. Replace the rotary with a drill bit and drill the holes. PCB's are so cheap now that that could be not needed. But the real plus for me would be to add a vacuum pump and do some pick and place of parts PLUS use the camera for visual checks! That's hopefully what I'll be able to do with this project - and lots of work to get there!


This project was started by James Muraca to run on a KNK Force and the source is available at GitHub. I've learnt a lot from this project. This is my first go at coding in Python, using Linux in an embedded way, and my first open sourced project.

All of the code is on Github and hopefully the community can use this as a base and build upon it too. This software is open for anyone to hack so please help to contribute new features and make it even more awesome!

The Klic-N-Kut name and logo, and the KNK Force name and logo, are trademarks of AccuGraphic Sales, Inc..

KNK Force is distributed in Australia and New Zealand by Skat Katz.