Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-a6-v1.3sp + 0.5V Analog Input
#2
you can see this code for analog 0-5v input.
Code:
  - platform: adc
    pin: 39
    name: "A1 Voltage"
    update_interval: 5s
    attenuation: 11db
    filters:
      - lambda:
          if (x >= 3.11) {
            return x * 1.60256;
          } else if (x <= 0.15) {
            return 0;
          } else {
            return x * 1.51;
          }
Reply


Messages In This Thread
KC868-a6-v1.3sp + 0.5V Analog Input - by boneless - 05-23-2025, 01:22 PM
RE: KC868-a6-v1.3sp + 0.5V Analog Input - by admin - 05-24-2025, 12:40 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)