Your transistor needs to be a PNP.Another way to do it might be like this...
Q1 needs to be a power transistor, and heatsink. It will drop around ½V at .5A. You need to have CR1 thermally connected to Q1, glue the diode to the transistor case.
Took longer than usual for me, its been a long day.
.