In the previous tutorial, be build a mini CNC plotter with Arduino Uno by recycling 2 old dvd players. Here’s how to prepare your gcode files needed for the gctrl program. It’s very easy to prepare your own gcode files with the Unicorn MakerBot extension for Inkscape available here. For those who do not know, Inkscape is an open source (and free) vector drawing software.
Depending on your computer, download and install Inkscape version 0.48.5 here. Then, retrieve the Unicorn MakerBot extension on GitHub. To install it, simply copy the src directory contents into the Inkscape extensions directory. Depending on your environment, here is the installation path of the extension.
Note that the MaketBot Unicorn extension does not work beyond Inkscape version 0.48.5.
- OS X – /Applications/Inkscape.app/Contents/Resources/extensions
- Linux – /usr/share/inkscape/extensions
- Windows – C:\Program Files\Inkscape\share\extensions
With the extension installed, you can open Inkscape.
First, you must first configure the document properties (file -> document properties). Select the default unit in cm with a page size of 8 cm x 8 cm.
You have an area of 4cm x 4 cm. Your drawing must remain in the upper right quarter.
Your finished drawing, selected all items then go to Path -> Object in Path. This transformation is necessary before generating the gcode file. However, you will lose certain properties of the objects (eg the text will no longer be editable). If you want to make subsequent changes, save your work in svg format before doing the conversion.
The conversion done, we can generate the gcode file. Just make file -> save as then select Makerbot Unicorn (this is the extension we previously installed). If the option is not available, the extension is not properly installed.
Validate without changing anything in the dialog box that appears next.
And now you are ready to trace your work!
I hope you find everything you need to make your Mini Plotter. I hope I did not forget anything. Do not hesitate to share your experience or add your tricks. The comments are there for that.
- Get Started with HC-SR04, measure distance by ultrasound. Arduino code example
- ESP32, GPIO pins and associated functions. I/O, PWM, RTC, I2C, SPI, ADC, DAC
- ESP32-CAM pinout and equipments. ESP-EYE, AI Thinker, TTGO T-Camera, M5Stack Timer Camera …
- ESP32-CAM. Which model to choose? ESP-EYE, AI Thinker, TTGO T-Camera, M5Stack Timer Camera …
- M5Stack Atomic GPS. ESP32 TinyGPS++ tracker, GPX export on SD card, visualization on Google Maps or VSCode
- Home Assistant. Install the snap on Synology NAS on an Ubuntu Virtual Machine