1
$\begingroup$

I'm building this simple DIY filament runout sensor for Ender 3 V2 based on this model from Thingiverse.com. I am not sure about the wiring, it seems trivial, I probably need to use 'normally closed' (NC). Below is the result so far.

DIY runout sensor without wires

DIY runout sensor with wires

I found this schematic from a YouTube video which uses a different sensor:

schematic

Based on the switch I used and the schematics shown, I guess I need to connect only two wires as follows:

  • Switch NC to board Red 5V (most left pin of the connector in the schematic image)
  • Switch C to board White Signal (most right pin of the connector in the schematic image)
  • No connection to the second, black Grounding pin, as shown on the schematic image
  • No connection to the NO pin on the switch

Is that wiring correct?

Lastly, I wonder how the connector is called that is used on the Creality v4.2.2 board, and if I need to use a transistor?

$\endgroup$

1 Answer 1

3
$\begingroup$

That’s a cool print for your filament runout sensor. I’m planning on doing this same mod to my Ender 3 V2 in the next week or two as well.

I’ve done a decent amount of research on how to implement this so hopefully I can answer some of your questions.

Wiring

I found this schematic of the V4.2.2 motherboard online.

Schematic drawing of the Ender 3 v2 4.2.2 motherboard

Here is the pdf download link to the Ender 3 V2 v4.2.2 schematic (clicking on the link immediately downloads the pdf).

It looks like for our motherboard (if you also have the V4.2.2), the pinout is:

  • Left pin: Sensor Signal (‘S’)
  • Middle pin: Ground (’G’)
  • Right pin: Vcc (‘V’)

Upclose photo of the Run Out Sensor connection on a 4.2.2 motherboard with the three pins notated as S, G, and V

Based on the schematic, the Sensor Signal pin is pulled HIGH. This means to trigger the sensor, you want to connect the Sensor Signal pin to Ground.

The wiring for the switch is:

  • 'C' pin on switch -> Sensor signal pin on motherboard
  • 'NC' pin on switch -> Ground pin on motherboard

The 'NO' pin on the switch is left unconnected.

When the filament runs out, the switch opens and the ‘NC’ pin is connected to the ‘C’ pin. This pulls the Sensor Signal pin on the motherboard to LOW, which is what triggers the printer to pause.

Here is a diagram of how the switch should be wired to the motherboard.

Photo of a roller micro switch with drawn wiring to the Run Out Sensor on a 4.2.2 motherboard showing the 'C' switch pin going to the 'G' sensor pin and the 'NC' switch pin going to the 'S' sensor pin

Firmware

You’ll also need to update the firmware on the motherboard. This isn’t too hard if you’ve never done it before.

I’d recommend installing the JyersUI firmware as detailed in the video:

Just follow along with the guide to install it. The Jyers firmware also has some really nice UI improvements. Check the video description for links to the firmware.

If you don’t want to go that route, or you if have the wrong kind of motherboard chip (see video), you can also download the official creality firmware to enable the filament runout sensor.

The link to the firmware list is here: Official Ender 3 V2 firmwares

I’m pretty sure the one you’ll want is:

Marlin-2.0.1-HW-4.2.2-mainboard-V1.1.2-Compatible with BLTouch and filament detection

I didn’t use the official firmware, and there aren’t any release notes (of course), so I’m only 90% sure that's the right one 😛.

At any rate, it might be wise to check your current firmware and make sure you download that too. That way you can revert your printer to its original firmware, just in case something goes wrong.

JWST connectors

Finally, the connectors on this board are the very common JST connectors. Here is a link to a relatively inexpensive JST connector Kit and crimping tool: Connector kit w/ crimp tool

It’s pretty easy to crimp and install the connectors yourself. Here is a quick video on how to do it:

If you’re good at soldering you could also just hard solder the switch to the board if you don’t want to buy the connectors and crimper. Although I’d recommend against it.

Hopefully that helps. Good luck :)

P.S. I'll post how mine turns out once I'm finished.

$\endgroup$
3
  • $\begingroup$ Thank you for the very detailed answer 👍🏻. $\endgroup$
    – Bob Ortiz
    Jan 9 at 9:46
  • $\begingroup$ We use the same board. I recommend you checkout mriscoc firmware instead of Jyers. You won't regret it. It's a huge step forward and we'll maintained, Jyers unfortunately isn't maintained for quite a while now. I move two printers from Jyers to mriscoc. $\endgroup$
    – Bob Ortiz
    Jan 9 at 10:28
  • $\begingroup$ The Amazon URL seems to link to a non-JST connector tool. The connector in used here seems to be the JST-PH-3A. $\endgroup$
    – Bob Ortiz
    Jan 9 at 12:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .