free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes :: Forums :: Project Development :: Project Help
 
<< Previous thread | Next thread >>
Programming a microcontroller in order to rotate two stepper motor.
Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
Rits
Wed Aug 20 2008, 04:58PM
 User Offline
Registered Member #9831
Joined: Thu Aug 14 2008, 05:54PM

Posts: 5
Thanked 0 times in 0 posts
Hi...
I am using a microcontroller kit which has AT89C51ED2 on it. Actually i want to program that in order to rotate two stepper motor both clockwise and anticlockwise. ( the stepper motor which i want to use has 1.8 degree per step of motion).
So i am bit confused with that. So if any one can help me with that and can provide me .asm and .hex files so that i can use it. That will be very helpful.

Thanks in advance.

regards,
rits



ritesh
Back to top


pdi33
Wed Aug 20 2008, 08:55PM

 User Offline
Registered Member #1329
Joined: Mon Jun 04 2007, 09:28AM

Posts: 770
Thanked 185 times in 180 posts
hi rits,
check this secton:
http://www.8051projects.net/stepper-motor-interfacing/programming-microcontroller.php
if u are connecting two stepper moteors all u have to do is duplicate the same logic for the four different outputs of the second motor.

* inspired to develop,developing to inspire *
Back to top



This post has been thanked 1 time
 Rits 
Rits
Thu Aug 21 2008, 05:31PM
 User Offline
Registered Member #9831
Joined: Thu Aug 14 2008, 05:54PM

Posts: 5
Thanked 0 times in 0 posts
hi..thanks..... i checked that but can you suggest me how to convert .asm file to .hex file.
and also has anyone tested the program given in the tutorial.
I even need the connection diagram of L293D to stepper motor because i think the circuit diagram for both the figures is different as given in the tutorial. i mean the pins are changed so if anyone can provide me a correct circuit...
thanks....

ritesh
Back to top


sashijoseph
Thu Aug 21 2008, 09:25PM

 User Offline
Registered Member #5870
Joined: Mon Feb 04 2008, 06:26PM

Posts: 649
Thanked 139 times in 132 posts
For creating the hex file you'll have to use an assembler.
Here's a free one that'll do the job quite well.. http://www.metaice.com/ASM51/Files/ASM51.zip

Interfacing steppers with the L293D is also shown in the tutorial.Have a look again.
http://www.8051projects.net/stepper-motor-interfacing/stepper-motor-connections.php

Let there be music........
Back to top



This post has been thanked 1 time
 Rits 
Ajay
Sat Aug 23 2008, 12:27AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 4042
Thanked 753 times in 712 posts
you can also download assemblers from our download section visit. Check "8051 Softwares" section in downloads.

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top



This post has been thanked 1 time
 Rits 
Rits
Tue Aug 26 2008, 08:05AM
 User Offline
Registered Member #9831
Joined: Thu Aug 14 2008, 05:54PM

Posts: 5
Thanked 0 times in 0 posts
hi...
thank you very much for your king help.
But still i have problem in obtaining a hex file
Can you please check this ASM file and convert and send the HEX file to me.
My mail id is rits_ritesh@indiatimes.com

It is a program to control two stepper motor and i got the idea of this program from the tutorial section.


I really got a lot of information about microcontroller and stepper motor from this forum.

thanks,

Regards,
Ritesh.


2_stepper_motor__.zip

ritesh
Back to top


Arun Kumar V
Tue Aug 26 2008, 08:55AM

 User Offline
Registered Member #426
Joined: Sun Jan 28 2007, 11:50PM

Posts: 522
Thanked 219 times in 186 posts
Hello Rits,


here's the compiled Hex file :


two_steppers.zip



All the Best !


Arun

[ Edited Tue Aug 26 2008, 08:56AM ]
Back to top



This post has been thanked 1 time
 Rits 
sashijoseph
Tue Aug 26 2008, 09:32AM

 User Offline
Registered Member #5870
Joined: Mon Feb 04 2008, 06:26PM

Posts: 649
Thanked 139 times in 132 posts
Hi Rits...
for assembling the asm source with ASM51 you would need to include the "reg51.inc" file in your ASM51 directory.
Unzip the attached file and copy it to your ASM51 directory.In your ASM source just add the following as the 1st line of your code : $include(REG51.inc)
Now run ASM51 from the command line like this : asm51 testfile.a51
and you're done.
reg51.zip

Let there be music........
Back to top



This post has been thanked 1 time
 Rits 
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems