Label Edge Gap Detection

we have Acquired a device to read label gaps , could i get some guidance on hooking this up to an Arduino UNO, we will be running NPN , the Diagram is Below , thank you everyone
labelgap

I strongly suggest that you post a link to the user manual of that device.

If you are using the NPN version and you are driving it at 10 volts, you could do it with two equal resistors, say 4.7k each.
One is connected in place of "load" (between Brown and White). The other is connected between White and Blue. The arduino ground must be connected to blue as well. If you are using a different supply voltage, you must balance the resistor values accordingly to match the Arduino. The white is then connected to the selected arduino pin.

  • Connect the Blue wire to Arduino GND.
  • Check whether there is any voltage on the White wire (hopefully none).
  • If no voltage on White wire connect to an Arduino input.
  • Use PinMode to set the Arduino input to INPUT_PULLUP.
  • The Arduino pin should now be high, and go low when a gap is detected.

This is what I would start with. The resistor value is not critical, 1k will more than likely do.

Use a volt / multimeter between the bottom of the resistor and GND (minus) to measure the voltage. The reading should switch between 5V and 0V.

Once that works with the given readings, you can hook the circuit up to the Uno like you hooked it up to the volt meter.

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