Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Analoge input for door sensors?
#1
Hi,
I've just noticed that the board has 4 analog input. Can I use those for switches? I have 3 magnetic reed switches (door sensors) that I'd like to connect there.



I use this board with HomeAssistant with esphome. If it's possible to connect the switches to the analog input what is the esphome code for them?

Thanks!
Reply
#2
suggest you connect with digital input port.
if you MUST want use by analog input , it's ok, just need connect with a extend 5v power supply, because of analog input use by dc 0-5v. Also the cable can't too long. you can config by esphome to read the ADC data. here is video tour: https://www.kincony.com/forum/showthread.php?tid=3499
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)