Simplified IO-link implementation

Hi,

I am trying to implement a simplified IO-Link communication (I only need to send one command to active the sensor).
I am pretty sure I should be able to connect the comm line of the IO-Link sensor to two pins on the arduino, one to send the messages and another one to receive them.

However, my big hurdle is that my mega is a 5V device and my sensor is a 24V device. I am a not sure, but I believe I should be able to isolate the arduino and the sensor using two transistors?

Would using an npn transistor with the arduino connected to the gate (5V) and 24V on the source, I should be able to generate a 24V signal from my 5V signal. However, do I risk burning my arduino?

Hello gastoncata

Take a look to use optocouplers for your project.

I was thinking of using the circuit diagram below because I am dealing with very low power and my local electronic store does not have optocouplers in stock:
I have some npn transistors that can go to over 30V with a threshold voltage of 2V

Gastoncata,

The transistor in your schematic is in the common collector or emitter follower mode.

It does not do what you are expecting it to do.

The voltage on the emitter will be approximately 5V - 0.7V = 4.3V.

An npn bipolar transistor (as shown in your schematic) does not have a gate or source terminal. It has emitter, base and collector terminals

I picked up some octocouplers this morning, I will try them over the weekend!

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