Discussion in "General help Guidance and Discussion" started by    thcmagus    Feb 13, 2010.
Sat Feb 13 2010, 07:13 AM
#1
Hey all just wanted to see if anyone could give me a hand.. Recently we discussed stepping motors. I understand the idea and seeing your tutorial page with the stepping motor.gifs was awesome. We are currently doing this in lab but ran into a problem tonight.. when given our motors we found that it used a different coloring schematic.. I check the forum and found one pic that showed different wiring setups but none had purple in them lol. Anyway I also did a google search for my motor and found that someone had a similar motor just a different chip driving it.. and he was nice enough to label the coil order. Following both we were still unable to get our motor to rotate at all. As far as I understand in the 2nd pic the 0 , 3 , 2 . 1 order represents the p2.0 etc connection on our 8051 trainer.. I just wonder if anyone is seeing something that jumps out at them.. In the assembly code we are told to use p2. which made me wonder why we were using pull up resistors for the outputs.. I thought resistors were internal for all ports except p0.. so I tried changing the assembly and the wiring to our trainer but still nothing.. any help would be greatly appreciated..





Mon Feb 15 2010, 10:10 AM
#2
0,2,3,1 is the coil number not port number.

are you using ULN to drive your motor?

and i feel that your are energizing your motor coil in wrong order. Follow the order given in second picture and connect it to port as per order. if still cant get it to work then find the correct order of coils.

To find the correct order of your coil, follow the procedure below:

4 coils are named as coil1,2,3 and coil 4. Assuming coil1 to be Purple. Motive is to rotate motor in one direction either clockwise or counter clockwise. Now,

1. Connect Vcc to Common wires (white in your case).
2. Select any coil to start with. (better to go with Purple (coil1)).
3. Connect Ground to Coil 1, Motor may or may not rotate. ignore rotation.
4. Now remove GND from Coil 1 and connect it to Coil 2 (try with blue). check the rotation of motor. (assuming clockwise)
5. Now remove GND from coil2 and connect it to Coil 3 (Try with Yellow). check the rotation of motor, if your motor rotates in Clockwise direction then Coil3 is in order skip step 6, if your motor rotates Counter clockwise, it means its not correct coil.
6. Remove GND from coil3 and connect it back to Coil2 to return to last position and then connect GND it to Coil4 (try with Orange). check the rotation of motor, if your motor rotates in Clockwise direction then Coil4 is in order. (current order is Coil1, Coil2, Coil4).
7. Last will be coil 4 in order if you have skipped step6 in procedure else coil 3.
so order will be either (Coil1, Coil2, Coil3, Coil4 or Coil1, Coil2, Coil4, Coil3).
 thcmagus like this.
Tags stepper motor wiringstepper motor connectionswriting stepper motorhow to connect stepper motorstepper motor connectionsfinding stepper motor wires
Mon Feb 15 2010, 10:10 AM
#3
Tue Feb 16 2010, 03:18 AM
#4
I went to school the next day and worked on it some more.. after awhile I dug up a spec sheet and found that these are 12v motors.. ac I ran 12v to the white wire and then held the wires up in the order labeled above and dragged a ground wire across them and the motor twitched to the right : )
Tue Feb 16 2010, 07:12 PM
#5
great.. program it accordingly.. let me know the results.
Tue Feb 16 2010, 09:33 PM
#6


I went to school the next day and worked on it some more.. after awhile I dug up a spec sheet and found that these are 12v motors..

thcmagus


Both the motors mentioned in your post are 5 volts..
which motor do you have ?.
Wed Feb 17 2010, 07:46 AM
#7
Well it says its a J835L .. doing a quick google search will find you the .pdf and the one I found has this as far as specs.. I found a teacher and explained my problem and he replied that we could test the motor. I used some test clip connections and ran 12v to the white wire.. then held the other wires in my hand in the coil order the other student mentioned above ( purple0 , orange1, blue2, yellow3 ) and dragged my ground test lead across the wires in that order and the motor would step a bit clockwise.. I didnt have time to connect my 8051 trainer because there was a free ISCET review test I didnt want to miss.. I appreciate all the responses and will gladly post my results if anyone is interested..




