-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated lower mount to allow socket to reach nut, updated Azteeg X5 mini smoothie config with better tuned PID, Notes about running LED from Octoprint.
- Loading branch information
1 parent
90c4a51
commit 48a1e48
Showing
6 changed files
with
291 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+1.9 MB
...ntation/WiringPi to control GPIO Via Octoprint/Add_Octoprint_Controlled_LED.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions
48
Documentation/WiringPi to control GPIO Via Octoprint/Add_Octoprint_Controlled_LED_Strip.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
|
||
***You must install WiringPi to utilize the rest of these instructions | ||
***Install instructions are atL http://wiringpi.com/download-and-install/ | ||
***To install WiringPi SSH into to pi (I use putty from windows) | ||
***CTRL-V to scroll all the way to the end | ||
***Type the text below, then CTRL-X to exit and save when exiting | ||
|
||
git clone git://git.drogon.net/wiringPi | ||
cd wiringPi | ||
git pull origin | ||
./build | ||
|
||
|
||
|
||
***You must tell the PI how the GPIO pins we have selected will be used (we need them as outputs outputs) | ||
***Add this to the end of /etc/init.d/octoprint | ||
***Edit it by SSH to pi and type: sudo nano /etc/init.d/octoprint | ||
***CTRL-V to scroll all the way to the end | ||
***Type the text below, then CTRL-X to exit and save when exiting | ||
|
||
#Run export GPIO Raspberry | ||
|
||
/usr/local/bin/gpio export 17 out | ||
/usr/local/bin/gpio export 18 out | ||
/usr/local/bin/gpio -g write 17 1 | ||
/usr/local/bin/gpio -g write 18 1 | ||
|
||
|
||
|
||
|
||
***We need to add custom actions in Octoprint to turn the relays on and off via GPIO | ||
***Add this to the System->Actions area of config.yaml | ||
***Edit it by SSH to pi and type: sudo nano ~/.octoprint/config.yaml | ||
***CTRL-V to scroll down until you see the actions | ||
***Type the text below to add the new actions, then CTRL-X to exit and save when exiting | ||
|
||
- action: Relay1On | ||
command: gpio -g write 17 0 | ||
name: Turn on Relay1 | ||
- action: Relay1Off | ||
command: gpio -g write 17 1 | ||
name: Turn off Relay1 | ||
- action: Relay2On | ||
command: gpio -g write 18 0 | ||
name: Turn on Relay2 | ||
- action: Relay2Off | ||
command: gpio -g write 18 1 | ||
name: Turn off Relay2 |
Oops, something went wrong.