If you need to PWM the output, you can use a mosfet module. You can find a cheap one on eBay or AliExpress.

0_1610017280844_4cf5d38c-ba95-4ae3-886d-db7c5321ab59-image.png