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.

whats wrong with my code?

Status
Not open for further replies.

eng soso

Newbie level 5
Joined
Jan 17, 2011
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,356
i trying to control astepper motor by uln2003a,this code works but something wrong, when i press the upper button (in the schematic ihave attatched)the motor rotates to the right 90 dgrees then back to form -45 angle then it stopps!
what i realy need to rotate to the right 90 degrees then stops immediatly!
what modification shall i do? please help
 

Attachments

  • stepper motor.jpg
    stepper motor.jpg
    397.3 KB · Views: 70
  • soso.txt
    491 bytes · Views: 70

Just add the line (without codes)

"goto e"

before the line

"BCKWARD:"
 

yes that will solve the problem
 

Just add the line (without codes)

"goto e"

before the line

"BCKWARD:"
thanks the code had worked!

---------- Post added at 22:59 ---------- Previous post was at 22:56 ----------

now if i want the motor to rotate to angle 0,then stops,and in other case to rotate to angle -180 ,also -270 angle , what shall i do? i meen what sequense of 0101...... should i write to do so?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top