I will drive multiple a4988 drivers running nema17 from esp32 using arduino IDE. How can I calculate how much current it will draw for multiple (say 10pcs, 20pcs, 30pcs and so on) of a4988 for the:
5v (VDD) input on the a4988?
12v (VMOT) input of the a4988?
It is this nema 17 motor - 17HS4023:
Voltage : 12 V Current: 0.7 A / phase
This is what my powersupply looks like whith 1 motor
If you are trying to determine your power supply requirements then looking at the output from your supply is a good starting point. That will be more relevant here than the current between your motor and driver.
Keep in mind that the total current draw from each stepper motor can vary depending on your microstepping mode and the specific microstep position that the motor might hold at, so I would recommend applying a decent safety margin to help ensure your supply will be able to handle the worst case scenario. It looks like the regulators and power supplies you linked to all claim to handle at least a few amps, so they might be okay, but I cannot vouch for their quality or functionality. You might also consider one of our regulators or wall power adapters.
As I mentioned before, I would suggest applying a decent safety margin over what your supply is drawing now. A conservative estimate would probably be to double that, but a lower margin would probably be okay too, depending on the details of your application.
I am not sure how much current your ESP32 can source, but the VDD supply current required by the A4988 should only be a few milliamps. You could look at the current in-line with your VDD supply using your multimeter and check that against your ESP32’s documentation to get a more confident assessment of that.