Hi Guys, i am new to this forum.
I have a problem:
i am trying to connect a sensor (24 v ) to Arduino. I looked everywhere, but i still dont understand what i am doing wrong. when i measure the sensor Output sinal , i get 24 v. thats too much for Arduino. Therefore, i bought a 4 channel Optocoupler. i did the wiring, but somehow , i am getting more than 24v from output. i can't connect the output to arduino, otherwise i will fry it.
Here's a small drawing of how i tried to do it. maybe someone can help me .
What is this sensor?
Hi Jim . Is a reflexion sensor .
Here's a list with the devices I have
-
Sensor
-
LightingWill Switching Power Supply 24 V 2.5 A 60 W Power Supply, LED Transformer Switching Converter AC 230 V to DC 24 Volt, Adapter Transformer for LED Strip Lights, 3D Printer, CCTV, LED Lighting LightingWill Schaltnetzteil 24V 2,5A 60W Netzteil, LED Trafo Schaltwandler AC 230V auf DC 24 Volt, Adapter Transformator für LED Streifen Lichter, 3D Drucker, CCTV, LED Beleuchtung : Amazon.de: Baumarkt
3.4-Kanal-Optokoppler-Isolationsmodul, 24V bis 5V 4 Kanal Optokoppler Isolator PLC Signalpegel Spannungswandler Modul 4-Kanal-Optokoppler-Isolationsmodul, 24V bis 5V 4 Kanal Optokoppler Isolator PLC Signalpegel Spannungswandler Modul : Amazon.de: Gewerbe, Industrie & Wissenschaft
4. Arduino Mega 2560
As far as I can tell you have it all connected the right way.
Are you saying that you are seeing 24V between Q1 and GND?
How are you measuring the voltage?
with a multimeter i've tried 01 and VCC on the Optocoupler
If you measure between Vcc and GND is it 5V?
If you measure 24V between Q1 and GND then something is wrong with the optocoupler. Try one of the other channels.
Ive tried with second channel. I am getting 4.83V now. I was worried i did something wrong with the wiring. When i measure O2 and VCC i get 4.82V,measuring VCC and GND i get 5V.
i assume now is safe to connct O2 to Arduino. Thanks alot for your help
Should be OK.
Maybe at first you connected something wrong and damaged 01 output.
that's how i'll learn in future: asking,searching documentation and breaking things
.Thank you very much for your help
Have fun!
