Welcome! Log In Create A New Profile

Advanced

Setting up Reprap Firmware for duet on a Mendelmax?

Posted by L4nce0 
Setting up Reprap Firmware for duet on a Mendelmax?
September 05, 2015 01:38PM
Hi everyone

I have the new duet board 0.8.5 or so.

I am too used to marlin style firmwares. If someone can point me in the right direction on finding a sample config file for ONE plastruder and a cartesian style printer.. I have looked but it all my serch results pop up with delta printers. Below is monstrosity of a firmware file I ended up with. I boot up with their special version of pronterface. I get the temp readouts, bed reads 50, so need to poke with the thermisister selection more, tip reads 35. Okay! Hit any button... printer doesn't move...

Why am I trying to set up one plastruder instead of 8 with this board? Just making sure it works, still building the mega printer that needs 3 hotend+ support.

; Configuration file for big Kossel from Think3DPrint3D V0.1 Date 20150708 with revisions for Duet V0.8.5 by Tony
; and addition of 3 more drives and second PWM fan for testing

; Communication and general
M111 S0 ; Debug off
M550 mendelmax ; Machine name and Netbios name (can be anything you like)
M551 mypass ; Machine password (used for FTP)
M540 P0xBE:0xEF:0xDE:0xAD:0xFE:0xED ; MAC Address
;*** Adjust the IP address and gateway in the following 2 lines to suit your network
M552 P192.168.1.21 ; IP address. Default is 14 but already in use so use 21
M554 P192.168.1.1 ; Gateway
M553 P255.255.255.0 ; Netmask
M555 P2 ; Set output to look like Marlin
G21 ; Work in millimetres
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves

;Turn off fans
M106 I1 ; fans are inverting
M106 S0 ; Turn off Fan 0 (backward compatible with older firmware)
M106 P1 S0 ; Turn off Fan 1

; Axis and motor configuration
M569 P0 S1 ; X Drive 0 goes forwards
M569 P1 S1 ; Y Drive 1 goes forwards
M569 P2 S1 ; Z Drive 2 goes forwards
;M569 P3 S1 ; E0 Drive 3 goes forwards
;M569 P4 S1 ; E1 Drive 4 goes forwards
;M569 P5 S1 ; E2 Drive 5 goes forwards
;M569 P6 S1 ; E3 Drive 6 goes forwards
;M569 P7 S1 ; E4 Drive 7 goes forwards
;M569 P8 S1 ; E5 Drive 8 goes forwards - not used with 2-fans version of firmware.

M574 X2 Y2 Z2 S1 ; set endstop configuration (all endstops at high end, active high)
;*** The homed height is deliberately set too high in the following - you will adjust it during calibration.
M665 R174.2 L322.5 B130 H423.69 ; set delta radius, diagonal rod length, printable radius and homed height
M666 X0.00 Y0.00 Z0.00 ; put your endstop adjustments here, as given by auto calibration 22/05/15
M92 X80 Y80 Z1600 ; Set axis steps/mm
M906 X1000 Y1000 Z1000 E1000 ; Set motor currents (mA); set each extruder explicitly
M906 I100 ; Set motor idle factor to 100% while testing so they don't idle at all
M201 X4000 Y2000 Z40 E500 ; Accelerations (mm/s^2) Set all E-motors the same
M203 X20000 Y20000 Z7 E800 ; Maximum speeds (mm/min) Set all E-motors the same
M566 X1020 Y1020 Z3.6 E13 ; Maximum instant speed changes mm/minute. Set all E-motors the same


; Thermistors
; Duet0.8.5 uses 4.7K resistors
M305 P0 T100000 B4540 R1000 H30 L0
;M305 P0 T100000 B3950 R100 H30 L0 ; Put your own H and/or L values here to set the bed thermistor ADC correction
M305 P1 T100000 B4267 R4700 H30 L0 ; Put your own H and/or L values here to set the 1st nozzle thermistor ADC correction
;M305 P2 T100000 B4267 R4700 H30 L0 ; Put your own H and/or L values here to set the 2nd nozzle thermistor ADC correction
;M305 P3 T100000 B4267 R4700 H30 L0 ; Put your own H and/or L values here to set the 3rd nozzle thermistor ADC correction
;M305 P4 T100000 B4267 R4700 H30 L0 ; Put your own H and/or L values here to set the 4th nozzle thermistor ADC correction
;M305 P5 T100000 B4267 R4700 H30 L0 ; Put your own H and/or L values here to set the 5th nozzle thermistor ADC correction
;M305 P6 T100000 B4267 R4700 H30 L0 ; Put your own H and/or L values here to set the 6th nozzle thermistor ADC correction

M570 S180 ; Hot end may be a little slow to heat up so allow it 180 seconds

