How to Air pump 12V connect to Arduino

Hi,
I want to ask.

I wan to connect ar pump 12V to arduino which is supply only 5V.
And I also have relay board.

So what should I do?
Just use the relay to make the pump functioning or there have another methods?

Thank you.

You should never power a motor from the Arduino, and perhaps not even the relay board. Use a separate power supply and connect all the grounds together.

You can use the relay or a transistor to switch the pump. Don't forget to put a flyback diode across the pump motor terminals. Google "arduino motor control" for lots of ideas but be aware that some of them will be bad advice.

jremington:
You should never power a motor from the Arduino, and perhaps not even the relay board. Use a separate power supply and connect all the grounds together.

You can use the relay or a transistor to switch the pump. Don't forget to put a flyback diode across the pump motor terminals. Google "arduino motor control" for lots of ideas but be aware that some of them will be bad advice.

should I use 12v power supply to power a 12v motor?

Yes