Alternate power supply

If I want to use a motor which requires more than 5v of electricity which the arduino UNO doesn't provide, I'm guessing the say 20v wire will link directly to the motor which requires it, but for the returning gnd wire - I assume it won't be safe to connect directly to the GND on arduino. And even using a resistor I don't know if it will be able to handle such a large amount of power coming to it.

Or is my thought process flawed here?

Or is my thought process flawed here?

Yes.
You need to connect the grounds together.
You use a transistor to turn the small current from an arduino into the big current to drive a motor.

Oh really?

Can a 5v be increased to 20v using a transistor?

Why don't we use this to generate free energy for the world? lol

mrxyz:
Oh really?

Can a 5v be increased to 20v using a transistor?
Not using just a transistor.
Why don't we use this to generate free energy for the world? lol
Now why didn't anyone else here think of that. :wink:
Lefty

free energy == solar

mrxyz:
Can a 5v be increased to 20v using a transistor?

No, transistor using 5V to control 20V as in switch "on" & "off" for your motor, you still need a 20V power supply for your motor.

Can a 5v be increased to 20v using a transistor?

I did not say that I said CURRENT could be changed from small to large using a transistor.

If you have a few other parts you can convert any voltage into any other voltage. The circuit is called an inverter. We do not use it to power the world because voltage is only half the component of power. If we double the voltage we will at best half the current, leaving the power, that is current times voltage, the same. In practice there are losses so you loose about 20% of the power when you do this.

In your car is a circuit that converts you 12V into several thousand volts for your spark plugs, assuming it is a petrol ( gass if you live in the U.S ) car.