I have only managed to look at this now and I'm afraid I have no solution.
When you say "RAW is like the VIN pin/raw input voltage" do you mean the VIN connection on the Arduino board ?
I would not try to power a motor from that. I would power my motor directly from the power supply and power the Arduino from the PC USB connection.
It might be worth moving DIR to a different pin. Pin13 is the onboard LED pin.
Have you tried writing some simple code just to test that you can make the motor move ?