Author Topic: Laser engraving enclosures with a cheap Chinese machine? Yes!  (Read 5134 times)

EBK

  • Transistor Tickler
  • **
  • Posts: 109
  • Eric K.
    • View Profile
Re: Laser engraving enclosures with a cheap Chinese machine? Yes!
« Reply #150 on: September 10, 2017, 08:02:01 AM »
Building this thing made me think of this:
https://youtu.be/qtKtU_zcTGU (couldn't get the link to embed the vid...)

m-Kresol

  • Electron Doctor
  • *****
  • Posts: 2220
  • Felix - Graz, Austria
    • View Profile
    • My blog - in german
Re: Laser engraving enclosures with a cheap Chinese machine? Yes!
« Reply #151 on: September 10, 2017, 11:20:32 AM »
still fighting with this thing to turn on the laser with input commands M03 and M04...
I know the PWM pin is D11 (which is also connected to the yellow wire going to the laser), but I get 0.1 mV on that pin no matter which setting I try. I didn't enable the "USE_SPINDLE_DIRECTION_AS_SPINDLE_ENABLE" command, so enable and PWM should both be on D11. Using M03 (CW) and M04 (CCW) commands switch Pin D13 high (4.7V) and Low (0V), so that works fine.

Upon connecting my Mac to the arduino the laser shortly comes to live, which I can read via a multimeter: pin D11 goes up to about 6.4 mV.

Any ideas where to look? I know next to nothing about programming and am just randomly looking for things that look like it might fit. Unfortunately, I can't have a look at the manaSE firmware as it's supplied in a compiled .hex file instead of discrete files written in C (which is what I have for GRBL v1.1f)

Another thing: anyone knows the steps/mm for $100, $101 and $102?

input is very much appreciated. Thanks!
I build pedals to hide my lousy playing.

my shared OSH park projects: https://oshpark.com/profiles/m-Kresol

EBK

  • Transistor Tickler
  • **
  • Posts: 109
  • Eric K.
    • View Profile
Re: Laser engraving enclosures with a cheap Chinese machine? Yes!
« Reply #152 on: September 10, 2017, 12:10:20 PM »
Felix, hopefully, I'll catch up to you soon and we can work out all the difficulties.  I know that somewhere in either the GRBL or Laserweb docs, I saw a link to a page to calculate steps/mm....
Tonight, I'll hopefully have a chance to get my machine to talk to the controller and be able to flash GRBL.

culturejam

  • Electron Doctor
  • *****
  • Posts: 3786
  • Function f(x)
    • View Profile
Re: Laser engraving enclosures with a cheap Chinese machine? Yes!
« Reply #153 on: September 15, 2017, 09:31:12 PM »
The other night, Bean says to me, "I wonder if you could etch knobs?" Never thought about that, but I had to give it a try. Works okay. Probably not something for mass production, but for a one-off it would be doable.

culturejam

  • Electron Doctor
  • *****
  • Posts: 3786
  • Function f(x)
    • View Profile
Re: Laser engraving enclosures with a cheap Chinese machine? Yes!
« Reply #154 on: September 19, 2017, 10:19:35 PM »
Got some new Triton boards in the mail today (I sold all the old stock and didn't even have one to do a test build!).

Looks like the scaling on the artwork is correct, but I did forget to make drill marks for the Time1 and Time2 LEDs. It's an easy fix, but I'll get that fixed and try another one (for science).

m-Kresol

  • Electron Doctor
  • *****
  • Posts: 2220
  • Felix - Graz, Austria
    • View Profile
    • My blog - in german
Re: Laser engraving enclosures with a cheap Chinese machine? Yes!
« Reply #155 on: September 20, 2017, 01:34:11 PM »
I finally got it working!

So, I tried several things, but nothing was doing the trick: D11 (engaging and PWM pin for the laser) was always low, but I could toggle it on and off with a simple line of code. Thus, I knew that there was only a software bug hidden somewhere in the grbl code.

Zax (the guy that developed T2Laser) indirectly led me to the solution. He mentioned that I should use M03 command to turn the laser on and S... to adjust the power. In grbl it's up to 255 and in the elekslaser firmware up to 1000. So, I thought I should give the elekslaser firmware another go (when I tried it, I wasn't aware of the M03 command). After flashing the arduino and typing M 0 3 S 1 0 0 0 very slowly for rising tension, the laser came to life. Oh, what bliss!  Now I just hope my fire alarm doesn't go off ;)

So the trick is to use the elekslaser firmware (basically an altered version of grbl 0.9i. I was trying to use 1.1f since it has a specific laser mode) and then you can use the universal gcode sender. if anyone on mac/linux is wondering. the code to flash the .hex to the arduino is:

Code: [Select]
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/cu.wchusbserial1410 -b57600 -D -Uflash:w:/Applications/ManaSE_v3.7.hex:i

MAKE SURE TO ADJUST THE FILE PATHS!

Another thing, which is already included in the ManaSE firmware: the steps/mm for x and y axis is 80!

Now I just need to find a good way to generate gcode from png picture files. I usually use gimp to design my graphics. there are plugins for inkscape, but the one I used for trials only does outline, but I need full area too. any recommendations?
I build pedals to hide my lousy playing.

my shared OSH park projects: https://oshpark.com/profiles/m-Kresol

EBK

  • Transistor Tickler
  • **
  • Posts: 109
  • Eric K.
    • View Profile
Re: Laser engraving enclosures with a cheap Chinese machine? Yes!
« Reply #156 on: September 20, 2017, 02:18:57 PM »
I finally got it working!
Congrats!  Mine is fully assembled, but the X axis seems a bit tight on the rails, and there is a very slight detent near mid-rail, which I haven't found the cause of.  Haven't worked on the firmware yet.

Quote
if anyone on mac/linux is wondering. the code to flash the .hex to the arduino is:

Code: [Select]
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/cu.wchusbserial1410 -b57600 -D -Uflash:w:/Applications/ManaSE_v3.7.hex:i

MAKE SURE TO ADJUST THE FILE PATHS!
Thanks for this!
Quote
Another thing, which is already included in the ManaSE firmware: the steps/mm for x and y axis is 80!
and this!

m-Kresol

  • Electron Doctor
  • *****
  • Posts: 2220
  • Felix - Graz, Austria
    • View Profile
    • My blog - in german
Re: Laser engraving enclosures with a cheap Chinese machine? Yes!
« Reply #157 on: September 20, 2017, 10:27:27 PM »
My X axis also didn't move too smoothly at the beginning. I just loosened the screws that hold the two acrylic parts and the wheels together and it works smoothly now.
I build pedals to hide my lousy playing.

my shared OSH park projects: https://oshpark.com/profiles/m-Kresol