Hi Roff,
Can you beleive it I almost got this right, well OK I have it working using a diode, what I did was put the diode between the supply (5v) to the emitter not sure if this has any consequences but it appears to work? Your idea is much better and I will amend it
Thanks everyone, at the moment I have a working project again.
P.S. One last question, what size type doing would I use in this situation, hold off 24v whilst allowing 5v, 1.5A out. I am going to look at this and see if I can work it out but if someone again answers this and I get it close I will be sort of learning slowly
EDIT: OK here is my stab at the correct diode
MULTICOMP|S2A|DIODE, STANDARD, 1.5A, 50V, SMD | Farnell UK
Steve