Page 1 of 1

M18 Capacitive Proximity Sensor

PostPosted: Thu Apr 12, 2018 1:37 pm
by Priyanshi
Hey, is the sensor compatible with arduino? Some said that an external circuit may be needed to connect it with arduino. Can you help me with the circuit and also with it's code with arduino?


Thanks.

Re: M18 Capacitive Proximity Sensor

PostPosted: Mon Apr 16, 2018 11:33 am
by Idris
Hi Priyanshi,

Yes it is compatible with Arduino You can refer to the M18 Capacitive Proximity Sensor Wiring Diagram

Untitled.png
Untitled.png (26.37 KiB) Viewed 3599 times

Operating voltage: DC10-30V
Output signal: NPN, digital

Since Arduino IO pins is 5V, you can make connection something like this.
Untitled Sketch_bb.png

Then read digital signal at pin 9.

Hope this helps. Thanks.