Jeremy's almost but not quite entirely moribund blog

Sunday, July 28, 2019

Cura settings for M3D Crane Quad

My wife won an M3D Crane Quad in a 3D model designing contest. The quad filament mixing head is an interesting gimmick, with two major drawbacks:
  1. It takes a crapton of wasted filament to switch colors mid-layer (gradients are fine though)
  2. There is limited software support
Voxelizer supports the printer out of the box, but in my experience this slicer doesn't work well for models with tight tolerances. I use Cura when I print things with moving parts. It takes a bit of effort to set it up, however, since there is not a built-in printer profile. Here are the settings I ended up with:

Printer type
Custom FFF printer

Printer tab
X (Width): 230 mm
Y (Depth): 230 mm
Z (Height): 250 mm
Build plate shape: Rectangular
Origin at center: No
Heated bed: Yes
G-code flavor: RepRap
Number of extruders: 1

Extruder 1
Nozzle size: 0.35mm
Compatible material diameter: 1.75mm
Nozzle offset X: 0
Nozzle offset Y: 0
Cooling fan number: 0

Start G-code
M140 S{material_bed_temperature}
M109 S{material_print_temperature}
M190 S{material_bed_temperature}
G28
G92 E0
G1 F200 E3
G92 E0
M567 P0 E1:0:0:0 ; SET FILAMENT MIX HERE
This code allows the hotend and the bed to heat up simultaneously.
The M567 command sets the filament mix. Provide four numbers separated by colons that add up to 1. The example above uses the first filament. You can edit the gcode file and insert color changes at specific layers, which are identified by comments in the file.

End G-code
M104 S0
M140 S0
G91 ; relative positioning
G0 Z50; lift the head
G90 ; absolute positioning
G0 X0 Y{machine_depth}
M84
This lifts the printhead and moves the bed forward after the print finishes, to make it easier to access the model.

What about native multi-extruder support?
I did some experimentation with configuring the printer to have 4 extruders in Cura, to natively support switching filaments (but not mixing them!). This involves creating tool configurations in the start G-code via the M563 command, with one tool per extruder. Cura thinks they are entirely independent hotends, however, and tries to warm one up while cooling the current one down to standby, which causes problems when they're all the same heater. I figure it's better just to manually insert the M567 commands to set/switch filaments.

Sunday, January 28, 2018

Cura settings for QiDi Tech X-one2 3D printer

We got a QiDi Tech X-one2 3D printer for Christmas. It came with a custom-skinned ancient version of Cura. I had a bit of difficulty finding the information needed to use the real Cura software, so I decided to post it online, here on my blog with zero Google fu that nobody will ever find.

(Tested with Cura 3.1.0. This information was found in the QiDi program folder in resources/definitions/fdmprinter.def.json and resources/definitions/x-one2.def.json)

In the Add Printer dialog, select "Other" and "Julia", enter a name, and click "Add Printer".

X (Width): 150mm
Y (Depth): 150mm
Z (Height): 145mm

Build plate shape: Rectangular
Origin at center: UNCHECKED
Heated bed: CHECKED
Gcode flavor: Marlin

Material diameter: 1.75mm
Nozzle size: 0.4mm

Printhead settings / Gantry height: all 0mm (i.e., don't print multiple models in "one at a time" mode, not even with QiDi's software, because not even they define the printhead dimensions. the printhead could collide with other models.)

Start Gcode:
G92 A0 B0
G28
G1 X0 Y0 Z50 F3600
G1 X0 Y0 F3600
M140 S{material_bed_temperature}
M104 S{material_print_temperature} T0
M190 S{material_bed_temperature}
M109 S{material_print_temperature} T0
G92 E0
G92 A0 B0
G0 X0 Y4 Z0.3 F3600
G1 X{machine_width} Y5 F2400
G1 X5 A14 F2400
G1 X5 F2400
G92 A0 B0

End Gcode:
M104 S0
M104 S0 T1
M140 S0
G92 E0
G1 Z{machine_height} F900
G28 X0 Y0
M84

