2021-01-28, 11:46 PM
esp32 are not less expensive because arduino nano clone is $3. The chip by itself is also the same price but the power consumption is not better. 3v3 is not an advantage because it needs isolation anyway. Also wifi cannot be used for the motor controller to get reliable performance.
So it's possible to use esp32 if you like, and I encourage all possible modifications. I think stm32 would work too, but I am familiar with the atmega series, it is proven and the code much simpler and easier for me to understand. The atmega is sufficient and reliable. I have issues with stm32 that are very difficult to diagnose unfortunately. I would use one of these 32bit processors for a brushless controller, but for brushed I don't see a great advantage.
So it's possible to use esp32 if you like, and I encourage all possible modifications. I think stm32 would work too, but I am familiar with the atmega series, it is proven and the code much simpler and easier for me to understand. The atmega is sufficient and reliable. I have issues with stm32 that are very difficult to diagnose unfortunately. I would use one of these 32bit processors for a brushless controller, but for brushed I don't see a great advantage.