Discussion in "General help Guidance and Discussion" started by    thcmagus    Feb 13, 2010.
Sat Feb 13 2010, 02: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, 05: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, 05:10 AM
#3
Mon Feb 15 2010, 10:18 PM
#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, 02:12 PM
#5
great.. program it accordingly.. let me know the results.
Tue Feb 16 2010, 04: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, 02: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, 12: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, 01: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, 02: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

scena
Wed May 20 2020, 03:59 AM
Does anyone have microcontroller programming software for STC15F104W (core 8051, 4 k, 128 byte, 6 I/O pin, UART ... DIL8), that works?
Sun May 03 2020, 01:08 AM
Tamu Gurung
Hi I am looking for a assembly language program for a digital decimal counter. Time counts max limit of 2 mins starting from 2.00 mins and ending at 0.00. time is to be displayed on 4 7-segment LED displays. Edsim51 simulator to be used. Thanks
Wed Mar 25 2020, 07:09 PM
Tajammul
Sir kindly send the code file i2c for 8051
ExperimenterUK
Sat Mar 14 2020, 04:06 AM
@ Rohitnani,ABEBE..which project ?
Fri Mar 13 2020, 06:25 PM
ABEBE
how can get hadwere of this project
Rohitnani
Sat Mar 07 2020, 09:41 PM
Sir, Could you please send me the zip file input password....
Wed Feb 26 2020, 09:28 PM
Peter Parker
Is it possible to send multiple messages using only 1 GSM module?
Sat Feb 01 2020, 02:42 PM
Pearl Olin
Hello,
Wed Jan 22 2020, 10:46 PM
MINU CHAUDHARY
I m getting errors while simulation process during interfacing socket output and lcd... Can i get the report of ur project which is same as us.
Tue Jan 14 2020, 11:38 AM
shubham kharade
when i am trying to simulate the program in Proteus 8 professional, I am getting some errors as cannot find module file dhtxx.md can u help me

Downloads

Comments

Davidthils
Thu May 21 2020, 08:44 AM
Jakeror
Wed May 20 2020, 09:28 PM
motorCar
Wed May 20 2020, 03:05 PM
Vordrync
Wed May 20 2020, 07:52 AM
JadenjiT
Wed May 20 2020, 03:15 AM
scena
Tue May 19 2020, 06:08 PM
CodySiz
Tue May 19 2020, 02:22 PM
ClaireSat
Mon May 18 2020, 09:50 PM

Online

Guests: 39, Members: 0 ...

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

Members: 38211
Newest member: Davidthils
Forum Activity
xrxx Avatar
Posted By xrxx
Thu Apr 30 2020, 06:59 AM
BCD MULTIPLICATIONAssume that you have to 2 BCD nu...
liqian Avatar
Posted By liqian
Tue Apr 28 2020, 05:26 AM
I happened to see your post and I got many useful ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Apr 28 2020, 04:21 AM
The code is hard to read.Please zip it and attach ...
rogermado Avatar
Posted By rogermado
Sun Apr 26 2020, 01:53 AM
@ExperimenterUK, thanks for your reply. You'll fin...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sat Apr 25 2020, 05:42 PM
Some simulators handle displays better than others...
rogermado Avatar
Posted By rogermado
Sat Apr 25 2020, 03:59 PM
Hello everyone, sorry in advance if i'm not in the...
PHANTOM28 Avatar
Posted By PHANTOM28
Fri Feb 28 2020, 10:25 AM
Hi.I hope you all can help me. I am relatively ne...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Feb 21 2020, 05:05 PM
ajay_bhargav Avatar
Posted By ajay_bhargav
Fri Feb 21 2020, 04:45 AM
Yes you can do that.1. Create a channel @Thingspea...
ananyagupta Avatar
Posted By ananyagupta
Thu Feb 20 2020, 03:58 AM
With regards to the particular characters sent to ...