Source code

The Polargraph source code is on github. That has the source code for

It also has the code for the controller (Processing), that works with all hardware platforms.

These files are bundled into a download that is on the releases section of the polargraphcontroller github. Download the most recent release.

The project used to be hosted on google code, and what is left there might not always have found a new home.

[shameless plug]Of course you can buy kits of polargraph parts direct from me too.[/shameless plug]

It’s GPL v3.

10 thoughts on “Source code

  1. Hey, awesome project.
    By the way what if you are using servos instead of steppers and no motor shield?
    If this is possible can you give the code?
    thank you,

    • Never tried it Naman, can’t help! All the motor driving goes through a library called AccelStepper, so it could be encapsulated by coming up with a servo-aware version of AccelStepper.

  2. Pingback: A Good Days Polargraphing | markcra's designin' makin' and doin's

  3. Hi, I tried to build the same project, but the software always said “Polargraph is not connected.” Could you do some help?
    I used Arduino UNO and easydriver.
    Many thanks,

  4. Hello, I build the project and it works it already drew some pictures and thanks for that ;) But there is a problem that the picture always gets scaled differently. For example if I am in the top left corner with the pen, and I click that it goes straight down it doesnt, first it goes down and the last 5-7 cm it goes to the right. And at right site its the same just the it goes to left the last cm. And no the cord isnt slipping and the pen isn´t also blocked by something.
    I know this sound a bit confus but I don´t know how to deal with this problems. So all pictures get scaled and at the end they have a different size than the original.
    P.S.: I use two same motors, everything is well measured and its in level.

    Thank you :)

    • Post a message on the forum, along with a picture! It’s really hard to tell anything from a written description, you’re right! It is true though, that using “move pen” will _not_ draw a straight line, it draws a hook on the end. This is normal. Use “move direct” to get straight lines.

  5. I tried uploading the firmware on my arduino Uno and my arduino Mega ADK but it comes with an error always…

    C:\Users\jgobu1\Downloads\polargraph_server_a1-master\polargraph_server_a1-master\polargraph_server_a1\polargraph_server_a1.ino:59:21: fatal error: AFMotor.h: No such file or directory



    compilation terminated.

    exit status 1
    Error compiling for board Arduino/Genuino Uno.

  6. Hi,
    yesterday I try to compile the Code for a Arduino uno with adafruit Motorshield V2.

    And I Setup the 5 config steps.
    But I get the Error message:

    Arduino: 1.8.6 (Windows Store (Windows 10), Board: “Arduino/Genuino Uno”

    pixel:334:36: error: variable or field ‘pixel_drawSquareWaveAlongAxis’ declared void

    void pixel_drawSquareWaveAlongAxis(AccelStepper &longAxis, AccelStepper &wideAxis, int waveAmplitude, int waveLength, int totalWaves, int waveNo)


    pixel:334:36: error: ‘AccelStepper’ was not declared in this scope

    pixel:334:50: error: ‘longAxis’ was not declared in this scope

    Please can you tell me what I’m doing wrong?

Comments are closed.