Custom H Bridge Design

The protection resistor is meant to protect the Arduino pin being fried if full motor voltage reaches the other end. At the Arduino end that current will flow through the pin's protection diode - too much current and that diode will fry. 2k2 is a guestimate, datasheet may give you enough info.