-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Welcome to the rcseproject wiki!
Given a construction consisting of two stepper motors and a servo motor. By attaching a pen on the servo motor, we should be able to draw easy geometric objects on paper.
This documents is being written to describe the requirements, functionality and goals of Mandala Designer which would be able to make different design patterns on a paper as per input given by a user. The final plotting machine consists of three axes. The x-axis and y-axis work together to draw a 2D image on the paper. While the z-axis is used to lift and lower the pen onto the paper.
This project designs a unit which would be able to draw easy geometric objects on a paper.
Anyone with a little knowledge about computers and is interested in drawing or making a design on a paper can use this unit.
- The paper size that we can draw on is limited by the coverage that our two step motors (taken from DVD) are able to cover which is 5cm. So the maximum area that we can cover is 5cmx5cm
- The speed of drawing is limited to the speed of the stepper motors (in steps per revolution)
- We need the system to be connected to an external computer/laptop because it can’t operate alone
- Micro-controller has a limited memory so it is not possible to store complex drawings on it
- We have assumed that each line of G-Code will be limited to 512 characters which is something that can be changed easily in the code as a constant.
- We have to use an external program like inkscape to generate the G-code and we alo need GCTRL processing program from Damellis to send the G-Code to arduino.
This project is divided into two parts. It has the hardware part and the software components.
- Servo motor
- Two step motors (from old DVD/CD drives)
- Motor shield L293D
- Arduino Uno board
- Jumper cables and connectors
- USB 2.0 cable to connect Arduino to PC
- Power supply. We use 6-12V power supply with 1000 mA peak current (see Ardafruit tutorial on powering motor shield)
- Screws and nuts.
- Cables
- Arduino IDE
- Processing IDE
- Inkscape (optional)
- GCTRL processing program from Damellis. It is used to send G-Code data to Arduino
Rationale: Accepts G-Code file (that could be produced by inkscape) as a user input. The G-Code has the description of the object that should be drawn on paper.
Fit Criterion: The unit should be idle before the user can enter the required shape information. This means the unit will not accept input while it is drawing
The task for this project is divided into two parts. The hardware and software task.
A construction consisting of two steps motors and a servo. Here are the main steps :
- Dismantle the two DVD-DRIVES and obtain the step motors from them.
- Prepare the platform for mounting the step motors and the servo. It should consists of two planes, one horizontal and one vertical and they are perpendicular to each other.
- Install the pen holder that is used to attach the pen to the vertical plan.
- Install the surface on which we can mount the paper.
- Wiring the steps motors and servo to the motor shield and then connecting the motor shield to the arduino board.
The software task is some codes written in the Arduino IDE to control the operation of the microcontroller. Our code is based on Adidax code source
- Connect Arduino and PC via the USB cable
- Plug in the power supply to the Arduino DC jack
- Install the paper on the platform
- You will need a G-Code file describing the pattern to draw. You can create it yourself or you can use inkscape with gcodetools extension from cnc-club to generate the G-Code file
- Open the G-Code file and change pen up and pen down lines
- 'G00 Z........' by 'M300 S30'
- 'G01 Z........ F100.0(Penetrate)' by 'M300 S50'
- Start GCTRL processing program, press 'g' for file selection option and select your G-Code file. NB : we configure GCTRL with the portname = "COM7", you may need to change it in case your arduino is using another port