Hello, I am trying to get a motor, PM35S-048, to rotate using PIC18F4550, and L293D. The problem i am facing is that even thought i used the circuit schematic given in hte datasheet of l293d, the motor does not rotate...
The problem is either in the stepping sequence, or in the the schematic i am using.
Here is the source code i am using...
and i have also attached the datasheet that contains the schematic i am using...
The problem is either in the stepping sequence, or in the the schematic i am using.
Here is the source code i am using...
Code:
#include <p18f4550.h>
#include <delays.h>
void main (void)
{
int i,j;
TRISC=0;
PORTC=0b00000000;
while(1){
PORTC=0b00010100;
Delay1KTCYx (240);/*200ms*/
PORTC=0b00110101;
Delay1KTCYx (240);/*200ms*/
PORTC=0b00101011;
Delay1KTCYx (240);/*200ms*/
PORTC=0b00001010;
Delay1KTCYx (240);/*200ms*/
}
}
and i have also attached the datasheet that contains the schematic i am using...