Let's talk Octoprint

Check here for instructions and tips on how to operate your printer.

Let's talk Octoprint

Postby gCreate_Kyle » Sun Mar 01, 2015 4:09 pm

Octoprint is a gcode sender similar to pronterface. The advantage of octoprint is that it is designed to interface over a network, with a webcam. It can even power up and power down the printer. Which is very cool and adds to the already futuristic feel of 3D printing. Octoprint can run on many systems but we will be discussing using Octoprint on a raspberry pi with the Octopi image.

Fortunately there already exist good tutorials for setting up Octoprint. Rather than re-invent the wheel, I am going to send you to the various sources I used in the installation and use of octopi. Reading over the many questions people have posted I have noticed that for some installation is very quick and easy while for others it is a cause for grey hair and neck pain. I have started this discussion to see if anyone else has had trouble with octoprint and for any suggestions/input you may have.

What you need to set up:

• Raspberry Pi, Model B+ is recommended as it can achieve a 250,000 baud rate which works well with the Arduino Mega.
• SD card for models A and B. Or a micro SD and micro SD adapter for model B+.
• USB micro power cord capable of at least 1 AMP. More than 1 AMP is OK.
• A USB webcam or a raspberry pi cam
• Powered USB hub. You need this to power the USB camera and your printer’s Arduino.
• Keyboard and Mouse for setup. I had to plug these into the pi. Did not work on the USB hub.
• HDMI monitor for setup (you can use just about any monitor but you may need an adapter)
• SD card reader. Check to see if your computer already has this.
• Wireless adapter, if you need a wireless connection to your network.
You probably have most of this stuff laying around your computer desk. I imagine having to buy all of this stuff would make the project prohibitively expensive.

The first YouTube video I am going to point you towards is Thomas Sanladerer’s guide “Getting Started with OctoPrint on Raspberry Pi”.https://www.youtube.com/watch?v=EHzN_MwunmE This is an obvious choice as it is the video you will find on http://www.octoprint.org

This video will get you up and running with Octoprint over your network. I ran into several problems while replicating the steps of this video.
1. My “wireless adapter” was actually an unlabeled Bluetooth adapter. This will not work and may drive you crazy trying to find the problem.
2. Octopi.local did not work.

Turns out if you are using Windows, instead of going to octopi.local you will have to type in the IP address of your raspberry pi into the web browser. Or install Bonjour Printer. Which I have no idea how to use.

How do you find the IP address?
1. Open the LX terminal in your Raspberry Pi’s desktop.
2. Type the command: Sudo ifconfig
If you’re using a wireless connection, the IP address will be on the second line of wlan0 following inet address:
If you’re using a wired connection, the IP address will be on the second line of Eth0 following inet address:
https://learn.adafruit.com/adafruits-raspberry-pi-lesson-3-network-setup/finding-your-pis-ip-address

Controlling the gMax over your network is great…If you’re a lazy person. But if you are like me, you would like to 3D print while out on a date, or kayaking :lol: . This is where I am stuck. My knowledge of this subject is very slim. Apparently In order to control your printer over a web browser you have to disable your firewall. Leaving your network and printer very vulnerable to malicious intent (which can start fires). There are services that will help keep this interaction secure. I am trying to set up with yaler.net. Which costs about 10 bucks for a relay domain. Let me know if you know of others.

Other topics to be discussed:
Adjusting camera settings in raspberry pi to send very high quality pictures instead of low res video.
Time-lapse photography.
Using with a smartphone.
Setting up the printer to be powered up and shut down with octoprint.

And another great source: https://github.com/foosel/OctoPrint/wiki/FAQ

My focus this week will be to get an understanding of all this to assist you and make a comprehensive write up about setting up and using octoprint with octopi. Any and all input is greatly appreciated.
These users thanked the author gCreate_Kyle for the post (total 0):
R. Kyle Gress
gMax Technical Support
3D Printing/Electronics Enthusiast
User avatar
gCreate_Kyle
 
Posts: 169
Joined: Mon Feb 02, 2015 8:47 am
Location: Lancaster, Pennsylvania
Has thanked: 11 times
Been thanked: 18 times

Re: Let's talk Octoprint

Postby crussell » Sun Mar 01, 2015 11:00 pm

Great write up Kyle! I'll add a few additional tips to expand on a few things you touched on.

