Jent CWH
Newbie level 6
Hi..
I'm currently buiding my first real microC project.
I'm trying to drive two DC motor by using PIC18F4550. I have testing some of my pic programming, they can be worked nicely for motor forward and reverse and stop.
One problem I am encountering is that for some reason whilst the motor is turning, some pins on the microcontroller turn high (especially for L293D_pin_2, 7, 10 15 to PIC) - even when these are unconnected! I am suspecting either the problem because I am not using any protection diodes at all (and the back emf some how freaks the microcontroller.)
Could this be the problem? If so where should I connect these diodes and what ratings should these have? - Aren't these diodes included in the l293d itself? Or could this problem solely be because the microcontroller is faulty?
Hope can get help because I am quite worried the driver might ruin my PIC. Thanks much!
;-)
I'm currently buiding my first real microC project.
I'm trying to drive two DC motor by using PIC18F4550. I have testing some of my pic programming, they can be worked nicely for motor forward and reverse and stop.
One problem I am encountering is that for some reason whilst the motor is turning, some pins on the microcontroller turn high (especially for L293D_pin_2, 7, 10 15 to PIC) - even when these are unconnected! I am suspecting either the problem because I am not using any protection diodes at all (and the back emf some how freaks the microcontroller.)
Could this be the problem? If so where should I connect these diodes and what ratings should these have? - Aren't these diodes included in the l293d itself? Or could this problem solely be because the microcontroller is faulty?
Hope can get help because I am quite worried the driver might ruin my PIC. Thanks much!
;-)