Arduino stops working when connected to an external power supply

I've got a 12v 2A wall cube and an adjustable bench power supply which is good for 5A but there is only a 40mA draw at 9V. I'm only running the on board LED and a few opto transistors.