Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with pulse_counter config
#1
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
Reply
#2
yes, you can try, do you have test it?
Reply
#3
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?
Reply
#4
yes, all can use for digital input.
Reply
#5
Photo 
(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.
Reply
#6
thanks for your information.
Reply


Forum Jump:


Users browsing this thread: