luc-github / ESP3D

FW for ESP8266/ESP8285/ESP32 used with 3D printer
GNU General Public License v3.0
1.73k stars 465 forks source link

Add support for grbl FW #196

Closed luc-github closed 6 years ago

luc-github commented 6 years ago

For CNC purpose better to support https://github.com/gnea/grbl

vMeph commented 6 years ago

would be awsome control grbl arduino wifi mode

vMeph commented 6 years ago

@luc-github is there any way esp could be adapted to GRBL with the most used software to parse Gcode to GRBL https://winder.ci.cloudbees.com/job/UGS/ wonder if CNCs gcode jobs could be send from UGS into ESP connected to GRBL arduino uno wireless

luc-github commented 6 years ago

you mean to put the universal GCODE sender to ESP firmware ?

I have no idea as grbl fully new for me

About using UNO Wifi not sure it is possible according : https://github.com/esp8266/Arduino/issues/3004

I need to check anyway - I have uno + cnc shield but no wifi uno - I need to find one or a clone like https://robotdyn.com/catalog/boards/uno_wifi_r3_atmega328p_esp8266_usb_ttl_ch340g_micro_usb/

vMeph commented 6 years ago

Yes universal gcode send gcode to esp plug to the grbl tx rx lines, Not wifi arduino, a normal arduino uno, they do this with bluetooth module so i would say you could do with esp

vMeph commented 6 years ago

What cnc shield you have?

luc-github commented 6 years ago

A standard one I think (cnc shield)

I found a wifi uno clone here

And I see there is an ESP32 pinout compatible version of uno : here

It may be interresting to test

vMeph commented 6 years ago

If you have the cnc shield v3 and you want to use grbl 1.1 with the new features you have to hack the shield, that shleld was done for versions grbl 0.8 and the new version there was a swap of pins 11 and 12, to adapt can be easy just bend pins 11 and 12 of the shield the solder to cables on the bottom of arduino pin 11 and 12

https://github.com/grbl/grbl/wiki/Connecting-Grbl

luc-github commented 6 years ago

Thank you for the information - seems I have 2 V3.00 from protoneer

luc-github commented 6 years ago

May I ask why doing an hardware rework ? why not just invert values here : https://github.com/gnea/grbl/blob/master/grbl/cpu_map.h#L65-L68

vMeph commented 6 years ago

they change cause the spindle was on pin 12 that dont have PWM so they change to pin 11 for have PWM

luc-github commented 6 years ago

Yeah my bad I misread the board, I saw all digital are PWM when actually only the ~ pins are ... orz

luc-github commented 6 years ago

for what I understand reading internet docs the best is :

Hosting UGS which size is 12 MB and java is not really the way to go I think - current ESP-WEBUI is lighter and can be modified to fit the need

vMeph commented 6 years ago

looks good i just mention interaction with UGS sense is a platform with alot tools like autolevel, probing etc.. and many many people use it,

luc-github commented 6 years ago

I think UGS should be used from PC using Serial ->TCP drivers (I do not see network feature on it) and then access to ESP3D using data port which forward to CNC shield

vMeph commented 6 years ago

I wonder if @winder could add network features on UGS

luc-github commented 6 years ago

As note for the printer settings tabs: the $$ command display all settings

$0=10
$1=25
$2=0
$3=0
$4=0
$5=0
$6=0
$10=1
$11=0.010
$12=0.002
$13=0
$20=0
$21=0
$22=0
$23=0
$24=25.000
$25=500.000
$26=250
$27=1.000
$30=1000
$31=0
$32=0
$100=250.000
$101=250.000
$102=250.000
$110=500.000
$111=500.000
$112=500.000
$120=10.000
$121=10.000
$122=10.000
$130=200.000
$131=200.000
$132=200.000

to change value $0=<new value> will set new value

for settings label need to see : https://github.com/gnea/grbl/wiki/Grbl-v1.1-Configuration

luc-github commented 6 years ago

I have CNC V3 + uno but I see there are also CNC shield for Nano used for laser cnc - so I have ordered one to check

luc-github commented 6 years ago

I am thinking to add host feature on ESP32 for GRBL FW Currently there is no SD card support for what I can see on GRBL so by connecting ESP32 + SD card reader and ESP reading SDCard (I prefer no using SPIFFS currently) and even adding a screen and an encoder, and the machine do not need to be connected to a computer anymore.
It would be a cheap solution

I think ESP32 only is better due to performance but will not limit ESP8266 to use it

luc-github commented 6 years ago

I close issue as it is in TODO list https://github.com/luc-github/ESP3D/issues/179

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.