[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 574: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 630: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5348: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3937)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5348: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3937)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5348: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3937)
Build Your Own SLA/SLS • Marlin Firmware Settings for Arduino Mega with Ramps 1.4
Page 1 of 1

Marlin Firmware Settings for Arduino Mega with Ramps 1.4

Posted: Tue May 27, 2014 7:53 am
by 3d-stephen
Hi all,

I am in the process of building a DLP based 3D Resin Printer, using Creation Workshop on my PC, and Marlin on the Arduino Mega 2560 with Ramps 1.4.

Constructing the parts is a lot of fun and very easy for me (as I am a student in mechanical engineering), but I am a noob in coding.

My frame will consist of T-slot aluminium profiles, the Z-axis will consist of a trapezoid threaded rod with a Nema 17 Stepper Motor and a THK Linear Slide
and for the Resin Tank I am planning to use the Idea of the sliding VAT from the B9 creator.

The B9 VAT is moving left and right with the help of a wiper that is driven through a Servo Motor.
However that DC Servo Motor makes an awful noise during operation.

So for the VAT slide mechanism, my plan is to use a stepper motor with connected planetary gears instead of the DC Servo for the VAT,
like this one: http://nodna.de/NEMA-17-Planetengetrieb ... hrittmotor

In Short: I have one stepper motor for the Z-Axis and one stepper motor for the X-axis, for both I'll be using optical endstops,
that came with the Arduino/Ramps kit.

I installed the Arduino IDE, opened the file Marlin.pde inside, and was successfully able to compile and upload the firmware onto the Arduino.
However I'll need to make some settings inside the Firmware before compiling and uploading it, right?

Can anyone guide me of what I have to configure, using the information above?
Does anyone know of a good tutorial online?

I'll start digging into everything now, and I may have a better understanding of what may be required and I may have some precise questions down the road,
but maybe there's a shortcut with a detailed tutorial somewhere.

Thank you in advance for any help.

Re: Marlin Firmware Settings for Arduino Mega with Ramps 1.4

Posted: Tue May 27, 2014 8:37 am
by PacManFan
You're going to need to configure your Z axis for the correct steps per mm. Here's a basic guide to get you started : . The RepRap calculator will also be invaluable :

Re: Marlin Firmware Settings for Arduino Mega with Ramps 1.4

Posted: Tue May 27, 2014 8:59 am
by 3d-stephen
Yay, thanks Pacmanfan,
that's exactly what I was looking for.

Here already are my first questions:

Logically the DLP based 3D printer does not have any heatbed, extruders or fans

- can I still use "33" as a value for #define MOTHERBOARD ?
- how about #define EXTRUDERS ? Can I change the value from 1 to zero, delete the whole line, or just leave it as is ?
- how about those thermal settings, it's correct to set each to zero, as follows?
#define TEMP_SENSOR_0 0
#define TEMP_SENSOR_1 0
#define TEMP_SENSOR_2 0
#define TEMP_SENSOR_BED 0


- can I then leave all the following settings in regards to temperatur (redundant sensor, heater mintemp and maxtemp, pid settings, hotend) alone ?

Re: Marlin Firmware Settings for Arduino Mega with Ramps 1.4

Posted: Tue May 27, 2014 11:57 am
by Finhead
I have a working version of Marlin I can post later on today if you like, just not at my laptop at the moment. Or you can look through the mUVe1 firmware to see what the proper settings would be. There were a few that I had to fight with just cant remember which ones they were (it was in pins.h I believe)

Re: Marlin Firmware Settings for Arduino Mega with Ramps 1.4

Posted: Tue May 27, 2014 12:40 pm
by PacManFan
I left most of the settings alone. I didn't comment out or change anything with the hot end, extruders, HBP or anything. You'll be fine to leave it all as-is. The board doesn't really care if you use it or not. I left my MOTHERBOARD as 33.

Re: Marlin Firmware Settings for Arduino Mega with Ramps 1.4

Posted: Wed May 28, 2014 3:58 am
by 3d-stephen
@Finhead: yes, why not post your Settings here as a reference. I'd appreciate that.

@Pacmanfan: I can confirm that setting the value #define EXTRUDERS to "0" seems to destroy the code so that it can't compile it anymore.

I struggled with Creation Workshop a bit. One of the steppers did move at some point for a few seconds, but then didn't move a bit anymore,
all over the sudden the manual GCode command window disappeared and didn't pop back up, even though it was configured to show in the settings...

After that, I googled a bit more, and it may be the case that I still didn't have the Marlin Firmware set up correctly.

After some more googling, I found a test-firmware on the reprap Wiki. Which, once compiled and uploaded, starts to rotate all the connected steppers first in one, then in the other directions.
At least I am sure now that the Arduino, the ramps, the stepper drivers and the steppers itself are all good and set up correctly.

I can recommend to anyone trying that test-firmware first before messing with Marlin or Sprinter. It can be found here: http://reprap.org/wiki/File:RAMPSTestCode.pde

Re: Marlin Firmware Settings for Arduino Mega with Ramps 1.4

Posted: Wed May 28, 2014 11:57 am
by Finhead
Just uploaded and posted a link for my working Marlin for you here.


Clinton

Re: Marlin Firmware Settings for Arduino Mega with Ramps 1.4

Posted: Fri May 30, 2014 8:14 am
by 3d-stephen
Hi Clinton,

thanks for sharing.
Even though I couldn't use the exact same configuration.h, since I am using different axis and different endstops (mine are opto endstops),
it was a great help to better understand that file.

I was able to get it to work (in an unassembled state - the rest is yet to come).

Re: Marlin Firmware Settings for Arduino Mega with Ramps 1.4

Posted: Mon Dec 07, 2015 1:44 am
by Yogi2010