I would like to build an H-Bridge with 4 transistors, which can be controlled by arduino. I would like to use it to discharge a capacitor (charged to any voltage between 0-30V) over a solenoid.
Here is a circuit I found:
(Source: What Is an H-Bridge? - Build Electronic Circuits)
I understand I have to use NPN transistors for the lower ones. I can control them by simply using an I/O and set it to HIGH (+5V). The voltage drop of points 3 and 4 to ground will always be 5V.
But I don’t know how to deal with the PNP transistors. From what I understand, I need a certain voltage difference between the base and emmitter to open the transistor. If I would set VCC to 10V I could still use HIGH = 5V. But what can I do if the circuit shall work with an arbitrary voltage VCC between 0-30V?
Thanks for your help.