- There are some great free tools available that let you scan your network for devices and their IP's. For windows, Advanced IP Scanner is a great free tool (http://www.advanced-ip-scanner.com). For Mac's, LanScan is a great free tool (http://www.iwaxx.com/lanscan/). Either of these will help you discover the IP of your OctoPi without having to connect to it using a keyboard/mouse/display.

- The octopi.local only works if you have Bonjour installed on your computer. This is native on a Mac, but to get it on Windows you would need to have iTunes installed as it's an Apple protocol.

- To access your OctoPi outside of your network (for a typical residential setup) you need two things:
You touched on the the first; a type of Dynamic DNS service to provide you with an outside URL you can access that is mapped to your service providers external dynamic IP. DynDNS and NoIP.com are two of the most frequently used services for this. A Dynamic DNS service typically requires that have run a software app on a computer on your network to update your providers IP to the service. Many Linksys and common household Routers even have this functionality built in.

The second thing you need to do is setup port forwarding in your router to expose the internal website on the OctoPi to the outside world. The setup on this obviously varies from router to router so you would need to consult your manuals for help with that.
These users thanked the author crussell for the post (total 0):
- chris
User avatar
crussell
 
Posts: 87
Joined: Wed Apr 02, 2014 11:49 pm
Has thanked: 7 times
Been thanked: 2 times

Re: Let's talk Octoprint

Postby gCreate_Kyle » Tue Mar 03, 2015 11:23 am

I have been successful with yaler.net. It is a relay domain (I have a very grey understanding of it). I have a 30 day trial with them and it only costs 10.50 to own it.

To set up with them just create an account. Follow their tutorial for raspberry pi.

I have sent 2 prints over the web from 5 miles away. The video streaming is about 1 minute behind real time. The g-code commands work almost instantly.

As of this morning I cannot communicate with octoprint through a web browser and I will be going through the whole set up again to see if I can get it to work.
These users thanked the author gCreate_Kyle for the post (total 0):
R. Kyle Gress
gMax Technical Support
3D Printing/Electronics Enthusiast
User avatar
gCreate_Kyle
 
Posts: 169
Joined: Mon Feb 02, 2015 8:47 am
Location: Lancaster, Pennsylvania
Has thanked: 11 times
Been thanked: 18 times

Re: Let's talk Octoprint

Postby crussell » Wed Mar 04, 2015 9:33 pm

Kyle, PM me with the make/model of your router at home. There may be an easier way to set this up without the relay that will save you a few bucks and give you faster performance.
These users thanked the author crussell for the post (total 0):
- chris
User avatar
crussell
 
Posts: 87
Joined: Wed Apr 02, 2014 11:49 pm
Has thanked: 7 times
Been thanked: 2 times

Re: Let's talk Octoprint

Postby gCreate_Kyle » Sun Mar 15, 2015 8:23 pm

Version 1 of my Octoprint tutorial. Help me make this an awesome tutorial. Remember... I did not know anything about Raspberry Pi before I started. Has been fun! PM me if you want to send me some g-code :lol:

https://docs.google.com/file/d/0B9bHWj4YsPejVFdaRFMtNlMyZFk/edit
These users thanked the author gCreate_Kyle for the post (total 0):
R. Kyle Gress
gMax Technical Support
3D Printing/Electronics Enthusiast
User avatar
gCreate_Kyle
 
Posts: 169
Joined: Mon Feb 02, 2015 8:47 am
Location: Lancaster, Pennsylvania
Has thanked: 11 times
Been thanked: 18 times

Re: Let's talk Octoprint

Postby DForbes » Tue Aug 23, 2016 9:41 am

gCreate_Kyle wrote:Octoprint is a gcode sender similar to pronterface. The advantage of octoprint is that it is designed to interface over a network, with a webcam. It can even power up and power down the printer. Which is very cool and adds to the already futuristic feel of 3D printing. Octoprint can run on many systems but we will be discussing using Octoprint on a raspberry pi with the Octopi image.

Fortunately there already exist good tutorials for setting up Octoprint. Rather than re-invent the wheel, I am going to send you to the various sources I used in the installation and use of octopi. Reading over the many questions people have posted I have noticed that for some installation is very quick and easy while for others it is a cause for grey hair and neck pain. I have started this discussion to see if anyone else has had trouble with octoprint and for any suggestions/input you may have.

What you need to set up:

• Raspberry Pi, Model B+ is recommended as it can achieve a 250,000 baud rate which works well with the Arduino Mega.
• SD card for models A and B. Or a micro SD and micro SD adapter for model B+.
• USB micro power cord capable of at least 1 AMP. More than 1 AMP is OK.
• A USB webcam or a raspberry pi cam
• Powered USB hub. You need this to power the USB camera and your printer’s Arduino.
• Keyboard and Mouse for setup. I had to plug these into the pi. Did not work on the USB hub.
• HDMI monitor for setup (you can use just about any monitor but you may need an adapter)
• SD card reader. Check to see if your computer already has this.
• Wireless adapter, if you need a wireless connection to your network.
You probably have most of this stuff laying around your computer desk. I imagine having to buy all of this stuff would make the project prohibitively expensive.

The first YouTube video I am going to point you towards is Thomas Sanladerer’s guide “Getting Started with OctoPrint on Raspberry Pi”.https://www.youtube.com/watch?v=EHzN_MwunmE This is an obvious choice as it is the video you will find on http://www.octoprint.org

This video will get you up and running with Octoprint over your network. I ran into several problems while replicating the steps of this video.
1. My “wireless adapter” was actually an unlabeled Bluetooth adapter. This will not work and may drive you crazy trying to find the problem.
2. Octopi.local did not work.

Turns out if you are using Windows, instead of going to octopi.local you will have to type in the IP address of your raspberry pi into the web browser. Or install Bonjour Printer. Which I have no idea how to use.

How do you find the IP address?
1. Open the LX terminal in your Raspberry Pi’s desktop.
2. Type the command: Sudo ifconfig
If you’re using a wireless connection, the IP address will be on the second line of wlan0 following inet address:
If you’re using a wired connection, the IP address will be on the second line of Eth0 following inet address:
https://learn.adafruit.com/adafruits-raspberry-pi-lesson-3-network-setup/finding-your-pis-ip-address

Controlling the gMax over your network is great…If you’re a lazy person. But if you are like me, you would like to 3D print while out on a date, or kayaking :lol: . This is where I am stuck. My knowledge of this subject is very slim. Apparently In order to control your printer over a web browser you have to disable your firewall. Leaving your network and printer very vulnerable to malicious intent (which can start fires). There are services that will help keep this interaction secure. I am trying to set up with yaler.net. Which costs about 10 bucks for a relay domain. Let me know if you know of others.

Other topics to be discussed:
Adjusting camera settings in raspberry pi to send very high quality pictures instead of low res video.
Time-lapse photography.
Using with a smartphone.
Setting up the printer to be powered up and shut down with octoprint.

And another great source: https://github.com/foosel/OctoPrint/wiki/FAQ

My focus this week will be to get an understanding of all this to assist you and make a comprehensive write up about setting up and using octoprint with octopi. Any and all input is greatly appreciated.



Hey Kyle, hoping you can help. I am getting spotty connection with Octoprint. I am able to connect over our business network and see Octoprint and video coming from the camera from a laptop on the network but when I try and connect to the printer it connects sometimes but will not take a command. Its like its connected but will not home or jog. We have a dedicated IP address for Octoprint and appears to connect OK. I am accessing Octoprint from a laptop attached to the network. I have 2 of these setups at home and it works great but for the life of me I cannot get this up and running here reliably. Any help would be appreciated.

Thanks,

Dennis
These users thanked the author DForbes for the post (total 0):
DForbes
 
Posts: 14
Joined: Sat May 21, 2016 8:15 am
Has thanked: 0 time
Been thanked: 0 time

Re: Let's talk Octoprint

Postby gCreate_Kyle » Tue Aug 23, 2016 8:58 pm

Sounds like you Laptop is talking to the Rpi3 over your network well. Is the Raspberry pi connecting with your gMax?

It should connect to /dev/ttyACM0 at 250000 Baud. If you need to connect at 112500 baud (depends on the RPI), you need to configure the printers firmware to communicate at that speed.

I have been running Octoprint on Windows 10 lately. Things are setup differently for me.

The guide I wrote for this discussion is very out of date.
These users thanked the author gCreate_Kyle for the post (total 0):
R. Kyle Gress
gMax Technical Support
3D Printing/Electronics Enthusiast
User avatar
gCreate_Kyle
 
Posts: 169
Joined: Mon Feb 02, 2015 8:47 am
Location: Lancaster, Pennsylvania
Has thanked: 11 times
Been thanked: 18 times

Re: Let's talk Octoprint

Postby nopick » Fri Aug 26, 2016 8:06 am

Tom has an updated video that might help. I had no issues setting up Octoprint on a RPi 3 following his video guide.

https://youtu.be/MwsxO3ksxm4
These users thanked the author nopick for the post (total 0):
nopick
 
Posts: 45
Joined: Fri Mar 11, 2016 12:32 pm
Has thanked: 1 time
Been thanked: 10 times

Re: Let's talk Octoprint

Postby jmckeone » Mon Aug 29, 2016 5:06 pm

I installed Octoprint for my 1.5XT 2 weeks ago and have random issues with it losing communications mid print. Ive wasted many hours of printing because of it. Anyone every have this issue, its like it loses the serial connection randomly and just stops. Ive attached the last page of the Serial.log file if that helps anyone.
These users thanked the author jmckeone for the post (total 0):
Attachments
ScreenHunter_111 Aug. 29 16.56.jpg
jmckeone
 
Posts: 5
Joined: Fri Aug 12, 2016 4:34 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Let's talk Octoprint

Postby nopick » Tue Aug 30, 2016 9:04 am

I have had no communication problems between octoprint and my gMax. Have you tried a new / different USB cable?
These users thanked the author nopick for the post (total 0):
nopick
 
Posts: 45
Joined: Fri Mar 11, 2016 12:32 pm
Has thanked: 1 time
Been thanked: 10 times

Next

Return to gMax Operation Instructions

Who is online

Users browsing this forum: No registered users and 0 guests