M12connector wiring diagram

The mfg specifies it as a "5-pin M12 initiator plug". I'll venture a guess that you will not find a "cable" to use this with an Arduino.

I have tried looking for some sort of adapter that would allow me to use both the sensor and arduino but I am stuck. Does anyone know whether this is possible or am I out of luck.

JohnRob: The mfg specifies it as a "5-pin M12 initiator plug". I'll venture a guess that you will not find a "cable" to use this with an Arduino.

M124pinout

M125 pin connectorpinout

overview | cabel | plug connections and cables for individual connection solutions | accessories for microsonic ultrasonic sensors | overview | cabel

I see, but then how would I be able to code the sensor and have it used with the arduino? I have only ever used the HC-SR04 ultrasonic sensor and that requires two pins, one for echo and one for trig, so how would I be able to use this one.

M124 pin Connector Color Code

pico+15/WK/I | ultrasonic sensor | current output 4-20 mA ✓ M18 housing ✓ variant with 90° angled head ✓ Made in Germany ✓ personal support ✓ pico+15/WK/I

KST5G-2/M12 | plug connections and cables for individual connection solutions | accessories for microsonic ultrasonic sensors | KST5G-2/M12

I am using the pico+15/WK/I ultra sonic sensor for this project I am working on. Essentially I want to know distance using this very tiny sensor however the connector on the sensor is a 5 pin M12 connector. The arduino has no apparent plug that I can see (however I am often wrong). Please help.

Image

M12 a coded pinoutwiring diagram

Which Arduino? What supply voltage will you be using for the sensor (10 ~ 30)? You may need a voltage divider to lower the output voltage to suit your Arduino, you cannot apply more than Vcc + 0.5 volts to an Arduino pin.

The wiring diagram is shown in the 4th image. You need a 10-30v supply. Use a 250 ohm load resistor and measure the voltage across it.