Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Problem with Stepper motor functioning

Status
Not open for further replies.

thavamaran

Member level 4
Joined
Mar 2, 2009
Messages
69
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,889
Hi everyone, im currently working on stepper motor, im using UCN5804 as my
stepper motor driver, then i connect PIC 16f877A as my indexer to run the motor. i have wrote a C program for PIC which im not sure correct or no, im really new
with C. Here is the coding i wrote for PIC, and i attach the stepper motor datasheet, UCN5804B datasheet, and the schematic as well. please help me out.
Stepper motor im using is PX243-01AA.

Here the RB0 is connected to Direction Pin of UCN5804B and RB1 is connected to Step input pin of UCN5804B.

#include <htc.h>
#include "delay.h"
__CONFIG(0x3f71);

void main (void)
{
unsigned char i;
TRISB = 0x00;

RB0 = 1;

for (i=0; i<60; ++i)
{
RB1 = 1;
DelayUs(1000);
RB1 = 0;
DelayUs(1000);
}
}
 

Attachments

  • datasheet_1739.pdf
    155.2 KB · Views: 55

Hi,

Did you try to increase the step time. Perhaps it is too short for the motor if, as I understand, your delay is in µS.
Try to put 50000 instead of 1000 for the first tests.

CJ
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top