Download and install the Arduino IDE and install it. If using a Sanguino see this page for the rest of the setup.



Download and install Replicatorg and install it.



Download the file UVLPrinter.zip below and extract it to your Arduino Sketchbook folder or just open UVLPrinter.pde wherever you extract it from. It contains a modified version of the Sprinter firmware.



Open the pins.h tab and change any pins that you may have connected differently than my setup.

The step and dir pins should be easy to find, the MIN_PIN and MAX_PIN for each axis are the top and bottom limit switches. Anything with a -1 is not used. Everything else should be easy to figure out.



#define X_STEP_PIN 6

#define X_DIR_PIN 7

#define X_MIN_PIN 19

#define X_MAX_PIN 20



If you are using anything other than half stepping you will need to go into the configuration.h tab and change the following line.



float axis_steps_per_unit[] = {251.971678, 252.4475, 1007.87402,700}; //Half Step



The information needed to figure this out is the 16 Turns per inch on the Acme rod, the 200 steps per turn of the stepper and the microstepping. If using 1/8th stepping then take the 200 steps of the stepper times 8 to get 1600 steps.



The calculation for figuring out the steps per mm for 8th stepping is:



1 inch is 25.4mm so 25.4 / 16 TPI = 1.5875 mm per turn

1.5875 mm / 1600 steps = .0009921875 mm per step

1 mm / .0009921875 mm per step = 1007.87402 steps per mm



So for 8th stepping you would put 1007.87402 for each axis like this:

float axis_steps_per_unit[] = {1007.87402, 1007.87402, 1007.87402,700}; // 1/8th Step



The following lines are for configuring the max speed the steppers will try to move at. I start to loose steps past 400 and the Z axis doesn't need to go faster than 200. Test out your setup and change if needed.

float max_feedrate[] = {400, 400, 200, 500000};

float homing_feedrate[] = {400,400,200};



Once you have made any changes needed you can verify and upload the code to the Sanguino.



To setup Replicatorg copy the file uvlprinter.xml into the machines folder in the replicatorg folder.



Start Replicatorg and click on the Machine menu then Driver and choose UV Laser Printer. Set the serial port to the one you are using. On the GCode menu and Choose GCode Generator choose Skeinforge (40).



Go to File then Examples and pick any of them. then press the Generate Gcode button. Press the duplicate button and Name it UV3D or whatever you want. Select that profile and click the Locate button. It will open a folder with the settings for this profile. Click cancel on the GCode Generator window. Copy everything from the UV3D .1mm.zip file into this folder replacing what is there.



You should be configured with the basic settings for running the printer.