Making Arduino temperature sensor modules suitable for PLC digital inputs

to make arduino heat sensor modules suitable for plc digital inputs. I need to do this for my Project can you guys help me I need to use optocoupler

Welcome. You are more likely to get help if you were to move your post into the sensors section of the forum.

If you were to provide more detail on the "arduino heat sensor modules" you are referring to, then others may be able to assist you with your project.

It may also help if you were to tell the forum which PLC you are hoping to use and why you need to use an optocoupler?

It will not happen that Arduino will produce modules for your specific needs. Hence your topic has been moved to a different location on the forum.

My teacher said that to me I need to use optocoupler for that

Did your teacher ALSO tell you why you need to use that?

No didn't

Ask because the sensor will need some electronics to condition the signal so an opto coupler can be used. Industry uses thermocouples and PT100 sensors to name a few, neither are optical isolated from the control system.

Hint: Keep the impedance low to reduce noise and a low pass filter never hurts.


with this two

So what do you want to know?

to make arduino heat sensor modules suitable for plc digital inputs

You can only set the temperature signal to go high or low when the temperature goes above or below a temperature that you set with that blue potentiometer
You can't actually read a temperature.
Do you understand?

As a learning exercise try to figure out the ways the two are currently incompatible and then what might be done to make them compatible. If you understand the questions clearly enough then the answer often becomes apparent.

  • Exactly how do the available outputs work?
  • What do they normally talk to?
  • Exactly how?
  • Exactly how do the inputs work?
  • What do they normally talk to?
  • Exactly how?
  • Do you need to convey all possible outputs to the inputs? (Or is a subset sufficient for your purposes?)
  • At what layer is the incompatibility? (electrical, signaling, data formatting, units conversion, etc)

Well do you still need help or have you given up?

I have some bad news, the HW484 V0.2 you show in your picture is a sound sensor, not temperature. Operating voltage is 3.3V to 5.3V, and this sensor provides both analog and digital out. It will work with most Arduinos. This link will help you.

The 817 opto idolator module will not do analog signals as required by the temperature sensors mentioned. The HY-M154 is a cheap and easy-to-use board when it comes to reading digital signals with voltage levels that are not supported by the used microcontroller. Try this link: Arduino Tutorial: HY-M154 / 817 / PC817 Optocoupler Module - Michael Schoeffler

We need to know which Arduino you are using?

What is the make and module number of the PLC (Programmable Logic Controller). Most have specific modules to do what you are trying to do.

Also why it needs opto isolation? Be sure to ask your teacher about the isolation as it does not make any sense with what you have given us.

That doesn't look like a microphone on the end.
I seen that board with temperature sensors, LDRs, microphones, and thermistors connected on the end, it can be anything you want and it looks like a three terminal temperature sensor

The 817 opto idolator module will not do analog signals as required by the temperature sensors

It has not yet been determined that analog is needed, it will work with the D0 output

We need to know which Arduino you are using?

Did not say he was using one.

isolation as it does not make any sense with what you have given us.

Maybe the supply voltage to the module need to be isolated from the PLC supply.

You make to many assumptions.

First I gonne use Arduino uno for this project

Second I asked that question to my teacher and he said this and send this photo : As can be seen in the picture, op Decouplor provides signal switching between 2 different voltages. If you can consider J1 as the arduino logic output port, J2 is the PLC input. of course, this can also be the opposite.

Do you understand what I said about reading temperature?
I can't help if you don't answer my questions.

@1volkan1
How old are you? What grade are you in?

Do you have basic knowledge of electronics - for example, how a diode or transistor is constructed and works?

I agree but all I could find was sound sensor, I do not have any of those modules. Sound sensor (HW-484) – ElectronikaHub
I looked again and came to the conclusion that number is for the PCB, not the module, e.g., "Hardware 484, version 0.2" I also found a magnet sensor and a linear hall with the same number.