Please Help me

I need code esp32 H Bridge BTS7960 home Assistant

2 Likes

Thank you for your wonderful response. I am sorry that I asked for help, but you must know that not all people have a high level of experience in the field of development, and everyone faces problems, and some see these problems as small and trivial, and others see them as very large. Thank you. :tulip:

Don’t be an ass. Surely pointing out what info we need in order to help you IS in fact helping you.

Wiring diagram, yaml, logs.

The diagram, do it with pen and paper and photo it with your phone if you don’t have circuit software.

3 Likes

Thank you my friend, the problem has been solved

It was helpful, because if you read and follow that link you will get more and higher quality help.

2 Likes

For the benefit of others post how you fixed it.

As per #19

1 Like

I entered this code and connected the H Bridge BTS7960 and it worked great, and measured my fan speed.

 sensor:

  - platform: pulse_counter

    pin: GPIO13

    name: PWM Fan RPM

    id: fan_pulse

    unit_of_measurement: 'RPM'

    filters:

      - multiply: 0.5

    count_mode:

      rising_edge: INCREMENT

      falling_edge: DISABLE

    update_interval: 3s

output:

  - platform: ledc

    pin: GPIO12

   

    id: fanhub_pwm

fan:

  - platform: speed

    output: fanhub_pwm

    name: "PWM Fan"
1 Like

You still didn’t read it did you.

EDIT thanks for fixing the quoting :slight_smile:

2 Likes

I read it and it was useful, but I needed to control my fan speed with the ability to measure the fan rotation speed.

#11 explains how to format the code you post.

2 Likes