I am trying to run a DC motor using a L293DNE H-Bridge and PIC16F684. Pins 2 and 7 of the bridge are connected to 2 PORTC pins on the PIC. The PIc compares 2 analogue inputs and if A > B set PORTC.0 high and PORTC.4 low, and vice versa if A < B. There is a region in the middle that both ports go low if the inputs are sufficiently close. I can post code if anyone is interested but it was initially checked with LEDs connected to the ports and everything worked perfectly.
This is the connections of the H-Bridge.
**broken link removed**
Always when the PIC is first started the DC motor runs smoothly in the direction it is intended. I am currently using 2 voltage dividers to set the voltages on the two analogue pins on the PIC. CCW direction always works fine but when I try to set it to the CW rotation it gets all jittery and starts and stops a few times a second.
Any ideas what might be going on?
Thanks.
This is the connections of the H-Bridge.
**broken link removed**
Always when the PIC is first started the DC motor runs smoothly in the direction it is intended. I am currently using 2 voltage dividers to set the voltages on the two analogue pins on the PIC. CCW direction always works fine but when I try to set it to the CW rotation it gets all jittery and starts and stops a few times a second.
Any ideas what might be going on?
Thanks.