how to switch 12v500ma with 5v signal

I'd suggest using a solid state relay (ssr) instead.

The cost will be marginally higher (and to a lesser degree, more space taken up) - but you'll have tons of overhead in terms of switching current capacity. Since it all starts with 400ma and next thing you know...

It also provides some isolation to the Arduino pins should things go awry.

I'm using three small omron ssrs to switch LEDs/etc from a beaglebone black this way.
 
Back
Top