Use a bidirectional optocoupler for attached any PNP & NPN sensor type

@TomGeorge, @DrDiettrich yes it's strange there is rare information on BiPolar Interface for the industrial application while every MCU has such capability
however one of the issues will be how to convert this 12v pulse signal to 3.3 logic signal


my design

It's fine to ignore my post. I have lots of other things to do. Good luck.

Which "bipolar" do you mean? Interface with bipolar transistors? How is that radically different from unipolar (MOS) interface? Your circuits remind me only on inverse logic, nothing bipolar.

Your circuits make me think that you lack basic knowledge about electronic circuits.

@DrDiettrich BiPolar Interface refers to the @TomGeorge definition,
this is my updated design for interfering with any signal from PNP(High) or NPN (Low) sensor

You won't get a signal because both transistors are always ON.

yes it is always on, but I thought it can detect the change (Falling, Rasing)
but if it is not, what is the possible circuit to detect change?

Why a new name for e.g. connecting switches to a digital input? Switches also are open source or open drain, depending on how they are connected. Adding a pullup/down resistor is much easier than adding a bunch of components for no special gain.

See #15.

but I think in both designs, have to power line wring together
how come a microcontroller pin can read any type of input

Each pin reads a voltage. The project designer has to make each sensor produce a voltage, e.g. by adding a resistor to a button and connect them to Gnd and Vcc.

I still don't figure out which pin of opt should connect to power lines while it may produce hot
how about just changing the TTL from 12v to 3.3 and feeding to the normal opt and in software define to pull-up or pull-down depending on input sensor type

@TomGeorge @anon57585045 since have not gotten any solution for this idea I've changed my mind to used 4 pin connector instead of 3 pin connector, so if any sensor type plug in, then signal will be picked up by related circuits


or

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.