Marlin Firmware Settings for Arduino Mega with Ramps 1.4

Here is the place to discuss software and related tools for Slice generation, machine control, & etc...
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
3d-stephen
Posts: 7
Joined: Tue May 27, 2014 4:00 am
Location: Lure, France
Contact:

Marlin Firmware Settings for Arduino Mega with Ramps 1.4

Postby 3d-stephen » Tue May 27, 2014 7:53 am

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.
Stephen,
Bachelor Student at LOOXIS France


User avatar
PacManFan
Site Admin
Posts: 633
Joined: Sun Dec 01, 2013 11:44 am
Location: Ahead of the curve
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Marlin Firmware Settings for Arduino Mega with Ramps 1.4

Postby PacManFan » Tue May 27, 2014 8:37 am

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 :

3d-stephen
Posts: 7
Joined: Tue May 27, 2014 4:00 am
Location: Lure, France
Contact:

Re: Marlin Firmware Settings for Arduino Mega with Ramps 1.4

Postby 3d-stephen » Tue May 27, 2014 8:59 am

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 ?
Stephen,
Bachelor Student at LOOXIS France


Finhead
Posts: 277
Joined: Fri Jan 31, 2014 12:56 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Marlin Firmware Settings for Arduino Mega with Ramps 1.4

Postby Finhead » Tue May 27, 2014 11:57 am

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)

User avatar
PacManFan
Site Admin
Posts: 633
Joined: Sun Dec 01, 2013 11:44 am
Location: Ahead of the curve
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Marlin Firmware Settings for Arduino Mega with Ramps 1.4

Postby PacManFan » Tue May 27, 2014 12:40 pm

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.

3d-stephen
Posts: 7
Joined: Tue May 27, 2014 4:00 am
Location: Lure, France
Contact:

Re: Marlin Firmware Settings for Arduino Mega with Ramps 1.4

Postby 3d-stephen » Wed May 28, 2014 3:58 am

@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
Stephen,
Bachelor Student at LOOXIS France


Finhead
Posts: 277
Joined: Fri Jan 31, 2014 12:56 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Marlin Firmware Settings for Arduino Mega with Ramps 1.4

Postby Finhead » Wed May 28, 2014 11:57 am

Just uploaded and posted a link for my working Marlin for you here.


Clinton

3d-stephen
Posts: 7
Joined: Tue May 27, 2014 4:00 am
Location: Lure, France
Contact:

Re: Marlin Firmware Settings for Arduino Mega with Ramps 1.4

Postby 3d-stephen » Fri May 30, 2014 8:14 am

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).
Stephen,
Bachelor Student at LOOXIS France


Yogi2010
Posts: 14
Joined: Tue Sep 08, 2015 8:27 am
Location: Mumbai
Contact:

Re: Marlin Firmware Settings for Arduino Mega with Ramps 1.4

Postby Yogi2010 » Mon Dec 07, 2015 1:44 am



[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable