hi

Last time I was designing like this . I attack this to computer before start computer. After start I write codes and run only 3 steps. I find that IC and motor are going very much hot, then I disconnect all connections to IC. It really was near to be burnt, if I do not disconnect. What was the problem in circuit? I think it may be in its ground or +12V wire. Is it?