open collector output (NPN) - can't wake up MCU

Hello,
I have a microcontroller (STMicroelectronics) that's on a wireless module. It has a wakeup pin that wakes the MCU on a rising edge. It works pretty well when I use a reed switch that closes the wakeup pin with the battery voltage (~4.9 V, the pins are 5V tolerant). I'm told that internally, the wakeup pin has a weak pull down resistor.

Now instead of a reed switch, I'm using a beam sensor that has a "open collector NPN output", and it's active low. For my application, I don't care whether the rising edge or fall edge wakes the MCU, just as long as i wakes the MCU when the beam goes form make-to-break-to-make.

Even after reading up on what open collector means, I don't understand how this sensor should be used to wake up my MCU. If I wire the sensor output directly to the wake-up pin, nothing happens. MCU doesn't wake up.

Only after removing the bean-sensor's output from the MCU act it function correctly. Do I need some kind of pull up or pull down resistor? And would the fix waste battery power?

I'm also unable to measure the sensor output voltage with my Voltmeter. I think this might have something to do with that open collector NPN thing.

Open collector (or open drain, if it's a fet instead of a bjt) means that the device can only pull the output line low, it cannot drive the pin high.

You must provide some other means of pulling that pin up (through a pullup resistor, or using the internal pullup on the microcontroller pin) in order to know when the open collector output is active.

Open collector and open drain outputs are very commonly used, and have considerable advantages in some contexts (for example, consider interfacing two devices that used different voltages, or a microcontroller that isn't always on that has to read a sensor that is always powered; if you have an open collector output, it's trivial, just connect the pullup to the micro's power; if it's push-pull, you need to switch off the signal somehow)

DrAzzy:
You must provide some other means of pulling that pin up (through a pull-up resistor, or using the internal pull-up on the microcontroller pin) in order to know when the open collector output is active.

If the STM device is specified as having a "weak pull down resistor", then it is unlikely that it can be configured to be a pull-up instead.

If you provide a 4k7 pull-up, this will most likely override the internal one, and you can then use the open-collector output, given that the rising edge wake-up will only actuate when the sensor releases its open- collector output.

If you want it to operate otherwise, you want to use an inverter gate such as in a 74HC14, or perhaps a transistor. The advantage of using the 74HC14 is that you have five other inverters to use for whatever you find a need as well.