Thank you for your help.
Please teach by controlling DC motor with brush.
I heard that if it doesn't work for a long period of time, an oxide film may form on the brush and it may not work.
Please let me know if you know any software or hardware measures.
I am studying with a motor voltage of 6V.