Welcome! Log In Create A New Profile

Advanced

Troubles with Marlin and Pronterface, and maybe other things too

Posted by Hornet 
Troubles with Marlin and Pronterface, and maybe other things too
June 07, 2012 12:06PM
I'm new to RepRaping, just finished my MakerGear Prusa Mendel a few weeks ago, and I though I would give the Marlin firmware a try, since it seems to be the hot stuff right now. Everything has been working okay using Sprinter and Pronterface, but when I switched to Marlin everything stopped working.

When I try to move any of the axis, nothing happens and I get the error

echo:Unknown command:"9"

or the error

Error:0
: Extruder switched off. MINTEMP triggered !
Errortongue sticking out smileyrinter stopped deu to errors. Fix the error and use M999 to restart!. (Temperature is reset. Set it before restarting)


I'm running Ramps 1.4, and I've got an extruder and heat bed, so I picked "RAMPS 1.3 = 34 (Power outputs: Extruder0, Extruder1, Bed)" for the mobo. I also have the correct 100K thermistors selected in the configuration.h file. These are the thermistors to choose according to Makergear.

#define TEMP_SENSOR_0 1
#define TEMP_SENSOR_1 0
#define TEMP_SENSOR_2 0
#define TEMP_SENSOR_BED 1

I've got the endstops properly inverted for my setup as well, so what could my problem be? My setup worked with Sprinter. Does Pronterface not like Marlin? Are the thermistors hooked up differently in Marlin? Does anyone know what could be wrong?
Re: Troubles with Marlin and Pronterface, and maybe other things too
June 07, 2012 01:21PM
I don't know what's wrong but Proterface definitely works with Marlin for me and with the same hardware that was working with Sprinter that came on my Sanguinolu.


[www.hydraraptor.blogspot.com]
Re: Troubles with Marlin and Pronterface, and maybe other things too
June 07, 2012 01:33PM
Also, when I heat the heated pcb, it gets hot, but the temperature does not register with Marlin or Pronterface, it thinks it is still sitting there at 20C, when its getting well above 60C.

Anyone have any suggestions?
Re: Troubles with Marlin and Pronterface, and maybe other things too
June 07, 2012 01:54PM
This

Error:0
: Extruder switched off. MINTEMP triggered !

Is either a wiring or a configuration (likely pin configuration error).
If you put a meter on the leads running to the thermister what resistance does it read?
Re: Troubles with Marlin and Pronterface, and maybe other things too
June 07, 2012 02:09PM
Hornet,

I am using Marlin 1.0 with Pronterface and Sanquinololu also using these settings:

//// Temperature sensor settings:
// -2 is thermocouple with MAX6675 (only for sensor 0)
// -1 is thermocouple with AD595
// 0 is not used
// 1 is 100k thermistor
// 2 is 200k thermistor
// 3 is mendel-parts thermistor
// 4 is 10k thermistor !! do not use it for a hotend. It gives bad resolution at high temp. !!
// 5 is ParCan supplied 104GT-2 100K
// 6 is EPCOS 100k
// 7 is 100k Honeywell thermistor 135-104LAG-J01

#define TEMP_SENSOR_0 7
#define TEMP_SENSOR_1 0
#define TEMP_SENSOR_2 0
#define TEMP_SENSOR_BED 7

I have a MakerGear Hot End which I got from Ultimachine. My bed sensor came from Ultimachine also and I think it is the same thermistor. These setting worked best for me and matched an external temp sensor I have.

It almost looks like the pins.h file does not have the correct pin out to match your board. Compare it to the pins.h file you were using with Sprinter.

Good Luck,

Jim K.
Re: Troubles with Marlin and Pronterface, and maybe other things too
June 07, 2012 02:15PM
In the bed resistor I'm reading 108K,

and in the extruder thermister I read 111.5K.

It looks normal, but I'm no expert on these things.
Re: Troubles with Marlin and Pronterface, and maybe other things too
June 07, 2012 02:45PM
Then it's probably a pin configuration issue.
Re: Troubles with Marlin and Pronterface, and maybe other things too
June 08, 2012 03:20PM
By changing the pin configuration I was able to make the heatplate and the hot end of the extruder go up to temperature appropriately.

This is what I have in the pins.h file.

#define X_STEP_PIN 54
#define X_DIR_PIN 55
#define X_ENABLE_PIN 38
#define X_MIN_PIN 3
#define X_MAX_PIN -1 //2 //2 //Max endstops default to disabled "-1", set to commented value to enable.
//I changed this from 2 to -1 like in Sprinter
#define Y_STEP_PIN 60
#define Y_DIR_PIN 61
#define Y_ENABLE_PIN 56
#define Y_MIN_PIN 14
#define Y_MAX_PIN -1 //15 //15
//I changed this from 15 to -1 like in Sprinter
#define Z_STEP_PIN 46
#define Z_DIR_PIN 48
#define Z_ENABLE_PIN 62
#define Z_MIN_PIN 18
#define Z_MAX_PIN -1 //19 -1
//I changed this from 19 to -1 like in Sprinter


Now the motors will step in one direction, but when I step them in the other direction, I get:

echo:endstops hit: Y:0.72
echo:endstops hit: Y:0.70
echo:endstops hit: Y:0.69
echo:endstops hit: Y:0.67
echo:endstops hit: Y:0.65

and a new line of this every time I try to step them, for whichever axis I try.


Is anyone familiar with this problem? And does anyone out there actually run RAMPS 1.4 with Marlin?
Re: Troubles with Marlin and Pronterface, and maybe other things too
June 09, 2012 01:13PM
You have to "Home" all Axis before you can manually move in the direction of home. Will only go one way until then.

Jim K.

Edited 1 time(s). Last edit at 06/10/2012 11:21AM by jimcking.
Re: Troubles with Marlin and Pronterface, and maybe other things too
June 10, 2012 10:02AM
Hornet,

Banthafodder7400's code here might help:

Homing issues thread

MIke
Re: Troubles with Marlin and Pronterface, and maybe other things too
July 05, 2012 06:06PM
I have a problem with pronterface and marlin also.
First, I can only seam to connect at 11520 baud.
Second, after its connected, whatever command I try to send, I get the following error message:

Traceback (most recent call last):
File "/home/sebastien/Printrun/xybuttons.py", line 338, in OnLeftDown
self.moveCallback(x, y)
File "pronterface.py", line 1125, in moveXY
self.onecmd('move Y %s' % y)
File "/usr/lib/python2.6/cmd.py", line 219, in onecmd
return func(arg)
File "/home/sebastien/Printrun/pronsole.py", line 995, in do_move
self.p.send_now("G91")
File "/home/sebastien/Printrun/printcore.py", line 217, in send_now
self._send(command)
File "/home/sebastien/Printrun/printcore.py", line 290, in _send
self.printer.write(str(command+"\n"))
File "/usr/lib/python2.6/dist-packages/serial/serialposix.py", line 339, in write
n = os.write(self.fd, d)
OSError: [Errno 5] Input/output error

I am using RAMPS 1.4 and running Ubuntu 10.10
Sorry, only registered users may post in this forum.

Click here to login