For my project I need to figure out whether I want to use an Arduino Uno combined with an HM-10 bluetooth module, or an ESP32 microcontroller which doesn't need an extra bluetooth module because it has bluetooth included. To make a choice between the two, many aspects have to be compared, one of which is the power consumption. So, my question is: how to calculate the power consumption of option 1 (Arduino Uno + HM-10) and option 2 (ESP32 microcontroller).
These are the specifications:
Arduino Uno:
voltage: 5V
max. current: 200 mA (from Google)
HM-10:
voltage: 3.5V
current: 50 mA
ESP32 microcontroller (from AZ-Delivery)
voltage: 5V
current: 500 mA
At first I just did "P = U x I" with the values above, but I don't think that it's that easy; I am missing some important aspects out most probably.
I doubt a microcontroller would dissipate 2.5W (5V x 500mA) continuously. That device would need a heatsink. Maybe that 500mA draw is short time periods only?
During what condition do those data apply? Is it when the BT transmitter is active? Check up the circumstances.
The 200mA and UNO..... That figure is picked from the wrong place. Each output handles max 20 mA but all outputs can not run at that load at the same time. Max I/O current is 200 mA.
The processor very likely has a large belly pad that is soldered to the copper under it. That also likely has a matching large copper pour on the second side of the circuit board. The rest of the data sheet will tell you.
Therefore, the mounting of the board must allow for air flow around it.
Seem to be missing an understanding of how things actually work here!
The current ratings of the microcontroller - such as the ATmega328 - are not how much current it consumes but how much it can switch to the I/O pins.
The microcontroller does not dissipate the power corresponding to that current, only a small amount corresponding to the voltage drop that happens in the process. At 20 mA, a typical Atmega328 pin drops 500 mV, one tenth of the supply voltage.
So if it was indeed drawing 200 mA from the 5 V supply to drive outputs, and using perhaps an additional 20 mA in executing code, then its actual dissipation would be 100 mW for the code and another 100 mW for the I/O.
Unless you have a "shield" to mount on it and perform essentially all of your interfacing, a UNO is a bad choice for a project; a Nano much more practical.