; Tool definitions FOR CHIMERA HOT-END - Tools 0 and 1
M563 P0 D0 H1 ; Define tool 0
G10 P0 S0 R0 ; Set tool 0 operating and standby temperatures
M92 E1380 ; Set extruder steps per mm explicitly for all the extruders - 5 for Duet085+Dt4 test

;*** If you have a dual-nozzle build, un-comment the next 2 lines
;M563 P1 D1 H2 ; Define tool 1
;G10 P1 S0 R0 ; Set tool 1 operating and standby temperatures

;*** With a Duex 4 add 3 more tools
;M563 P2 D2 H3 ; Define tool 2
;G10 P2 S0 R0 ; Set tool 0 operating and standby temperatures

;M563 P3 D3 H4 ; Define tool 3
;G10 P3 S0 R0 ; Set tool 0 operating and standby temperatures

;M563 P4 D4 H5 ; Define tool 4
;G10 P4 S0 R0 ; Set tool 0 operating and standby temperatures

;M563 P5 D5 H6 ; Define tool 5
;G10 P5 S0 R0 ; Set tool 0 operating and standby temperatures

; Z probe and compensation definition
;*** If you have an IR zprobe instead of a switch, change P4 to P1 in the following M558 command
;M558 P1 X0 Y0 Z0 ; Z probe is a DC42 Differential IR PCB and is not used for homing any axes
;G31 X9.0 Y22.0 Z1.9 P500 ; Set the zprobe height and threshold (put your own values here)

;*** If you are using axis compensation, put the figures in the following command
;M556 S78 X0 Y0 Z0 ; Axis compensation here

Edited 1 time(s). Last edit at 09/05/2015 01:39PM by L4nce0.
Re: Setting up Reprap Firmware for duet on a Mendelmax?
September 05, 2015 01:56PM
Try [reprap.org].



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Setting up Reprap Firmware for duet on a Mendelmax?
September 05, 2015 05:17PM
I followed that link. I entered all the information.. but when I open pronterface I still cannot make the printer move, or change temps. All I can do is read the temps..

Getting weird errors.

Setting temperature: no tool selected.
Macro file homey.g not found.
Macro file homey.g not found.
Macro file homey.g not found.
Macro file homeall.g not found.

Edited 1 time(s). Last edit at 09/05/2015 05:27PM by L4nce0.
Re: Setting up Reprap Firmware for duet on a Mendelmax?
September 05, 2015 06:07PM
Okay I copied the settings file from the newest build, put it on the SD card. I launch the "mendel" version of pronterface. I start it up. Press buttons. No reaction, at all. >.<

Edited 1 time(s). Last edit at 09/05/2015 06:08PM by L4nce0.
Re: Setting up Reprap Firmware for duet on a Mendelmax?
September 05, 2015 07:26PM
Okay, I've updated it to the current master, as well as one that someone on the reprap forums said came out yesterday. Tried every combo of firmware and copied default cartesian sys files (renames to match the paradigm) At this point I've spent a good day and a half of working time on this. Lets see if you know of a firmware / sys combination that works. I have just a standard mendelmax 1.5 printer. It clearly is communicating, but it's like no power is getting to the printer. The lights change if I press an endstop. I hooked it up to 12v+ and ground, just like the board is labeled for. USB is connected, it's getting RECV: ok, just nothing happens on the printer.
Re: Setting up Reprap Firmware for duet on a Mendelmax?
September 06, 2015 03:28AM
I don't know what you mean by "renamed to match the paradigm". The errors "Macro file homey.g not found." etc. suggest that either you haven't set up the homing files, or you have put them in the wrong place (they live in the /sys folder on the SD card), or the SD card isn't being read. Some suggestions:

1. Try sending M508, to see if it can read the config.g file from the SD card. This doesn't prove it is being read at startup, but is a start.

2. Try sending M906. It will respond with the actual motor currents, which should match the ones that you configured in the M906 command in config.g. If they all come back as zero, then the SD card isn't being read at startup. Try a different SD card, preferably a low-capacity (e.g. 4Gb) Class 10 card.

Edited 1 time(s). Last edit at 09/06/2015 04:28AM by dc42.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Setting up Reprap Firmware for duet on a Mendelmax?
September 08, 2015 12:51PM
I found the solution. My PSU wasn't working.. What can I say I'm a software engineer, not a EE :-P

Tony at think3dprint3d gave some great step by step instructions. So this next post is for my future counterpart looking for a howto.. Below is his email.


Before we go any further I am assuming you have 12-24 V of power supplied to VIN for motors and heaters.

Step 1 - Upload Firmware

Firstly I recommend using David Crocker's version of the firmware:

[github.com]

Upload the:

[github.com]

file to the board. NB its best to download the whole firmware using the "Download as Zip" butting on the right hand side in github. RepRapPro's instructions are comprehensive on how to flash the firmware:
[reprappro.com]

