Smart Home Automation Forum
Help with pulse_counter config - 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-A16 (https://www.kincony.com/forum/forumdisplay.php?fid=25)
+--- Thread: Help with pulse_counter config (/showthread.php?tid=3373)



Help with pulse_counter config - MnM - 10-09-2023

Hi,

I would like some help to configure an input for count my water with pulse_counter

I need to use a port that is connected directly to the ESP module.

What PIN number should I define in my config:

sensor:
  - platform: pulse_counter
    pin:
      number: XX??
      mode:
        input: true
        pullup: true



 and which actual pin on the board that will be? (I suspect either GPIO 01, 02 or 03??)

Thanks


RE: Help with pulse_counter config - admin - 10-09-2023

yes, you can try, do you have test it?


RE: Help with pulse_counter config - MnM - 10-09-2023

I have not test it because I don't know what try.
What PIN number should I use in the above example assuming I will use GPIO01. Is that PIN 01?

Is this the GPIO Pins?

DS18B20/DHT11/DHT21/LED strip -1: 32
DS18B20/DHT11/DHT21/LED strip -2: 33
DS18B20/DHT11/DHT21/LED strip -2: 14

Is:

GPIO01 = 32?
GPIO02 = 33?
GPIO03 = 14?


RE: Help with pulse_counter config - admin - 10-10-2023

yes, all can use for digital input.


RE: Help with pulse_counter config - MnM - 10-10-2023

(10-10-2023, 12:07 AM)admin Wrote: yes, all can use for digital input.

Posting for information only so other users that want same kind of feature can use.

OK I use used PIN 14 (GPIO3), VCC (12v) and ground:

   

This is the relevant part of the ESPHome yaml:

sensor:
  - platform: pulse_counter
    pin:
      number: 14
      mode:
        input: true
        pullup: true


It all works as it should.


RE: Help with pulse_counter config - admin - 10-10-2023

thanks for your information.