Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using 5v-12v as input sensor
#1
Question 
hi all
I would like to use IR Photoelectric Switch such as :  PNP, Normally Open sensor. E3F-DS30P1
Ideally, I would use the 12v from the A6 board to power the IR switch, I'm only concerned about the output of the switch...
Can I connect it safely to one of the Digital inputs or Analog inputs?

The E3D-DS30P1 will output the exact same voltage as it get's on it's the vcc leg when it detects an object.

thanks!

https://www.bing.com/search?q=PNP%2C+Nor...E3F-DS30P1
Reply
#2
it's dry contact signal of E3F-DS30P1. so just connect to KC868-A6 board's digital input port.
Reply
#3
i just want to double check before i burn the board Smile

Are you sure it's a dry contact? the  E3F-DS30P1 is a PNP that have just 3 wires and the output voltage is the same as the input. (sorry, i'm not electrician)
meaning that if the input is 12v, the output will also be 12v.

i have several similar devices working in different voltages can you confirm the following?

1. will 5V entry on digital input port is OK? 
2. will 12V entry on digital input port is OK? 
3. will 24V entry on digital input port is OK? 

[Image: PHI1072896-E3F-DS30P1-PNP-Photoelectric-...pen-02.jpg]



thanks
Reply
#4
(09-08-2024, 11:26 AM)admin Wrote: it's dry contact signal of E3F-DS30P1. so just connect to KC868-A6 board's digital input port.

this PNP - Normaly open sensor : the black will output positive voltage signal when object is detected. 
the output voltage is the same as the input 6-36v
[Image: PHI1072896-E3F-DS30P1-PNP-Photoelectric-...pen-02.jpg]
Reply
#5
if you use KC868-A6, the power supply is DC12v, so the digital input port MAX 12v. you can connect your sensor with DC12V power, so it output 12v signal, can use for KC868-A6's digital input port.
Reply
#6
(09-09-2024, 11:03 PM)admin Wrote: if you use KC868-A6, the power supply is DC12v, so the digital input port MAX 12v. you can connect your sensor with DC12V power, so it output 12v signal, can use for KC868-A6's digital input port.

thankyou for the clarification
Reply
#7
Bug 
Hi 
i tested it but it doesn't work as expected.
I've connected the output of the sensor to D3, and it automatically changed the sensor to be "High" (i guess because the output of A6 on digital pins is 12v).
with this the sensor does not work (it's always "on")

See this wiring diagram.

i'm using ESPHome with this configuration:
Code:
binary_sensor:
  - platform: gpio
    name: "Sw1"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "E3F-DS30P1"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 2
      mode: INPUT
      inverted: true
Reply
#8
let "inverted: false" have a test.
Reply
#9
(09-11-2024, 11:42 PM)admin Wrote: let "inverted: false" have a test.

i did that, it doesn't help.

the A6 have constant 12v on D3 which is feed to the output of the PNP sensor. in that case, even if the sensor is triggered, D3 will still see 12v.

i also tried setting mode to  INPUT_PULLDOWN or  INPUT_PULLUP but it's not acceptable with the pcf8574. 

(btw-how can i upload photos/wiring diagrams here?)
Reply
#10
I've added a 50k resistor between each digital input and GND.
with that i was able to get proper reading from PNP sensor.

1. is that acceptable workaround? or would the constant current from D2 to GND harm the A6?
2. what is a recommended resistor from D2 to GND? (i tested 10k, and 50k, they both worked well).


Code:
^
|------------|                       |
|            |---Brown---VCC 12V-----+            |--------------|
| PNP Sensor |                                    |              |
|            |---Black--output(12v)-----+---------| D2           |
|            |                          |         |              |
|            |                       | R=50K |    |  Kincony A6  |
|            |                          |         |              |
|            |---Blue---GND-------------+---------| GND          |
|------------|                                    |--------------|
Reply


Forum Jump:


Users browsing this thread: