Results 41 to 50 of 232
-
11-10-2014, 12:53 PM #41
This sounds awesome! Let us know how your development/build goes!
When I had it connected to the TV I went into the wifi manager and saw that it had not yet connected to my wifi so I clicked connect. I don't know why this was the case because I have been able to get it to work by just power cycling the board when it is not connected to the TV.
Is there a way to access a debug terminal to see the octoprint server process running?
-
11-21-2014, 01:33 PM #42
- Join Date
- Jul 2014
- Location
- Eastern Colorado
- Posts
- 536
Not that I know of. I haven't been able to find any way to run the server with debug info through the terminal yet.
I finally received the wires to connect my RasPi to the relay board. I followed the instructions here: https://github.com/foosel/OctoPrint/...-from-your-RPi I used the relay board listed on that page from Amazon. I have power going through relay 4, lights through 3, and fans through 2. Relay 1 is still unused. The relays are SPDT, so when combined with three more SPDT switches, I get the double-switch action.
The power goes into common on the switch, NO connects to the relay NC, and the switch NC is connected to the relay NO. The relay common takes the power into the power supply. (Yes, I checked to make sure the relay and switch could handle 120v AC.)
The fan and light switches are run the same way. Power out from the power supply into common on the switch, NO-to-NC and NC-to-NO connections to the relay, and relay common out to the fans and lights. I should note I'm running the - wires through the switches and relays. The + side just connects directly.
i had to install wiringPi in order to get the commands to control the GPIO pins from the webpage. I would recommend NOT using physical pin 8 (wPi pin 15, BCM pin 14) to control a relay, as when the RasPi starts up, that's the TxD pin, and it will rattle the relay and send intermittent power to whatever you're switching. I used physical pin 12 instead.
edit: I've also written a small script to call from the OctoPi webpage that let me condense six commands (Printer On, Printer Off, Fans On, Fans Off, etc) into three (Toggle Printer, Toggle Fans, Toggle Lights).
pintoggle goes into ~/scripts:
Code:#!/bin/bash #read the pin and toggle mode pin=$1 state=$(gpio read $pin) if [ $state = "1" ]; then gpio mode $pin out else gpio mode $pin in fi
Code:- action: toggle printer command: bash ~/scripts/pintoggle 1 confirm: You are about to turn the printer On or Off name: Toggle Printer - action: toggle lights command: bash ~/scripts/pintoggle 7 confirm: false name: Toggle Lights - action: toggle fans command: bash ~/scripts/pintoggle 9 confirm: false name: Toggle Fans
Last edited by AbuMaia; 11-21-2014 at 05:33 PM.
-
11-25-2014, 12:09 AM #43
- Join Date
- Oct 2014
- Posts
- 134
Never mind - it was "helpful" caching that was not showing me the changes when I was expecting them.
I entered everything exactly as you have it shown here, but I could never get the actions to show up in the menu. I can run the script that you wrote from terminal and it works properly, so I must be doing something wrong in how I am entering the actions. Strangely, any other actions that I create, besides the ones you have here, will show up in the menu.Last edited by kd7eir; 11-25-2014 at 12:24 AM.
-
11-25-2014, 08:04 AM #44
Hey Kd7eir, welcome to the forums! Glad you were able to get past the "helpful" caching haha. Do you have octoprint up and running then?
-
11-25-2014, 10:16 PM #45
-
11-26-2014, 11:31 AM #46
- Join Date
- Oct 2014
- Posts
- 134
-
11-26-2014, 11:53 AM #47
Very cool! Yeah I have liked it so far. Sometimes it's a little buggy but nothing a "reset octoprint" or browser refresh can't usually fix.
-
11-26-2014, 12:17 PM #48
- Join Date
- Oct 2014
- Posts
- 134
I have definitely become familiar with those. I've only had one print that just would not work through octoprint. It was a case for a Sainsmart 4 relay board. It would constantly throw an error about line numbers being wrong. Copied the gcode straight to the SD card and it printed fine from there. That makes my reliability rating about 99% for octoprint - not too bad for free software.
Last edited by kd7eir; 11-26-2014 at 12:23 PM.
-
11-26-2014, 12:56 PM #49
Absolutely, for about 50 dollars for all the stuff needed, you can't beat it!
-
11-26-2014, 01:16 PM #50
Just got my RPI up and running with OctoPi
Btw, are there plugins or such available? Would be very cool to have a plugin which shows where the printer extruder is at all times :P
New member with print issue
06-11-2024, 08:57 AM in Tips, Tricks and Tech Help