built these optocoupled circuits to drive a 12v light from arduino uno

pwillard:
just a quick comment.

Its not the best use of an NPN transistor I've seen. There is probably a better way.

There aren't any NPN BJTs in those circuits, moncureww is using a N channel MOSFET.