Control the current flow between a BLDC motor, a battery and a charger
![userHead](https://dfimg.dfrobot.com/dfPortrait2.png)
Hello,
what components do I need in order to control programmatically the current flow between a BLDC motor, a battery and a charger?
The motor is a BLDC hoverboard motor 36V 4.4A and the battery is 36V 5A.
please see image:
![](https://dfimg.dfrobot.com/650b2862aa9508d63a4318a5/enshopforum/9d1f21a2ed0ee0620be0e0c0d7342f5e.jpg)