Welcome! Log In Create A New Profile

Advanced

Marlin Delta Firmware Issue

Posted by ayouden 
Marlin Delta Firmware Issue
September 16, 2014 10:08AM
Hey,

I keep on getting this error with ErikZalm's version of Marlin.

when I try and verify the code I get this error:

redefinition of 'float delta [3]'

Marlin_main.cpp:321: error: redefinition of 'float delta [3]'
Marlin_main.cpp:294: error: 'float delta [3]' previously defined here


Any help on how to fix this?

Thanks
Re: Marlin Delta Firmware Issue
September 16, 2014 11:09AM
You seem to be using the 'normal' Marlin branch,
there is a special deltabot branch that you can try:

[github.com]


RS-Online Ormerod #263, Kossel mini with Minitronics, Prusa i3 MK2
Re: Marlin Delta Firmware Issue
September 16, 2014 11:27AM
Hey,

I have just updated my firmware with the version you linked.

Error has gone!!!

But a new one has developed!

Once homed, the Z axis will no longer move!

Repetier Host changes the Z height to red if I lower it.

Say I tell it to move from 250 (Home height) to 240.

Carriage doesn't move, but Repetier host shows a red 240.


Any ideas?

Thanks
Re: Marlin Delta Firmware Issue
September 16, 2014 12:10PM
It is possible that the firmware is confused by the probe,
do you have min endstops disabled in your firmware?

M119 should show x_max, y_max, z_max and z_min (probe)
I think that if z_min is TRIGGERED it is not allowed to move...


RS-Online Ormerod #263, Kossel mini with Minitronics, Prusa i3 MK2
Re: Marlin Delta Firmware Issue
September 16, 2014 12:14PM
I have // out the minimum end stops, but not sure if that is the correct way of doing it?

When I do M119 it still shows max and min, but the mins are all open.
Re: Marlin Delta Firmware Issue
September 16, 2014 12:55PM
Hmm, I am digging through my config and don't exactly remember what I did...

It could be one of these things:

My printer has no nozzle probe, it is disabled by setting Z_MIN_PIN to -1
I also commented ENABLE_AUTO_BED_LEVELING out by adding //

I have changed min_software_endstops and max_software_endstops to false,
this is probably not a good idea, I will restore that setting and see what happens.

My printer runs Johann C. Rocholl's deltabot version
Perhaps your problem has been fixed in his repository?

My version of Configuration.h is attached, hope it helps!


RS-Online Ormerod #263, Kossel mini with Minitronics, Prusa i3 MK2
Attachments:
open | download - Configuration.h (31.8 KB)
Re: Marlin Delta Firmware Issue
September 16, 2014 01:15PM
Hey,

thanks for posting your config.h file, will come in handy cross checking basic settings!

Just wondering, what host software do you use?

I am also out of the office until tomorrow morning (GMT) so I can't see if these settings work for me or not.

I will report back tomorrow

Thanks again!
Re: Marlin Delta Firmware Issue
September 16, 2014 02:50PM
Quote
3D-ES
I have changed min_software_endstops and max_software_endstops to false,
this is probably not a good idea, I will restore that setting and see what happens.

This did nothing unexpected, the printer behaves correctly.

Host: Pronterface.py (not the exe version) on a Windows Vista machine.

Good luck, mine also had a difficult start, but it is printing like a pro now smiling smiley


RS-Online Ormerod #263, Kossel mini with Minitronics, Prusa i3 MK2
Re: Marlin Delta Firmware Issue
September 17, 2014 04:01AM
I have just tried to get jcrocholl's delta to work, but I keep on getting this error:


qr_solve.cpp:7:18: error: time.h: No such file or directory
Re: Marlin Delta Firmware Issue
September 17, 2014 05:40AM
This could be related to your Arduino version...
You can try Arduino 1.05, that one works for me.

Update: Someone else also had this problem with 1.05:

Quote

I'm trying to compile Johann's version of Marlin but I get this message from the Arduino IDE (1.0.5):
qr_solve.cpp:7:18: fatal error: time.h: No such file or directory compilation terminated.

This is on my laptop running Ubuntu 13.10. I tried it on my desktop (windows 7) and everything seems to work ok.

Any idea what is going on?

Francis

This seems to be in line with our results, it works for me, on Windows.

