My setup is currently a SN74HC595N connected to BC327 transistors. And should supply 8V to the individual segments. I have a display with a common cathode.
Somehow I have planned something wrong and don't understand what my problem is. Below is my diagram, to keep it simple I have only drawn one LED.
The shift register pin outputs only 3.3V. It will not be able to turn off the pnp transistor. You need close to 8V on the gate to do that. So the pnp will be on at all times, or would be, but...
No common ground between the 8V supply and the rest of the circuit, so the pnp will never switch on.
No current limiting for the led segment. If the forward voltage of the segment is 8V, you need a supply of ~10V and a current limiting resistor
So I would need to connect the GND of my ESP with the GND of my 8V? What other solution is there so that I can control my 7-Segment display with a circuit like this?
Because switching the segments on/off on the "low side" (between the segment's cathodes and ground) is easier. For example that TPIC6B595 chip I mentioned can switch high voltages and currents such as your segments, and it is also a shift register just like 74HC595. So it would replace the 74HC595 and all the necessary transistors, making your circuit much simpler.
Assuming you are not multiplexing, there may be another option. Instead of connecting the two power supply grounds together, you could connect the two V+'s together. Then the 3.3V outputs of the 595 could switch the PNPs directly. The 8V supply terminals would in effect become +3.3V and -4.7V. The -4.7V would be connected ONLY to the common cathodes, not to anything else in the circuit.
But this depends on how you have the ESP32's power supply set up. Are you deriving it from the 8V supply, or somewhere else? Are you powering directly at the 3.3V pin, or supplying a higher voltage at Vin? That's not shown in your schematic. Can you post a power diagram?
Currently I am using a USB port of my computer so 5v. I want to control 4 digit with this setup to create a countdown. But later I will use a step down converter to supply the ESP from the 8Vs