I have a 3.3VDC microcontroller (based on Nordic nRF52840) with digital inputs which I need to interface to a device that outputs slow pulses (1 second) via an "open collector output".
The device's manual describes its output as follows: "The pulse output is an electronic switch that operates much like an ‘open collector’ transistor." The output can be configured as Form A or Form C, and the pins are labeled K (Common), Y (normally open) and Z (normally closed).
The documentation provides the following ratings for these outputs:
- Outputs are isolated from ground and each other.
- Outputs are rated for DC only, from 3.0 volts to 30.0 volts. Observe polarity.
- The circuits will sink up to 15 milliamperes (DC) for Form-C outputs and up to 5 milliamperes (DC) for Form-A outputs.
- All electronic pulse outputs incorporate opto-isolators to electrically isolate the device circuitry from the devices receiving the pulses.
This is all the info I'm provided by the manual.
I need to know the proper way to connect this output to my MCU.
Here's the way I think it could be done, using a pull-up resistor, but I'm not sure about it. As I understand it, the open-collector output means the output is basically floating when off, allowing the full 3.3V to appear at the MCU connect point. Then when the output turns on, it shorts Y to K, thus dropping the 3.3V across R1, leaving 0V at the MCU connection point.
Is this correct? Am I missing something?
schematic
simulate this circuit – Schematic created using CircuitLab
-
1\$\begingroup\$ What does the documentation say about the polarity of the contacts? (from your "Observe polarity"). It sounds like you may have optically isolated outputs. \$\endgroup\$Jack Creasey– Jack Creasey2021年10月25日 22:23:20 +00:00Commented Oct 25, 2021 at 22:23
-
\$\begingroup\$ @JackCreasey Thanks for your reply. It says the following: "All electronic pulse outputs incorporate opto-isolators to electrically isolate the device circuitry from the devices receiving the pulses." (I updated my question to include this.) So yes, they are optically isolated. Does this make a difference? \$\endgroup\$Ryan Griggs– Ryan Griggs2021年10月25日 22:26:36 +00:00Commented Oct 25, 2021 at 22:26
-
1\$\begingroup\$ You have it correct. leading edge will go low with Normally Open. Form A on pin Y and K is common 0V. Pullup is your choice . The interface could be protected from ESD handling if external. \$\endgroup\$Tony Stewart EE since 1975– Tony Stewart EE since 19752021年10月25日 22:36:35 +00:00Commented Oct 25, 2021 at 22:36
1 Answer 1
If your outputs are optically isolated then you have to be aware of which pin on the output is which. The interface would look like this:
schematic
simulate this circuit – Schematic created using CircuitLab
Explore related questions
See similar questions with these tags.