Discussion in "General help Guidance and Discussion" started by    thcmagus    Feb 13, 2010.
Sat Feb 13 2010, 12:43 pm
#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, 03:40 pm
#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, 03:40 pm
#3
Tue Feb 16 2010, 08:48 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 : )
Wed Feb 17 2010, 12:42 am
#5
great.. program it accordingly.. let me know the results.
Wed Feb 17 2010, 03:03 am
#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, 01:16 pm
#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, 11:08 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, 11:59 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
Sun Feb 28 2010, 12:58 am
#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

Downloads

Comments

Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm
Bernardwarge
Tue Mar 26 2024, 11:15 am