-
Notifications
You must be signed in to change notification settings - Fork 122
Linux
MaslowCNC: Electronics | Firmware | Mechanics | Software
Note, this method does not work well for Raspberry Pi. See the Raspberry Pi instructions below.
Install Kivy using by folowing the instructions found at https://kivy.org/docs/installation/installation-linux.html
NOTE: at this time Ground Control does not support Python3, so use Python2 instead
Install the PySerial package by running the command pip install pyserial
Download a copy of the Ground Control source code from https://github.com/MaslowCNC/GroundControl using the "clone or download" button on the right side.
Launch Ground Control by using the command python main.py
from within the folder
These instructions were written using a Raspberry Pi 3, but the instructions should be similar for other operating systems.
Download the latest KivyPie image from http://kivypie.mitako.eu/kivy-download.html
Burn the KivyPie to an SD card. There are many guides about how to do this on the internet, the official one is here.
Boot the Raspberry Pi and log in using the default user name and password:
Login: sysop Password: posys
Note both the login and password are lower-case
Connect your Pi to the internet by plugging in an Ethernet port or by following these instructions to connect to wifi from the command line.
As of this writing the current version of KivyPi does not actually come with Kivy installed for python 2 which seems like an oversight. Install Kivy with the commands:
sudo apt-get update
sudo apt-get install python2-kivypie
sudo ln -sf /usr/bin/python2 /usr/bin/kivy
To remedy double-typing of characters and double-clicking of buttons when using a USB HID input device (keyboard/mouse) edit the Kivy ini file with the following command:
sudo nano ~/.kivy/config.ini
Which will open the ini file in a text editor. Comment the line that reads
%(name)s=probesysfs,provider=hidinput
so it will now read
#%(name)s=probesysfs,provider=hidinput
Save the file by pressing Ctrl+x then y then press enter.
Repeat the process for root.
sudo nano /root/.kivy/config.ini
Install PySerial with the command sudo apt-get install python-serial
Download Ground Control with the command git clone https://github.com/MaslowCNC/GroundControl.git
Backup the existing theme file with the command
sudo mv /usr/local/lib/python2.7/dist-packages/kivy/data/images/defaulttheme-0.png /usr/local/lib/python2.7/dist-packages/kivy/data/images/defaulttheme-0.old.png
Copy one of two theme files from Ground Control.
For the Maslow Theme, use the command
sudo cp ~/GroundControl/Images/MaslowTheme.png /usr/local/lib/python2.7/dist-packages/kivy/data/images/defaulttheme-0.png
For the standard Kivy Theme (with a replacement cursor), use the command
sudo cp ~/GroundControl/Images/ArrowTheme.png /usr/local/lib/python2.7/dist-packages/kivy/data/images/defaulttheme-0.png
Launch Ground Control with the command cd /home/sysop/GroundControl/
and sudo python main.py
See the KivyPie FAQ for more information about how to do things like make Ground Control launch on startup turning your Raspberry Pi into a touch screen controller, or how to VNC into your Raspberry Pi.