I am planning on driving two 12V DC motors using the "L293D" motor driver. For that I'm using a 12V battery for the motor supply, and a RaspberryPi to generate a PWM wave to regulate the power output. I am simply connecting both the RPI and the battery to the driver, using only a resistance to limit the current on the GPIO.
Is there anything that I should do or be aware to avoid damaging my RPI?