OctoPrint: Difference between revisions

From DrewWiki
Jump to navigation Jump to search
No edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
= Setup OctoPrint =
= Setup OctoPrint =
Add your user to the dialout group;
Add your user to the dialout group;
<pre>
<syntaxhighlight lang=bash>
$ usermod -a -G dialout drew
$ usermod -a -G dialout drew
</pre>
</syntaxhighlight>


== Build ==
== Build ==
<pre>
<syntaxhighlight lang=bash>
$ git clone https://github.com/foosel/OctoPrint.git
$ git clone https://github.com/foosel/OctoPrint.git
$ cd OctoPrint
$ cd OctoPrint
$ virtualenv venv
$ virtualenv venv
$ ./venv/bin/python setup.py install
$ ./venv/bin/python setup.py install
</pre>
</syntaxhighlight>


== Run ==
== Run ==
<pre>
<syntaxhighlight lang=bash>
$ cd ~/OctoPrint
$ cd ~/OctoPrint
$ venv/local/bin/octoprint  
$ venv/local/bin/octoprint  
</pre>
</syntaxhighlight>


== Browse ==
== Browse ==
Line 40: Line 40:
== Tune Extruder and Heatbed PID ==
== Tune Extruder and Heatbed PID ==
Issue
Issue
<pre>
<syntaxhighlight lang=bash>
Recv: Error:Thermal Runaway, system stopped! Heater_ID:
Recv: Error:Thermal Runaway, system stopped! Heater_ID:
Changing monitoring state from 'Printing' to 'Error: Thermal Runaway, system stopped! Heater_ID:  
Changing monitoring state from 'Printing' to 'Error: Thermal Runaway, system stopped! Heater_ID:  
Line 47: Line 47:
Changing monitoring state from 'Error: Thermal Runaway, system stopped! Heater_ID:  
Changing monitoring state from 'Error: Thermal Runaway, system stopped! Heater_ID:  
' to 'Closed'
' to 'Closed'
</pre>
</syntaxhighlight>


Need to tune:
Need to tune:
<pre>  
<syntaxhighlight lang=bash>  
M105 # get extruder temp
M105 # get extruder temp
M303 # tunes to 150C
M303 # tunes to 150C
Line 76: Line 76:



M500

M500
</pre>
</syntaxhighlight>


* https://www.lulzbot.com/fine-tune-your-marlin-pid-settings
* https://www.lulzbot.com/fine-tune-your-marlin-pid-settings
Line 82: Line 82:
= Setup mjpg-streamer =
= Setup mjpg-streamer =
Add your user to the video group;
Add your user to the video group;
<pre>
<syntaxhighlight lang=bash>
$ usermod -a -G video drew
$ usermod -a -G video drew
</pre>
</syntaxhighlight>


== Build ==
== Build ==
<pre>
<syntaxhighlight lang=bash>
$ git clone https://github.com/jacksonliam/mjpg-streamer.git
$ git clone https://github.com/jacksonliam/mjpg-streamer.git
$ cd mjpg-streamer-experimental
$ cd mjpg-streamer-experimental
$ make
$ make
</pre>
</syntaxhighlight>


== Run ==  
== Run ==  
<pre>
<syntaxhighlight lang=bash>
$ cd ~/mjpg-streamer/mjpg-streamer-experimental/
$ cd ~/mjpg-streamer/mjpg-streamer-experimental/
$  ./mjpg_streamer -i "./input_uvc.so -r 1280x720" -o "./output_http.so"
$  ./mjpg_streamer -i "./input_uvc.so -r 1280x720 -d /dev/video0" -o "./output_http.so"
$ uvcdynctrl -s "Focus, Auto" 1
$ uvcdynctrl -s "Focus, Auto" 1
</pre>
</syntaxhighlight>


* Reference
* Reference

Latest revision as of 01:36, 25 January 2018

Using a Raspberry Pi3 running Rasbian 8

Setup OctoPrint

Add your user to the dialout group;

$ usermod -a -G dialout drew

Build

$ git clone https://github.com/foosel/OctoPrint.git
$ cd OctoPrint
$ virtualenv venv
$ ./venv/bin/python setup.py install

Run

$ cd ~/OctoPrint
$ venv/local/bin/octoprint

Browse

Add plugins

  • Settings > Plugin-in Manager
    • SnapStream (0.2.3)
    • CuraEngine
    • DisplayProgress
    • Cost estimator
    • DisplayZ
    • EEPROM Marlin Editor
    • Navbar Temp
    • Filament Sensor
    • Print History
    • Printer Statistics
    • StatusLine

Tune Extruder and Heatbed PID

Issue

Recv: Error:Thermal Runaway, system stopped! Heater_ID:
Changing monitoring state from 'Printing' to 'Error: Thermal Runaway, system stopped! Heater_ID: 
'
Recv: 9
Changing monitoring state from 'Error: Thermal Runaway, system stopped! Heater_ID: 
' to 'Closed'

Need to tune:

 
M105 # get extruder temp
M303 # tunes to 150C
M303 S180 # tunes to 180C
M303 S180 C10 # tunes to 180 for 10 times
M303 E-1 S70 C10 # Use to tune the bed at 70C
Recv:  Ku: 57.76 Tu: 38.50
Recv:  Classic PID
Recv:  Kp: 35.02
Recv:  Ki: 1.83
Recv:  Kd: 167.82
Recv:  Classic PID
Recv:  Kp: 34.02
Recv:  Ki: 1.70
Recv:  Kd: 169.89

# Set PIDs for Extruder
M301 P12.33 I0.51 D74.50 # default
 from Configuration.h
M301 P33.58 I1.75 D160.93 # tuned

 for extruder

# Set PID for Heatbed
M304 P234.88 I42.79 D322.28 # default from Configuration.h
M304 P519.74 I72.10 D936.70 #tuned for heated bed
Enter the following command to save the PID settings to EEPROM.

M500

Setup mjpg-streamer

Add your user to the video group;

$ usermod -a -G video drew

Build

$ git clone https://github.com/jacksonliam/mjpg-streamer.git
$ cd mjpg-streamer-experimental
$ make

Run

$ cd ~/mjpg-streamer/mjpg-streamer-experimental/
$  ./mjpg_streamer -i "./input_uvc.so -r 1280x720 -d /dev/video0" -o "./output_http.so"
$ uvcdynctrl -s "Focus, Auto" 1

Browse