MXY Board - Low-Budget XY Plotter Drawing Robot Board




Introduction: MXY Board - Low-Budget XY Plotter Drawing Robot Board

About: Robotic Projects (Arduino, Raspberry Pi, ESP8266, PCB, IoT, 3D, Electronics)

My goal was to design the mXY board to make low budget the XY plotter drawing machine. So I designed a board that makes it easier for those who want to make this project. In the previous project, while using 2 pcs Nema17 stepper motors, this board uses 2 pcs 28YBJ-48 DC 5V 4 Phase 5 Wire Stepper Motors. Also in the previous project, Arduino Uno R3 was used as microcontroller and Adafruit Motor Shield as motor driver. This board uses Atmega328P and ULN2003 stepper driver. So you will be able to make this project with a single board. A 5V 1A adapter or powerbank is sufficient for this project to power consumption. The maximum current was observed as 0.4A when both motors were running.

The board shown in the video is the test version, the updated and upgraded version of the board is at the link below. Also, for those who do not want to solder, the mXY board will be sold at PCBWay Bazaar with all components assembled. Many thanks to PCBWay for this support.

$0 For New members first order & Low Price for PCB Stencil at

Step 1: Get the PCB

In this project we gonna make XY Plotter Drawing machine with mXY Board. With Drawing Robot you can draw images on wall, panel or A4 paper. You can print pictures or print text. The machine is a simple device, that draws picture using a normal pen, some motors and some string. All required hardware for this project are listed below. We will learn how to install and use the Polargraph program for drawing control.

Get the PCB - Schematic - Gerber files - BOM List:

Step 2: Required Components for PCB

The mXY assembled version will soon be available at PCBWayer Bazaar :

1x ATmega328P-PU with Bootloader:

2x ULN2003 DIP16:

2x 28YBJ-48 5V 5 Wire Stepper Motor:

1x CH340G SOP16:

Type B USB Socket:

DIP Socket 28/16 Pins:

12/16 MHz Crystal:

L7805 TO-220:

10uF Capacitor:

22pF/0.1uF/10nF Ceramic:


Resistor 10K/ 1K:

Power Jack Socket:

2 Pin Terminal Block:

Male Pin Header:

2x JST B5B-XH Connector:

1x MG90S Servo Motor:

GT2 Pulley 16 Teeth Set:

GT2 Rubber Belt (5M):

3 in 1 Jumper Wire:

Soldering Tools:

Step 3: Connections

An extension wire will be required for stepper motors and servos.

For more information:

Step 4: Gondola & Bracket

You can find gondola and stepper motor mounting bracket 3D models in the ZIP file 'Gondola_Bracket_Models'

JGAURORA A5S 3D printer was used for 3D models:

Step 5: Source Code

Step 6: Arduino Source Code

  • Go to the mXY-Plotter-Drawing-Machine\arduino-source-code-libraries\libraries folder.
  • Copy the contents of arduino-source-code-libraries\libraries into your C:\Users\YourPCname\Documents\Arduino\libraries folder.
  • Go to the mXY-Plotter-Drawing-Machine\arduino-source-code-libraries folder.
  • Copy the polargraph_server_a1 folder and paste it your C:\Users\YourPCname\Documents\Arduino folder.
  • The "polargraph_server_a1.ino" file is the edited copy for the ULN2003 driver and 28YBJ-48 stepper motor. You can get the original version here

  • Open Arduino IDE

  • Go to File -> Sketchbook -> polargraph_server_a1 | Open the polargraph_server_a1 source code.

  • Go to Tools -> Board -> Arduino/Genuino Uno | Select the Board

  • Press the "verify" button in the toolbar to try and compile it.

  • If it compiles, press the "upload" button in the toolbar to upload it.

  • Once you do that, you should confirm that it is working properly - use the serial monitor on the board, set to 57600 baud to make sure that it is issuing "READY" every couple of seconds.

Step 7: Processing Source Code

  • Go to the mXY-Plotter-Drawing-Machine\processing-source\Processing libraries folder.
  • Copy the contents of processing-source\Processing libraries into your C:\Users\YourPCname\Documents\Processing\libraries folder.
  • Copy the polargraphcontroller folder and paste it your C:\Users\YourPCname\Documents\Processing folder.
  • Open Processing
  • Go to File -> Sketchbook -> polargraphcontroller | Open the polargraphcontroller app source code.
  • Press the Run button in the toolbar to run the sketch.

Step 8: Polargraphcontroller

Polargraph controller Copyright Sandy Noble 2018 -

Stepper Motor Specifications

Machine Dimensions

  • Remember that your machine size is NOT the same as your surface size.
  • Your PAGE or drawing AREA size will be smaller.
  • Machine Width - This is the distance between two closest points on the sprockets (between two pulleys). Adjust the size between two pulleys on the Machine Width
  • Machine Height - This is the distance from the sprocket axis to bottom of your drawing (board) area. Adjust the Machine Height (height between the pulleyand the end of the panel)
  • After machine dimensions, adjust the size the area you will draw. (If ou will draw on an A4 paper, set the A4 size.)
  • Home Point - This is a magic point marked on the centerline, exactly 120mm (12cm) down from the top edge of your machine.
  • Then, first clicthe Center Page and then set the Page Pos Y value 120.
  • Secondly click Center Home Point and set Home Pos Y value 120.

Servo motor (Pen) settings

  • Pen Up Position and Pen Down Position values are the operating angle of the servo motor.
  • Click Serial Port and select Arduino's port from the list of connected devices.
  • When the correct port is selected, the 'No Serial Connection' display will turn GREEN and the port number to which it is CONNECTED will be displayed.
  • Click on 'Command Queue' and command transmission is activated.
  • Click Upload Lift Range, then click Test Lift Range and test the servo motor angle.

Last Settings - Upload vector image and start the print

  • Save your setting. Load your setting every time you turn on the program.
  • Click the Input tab and switch to the main screen of the program.
  • Then we will anually set the gondola for 'Set Home' manually. Move the gondola by manually and move it to the previously defined home point. The gondola must be adjusted this way before each drawing before clicking 'Set Home'.
  • After this adjustment is done, Set Home and Set Pen Position are clicked.
  • Click Set Area to specify your drawing are. Then click Set Frame to Area to make all necessary settings for drawing.

Draw Vector

  • Find any vector drawing image. Convert image to the SVG format from any converter platform.
  • After select Load Vector from program. Adjust image size with Resize Vector. Move the image to the desired area with Move Vector. Then adjust the area to be printed with Select Area and Set Frame to Area.
  • Finally, click the Draw Vector command to start the machine.

For more information:

Arduino Contest 2020

Participated in the
Arduino Contest 2020

Be the First to Share


    • Lamps Challenge

      Lamps Challenge
    • CNC and 3D Printing Contest

      CNC and 3D Printing Contest
    • Rice & Grains Challenge

      Rice & Grains Challenge



    Question 7 months ago on Step 1

    Hi Bert I’ve been on to pcbway with the bom you have supplied the have passed me back a spreadsheet with questions I do not have answers to. I’m trying to buy a class set of these for the students I want them fully assembeled with press fittings but I do not know how to go about that can I have pcbway reach out to you? I understand if your to busy. Thanks for making this project