1. Got a question or need help troubleshooting? Post to the troubleshooting forum or Search the forums!

Web enabled Robo3d using Raspberry Pi and Octoprint

Discussion in 'Mods and Upgrades' started by sjreggel, Feb 19, 2014.

  1. Bruce Jenkins

    Bruce Jenkins Member

    Joined:
    Jan 15, 2016
    Messages:
    38
    Likes Received:
    17
    Mike - I ordered and connected the Fosmon camera in you list - but OctoPrint doesn't show any feed in the control section. If I 'hover' my mouse at the top - I get a 1/4" bar that 'looks' like it might be a feed ... but that's all.

    Is there something else I need to configure to get it to work?
     
  2. Bruce Jenkins

    Bruce Jenkins Member

    Joined:
    Jan 15, 2016
    Messages:
    38
    Likes Received:
    17
    I also ordered and tried this camera from amazon:
    http://goo.gl/CErVzF

    But I can't get it to work either .. I was trying to get a more wide angle camera. someone in a review on Amazon for a similar type said they used it on a RPi ..

    Is there something I need to do to activate or configure a camera to work on the RPi? Seems like everything I've read - you just plug & it works ...
     
  3. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,962
    Likes Received:
    7,344
    It says Linux 2.6 or above what flavor are you running with OctoPrint?
    Probably just needs a driver.
     
  4. Bruce Jenkins

    Bruce Jenkins Member

    Joined:
    Jan 15, 2016
    Messages:
    38
    Likes Received:
    17
    I don't know what version I'm running .. I just did the OctoPrint image disk - how do I find out .. and where/how would I add a driver?
     
  5. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,962
    Likes Received:
    7,344
    It is linux, from a command prompt :)

    uname -mrs

    That will display the version.

    The driver I have no idea on, I couldn't easily find one on their site.
     
  6. WADZOQUADZ

    WADZOQUADZ Member

    Joined:
    Mar 16, 2015
    Messages:
    90
    Likes Received:
    23
    I am thinking of putting a relay to turn my printer on. Would one of those SSR-25 DA relays be ok to switch the mains power on? What i want to do is run it in parallel with the mains switch so i can still use the switch and still have it turn on remotely with the switch off. The Raspberry will be always powered on.
     
  7. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,962
    Likes Received:
    7,344
    More than adequate
     
  8. daniel871

    daniel871 Well-Known Member

    Joined:
    Apr 18, 2015
    Messages:
    1,322
    Likes Received:
    511
    WADZOQUADZ and danzca6 like this.
  9. danzca6

    danzca6 Well-Known Member

    Joined:
    Jul 27, 2015
    Messages:
    2,161
    Likes Received:
    1,077
  10. WZ9V

    WZ9V Active Member

    Joined:
    Apr 9, 2016
    Messages:
    218
    Likes Received:
    64
    I used a Raspberry Pi 3 (wireless) with a 5V supply and a SainSmart 2 channel relay board. I use one channel to switch the AC main on for the 12V supply to the RAMPS board and the other to switch the 12V lights on/off. In order to not have teh Arduino powered from the 5V USB you have to remove the P-FET used to automatically switch the supply voltage. DO NOT listen to the folks that say just cut the 5V wire in the USB cable IT WILL NOT WORK. The USB chip on the Arduino Mega must still have 5V supplied by the USB cable for the Raspberry Pi to recognize dev/ttyACM0. Once you remove the PFET switch the Mega will only power up when the 12V supply is there.

    The SainSmart Relay board is not hard to wire but you do have to be careful with 5V vs 3.3 V. To use it correctly You need to supply 5V to the pin labeled JD-VCC (drives the relay coils), remove the jumper between JD-VCC and VCC, and then connect 3.3V to the VCC input. Connect IN1 and IN2 to your favorite GPIO pins and use the GPIO command to set the values to turn stuff on/off.

    In my case I used GPIO 17 (lights) and 22 (printer).

    Initialization - The relay board is active low so need to set pins high before switching to output
    gpio -g write 17 1
    gpio -g write 22 1
    gpio -g mode 17 out
    gpio -g mode 22 out

    On is writing a 0 to the pin
    gpio -g write 22 0

    Off is wrting a 1 to the pin
    gpio -g write 22 1
     
    WADZOQUADZ and WheresWaldo like this.
  11. Domenic

    Domenic Member

    Joined:
    Dec 1, 2016
    Messages:
    60
    Likes Received:
    3
    Can you access the camera through your phone?
     
  12. James Harry

    James Harry Active Member

    Joined:
    Feb 7, 2015
    Messages:
    127
    Likes Received:
    37
    [​IMG]
    Sure. And it's live.
     
  13. James Harry

    James Harry Active Member

    Joined:
    Feb 7, 2015
    Messages:
    127
    Likes Received:
    37
    Dang, just realized my print was screwed up. Lol
     
  14. Domenic

    Domenic Member

    Joined:
    Dec 1, 2016
    Messages:
    60
    Likes Received:
    3
    Perfect thanks might give this a go. And sorry to hear about your print lol.
     
  15. James Harry

    James Harry Active Member

    Joined:
    Feb 7, 2015
    Messages:
    127
    Likes Received:
    37
    Fortunately, the print had gotten far enough along, and I printed more of the little cable guards than I really needed, so it worked well enough. :)
     
  16. Domenic

    Domenic Member

    Joined:
    Dec 1, 2016
    Messages:
    60
    Likes Received:
    3
    Just got my rassberry pi 3 model B and going to do it
     
    Rigmarol likes this.
  17. Domenic

    Domenic Member

    Joined:
    Dec 1, 2016
    Messages:
    60
    Likes Received:
    3
    So after about two days I finally got it to work. My first trouble was when I tried to use an old creative live motion webcam on the raspberry pi. I think what happened was that I didn't close the system down properly. Then today I wiped the sd card and started from scratch. At the end of the day this upgrade is definitely worth it. I figured out how to use one of my old galaxy S3's as a webcam, but I have to say it is very laggy. One of the main pros of this upgrade is that you can use the new robo app which is awesome. Octoprint is definitely the way to go if you what to make your robo r1 + like the big $1000 printers.
     
    mark tomlinson likes this.
  18. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    I need to get my distro back on track. I was hoping to make the R1 more C2-like, but Robo isn't very good at documenting any of their changes to Marlin, nor do they have the µSD image up on GITHUB anymore.

    I know most of the parts they assembled, but there is a lot of stuff they reconfigured or is very specific to the hardware chosen and making it more generic has been a real challenge.
     
    mark tomlinson likes this.
  19. PhantomTiarah

    PhantomTiarah New Member

    Joined:
    Aug 1, 2016
    Messages:
    3
    Likes Received:
    1
    Has anyone tracked how much data is used with Octopi?

    I'd love to set this up, but we live out in the boonies and don't have decent internet anymore... Which means we have a pretty low data cap even for our home internet use.
     
  20. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,962
    Likes Received:
    7,344
    uh.. That would depend on how much you accessed it remotely.
    As in from outside your house since from inside your WiFi range (via WiFi) it would have zero impact on your internet.

    This is a more generic question that you should take to the OctPrint folks...
    (things like a camera would also impact this since streaming video has more of a bandwidth hit than a web page).
     

Share This Page