Controlling a K40 with a Raspberry Pi and K40 Whisperer

Аватар автора
Python боты и автоматизация
I have been paranoid to work on my laptop while it is hooked up to the K40…. So let’s make a Raspberry Pi do it instead! Thanks to NovaSpirit for an earlier version of this. Here is all the code and such to make it work: Part 1 Part 2 Put the Micro SD card into the Raspberry Pi and power it on. Once booted up go through the windows as they pop up to set your country, wifi, and update the Pi. Finally select to reboot the PI Part 3 ( I would suggest to pull this video up while on the Pi and copy and save the rest of this into the Text Editor on the PI. It will make the rest very quick and easy.) Enter "wget (paste the link address you copied from scorchworks)" or just paste this and change the version number to the latest number.... at the time of this video it was .59. Now unzip the folder with this command $ unzip K40_Whisperer-0.59_src.zip Enter into the directory $ cd K40_Whisperer-0.59_src/ install the pre-requisites needed $ sudo apt-get install libxml2-dev libxslt-dev inkscape libjpeg-dev libudev-dev These are the Python pre-requisites $ pip install -r requirements.txt Install pyusb $ sudo pip install pyusb At this point K40 Whisperer should work! Try it out! Plug a usb from the K40 to the Pi and turn on the K40 $ sudo python k40_whisperer.py With K40 Whisperer open and the K40 on press "Initialize Laser" If it moves, you are golden! Part 4 Now lets make a Menu Button to make turning it on easier. Click on the raspberry and then Preferences then...

0/0


0/0

0/0

0/0