feature-requests icon indicating copy to clipboard operation
feature-requests copied to clipboard

Hbridge switch or output platform to drive solenoids or DC motor

Open raidnet-ms opened this issue 2 years ago • 0 comments

Describe the problem you have/What new integration you would like

I would like to use the Hbridge platform to drive a bistable valve solenoid or a motor without speed control or anything else has a binary output (no speed control, just direction). Please describe your use case for this integration and alternatives you've tried: I tryied the H-Bridge component to drive a bistable solenoid. Unfortunately the Fan Hbridge component seem to work only with a float value that regulates the speed wich is a feauture that is not needed to drive a bistable solenoid (wich actually works as a DC motor to move in or another direction).

As alternative I tryied to use output and switch component but this can cause Issues when fast switching because the solenoid needs a delay of a positive signal to turn on and a delay of a negative signal to turn it off. If for some reason you turn it off before the delay has occoured, it makes the result unstable. I noticed the fan hbridge has a specified function to turn the motor off that would perfectly suited for the solenoid:

  • fan.hbridge.brake: my_fan

Additional context

H-Bridge fan platform https://esphome.io/components/fan/hbridge.html

raidnet-ms avatar Apr 02 '22 18:04 raidnet-ms