Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By froussel
#80499 I am trying to control the PWM pin of a VNH2SP30 that triggers at 3.7V under 5mA with an ESP8266
Image

A converter does not give enough intensity with
Image

I succeeded with
Image
But the controls are reversed (not serious) and when the engine stops through R2 28 mA and when running is 4mA.
How to reverse so that at rest we have a weak current ?
User avatar
By rudy
#80501 If you are only trying to provide an input to the VNH2SP30 then you don't need to use 200 Ohms. Change the resistor to 2K2, or something at that level.

If you are trying to also drive an LED with that signal, then I would suggest using a buffer for the LED alone.

If you want to invert the logic level back to normal, then use two transistor stages.

Maybe I am not understanding your problem correctly. :?
User avatar
By froussel
#80502
rudy wrote:If you are only trying to provide an input to the VNH2SP30 then you don't need to use 200 Ohms. Change the resistor to 2K2, or something at that level.


200 ohms because the VNH pulls 5mA, with a resistance of 2.2K the tension crumbles and goes well below the 3.7V necessary

Which schema with 2 transistors ?
User avatar
By btidey
#80510 I think you can use common base method for this to avoid inversion in single stage.

CBase.jpg


GPIO high turns transistor off and allows output to be pulled up. GPIO low turns transistor on and sinks current. Note common base does not amplify current so any sink load goes through GPIO and should be kept below about 10mA.

If you need higher current then I think you will need 2 transistor version.
You do not have the required permissions to view the files attached to this post.