<p>The Alunar firmware you linked is a fork from the main Marlin firmware. If the bed Y direction is reversed, usually the stepper is incorrectly placed (mirrored) this is seen frequently for the Anet A8 printer which is very similar to your printer. In your case the X direction is wrong, this is usually related to the wiring of the stepper, reversing the connector by 180 degrees should do the trick (hardware solution). As a software solution, changing direction is not difficult in Marlin based firmware; you just want to invert the stepper direction; the following section in the configuration.h file does that for you:</p>

<pre><code>// Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.
#define INVERT_X_DIR false
#define INVERT_Y_DIR false
#define INVERT_Z_DIR true
</code></pre>

<p>Just change <code>INVERT_X_DIR</code> to <code>true</code>.</p>

<p>If your home position is still not working for you, you should look into this section of the same configuration file:</p>

<pre><code>// Travel limits (mm) after homing, corresponding to endstop positions.
#define X_MIN_POS -33
#define Y_MIN_POS -10
#define Z_MIN_POS 0
#define X_MAX_POS X_BED_SIZE
#define Y_MAX_POS Y_BED_SIZE
#define Z_MAX_POS 240
</code></pre>

<p>Change the <code>MIN_POS</code> positions as such that it starts at the corner of the bed. A more in depth bed center calibration tutorial can be found <a href="https://www.thingiverse.com/thing:2280529" rel="nofollow noreferrer">here</a>.</p>

<hr>

<p>P.S. Please <strong>do not print</strong> <code>anti-wobble caps for the Z-axis rods</code> (as mentioned in another answer), these are <strong>not reducing the wobble</strong>, in fact they cause problems. What happens if you constrain the top is that you get a <a href="https://en.wikipedia.org/wiki/Statically_indeterminate" rel="nofollow noreferrer">statically indeterminate construction</a>; forces and displacements are not predictable! Better solutions to eliminate Z-wobble are lifting devices that decouple X/Y movement from the threaded rod (eccentricity of the threaded rod) from the Z movement. Also fixate the threaded rod above the springy stepper-to-threaded-rod coupler.</p>

CC BY-SA 4.0
2018-06-02T06:41:27.927Z
2018-06-02T15:42:58.273Z
2018-06-02T15:42:58.273Z
0scar
<p><em>disclaimer</em>: I am the maintainer of the firmware that <a href="https://github.com/camalot/alunar-prusa-i3-marlin-i3-firmware" rel="nofollow noreferrer">you linked</a>. </p>

<hr>

<p>The firmware will not improve your print quality. well, it may to some extent, but for the most part, it wont. </p>

<p>There is fine tuning involved that may be set for MY printer, but the values may need to be changed for you. Not to mention the physical tuning that I have done with my printer. Software is not the place to initially look for print quality improvements.</p>

<p>Some examples:</p>

<p>I printed anti-wobble caps for the Z-axis rods. Which improved the print drastically for me. As the print got higher, the quality got worse.</p>

<p>I printed Z-stop improvements, so I could fine tune the Z-stop.</p>

<p>I printed X &amp; Y belt tensioners. Loose belts cause skipped steps which causes poor quality prints. </p>

CC BY-SA 3.0
2018-01-02T20:59:08.797Z
2018-01-02T20:59:08.797Z
Ryan Conrad
<p>I have a <a href="https://www.alunar.net/m508-self-assembly-3d-printer.html" rel="nofollow noreferrer">Alunar M508 machine</a> that I am trying to get new firmware on. The firmware that was loaded on the machine wasn't very good. The x axis was mirrored and the home point was way off. I was looking into Marlin to put on the machine, but don't have any experience on what to edit in the code to make it work for this machine. </p>

<p>Does anyone have any experience with this machine? Uploading new firmware that works or editing the code to make it work for this machine. I appreciate any help!</p>

<p>Here is a link to <a href="https://github.com/camalot/alunar-prusa-i3-marlin-i3-firmware" rel="nofollow noreferrer">the firmware I am currently using</a>. I'm on MacOS Sierra 10.12.5 using the 1.6.8 Arduino IDE.</p>

CC BY-SA 3.0
2017-09-27T08:37:47.830Z
I removed the URL shorteners from your answer, and made the links inline. That said, I don't really understand what your question is here. You're basically saying "please help me get my printer working, here is my firmware, please fix it". That doesn't make a good StackExchange question. What *specifically* do you have trouble with? Could you try to distill a **single, specific question** (for instance: "How do I set up the directions of the axes in Marlin correctly?" or "How do I adjust the home point in Marlin?").
Tom van der Zanden
CC BY-SA 3.0
2017-09-27T16:25:38.273Z
@DonniePlumly Correct me if I'm wrong, but you are looking for help on **how** to install firmware (Marlin) onto your machine?
tbm0115
CC BY-SA 3.0
2017-10-09T21:04:55.783Z
@tbm0115 I know how to install the firmware on to the machine. My question was what I needed to edit in the Marlin Firmware to get the machine running. I went into the config file and edited the bed size and some other things and do have it running, but the print quality is still bad.
Donnie Plumly
CC BY-SA 4.0
2018-10-03T19:11:59.283Z
The answers below did not lead me to anything. I beat my head until I got something that worked. Here is a link to a Github repo. https://github.com/dplumly/Alunar_M508_Firmware
Donnie Plumly
<prusa-i3><marlin><firmware><alunar-m508>
Alunar m508 Firmware
Donnie Plumly
# Alunar m508 Firmware

