Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using 5v-12v as input sensor
#13
(02-01-2025, 03:01 PM)tanoshimi Wrote: I've just come across this thread having almost exactly the same problem: I have a 12V PNP sensor, which I've wired as follows:

Brown: 12V
Blue: GND
Black: DI1 (or any of the other DIx pins)

The sensor itself has a red LED that indicates when it has been triggered. With just Brown and Blue connected, it works correctly, and I can use a multimeter to measure the output on the Black (output) wire changing from 0V to 12V.
But as soon as I connect the Black wire to any of the six "Dry Input" pins, the sensor immediately reads as if it has been activated.

According to the schematic, the DI pins should go to the anode of an optocoupler, but it seems to be actively pulling up the signal.

Oh no wait, hang on... I was getting IN_D1 mixed up with INPUT_D1. So, yeah, the inputs are all actively being pulled up to 12V through the 2kΩ resistors R38 - R43. That's.... a pain.

Can anyone provide a clear example of how you're meant to wire a PNP/NPN sensor then? (and would it be different if the sensor was NO/NC?)

digital input short with GND, just 0V means trigger. it's logical ON
digital input =12v, NOT trigger. it's logical OFF
Reply


Messages In This Thread
using 5v-12v as input sensor - by amararsa24s - 09-08-2024, 11:05 AM
RE: using 5v-12v as input sensor - by admin - 09-08-2024, 11:26 AM
RE: using 5v-12v as input sensor - by amararsa24s - 09-09-2024, 07:08 PM
RE: using 5v-12v as input sensor - by amararsa24s - 09-09-2024, 06:10 PM
RE: using 5v-12v as input sensor - by admin - 09-09-2024, 11:03 PM
RE: using 5v-12v as input sensor - by amararsa24s - 09-10-2024, 07:32 AM
RE: using 5v-12v as input sensor - by amararsa24s - 09-11-2024, 05:08 PM
RE: using 5v-12v as input sensor - by admin - 09-11-2024, 11:42 PM
RE: using 5v-12v as input sensor - by amararsa24s - 09-12-2024, 06:31 AM
RE: using 5v-12v as input sensor - by amararsa24s - 09-14-2024, 11:11 PM
RE: using 5v-12v as input sensor - by tanoshimi - 02-01-2025, 03:01 PM
RE: using 5v-12v as input sensor - by twostar - 02-02-2025, 12:13 AM
RE: using 5v-12v as input sensor - by admin - 02-02-2025, 12:39 AM
RE: using 5v-12v as input sensor - by tanoshimi - 02-02-2025, 09:28 AM
RE: using 5v-12v as input sensor - by twostar - 02-02-2025, 10:04 AM
RE: using 5v-12v as input sensor - by tanoshimi - 02-02-2025, 10:26 AM
RE: using 5v-12v as input sensor - by twostar - 02-02-2025, 10:35 AM
RE: using 5v-12v as input sensor - by tanoshimi - 02-02-2025, 10:44 AM
RE: using 5v-12v as input sensor - by twostar - 02-02-2025, 11:21 AM
RE: using 5v-12v as input sensor - by tanoshimi - 02-02-2025, 07:47 PM
RE: using 5v-12v as input sensor - by twostar - 02-03-2025, 03:44 AM
RE: using 5v-12v as input sensor - by tanoshimi - 02-03-2025, 07:56 AM
RE: using 5v-12v as input sensor - by admin - 02-03-2025, 05:32 AM
RE: using 5v-12v as input sensor - by twostar - 02-03-2025, 05:35 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)