Arduino uno 12v output pin

The output of arduino uno pin is 5v..

But how can I make it a 12v output with 240 mA current?
I wanna connect a relay to it...

Most people use a relay board that can be switched by the Arduino, but has a separate power input connection for the relay coils.

Alternatively you can use a suitable power supply for the relay coil, and a logic level MOSFET transistor to switch it as shown below (the M is a motor or relay coil).

Okey thanks..

But what is the number of N-MOSFET ?

R2 = 180 ohms ?

C1 = ceramic capacitor ?

Why D1 is parallel with motor ?

Vsupply = 12 volts ?

The motor is about 240 mA....

Sigh!

I am going to let this one go through to the keeper!

But what is the number of N-MOSFET ? Most logic level N-MOSFETs will work.

R2 = 180 ohms ? Yes

C1 = ceramic capacitor ? Could be

Why D1 is parallel with motor ? Removes destructive voltage spikes

Vsupply = 12 volts ? If needed

The motor is about 240 mA.... You stated "relay" in the OP.