(Asked by: username_0 on 2017-09-27)

I have a [Alunar M508 machine](https://www.alunar.net/m508-self-assembly-3d-printer.html) that I am trying to get new firmware on. The firmware that was loaded on the machine wasn't very good. The x axis was mirrored and the home point was way off. I was looking into Marlin to put on the machine, but don't have any experience on what to edit in the code to make it work for this machine.

Does anyone have any experience with this machine? Uploading new firmware that works or editing the code to make it work for this machine. I appreciate any help!

Here is a link to [the firmware I am currently using](https://github.com/camalot/alunar-prusa-i3-marlin-i3-firmware). I'm on MacOS Sierra 10.12.5 using the 1.6.8 Arduino IDE.

**Tags:** prusa-i3, marlin, firmware, alunar-m508

> **Comments:**
> **username_1**: I removed the URL shorteners from your answer, and made the links inline. That said, I don't really understand what your question is here. You're basically saying "please help me get my printer working, here is my firmware, please fix it". That doesn't make a good StackExchange question. What *specifically* do you have trouble with? Could you try to distill a **single, specific question** (for instance: "How do I set up the directions of the axes in Marlin correctly?" or "How do I adjust the home point in Marlin?").  
> **username_2**: @username_0 Correct me if I'm wrong, but you are looking for help on **how** to install firmware (Marlin) onto your machine?  
> **username_0**: @username_2 I know how to install the firmware on to the machine. My question was what I needed to edit in the Marlin Firmware to get the machine running. I went into the config file and edited the bed size and some other things and do have it running, but the print quality is still bad.  
> **username_0**: The answers below did not lead me to anything. I beat my head until I got something that worked. Here is a link to a Github repo. https://github.com/dplumly/Alunar_M508_Firmware  

---

## 2 answers

### Answer by username_3 on 2018-06-02. Score: 1

The Alunar firmware you linked is a fork from the main Marlin firmware. If the bed Y direction is reversed, usually the stepper is incorrectly placed (mirrored) this is seen frequently for the Anet A8 printer which is very similar to your printer. In your case the X direction is wrong, this is usually related to the wiring of the stepper, reversing the connector by 180 degrees should do the trick (hardware solution). As a software solution, changing direction is not difficult in Marlin based firmware; you just want to invert the stepper direction; the following section in the configuration.h file does that for you:

```
// Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.
#define INVERT_X_DIR false
#define INVERT_Y_DIR false
#define INVERT_Z_DIR true

```

Just change `INVERT_X_DIR` to `true`.

If your home position is still not working for you, you should look into this section of the same configuration file:

```
// Travel limits (mm) after homing, corresponding to endstop positions.
#define X_MIN_POS -33
#define Y_MIN_POS -10
#define Z_MIN_POS 0
#define X_MAX_POS X_BED_SIZE
#define Y_MAX_POS Y_BED_SIZE
#define Z_MAX_POS 240

```

Change the `MIN_POS` positions as such that it starts at the corner of the bed. A more in depth bed center calibration tutorial can be found [here](https://www.thingiverse.com/thing:2280529).

---

P.S. Please **do not print** `anti-wobble caps for the Z-axis rods` (as mentioned in another answer), these are **not reducing the wobble**, in fact they cause problems. What happens if you constrain the top is that you get a [statically indeterminate construction](https://en.wikipedia.org/wiki/Statically_indeterminate); forces and displacements are not predictable! Better solutions to eliminate Z-wobble are lifting devices that decouple X/Y movement from the threaded rod (eccentricity of the threaded rod) from the Z movement. Also fixate the threaded rod above the springy stepper-to-threaded-rod coupler.


---

### Answer by username_4 on 2018-01-02. Score: 0

*disclaimer*: I am the maintainer of the firmware that [you linked](https://github.com/camalot/alunar-prusa-i3-marlin-i3-firmware).

---

The firmware will not improve your print quality. well, it may to some extent, but for the most part, it wont.

There is fine tuning involved that may be set for MY printer, but the values may need to be changed for you. Not to mention the physical tuning that I have done with my printer. Software is not the place to initially look for print quality improvements.

Some examples:

I printed anti-wobble caps for the Z-axis rods. Which improved the print drastically for me. As the print got higher, the quality got worse.

I printed Z-stop improvements, so I could fine tune the Z-stop.

I printed X & Y belt tensioners. Loose belts cause skipped steps which causes poor quality prints.


---

