在树莓派上使用Grbl Controller
在树莓派的命令行输入以下代码
- sudo apt-get update (required for AlaMode)
- sudo apt-get install xrdp
- sudo apt-get install arduino (required for AlaMode) [For normal Pi,
this step is optional, but good to have. NOTE: I got an error that
not all items could be downloaded. I tried to repeat command by
adding a --fix-missing, i.e. sudo apt-get install --fix-missing
arduino but it didn’t help. UPDATE: The latest download as of May
2013 doesn’t have this problem] - sudo apt-get install libudev-dev
- sudo apt-get install qtcreator [This step takes quite awhile to
complete. Note: I got an error downloading as in a previous step. If
you get an error, repeat command but add a --fix-missing, i.e. sudo
apt-get install --fix-missing qtcreator, in this case the
–fix-missing worked.] - sudo apt-get install git
- mkdir github
- cd github
- git clone https://github.com/zapmaker/GrblHoming
- curl http://www.shapeoko.com/wiki/images/6/6a/Coaster.txt >
Coaster.nc - cd GrblHoming
- qmake GcodeSenderGUIthreads.pro
- make
原文
12步有时不能编译出现没找到文件
需要安装qt4 在命令行执行sudo apt-get install qt4-dev-tools
安装qt4
(12,13步需要在GrblHoming目录内进行)
等待一段时间进行交叉编译
编译完成后,在命令行打开GrblHoming,输入./GrblController,运行Grbl Controller程序。注意:在远程桌面下无法运行,会报GrblController: cannot connect to X server :10.0的错误。
给树莓派接入显示器,输入./GrblController,运行Grbl Controller程序。
如仍出现cannot connect to X server :10.0的错误,则在命令行可尝试输入xhost +
将arduino插入树莓派usb口,波特率选择115200,在Grbl上打开对应的串口,实现树莓派与arduino通信。