Does not sound difficult.
But . . .
To design a drop-in replacement, it is kinda important to see what you are dropping into. Please post a schematic / sketch / cocktail napkin of your complete circuit as it is now. Power connections, transistors, switches, motors, a block for the Arduino -...