OctoPi Tutorial for Zim

Hi Winston, the safest way is to use the stock Zeepro software on the A10 board to upgrade the image, but this is something of a pain since we’ve moved away from it. I know another way, but I cannot guarantee it will work. It may leave your board unusable…

Here’s the steps…

  1. Download the Arduino IDE from here: Arduino IDE Download
  2. Download the Zeepro copy of Marlin firmware here: Marlin Zeepro 1.1.0.15
  3. Unzip the Marlin firmware and rename the folder to “Marlin”.
  4. Open the Arduino IDE and open Marlin/Marlin.ino.
  5. Plug a USB cable from your PC into the Zim.
  6. From Tools select: Board->Arduino Mega or Mega 2560.
  7. select: Processor->ATmega2560 (Mega 2560).
  8. select: Port->COMx for you zim com port.
  9. If you would like to see the compilation as it proceeds, enable “File->Preferences->Show verbose output during: compilation”
  10. Click the compile button (called “Verify” in IDE) and make sure it compiles.
  11. Click the “Upload” button.

I tried this on a Zim and it appeared to run ok. The risk here is there is something in EEPROM requires initialization. This risk is pretty low I think, but still a possibility. If you are uncomfortable about this procedure, I’d recommend you do not try it until more testing has taken place. :stuck_out_tongue:

Cheers!

1 Like

I can figure how to have T1 temperature readings work in octopi it shows off but if i set the temp it heats, i have dual extruder.

Yes, I mentioned this in my second tutorial. Seems to work ok, but the temperature for the selected extruder always shows up as T0. I think the OctoPi may be looking for a different temperature response than the Zeepro firmware is providing. If that is the case, we may need to modify the Zeepro Marlin firmware to provide the appropriate response.

Hmm, okay I can give it a try on the extra board I have and let you guys know
:cop:

Hi Winston, before you go through that trouble, try wiggling all the connectors leading to the head. Perhaps you have a lose connection somewhere. I doubt the firmware is the problem because the LED strip lights and fan have been in there since day one, and probably always used the same commands.

Well, I’ve figured out why OctoPrint doesn’t like to show extruder 0 and 1 temperature correctly. Marlin firmware 1.0.0.2 supports a different response format to M105 commands than the Zim Marlin 1.0.0.15 firmware provides. The OctoPrint devs mentioned it expects a temperature format like this (note additional T0 and T1 level/target)…
Send: M105
Recv: ok T:26.2 /180.0 B:0.0 /0.0 T0:26.2 /180.0 T1:62.7 /180.0 @:128 B@:0

Or like this during M109 commands (this is actually not in the newer Marlin either, but it does appear to work for OctoPrint)…
Recv: T:129.1 E:1 W:? T0:66.4 /0.0 T1:129.1 /220.0

I’ve created my own fork of the Zim Marlin firmware and made these changes. You can find this here: OctoPrint compatible Zim Marlin Firmware 1.0.0.16. I’ve tested this briefly and it appears to work ok. You will need to follow the instructions I’ve provided above to reflash your Zim board as I’m not sure how to do it without the Arduino IDE or an ISP programmer. I did this myself using the Arduino IDE and did not encounter any issues, but I have not thoroughly tested, so I would not make any promises. If you are not comfortable doing this, please do not.

Btw, I also tried just building and flashing the 1.0.0.15 version as per the instructions above, and it seems to run fine on my Zim, so there appears to be a viable path backwards as well.

For those interested in using the Zim WiFi dongle:
https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=92555
And for the driver:
https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=62371&hilit=rtl8188eus

I have not tested it yet, but there are some people that successfully used that to get rasperry pi and Comfast WiFi usb dongle working. Once my printing queue is empty I will resume testing it.

Tried the modified firmware and its working perfectly. Thanks

Now just need to know how to calibrate the platform… :smile:

For disabling the WiFi USB energy management settings, here is a nice article about it:

And for those who want to be sure, they can try an additional configuration:

  1. Turn off wireless power management from /etc/network/interfaces.
    sudo /etc/network/interfaces
  2. Add the following line of code (may be inserted anywhere in file):
    wireless-power off
  3. Exit and save the file
  4. Restart networking
    /etc/init.d/networking restart
  5. Confirm Power Mangement is off:
    iwconfig

You should see something like this:
Power Management:off

1 Like

Scripts for Bed Level Calibration would be a nice addition.
So far I am using the raft with two loops and layers to correctly micro-level on the fly via eyesight.
Interestingly it works very well and my print results regarding the first layer are fantastic.

By following jpod’s video I was able to use these values to setup scripts for bed level calibration

Stage leveling
G1 X75 Y75 Z0 ; for A point
G1 X30 Y145 Z0 ; for B point
G1 X122 Y145 Z0 ; for C point

Thanks 3DPrintEvangelist for posting the info about Wifi dongle power management. This was driving me nuts with a previous raspberry pi project. I would find the webpage non-responsive until I connected ssh to the pi (i.e. connected a terminal). I’m pretty certain it is the same issue, and I’ve seen it on my OctoPi as well. Certainly worth disabling that feature.

Another item to be aware of is apparently the wifi dongles can sink enough current to brown out a cheap USB power supply. Some people recommend plugging the pi into a powered hub. I’ve always done ok with a 1amp or greater supply.

Thanks Winston for the bed alignment coordinates and commands. I’m going to set mine up with these right now :smile:

1 Like

Hey guys! got it to upload!

Ran into some trouble, but once i restarted the computer the edited marlin uploaded!
I will try printing with it tomorrow!

Yesterday I installed the initial Octoprint again (just to be sure for my new WLAN USB dongle) and configured the power management options I posted before.
I left the PI running this night and it was responsive this morning.
So I hope it works for you as well.

Does “Print Time Left” work for anyone? It keeps at “calculating”.
That is quite an important information for me, even if only estimated.
With Simplify3D its very accurate.

1 Like

with small gcodes it works yesterday i had a big gcode file it didnt show me the estimate…

ya… I usually jog down the estimate from slic3r/ repetier-host. because estimated time in Octoprint seems to only show in hours for large prints…

Strange thing happened today! one of my two printer have temperature drop conveniently after windows 10 update running with octoprint (xD prob have nothing to do with the update)

and
check out this cube…

one of the 4 sides looks like it got molded… strange stuff, could this be that I have to tightening some hardware stuff?

Will this work on any raspberry pi or do I need the raspberry pi 2? I have a raspberry B (the original one) that is sitting on a shelf and am debating on trying to get my zim running using octopi.

any raspberry pi model will work apart from A+ will need a hub… thanks mtbf0 …