(Beginner) Type of (NPN?) transistor to use for RasPi
that part cowboydan linked is not an arduino shield.  the guy selling it is just listing words he thinks will get good google hits.  anyway, yes, you can wire it to any kind of controller.

i found a description on how to use it here: 

https://www.bananarobotics.com/shop/How-to-use-the-L298N-Dual-H-Bridge-Motor-Driver

it's not for that specific board, but one that's almost identical in function.  just keep in mind, the logic in the ebay auction has a max voltage of 12V, when using the on-board voltage regulator.  not the same as the one in the how-to.