Should I connect 12v sensors ground to arduino

hello I want to use a sensor that's input voltage is 12-24v I would like to know if I should connect to the same ground or not my Arduino will be powered using usb connection to my pc to get the serial data

so should it look something like this?

Read the data sheet.

1 Like

Manufacturers state how their devices should be used.

1 Like
  • For a 5V Arduino, if the output of the sensor is greater than 5V you need to shift this voltage to 0V to 5V.

Is it 5V on the yellow wire?
If not, you will damage the Uno
If yes then those connections are OK

Hello the output is 0-2v

It is Chinese not many data on it just the input which is 12-24v and output 0-2v

  • 0-2V seems like an odd voltage range.

  • If you are not 100% sure, you will need to confirm this voltage with a scope.

  • You could run 0-2V thru an opto isolator.

Hello I just checked and the product page says 0-5v sorry for th misleading information

  • :+1:

Yes, you need to connect sensor and arduino grounds together like you have on your scheme.

Then OK
See post #5

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