using 5v-12v as input sensor - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20) +--- Forum: KC868-A6 (https://www.kincony.com/forum/forumdisplay.php?fid=22) +--- Thread: using 5v-12v as input sensor (/showthread.php?tid=6632) |
using 5v-12v as input sensor - amararsa24s - 09-08-2024 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+Normally+Open+sensor.+E3F-DS30P1 RE: using 5v-12v as input sensor - admin - 09-08-2024 it's dry contact signal of E3F-DS30P1. so just connect to KC868-A6 board's digital input port. RE: using 5v-12v as input sensor - amararsa24s - 09-09-2024 i just want to double check before i burn the board 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? thanks RE: using 5v-12v as input sensor - amararsa24s - 09-09-2024 (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 RE: using 5v-12v as input sensor - admin - 09-09-2024 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. RE: using 5v-12v as input sensor - amararsa24s - 09-10-2024 (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 RE: using 5v-12v as input sensor - amararsa24s - 09-11-2024 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: RE: using 5v-12v as input sensor - admin - 09-11-2024 let "inverted: false" have a test. RE: using 5v-12v as input sensor - amararsa24s - 09-12-2024 (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?) RE: using 5v-12v as input sensor - amararsa24s - 09-14-2024 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: ^ |