Update 2: I can compile JCrocholl's Marlin-deltabot with Arduino 1.0.5 64-bit on Linux Mint 17 without errors...

Edited 2 time(s). Last edit at 09/17/2014 05:55AM by 3D-ES.


RS-Online Ormerod #263, Kossel mini with Minitronics, Prusa i3 MK2
Re: Marlin Delta Firmware Issue
September 17, 2014 05:53AM
Yup, that fixed it!

But I still have the issue of my print head not moving!

I have attached a before and after screenshot to show you whats going on.

I have NO idea at all!

Thanks
Attachments:
open | download - Before.png (253.5 KB)
open | download - After.png (246.8 KB)
Re: Marlin Delta Firmware Issue
September 17, 2014 06:17AM
I am also running out of ideas winking smiley

I have never used Repetier host and don't know if it works,
can you try manual control using the Arduino serial monitor?

A short list of commands you can try:

G28 should home the printer correctly without grinding
M119 probably reports 3 MAX endstops, and 0 MIN endstops.
G1 Z200 should move the print head 50mm down.

If this also fails, it is probably hardware / firmware, and not Repetier host...

Update: Changed M28 -> G28

Edited 1 time(s). Last edit at 09/17/2014 06:51AM by 3D-ES.


RS-Online Ormerod #263, Kossel mini with Minitronics, Prusa i3 MK2
Re: Marlin Delta Firmware Issue
September 17, 2014 06:30AM
Hey,

Quick question, how do I control the 3D Printer from the serial monitor.

I can open the serial monitor but not sure what to do from there?
Re: Marlin Delta Firmware Issue
September 17, 2014 06:39AM
If you open the serial monitor for the first time, you probably need to select the correct baudrate,
the baudrate is defined in Configuration.h, if you cannot select 250000 then change both to 115200.

You probably also need to change "No line ending" to "Newline" but I am not sure.

When I open the serial monitor, my board resets and the window shows the output,
I have seen that output in your Repetier screenshots, it should look about the same.

If you type G28 in the top bar and press "send" your printer should respond by homing.

Update: Sorry, I mixed M28 and G28, had a typo in my log files!

Edited 1 time(s). Last edit at 09/17/2014 06:50AM by 3D-ES.


RS-Online Ormerod #263, Kossel mini with Minitronics, Prusa i3 MK2
Re: Marlin Delta Firmware Issue
September 17, 2014 06:49AM
Okay,

I got the Serial Monitor to work and tried the commands.

I think you mean G28 rather than M28.

But the key part, G1 Z200:

The Serial Monitor reports back: ok

but the printer FAILS to move.

Sooo, either Hardware or Firmware...

Both of which I have no idea how to find out which one is causing the issue.
Re: Marlin Delta Firmware Issue
September 17, 2014 06:53AM
Do you have your nozzle probe disabled in firmware?
I suspect that your printer thinks it has hit the bottom...

If M119 reports a z_min, read this page.

User "umdpru" also had some conflicts with his Z.


RS-Online Ormerod #263, Kossel mini with Minitronics, Prusa i3 MK2
Re: Marlin Delta Firmware Issue
September 17, 2014 07:16AM
This is what the M119 comes back with.

Thus implying I have disabled the probe.
Attachments:
open | download - Screen Shot 2014-09-17 at 12.11.49.png (84.9 KB)
Re: Marlin Delta Firmware Issue
September 17, 2014 07:25AM
Thank you for double checking that one,
can I see your Configuration.h and pins.h?


RS-Online Ormerod #263, Kossel mini with Minitronics, Prusa i3 MK2
Re: Marlin Delta Firmware Issue
September 17, 2014 07:46AM
Here you go:
Attachments:
open | download - Configuration.h (29.2 KB)
open | download - pins.h (67.2 KB)
Re: Marlin Delta Firmware Issue
September 17, 2014 08:04AM
You seem to have copied Configuration.h from the example_configuration folder?
This did not work for me, the default Configuration.h is newer and worked better!

You have selected MOTHERBOARD 34 in Configuration.h,
in pins.h I see MIN endstops defines in the RAMPS section:

Line 444: X_MIN_PIN = 3
Line 450: Y_MIN_PIN = 14
Line 456: Z_MIN_PIN = 18

Those three lines should probably be set to -1


RS-Online Ormerod #263, Kossel mini with Minitronics, Prusa i3 MK2
Re: Marlin Delta Firmware Issue
September 17, 2014 08:11AM
Where can I find a fresh Default config.h?

I have so many versions of config.h I am not sure which one is the one to use!

Also, looking at the pins, doesn't the max pins say -1? Or am I looking in the wrong area!

Thanks

Edited 1 time(s). Last edit at 09/17/2014 08:17AM by ayouden.
Re: Marlin Delta Firmware Issue
September 17, 2014 08:17AM
You can use this one from the repository.

Update: The MAX pins are set to -1 when MOTHERBOARD == 77, your configuration can be found under the #else.

Edited 1 time(s). Last edit at 09/17/2014 09:24AM by 3D-ES.


RS-Online Ormerod #263, Kossel mini with Minitronics, Prusa i3 MK2
Re: Marlin Delta Firmware Issue
September 17, 2014 09:53AM
Hey,

Still have the same issue with the new config.h file.

Looks like the only reason left is the Hardware.

which looks unlikely due to the fact of it homing fine?

Crazy...

Edited 1 time(s). Last edit at 09/17/2014 10:04AM by ayouden.
Re: Marlin Delta Firmware Issue
September 17, 2014 10:16AM
Crazy indeed!

Before your edit you told that it crashed into the endstops,
that means that it probably looked at the wrong endstop pins.

Does M119 report something else this time?

Is it TRIGGERED when you press the endstop?
Or is it TRIGGERED when it has been released?

Are you sure you wired your top endstops to the max pins?

I have seen Ramps examples where people connect the min pins,
but since a deltabot works 'upside-down' that probably won't work.


RS-Online Ormerod #263, Kossel mini with Minitronics, Prusa i3 MK2
Re: Marlin Delta Firmware Issue
September 17, 2014 10:24AM
The reason I editied was that I had indeed made a silly mistake in the config.h file.

I // out the define ENDSTOPPULLUPS.

grinning smiley

All fixed now!

but still having the same crazy issue.

I have attached a file to show the Serial Monitor log.

I entered the commands in this order, and remember the printer doesn't move once it is homed!

G28
M114 (Z height is 250)
G1 Z200 (Z height is now 200)

Still no movement.

So the printer acts as if it has moved and it has moved to the correct position!

What kind of sorcery is this!
Attachments:
open | download - Screen Shot 2014-09-17 at 15.18.57.png (88.1 KB)
Re: Marlin Delta Firmware Issue
September 17, 2014 10:24AM
*Double Post By Accident*

Edited 1 time(s). Last edit at 09/17/2014 10:25AM by ayouden.
Re: Marlin Delta Firmware Issue
September 17, 2014 10:59AM
The forum can't find your attachment...?

OK, things to try now we are becoming a bit more desperate:

Some time ago you copied the example_configurations files to the project root,
after that you restored Configuration.h, but there is also a Configuration_adv.h...
Did you restore it also? I guess it is not important, but guessing causes errors winking smiley

Have you tried to set min_software_endstops and max_software_endstops to false?
It prevents the machine from making moves that it thinks are dangerous, but in this
case it can be something that is in your way... (Configuration.h, lines 347 and 348)

You have selected MOTHERBOARD 34, it expects 2 extruder temperatures,
perhaps it can't read one of the sensors and does not want to listen to you?

You can try MOTHERBOARD 33 or 35...


RS-Online Ormerod #263, Kossel mini with Minitronics, Prusa i3 MK2
Re: Marlin Delta Firmware Issue
September 17, 2014 11:04AM
I tried changing board from 33 to 35.

Also changing both the software end-stops to false.

(These changes didn't solve the issue either)

I am currently using your version of config.h, so would you be able to send me your version of config_adv.h as well?

Thanks

Edited 1 time(s). Last edit at 09/17/2014 11:07AM by ayouden.
Re: Marlin Delta Firmware Issue
September 17, 2014 11:07AM
I will attach it to this message in about an hour when I am home!

The file has been attached, I don't remember changing this file though!

Edited 1 time(s). Last edit at 09/17/2014 12:11PM by 3D-ES.


RS-Online Ormerod #263, Kossel mini with Minitronics, Prusa i3 MK2
Attachments:
open | download - Configuration_adv.h (19.5 KB)
Re: Marlin Delta Firmware Issue
September 17, 2014 11:10AM
Brilliant!

Thanks
Sorry, only registered users may post in this forum.

Click here to login