Author Topic: Core-XY firmware for Arduino Nano  (Read 2073 times)

ggallant571

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2913
    • View Profile
Core-XY firmware for Arduino Nano
« on: October 04, 2018, 08:18:00 AM »
I am in the finishing stages of building a core-xy etcher and ran into a firmware problem. Built the grbl-1.f firmware from scratch and configured for CORE_Xy. Loads and runs on an Arduino UNO. Corrupts the bootloader on the Nano (tried 3 Nanos). I suspect the image is slightly too large. Does the update once and fails the verification pass, Unit is useless after,

Used an Arduino  UNO to install a new bootloader and can repeat the process. Changed the target machine from Nano to UNO and reloaded the bootloader. Now it accepts and run the grbl firmware.
SARCASM - Just one more service we offer here.

Zax

  • T2Laser
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6805
    • View Profile
    • T2Laser
Re: Core-XY firmware for Arduino Nano
« Reply #1 on: October 04, 2018, 10:08:16 AM »
Grbl 1.1 with CoreXY does fit the Nano but I've only done it via ISP and not used a boot loader. I prefer skipping the boot loader as it boots faster, since you aren't starting the boot loader to them load Grbl. That pesky laser "blip" is gone using this method as the output port is immediately set to low rather than floating until Grbl starts up.

ggallant571

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2913
    • View Profile
Re: Core-XY firmware for Arduino Nano
« Reply #2 on: October 04, 2018, 11:16:58 AM »
Sounds like a plan as changing the firmware SHOULD be an infrequent event. Does this require a change to the firmware to bypass the bootloader?
SARCASM - Just one more service we offer here.

Zax

  • T2Laser
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6805
    • View Profile
    • T2Laser
Re: Core-XY firmware for Arduino Nano
« Reply #3 on: October 04, 2018, 11:38:14 AM »
No. The boot loader is optional, it's purpose is to allow access via USB.

ggallant571

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2913
    • View Profile
Re: Core-XY firmware for Arduino Nano
« Reply #4 on: October 04, 2018, 02:09:56 PM »
I'm assuming the the reset vector points to the bootloader which does a timeout wait looking for activity on the serial port. Wouldn't I need to configure the grbl firmware to use this vector?
SARCASM - Just one more service we offer here.

Zax

  • T2Laser
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6805
    • View Profile
    • T2Laser
Re: Core-XY firmware for Arduino Nano
« Reply #5 on: October 04, 2018, 04:08:57 PM »
No. Thereís nothing to change, the reset will just start Grbl instead of the boot loader.

ggallant571

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2913
    • View Profile
Re: Core-XY firmware for Arduino Nano
« Reply #6 on: October 04, 2018, 07:05:33 PM »
Thanks. I have another issue. I would like to change the Y direction. Changed grbl parameter $2 from 0 to 1, 2, or 3 and get no difference. Could load standard grbl to verify the stepper motor rotation direction.
SARCASM - Just one more service we offer here.

Zax

  • T2Laser
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6805
    • View Profile
    • T2Laser
Re: Core-XY firmware for Arduino Nano
« Reply #7 on: October 05, 2018, 04:10:35 AM »
I don't believe it works with CoreXY, you would need to swap the wiring.

ggallant571

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2913
    • View Profile
Re: Core-XY firmware for Arduino Nano
« Reply #8 on: October 05, 2018, 11:25:20 AM »
Solution turned out to be reverse the left/right motors (X/Y on the controller). I also added the pull-down resistor on the laser PWM signal.  The laser on this core-xy machine is 15W and it burned a hole thru 6mm plywood during a CPU reset. Very nice well defined hole. Very little extra char. Just not an ideal configuration.  Time to add limit switches.
SARCASM - Just one more service we offer here.

PD0RUZ

  • Full Member
  • ***
  • Posts: 123
  • Let there be light, LASER LIGHT!
    • View Profile
Re: Core-XY firmware for Arduino Nano
« Reply #9 on: December 03, 2018, 11:32:26 AM »
Nice, and did it work..
Wan't to have the advantage of the 1.1Gbrl. Wan't limit switches added to my eleksdraw.
Can somebody help with this..
Even is i have to change to atmega2560. :-[
*A3 Laser 2500mW
*T2Laser Licensed software*
*Modified 2.5Watt laser module*
*Running Agastar Linear Pwm laser board*
*Co2 Laser 40W, DSP-X7, Air nozzle, Autofocus, Stepper controlled Z-table*

ggallant571

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2913
    • View Profile
Re: Core-XY firmware for Arduino Nano
« Reply #10 on: December 03, 2018, 01:06:27 PM »
Home switches work with core-xy. You need to mount the switches such that the Y trips first and then the X. I mounted them on the rails so that the cables did not move. The Y is triggered by a side rail carriage while the X is triggered by the laser carriage once the Y has backed off.
SARCASM - Just one more service we offer here.

Zax

  • T2Laser
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6805
    • View Profile
    • T2Laser
Re: Core-XY firmware for Arduino Nano
« Reply #11 on: December 03, 2018, 02:11:41 PM »
Iím guessing you donít have a servo for Z-axis?

If you do, I must have missed something as I couldnít get it to compile with CoreXY, servo and limit switches - always ran out of memory even with the smallest boot loader. It did work without so itís really close.

ggallant571

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2913
    • View Profile
Re: Core-XY firmware for Arduino Nano
« Reply #12 on: December 03, 2018, 04:53:08 PM »
Sadly, no Z-Axis.
SARCASM - Just one more service we offer here.

ThothLoki

  • Hero Member
  • *****
  • Posts: 2161
  • Tinkerer
    • View Profile
Re: Core-XY firmware for Arduino Nano
« Reply #13 on: December 04, 2018, 06:17:10 PM »
It is for 3D printer butbis open source. I wonder if we could modify Klipper for this. It is a firmware that controls a printer from a Pi. It interprets on the Pi instead of the nano
Laser: A5 2000mw with L7 Board / A3 2500mw PWM with Mana SE -- All using T2Laser
3D Printer: Monoprice Maker Select v2.1
Image Resizer Applications (All OS): http://benboxlaser.us/index.php/topic,1434.msg17297.html#msg17297

Zax

  • T2Laser
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6805
    • View Profile
    • T2Laser
Re: Core-XY firmware for Arduino Nano
« Reply #14 on: December 05, 2018, 04:32:51 AM »
I had a quick look, it looks like Klipper has some CoreXY beta but no indication that it supports servos so probably wouldn't work with the EleksDraw.

Grbl 0.9 is OK except you can't have limit / home switches but I've never needed them on the EleksDraw.