Skip to content

Commit

Permalink
adds improved homing and movement settings for v3.1 machines
Browse files Browse the repository at this point in the history
  • Loading branch information
sphawes committed Nov 16, 2023
1 parent c70c212 commit 17608cf
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 22 deletions.
63 changes: 41 additions & 22 deletions docs/openpnp/calibration/2-connect-to-machine/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,28 +40,47 @@ Before connecting to the LumenPnP, you need to set which USB port to use for com

If your machine is v3.1 or higher, your machine can move much faster than the default configuration because of the addition of linear rails, and use less current for the L and R motors with the addition of pneumatic rotation couplings.

In the `Gcode` tab under your `GcodeDriver`, select `Default` in the `Head Mountable` dropdown, and `CONNECT_COMMAND` in the `Setting` dropdown. Paste the following GCode after any existing GCode already in the field. Be sure to hit `Apply` to confirm your changes.

```
M204 T5000 ; Set max travel acceleration
M201 Y3500 ; Set max Y acceleration
M201 X5000 ; Set max X acceleration
M203 X1000 Y1000 ; Set max feedrate in mm/min
M906 Y1000 ; Set Y motor current
M914 X40 Y40 ; Set Homing sensitivity
M906 A200 ; Set L motor current
M906 B200 ; Set R motor current
```

Your settings should look something like the image below:

![](images/31settings.png)

To tell OpenPnP to take advantage of this speed increase, you can update the `Max Feed Rate` field in the `Driver Settings` tab. How high you make this number depends on how hard you want to push your machine.

![](images/31speedAdjust.png)

`50000` is a very aggressive speed, but has shown to be consistent and accurate. If you notice your machine skipping steps, bring your speed down in increments of `2000` until your movement is consistent.
1. In the `Gcode` tab under your `GcodeDriver`, select `Default` in the `Head Mountable` dropdown, and `CONNECT_COMMAND` in the `Setting` dropdown. **Overwrite** the existing text in this field with the new settings below. Be sure to hit `Apply` to confirm your changes.

```
G21 ; Set Millimeters Mode
G90 ; Set absolute positioning mode
M82 ; Set absolute mode for extruder
M204 T5000 ; Set max travel acceleration
M201 Y1500 ; Set max Y acceleration
M201 X2000 ; Set max X acceleration
M203 X1000 Y1000 ; Set max feedrate in mm/min
M906 Y1000 ; Set Y motor current
M906 X800 ; Set X motor current
M906 A200 ; Set L motor current
M906 B200 ; Set R motor current
M569 S0 X Y ; Switches to SpreadCycle
```

Your settings should look similar like the image below:
![](images/31settings.png)

2. Next, under the `Setting` dropdown, choose the `HOME_COMMAND` option. **Overwrite** the existing text in this field with the new settings below. Be sure to hit `Apply` to confirm your changes.

```
M569 S1 X Y ; Switches to StealthChop
M201 Y1500 ; Set Max Y Acceleration
M201 X2000 ; Set Max X Acceleration
M906 Y400 ; Set Y motor current
M906 X200 ; Set X motor current
M914 X50 Y30 ; Set Homing Sensitivity
G28 ; Home all axis
M569 S0 X Y ; Switches back to SpreadCycle
M201 Y2500 ; Set Max Y Acceleration
M201 X3000 ; Set Max X Acceleration
M906 Y1000 ; Set Y motor current
M906 X800 ; Set X motor current
```

3. To tell OpenPnP to take advantage of this speed increase, you can update the `Max Feed Rate` field in the `Driver Settings` tab. Enter `35000` into this field.

4. If you need to tweak your sensorless homing settings, make sure to adjust the values in the line starting with `M914` under `HOME_COMMAND`, *not* under `CONNECT_COMMAND`.

## Bottom Camera Config

Expand Down
2 changes: 2 additions & 0 deletions docs/openpnp/calibration/4-homing-fiducial/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Now we can set up the datum board. The datum board is a reference point for ever
!!! danger "If your machine does not move fully to the front left"
If your LumenPnP does not move all the way to the front left of the machine when you click the Home icon, it could mean that your sensorless homing values need to be adjusted. Instructions for tuning this setting are [here](https://youtu.be/CSnczX6VJ7M?si=w_B5Yie0wdoZVjiE&t=553).

If you have a v3.1 machine, be sure to adjust the existing `M914` line under the `HOME_COMMAND` dropdown in the GCodeDriver, instead of adding the line in `CONNECT_COMMAND`

## Tuning the Homing Fiducial

1. Click on the `Machine Setup` tab in the top right pane.
Expand Down

0 comments on commit 17608cf

Please sign in to comment.