I’m working on an Arduino project where I want a motor( currently using a dc motor) to generate electricity and then reverse the polarity if it’s spun the wrong way. Any one know how to achieve this?
I want to spin the motor in either direction while keeping the polarity the same (or having a component that corrects the polarity).