although replace the links to their firmware with the link to David Crocker's above.

Step 2 - Edit Configuration Files

Use this for further information (http://reprap.org/wiki/Configuring_RepRapFirmware_for_a_Cartesian_printer)
however i will work through it below

Once the firmware is loaded get the SD card image you downloaded:
[github.com]
and upload it onto the SD card.
As you have already seen there are a number of example /sys-NNNN/ directories. As you are using a cartesian printer you could use either the Ormerod or the Huxley as a starting point. Day you choose the Huxley as the starting point, rename the /sys-Huxley/ to /sys.

Rather than setting all the settings the firmware, recompiling and uploading like you do in Marlin, all the settings are set by Gcodes so at this point its helpful to have the Gcode wiki page open as a reference:
[reprap.org]

open /sys/config.g in a text editor

The first thing I would do is setup the networking because once you are networked to the printer its a much more user friendly way of operating.

M552 P0.0.0.0
replace with:
M552 P192.168.0.14

or whatever address you want, then plug an ethernet cable between your laptop and the duet, and set your laptop's ethernet port to an address within the same network, possibly 192.168.0.13. Alternatively you can plug the Duet into a home network directly by ethernet or via a wifi bridge.

Work down the lines in the config.g changing the settings to reflect your printer, with the gcode wiki as a reference. a few examples of important ones:
Endstops:
M574 X1 Y1 Z1 S1 ;a min endstop on X,Y and Z, all active high

Motor Directions
569 P0 S0 ; Dont reverse X
569 P1 S0 ; Dont reverse Y
569 P2 S0 ; Dont reverse X
569 P3 S1 ; Reverse E0

Motor Currents
M906 X800 Y800 Z800 E800 ;800=0.8A which is about right for "standard" Nema 17s

Axis Steps/mm
M92 E660 ;Extruder 660
M92 X80 Y80 Z80 ;all other axis 80 steps/mm

Heater channels
M305 P0 T100000 R1000 ; bed thermistor is 100K with 1K series resistor
M305 P1 T100000 R1000 ; E0 thermistor is 100K with 1K series resistor

For now comment out everything to do with Z probes:
; M558 P2
; G31 Z0.6 P550

The acceleration, speed and jerk settings are good starting points (but change them to the same as you had in Marlin if you prefer, noting mm/minute!)
M201 X3000 Y3000 Z150 E500 ; Accelerations (mm/s^2)
M203 X15000 Y15000 Z100 E3600 ; Maximum speeds (mm/min)
M566 X200 Y200 Z30 E20 ; Maximum jerk rates mm/minute

Define the first tool:
M563 P0 D0 H1 ; Define tool 0 to use the first extruder drive (E0) and the second heater channel (H1) the bed uses the first heater channel

Set the first tool to Active and standby temperatures of 0 to start with
G10 P0 S0 R0

Set the printer dimensions
M208 X130 Y138 Z95 ; set axis maxima (adjust to suit your machine)
M208 X0 Y0 Z-0.5 S1 ; set axis minim (adjust to make X=0 and Y=0 the edge of the bed after homing)

That should be all for a first pass of config.g

Step 3 - Initial tests on the printer

Put the SD card in and reset the duet board.

Now connect using a web browser to 192.168.0.14 or whatever address you setup. The printer should come online. go to the gcode console tab and enter:
M115
That will confirm the version of firmware you have loaded
Then
M119
Which will confirm the endstop switches of open or closed, check each one in turn to ensure they are working.
Then set the extruder to heat up and confirm that the temperature rises. Same for the bed

At this point ensure the motors are off:
M84

Then place the X,Y axis in the center by hand

Then set the approximate location:

G92 X100 Y100

Then try and move it slightly

G1 X110
G1 Y110

and confirm that it moves in the right direction by the right amount.

Step 4 - Homing files

Look at the /sys/homeNNN.g files you will see the gcode steps the printer takes to home X, Y and Z an then all axis. These are the files that are called when you Send G28 X, G28 Y, G28 Z or just plain G28.

The ones for X and Y should need only minor tweaking to confirm the direction of homing and the size of the printer, however the one for Z assumes a Z probe so replace it with:

; Adjust the coordinates in the following line to place the head at a suitable position for Z homing
G1 X100 Y100
G91
G1 Z-300 F200 S1 ;move down until endstop hit
G1 Z1 F200 ;move up my 1mm
G1 Z-5 F100 S1 ;move down again slowly
G90

One you have adjusted the homing files (remember to copy the changes from the X,Y and Z into the home all file) then upload them to the SD card. In the web interface this can be done directly using settings tab, or you can plug the card into your PC to upload. then reset the printer and try the homeing, one axis at a time. Have your hand over the power switch for the firmst time to you can emergency stop if required.
Sorry, only registered users may post in this forum.

Click here to login