Control whether cables are cut or not?

Hello everyone.

I want to check if any of the 3 wires between Arduino and sensor are cut. How can I do this from within arduino?

ARDUINO SENSOR

5V ---------------------------------------- 5V

GND ---------------------------------------- GND

D4 INPUT ---------------------------------------- SENSOR DATA

Read the sensor, if you get nothing, one of the wires is cut.

Thanks. But sensor is digital, not analog.

I'm not sure how being digital would make a difference.

The first thing I would do is disconnect each wire the two wires etc. and document what happens. From there is should be obvious how to approach a testing scheme.

An ANALOG reading on the 5 volt line would give an indication of either GND or 5V not being there.

1 Like

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