*posted a pic of the 2nd sheet of the J8335L.. thats what ultimately lead me to the 12v.. hope these pics arent too big and annoying I just thought it would be easier for me to post this stuff instead of sending people off to search for it : )
Wed Feb 17 2010, 05:38 PM
#8
No the image is fine.
It does say 12 volts, but in the rest of the pdf it gives other figures.

Use 12 volts if you want, but keep an eye out for overheating at low step rates
or when stationary.
Sat Feb 27 2010, 06:29 AM
#9
*update*

I went through as Ajay Bhargav suggested and confirmed my coil order.. I had the lab setup and was still having issues.. I used a multimeter to check my signals from the 8051 trainer and found that they never seemed to go to ground.. here is a pic of the trainer we use..




In the lab we are using p0 , p2 .. I never thought about the other ports until I noticed the GND pin (bottom left corner under p3) I ran a wire from there to GND on my breadboard and my motor turns like a champ using 9v to drive the motor still... my teacher explained to me that there was not a common ground.. I was actually hoping if someone could help me understand that a little more.. since the 8051 trainer is plugged into the wall I figured it had GND.. but now come to think of it.. the trainer is AC powered.. maybe there wasnt a path to ground? I know the trainer coverts to DC power to run my logic chips but im not sure if I am thinking about it the right way..

Now that I have that knocked down we are going about getting it to rotate to set degrees (90 , 180, 270, 360) and rotating clock and counter-clock wise. All seems well.. working on code that would allows us to use the dip switch to select which mode we would like.. I think I have the code figured out.. have paper finals and then we get graded on how much we can do as far as this lab goes. I dont want you to do my homework I want to understand this. If someone could just tell me if the code seems like its right or if there is some kind of program I could use.. we use multisim to do testing of simple circuits but I dont believe it would allow me to replicate this.

If I get an okay from someone Ill post my .asm
Sat Feb 27 2010, 07:28 PM
#10
sure you can post your asm file, we can suggest you incase you have any errors. but if you can try your code on hardware first and note down the problems, it will be easy to figure out the errors then

Good luck!

Get Social

Information

Powered by e107 Forum System

Conversation

Mon Nov 30 2020, 12:36 AM
Issac
Have you ever considered writing an e-book or guest authoring on other websites? I have a blog based upon on the same ideas you discuss and would really like to have you share some stories/information. I know my subscribers would appreciate your work. If you're even remotely interested, feel free to send me an email. https://cheapessaywritinghelp.com/ writing an essay writing an essay
Sun Nov 29 2020, 11:47 PM
Anke
Appreciate this post. Let me try it out. https://usessaywritingservice.com best essay writing service best essay writing service https://usessaywritingservice.com
Sun Nov 29 2020, 08:16 PM
Tomuld
only
Sun Nov 29 2020, 08:15 PM
Rudy
Fantastic post but I was wondering if you could write a litte more on this topic? I'd be very grateful if you could elaborate a little bit more. Cheers! https://ordertermpaper.com essay writing sites essay writing sites https://ordertermpaper.com/
Thu Jun 11 2020, 06:27 AM
anudee
sir could please send the code for I2C and wifi interfacing with 8051

Downloads

Comments

Mirza123
Thu Jun 25 2020, 03:46 PM
eunicelove124
Mon Jun 22 2020, 03:03 PM
cerouno
Tue Jun 16 2020, 05:10 PM
Marce
Sat Jun 13 2020, 09:43 PM
Davidthils
Thu May 21 2020, 12:44 PM
Jakeror
Thu May 21 2020, 01:28 AM
motorCar
Wed May 20 2020, 07:05 PM
Vordrync
Wed May 20 2020, 11:52 AM

Online

Guests: 110, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123