I have setup two ESP32-CAMs, sharing the signal from a PIR sensor via an optocoupler.
Plus I have a 12V LED ring on a 5V to 12V booster, turned on/off by a relay.
The ESP32s go to deep sleep, wake up on the signal from the PIR sensor, turn on the 12V IR LED ring, take some photos and go back to deep sleep.
When they are on three separate power circuits, they seem to work well.
Is it safe to connect all these to the same USB output from an USB power bank?
Or can it be done safely at all?
(Could be similar to this question but I'm not sure.)
I am new at this and I don't have any intuition about whether that would create odd voltages and currents that might damage the components on the long-term, as they keep turning on/off and draw varying amount of power.
Instead of three USB connections like this:
(trying to illustrate only the power circuits)
I would like to power them on one USB connection:

