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.
well, this code made the motor rotate a bit, and adcon will just give digital output, right? in case of analog signal also the l293d should rotate the motor though inefficiently... i hope i am right.
how are you setting the PIC clock? and Config info? I dont see it in above code maybe it doesnt know whether to use a internal or external clock and freezes up when you try to do something. it just gets lost without OSC settings.
@pommie:well, yes. therefore i had to make changes to stuff, i connected each coil of the stepper to one of the output pins and the common one to 24V supply. and i made changes to the stepping sequence also... if you want i can give you an exact schematic of what i am using... give me a minute.