Here is the code for testing Motor DC Driver BTS7960 BEN-MD240S1 Do some wiring as…