Form factor: Rectangular Origin: Lower Left Heated Bed: Yes (checked) Width: 220mm Depth: 220mm Height: 250mm Axes: Default** Custom Bounding Box: No (unchecked) Nozzle Diameter: 0.4mm Number of Extruders: 1
Serial Port: /dev/ttyUSB0 Baudrate: AUTO
You'll want to print a few components to mount everything to your Pi. Some of these are optional -- for example, you don't have to mount the Pi to your printer (you can keep it separate). Anyways, I recommend printing all of these for a cleaner, more organized setup.
Ender 3 camera mount
This component mounts your Raspberry Pi's camera to the Z-axis stepper motor. This will give you a nice view of your extruder and print.
First, print this bracket/arm. If you're using the Raspberry Pi camera v1, also print the included camera holder. If you're using the Pi camera v2, I recommend printing this camera holder instead as it's much easier to work with.
Ender 3 Raspberry Pi enclosure
This component mounts the Raspberry Pi itself to the Ender 3's extruded aluminum rails and can also be found on Thingiverse. There are two versions: one for the Raspberry Pi 3, and one for the Raspberry Pi 4. I'm using a Raspberry Pi 3 since the Pi 4 is a bit overkill for OctoPrint. But if you do decide to use a Raspberry Pi 4 for OctPrint, be sure to add a Raspberry Pi 4 fan to the case since things can get a bit hot.
Buck converter enclosure
If you plan on powering your Pi directly from the Ender 3, be sure to print out the included LM2596S buck converter enclosure as well.
Later on, I'll show you how to connect your Pi to your Ender 3's power supply.
M3 x 20mm bolt and nut to connect the two pieces of the Pi mount. Then, connect the Raspberry Pi ribbon cable to the camera, click the camera into place, and slide the camera cover back on.
Ender 3 Raspberry Pi camera cable length
To mount the camera, you'll need to use a Pi camera extension ribbon cable (linked at the top of this guide) as the cable that came with your camera isn't long enough. I’ve found the 610mm cable works perfectly.
It's a tight fit. Be patient so that you don't break your camera. :) You might need to file some edges down. If your have no camera feed later, check and make sure the tiny connector that presses onto the camera itself hasn't come loose.
The 3D-printed Raspberry Pi case is comprised of two pieces: a port faceplate and the case itself. Attach the faceplate first.
The case I linked to above is a bit of a tight fit and doesn't have a slot for the camera cable (as I learned while writing this guide). If you don't want to print a different one, simply cut a small slot above the camera port, slide the Pi into its case, and then attach the camera cable.
Finally, connect your Pi to your Ender 3's USB port using a short Mini-USB cable.
I chose to mount my Pi in the opening in the empty cavity directly beneath the bed. To do this, use two
M4 x 8mm bolts and two M4 aluminum channel "T-nuts". I reused two extra T-nuts that came with the printer.
Attach the bolts and nuts to the Pi case first (with the nuts facing up) and then slide the nut end of the bolts into the bottom piece of extruded aluminum. Finally, tighten the two screws from beneath.
Route the camera cable under the bottom of your printer, between the printer and your table. The printer's rubber feet will allow it some freedom of movement.
If you'd like, you can power your Raspberry Pi directly from your 3D printer's power supply! This can be done easily by tapping into the cable coming out of the back of the Ender 3 using a Y-splitter, then reducing the voltage to 5V with a buck converter. I wrote a separate guide to show you how to power the Raspberry Pi using the 3D printer PSU if you're interested.
This step is optional: if you just want to plug your Pi into the wall, that's ok too.
If you already completed that guide, now is a good time to mount your buck converter enclosure to the back of your Ender 3 using foam tape.
View the camera feed in the OctoPrint/OctoPi interface. Center the bed and place a small object in the middle of it. Then, use the small white wheel that came with your camera to turn the lens of the Pi camera, thus focusing it. Turn it just a tiny amount at a time (maybe 1/16 of a turn) and check the feed periodically until it's nice and focused!
Now that you've gotten OctoPrint up and running, I highly recommend updating your Ender 3's firmware. Why? The newer versions of Marlin add thermal runaway protection, which helps to prevent 3D printer fires.