Hello, I'm using l298n dc H bridge module to control direction of motor, but if I twirt motor myself it generates current a.k.a becomes generator. What solution to choose and what would be tips for this kind of problem.. I tried using diodes, but that just don't work as I expected.
VeryFastSnail:
what would be tips for this kind of problem
What is the problem?
JimboZA:
What is the problem?
That It generates reverse current and it may fry my MC.
Why will it be turned though....
JimboZA:
Why will it be turned though....
Cuz it's on steering wheel. ![]()
OK, so we know that the motor creates a voltage when it is turned. Now hook it up to the H-bridge driver module (without the Arduino) and measure the voltage on those pins when turning the motor. I would not expect it to send any voltage back up the control lines. You may see volts on the power input terminals.
Now hook it up to the Arduino and measure the voltages again. The tiny amount of current produced by the motor will not be enough to power the circuit and you won't see anything over 1.2V on the power terminals. More likely, it won't go over 0.6V.
If you're really worried, a zener diode on each input or output wire might be useful. Look up how they work but remember all the basic tutorials ignore the real-world limitations of zeners. A zener can only pass a limited amount of current without exploding, so they aren't ideal protection devices for all situations. A high current zener is also a little 'leaky' below its rated voltage, so pick a voltage 0.5-1V higher than your desired protection level.
DC motor voltage is proportional to rotation speed, whether being a motor or a generator, its the same
(ignoring resistive losses). So long as you don't turn it faster than it spins when being a motor, the voltage
generated will be within the supply voltage range of the motor driver.