Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

help required stepper motor programming

Status
Not open for further replies.

hrkarthik.raman

Newbie level 1
Joined
Apr 27, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,291
Dear forum members,

The stepper motor i am using is bipolar, 2 phase, current rating is 2.8 amps, voltage rating is 2.3v and 10kgcm torque.
I am using a M542 stepper motor driver.
I am using Atmel 89C51 microcontroller to move the motor thru the driver.
I have included the motor specifications sheet and the datasheet of the driver and also the interfacing schematic i have followed.
i am using assembly language programming and compiling programs in keil.
In my program, the motor is moving continuously with no stop.
pls can u post sample codes to move and stop and move the motor in accordance with the interfacing diagram.

thanking in anticipation,
Karthik Raman
 

Attachments


ucsam

Advanced Member level 4
Joined
Oct 12, 2010
Messages
119
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Location
kathmandu,nepal
Activity points
2,058
it would be better if u could post the code as well..or maybe attach it, cause the fault might be in your code.
 

assasinsareus

Junior Member level 3
Joined
Jul 21, 2010
Messages
25
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,283
Activity points
1,428
Hello,

Could it be that your outputting the signals so fast that the motor cannot keep up and is essentially stalled? With stepper motors its normally a good idea to ramp the speed up and down so as to try and avoid this problem. You should be able to test for a stalled condition by removing the power and seeing if the motor becomes easier to turn or has a slightly less cogging action.
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top