Arduino Drawing Robot

On November 24, 2015 by jw

I wrote a Pythons script that will take in a NURBS curve motion path from Maya and prints out the Turtle Code to draw the NURBS curve IRL.

This project is based on 3D printed, Arduino powered Drawbot I found on Instructables.

Here is the final video of the drawbot creating the Open Hardware Logo with the Turtle Code generated from my Python script.

This is the Python script running inside Maya and printing out the Turtle Code:

The first field tests were a bit off.


I added a few more decimal places to the turn commands and that got the result much closer to the desired output.


This is the first boot up test before the batteries were installed. It’s running the 4 square calibration code, though the motor steps are incorrect.



Here is Python Script that will print out the Turtle Code.

Import your path into Maya (or draw it with the pencil tool) and attach the drawbot to it with the “attach to motion path” command (Animate>Motion Paths>Attach to Motion Path). Here is an example Maya scene to get you started: drawbot_master

Make sure your scene is scaled correctly. I also found baking the drawbot trans and rotation channels before running this script gave better results.

Leave a Reply

Your email address will not be published. Required fields are marked *