Firmware for JL1 board

Here it is, one with working homing:

JL1v2.bin.txt (44.3 KB)

  • Homing now works (I think, fingers crossed).

  • GRBL 1.1f not supposed to have “positive coordinates space”. Well, this version now is positive coordinates. So no need to mess with G10 offsets.

  • GRBL settings defaults for JL1 now are in firmware, no need to look for it. You still free to change it. Be aware that homing and limits are custom and may not appear to function the same way as on other GRBL boards.

  • I did my best to set table size and maximize works space. The fact is that with fatter laser I got - I had to move Y home switch, adding longer screws and ~5mm spacers. Otherwise Y axis move will hit front profile with laser body. I can imagine some also have added vertical slides for focusing - you probably will need to work on Y home switch mount to move it farther up on Y and tweak $131 accordingly.

  • Pointer still mapped to M7,8,9, if anybody dare to use it as intended. I certainly will.

For home/limits I found that source code has option to recheck (only once, after pretty short delay) state after limit switch interrupt is generated. It was disabled by default. The problem is that X home cable is really bad and picks up interference form motors and the laser. But blips are short and with state recheck enabled - operational problem completely disappeared. I’m sure it is still generating interrupts, it just checked nicely. In perspective: Atmel original code has soft de-bouncing that is not implemented in STM32 port. I guess that de-bouncing setting $26 is purely cosmetic.

I have to plow through whole homing and limits routines, to set positive space and remove homing pullback distance. I did it purely for my preference. Some may argue that if version is 1.1f - it should behave like one. Reading referenced above article - I’m more assured that exclusively positive space is better for laser.

I think this is it. It feel pretty robust to me and everything works as intended. Unless there are some serious bug there - I have no plans to take it further.

At this point I think this is much better firmware than original JL3.

Feedback is appreciated.

And again, disclaimer: I take no responsibility for what this thing can do, like causing injury, property loss, poisoning, blindness and any other horrible thing. If you not sure - do not use.

3 Likes