[Faransky] has created a very impressive Arduino function generator that doesn’t skimp ... 3.7V Li-Ion battery and TP4056 charger, with a DC-DC boost converter to get 5V for the Arduino.
The shaft drives a brushless DC motor to convert the energy ... By hooking up a variable load and Arduino to the rectified output of the motor, he was able to measure the output power and efficiency.