vj!! That's not a particularly good design... There is no emf protection... there needs to be diodes across the windings... Nigel's schematic is a better option.
Ian, yea you are right, I did not thought about that..
Actually I worked on the same project before some days so I thought I should share it (Actually did not checked Nigel's project. But I think that is with PIC microcontroller)
thanks