GRBL CNC: Difference between revisions

From Wiki
(Die Seite wurde neu angelegt: „* CNC with MKS Gen L v1.0 Atmega2560 == VS Code - PlatformIO == * New Project ** Name: CNC-Grbl ** Board: Atmega2560 ** Framework: Arduino == Find GRBL for…“)
 
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
* CNC with MKS Gen L v1.0 Atmega2560
* CNC with MKS Gen L v1.0 Atmega2560


== VS Code - PlatformIO ==
== VS Code - PlatformIO Project ==
 
* New Project
* New Project
** Name: CNC-Grbl
** Name: CNC-Grbl
Line 9: Line 8:


== Find GRBL for target architecture ==
== Find GRBL for target architecture ==
* GRBL-Mega: https://github.com/gnea/grbl-Mega
* GRBL-Mega: https://github.com/gnea/grbl-Mega
* clone and copy to "lib" of VS Code project<syntaxhighlight lang="bash">
* clone and copy to "lib" of VS Code project<syntaxhighlight lang="bash">
Line 15: Line 13:
</syntaxhighlight>
</syntaxhighlight>


*
== VS Code ==
* platformio.ini <syntaxhighlight lang="ini">
[env:megaatmega2560]
platform = atmelavr
board = megaatmega2560
framework = arduino
monitor_speed = 115200
</syntaxhighlight>
* lib/grbl/config.h<syntaxhighlight lang="c">
//#define DEFAULTS_GENERIC
//#define CPU_MAP_2560_INITIAL
 
// To use with RAMPS 1.4 Board, comment out the above defines and uncomment the next two defines
#define DEFAULTS_RAMPS_BOARD
#define CPU_MAP_2560_RAMPS_BOARD
</syntaxhighlight>
* src/main.cpp <syntaxhighlight lang="c">
#include <grbl.h>
</syntaxhighlight>
 
 
[[Category:Electronics]]

Latest revision as of 11:18, 18 January 2021

  • CNC with MKS Gen L v1.0 Atmega2560

VS Code - PlatformIO Project

  • New Project
    • Name: CNC-Grbl
    • Board: Atmega2560
    • Framework: Arduino

Find GRBL for target architecture

VS Code

  • platformio.ini
    [env:megaatmega2560]
    platform = atmelavr
    board = megaatmega2560
    framework = arduino
    monitor_speed = 115200
    
  • lib/grbl/config.h
    //#define DEFAULTS_GENERIC
    //#define CPU_MAP_2560_INITIAL
    
    // To use with RAMPS 1.4 Board, comment out the above defines and uncomment the next two defines
    #define DEFAULTS_RAMPS_BOARD
    #define CPU_MAP_2560_RAMPS_BOARD
    
  • src/main.cpp
    #include <grbl.h>