Hello, I am a college student studying electrical engineering in Korea.
I want to implement regenerative braking using a BLDC electric bicycle hub motor for my college assignment.
I want to charge the battery by rectifying the three-phase AC current with six diodes and then using a DC/DC converter to input 10V~40V, 0~20A and output constant voltage 42V, 0~10A.

I tried to demonstrate it with a breadboard by referring to the DC/DC converter below, but the output voltage is not constant and increases to the same value as the input voltage. ex) in 10V > out 10V, in 40V > out 40V
I am curious as to why this problem occurs.
Also, the battery has a charging terminal and a discharging terminal. Can I use the electricity generated by regenerative braking by connecting it to the charging terminal?
The specifications of the product in use are as follows
1. bldc motor 36V 350W rated speed 330rpm
2. battery 36V 100000mAh
For the bldc motor, I have confirmed that it uses a gear clutch with a freewheel function. Could the reason why the counter electromotive force is not generated when the wheel rotates be due to the freewheel gear clutch? I wonder if the counter electromotive force can be generated if the gear clutch is welded so that the freewheel function does not work on YouTube.
I want to implement regenerative braking using a BLDC electric bicycle hub motor for my college assignment.
I want to charge the battery by rectifying the three-phase AC current with six diodes and then using a DC/DC converter to input 10V~40V, 0~20A and output constant voltage 42V, 0~10A.

I tried to demonstrate it with a breadboard by referring to the DC/DC converter below, but the output voltage is not constant and increases to the same value as the input voltage. ex) in 10V > out 10V, in 40V > out 40V
I am curious as to why this problem occurs.
Also, the battery has a charging terminal and a discharging terminal. Can I use the electricity generated by regenerative braking by connecting it to the charging terminal?
The specifications of the product in use are as follows
1. bldc motor 36V 350W rated speed 330rpm
2. battery 36V 100000mAh
For the bldc motor, I have confirmed that it uses a gear clutch with a freewheel function. Could the reason why the counter electromotive force is not generated when the wheel rotates be due to the freewheel gear clutch? I wonder if the counter electromotive force can be generated if the gear clutch is welded so that the freewheel function does not work on YouTube.