There are still a few differences:
  • The QiDi software embeds a preview image in the gcode file, which the printer displays on its LCD screen while printing. Cura does not do this.
  • Cura can print via USB, with no SD-card shuffling required.

Tuesday, October 11, 2011

Playing Portal 2 co-op on LAN, with one account

My wife bought me Portal 2 a few months ago, and I thoroughly enjoyed the single-player campaign. The puzzles are clever, and there are lots of 'em. The story is funny and engaging, and the voice acting is superb. The procedural music adds a lot of atmosphere. I particularly liked the historic Aperture Science Innovators levels deep underground.

After completing the single-player game, I wanted more. My wife suggested that our 7-year-old boy would enjoy playing co-op with me. I said it probably won't work unless I register another Steam account and buy another copy of the game... but I did some Google searches and found that offline LAN play is possible with a single copy. There are varying instructions given, and some work better than others, so I decided to record the best way here. Specifically, if you do it right, Atlas (the blue robot) can save progress and earn achievements. (They can't both do it, because only one can be connected to Steam at a time.)

Start with the guest machine (this machine will play P-body, the orange robot):
  1. Launch Steam in offline mode.
  2. Start Portal 2.
  3. Enable the developer console (under advanced keyboard options). This only has to be done once.
  4. Enter the developer console by pressing the back-quote (`) key, to the left of the number 1.
Now, on the host machine (this machine will play Atlas, the blue robot):
  1. Launch Steam in online mode.
  2. Start Portal 2.
  3. Enable the developer console (again, this only needs to be done the first time).
  4. Select "Play cooperative game" from the main menu.
  5. Select "Standard co-op"
  6. Wait for the "Invite friends" page to appear. It's okay if the page is empty.
  7. Enter the developer console by pressing the back-quote (`) key.
  8. Type sv_lan 1
Back on the guest machine:
  1. Type connect (IP address of host machine)
And then on the host:
  1. Type map mp_coop_start (for the calibration level, if you haven't played before), or map mp_coop_lobby_2 (for the hub)
Using these steps, I am able to play co-op with my son, and still save progress and earn achievements on my account (I play as Atlas).

Saturday, July 25, 2009

Windshield wipers

A few months ago, the windshield wiper switch on my 2000 Honda Civic broke, resulting in funny behavior like the blades stopping the second you let go of the lever, even in the middle of the windshield, and when you pull the lever back to squirt the windshield, it'd keep squirting forever until you push it back.

The car was due for a safety inspection, and I figured it wouldn't pass in this condition. I picked up a new switch at the local Honda dealer and installed it this morning. The wipers worked like they should, but the windshield squirty-things didn't squirt.

Just yesterday I topped off the wiper fluid, so I knew that wasn't the problem. This pointed at the pump. Looking under the hood, I couldn't even see the pump. Only the top of the reservoir poked through the maze of frobnitzes and gormishes. Looking up from below, I couldn't see it either. I was worried I'd have to remove the front bumper, but it turned out the pump is situated just in front of the front wheel and is accessible through the wheel well once the cover is removed. I picked up a new pump at AutoZone (which was much less expensive than the switch, interestingly enough), drained the fluid into a bucket, and swapped pumps. Now I can squirt the windshield again; in fact, the new pump almost overshoots the windshield entirely. I guess it's a little more powerful.

With a working windshield wiper system, I took my car to Jiffy Lube for the inspection, and they told me my blades needed replacement... so one more trip to AutoZone.

Side note: Jiffy Lube also told me my air filter needed replacement, and they offered to do it for $15. I declined, because I knew the air filter is easy to install, so I thought I'd save a few bucks. Until I saw what the new air filter cost at AutoZone: $15. I guess next time I'll just let Jiffy Lube do it.

I also replaced the cabin air filter and windshield wiper blades on the family van. And my Civic has a door that won't open from the outside... maybe I'll make a clean sweep of it and look at that this evening.

Aren't cars fun?