CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Electronics > PicStep Controllers


PicStep Controllers Discuss PicStep Controllers here!


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 10-25-2007, 06:32 AM
 
Join Date: May 2006
Location: Netherlands
Age: 29
Posts: 44
Mister H is on a distinguished road
PICstep, motor won't turn

Hello Everybody,

I have build the PICstep v4.0 and having really problems getting it to work.
I have a topic on Pminmo's bulletin board as wel, but i'm hoping you people can help me as well. http://pminmo.com/phpBB2/viewtopic.php?t=182&start=30

I started a page on his wiki as well to collect all the questions and answers I found.
http://pminmo.com/PMinMOwiki/index.php5?title=Picstep

Foto's of my PICstep are in my building log:
http://www.cnczone.com/forums/showth...5552post275552

The problem is that the motor's wont spin. They do enable (LMD's getting hot, and motors not able to turn).

This has got to do something with the PIC?

Who can give me some advice!
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 10-25-2007, 09:06 AM
 
Join Date: Aug 2006
Location: USA
Posts: 2,475
kreutz is on a distinguished road

Originally Posted by Mister H View Post
Hello Everybody,

I have build the PICstep v4.0 and having really problems getting it to work.
I have a topic on Pminmo's bulletin board as wel, but i'm hoping you people can help me as well. http://pminmo.com/phpBB2/viewtopic.php?t=182&start=30

I started a page on his wiki as well to collect all the questions and answers I found.
http://pminmo.com/PMinMOwiki/index.php5?title=Picstep

Foto's of my PICstep are in my building log:
http://www.cnczone.com/forums/showth...5552post275552

The problem is that the motor's wont spin. They do enable (LMD's getting hot, and motors not able to turn).

This has got to do something with the PIC?

Who can give me some advice!
I read most of the threads, I think your problem is the resonator you are using, replace it by a quartz crystal or a quartz oscillator chip, I don't know the values of the components, the two capacitors going from the crystal pins to ground should be ceramic disk (Np0) 22 to 27 pf.

Last edited by kreutz; 10-25-2007 at 11:42 AM.
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 10-25-2007, 10:56 AM
 
Join Date: May 2006
Location: Netherlands
Age: 29
Posts: 44
Mister H is on a distinguished road

Ok thanks for the answer/suggestion.
I'll go and buy the following article tonight:
http://www.okaphone.com/artikel.asp?id=424086
http://www.okaphone.com/artikel.asp?id=455655

[edit] do you know if they have special mounting (+ or - position or something like that?
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 10-25-2007, 11:11 AM
 
Join Date: Aug 2006
Location: USA
Posts: 2,475
kreutz is on a distinguished road

Originally Posted by Mister H View Post
Ok thanks for the answer/suggestion.
I'll go and buy the following article tonight:
http://www.okaphone.com/artikel.asp?id=424086
http://www.okaphone.com/artikel.asp?id=455655

[edit] do you know if they have special mounting (+ or - position or something like that?

Just mount them as close to the PIC pins as possible. I am not familiar with the PIC you are using, but make sure to modify the configuration bits for HS crystal mode.

From the datasheet:

"The PIC16F62X can be operated in eight different
oscillator options. The user can program three
configuration bits (FOSC2 thru FOSC0) to select one of
these eight modes:
• LP Low Power Crystal
• XT Crystal/Resonator
• HS High Speed Crystal/Resonator
• ER External Resistor (2 modes)
• INTRC Internal Resistor/Capacitor (2 modes)
• EC External Clock In"



do you know if they have special mounting (+ or - position or something like that?)
If you are referring to component polarity, no, they don't have any polarity, so you can mount them anyway you want.

.

Last edited by kreutz; 10-25-2007 at 11:48 AM.
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 10-25-2007, 02:38 PM
 
Join Date: May 2006
Location: Netherlands
Age: 29
Posts: 44
Mister H is on a distinguished road

I think that you are right,
I have studied the resonator and the schematic again and the resonator I have only has two legs in stead of 3.
So I think that the person who ordered these parts for me made a little mistake. I think he has ordered the ZTA-20MX in stead of the ZTT-20MX
http://dkc3.digikey.com/PDF/T073/P1287.pdf

This resonator has no connection to the ground.
It looks reasonable that this causes the problem.

On the attached overlay I wil have to connect the resonator to the left and right hole of X1?
Attached Thumbnails
Click image for larger version

Name:	resonator.JPG‎
Views:	324
Size:	127.5 KB
ID:	45762  
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-25-2007, 03:41 PM
 
Join Date: Aug 2006
Location: USA
Posts: 2,475
kreutz is on a distinguished road

Originally Posted by Mister H View Post
I think that you are right,
I have studied the resonator and the schematic again and the resonator I have only has two legs in stead of 3.
So I think that the person who ordered these parts for me made a little mistake. I think he has ordered the ZTA-20MX in stead of the ZTT-20MX
http://dkc3.digikey.com/PDF/T073/P1287.pdf

This resonator has no connection to the ground.
It looks reasonable that this causes the problem.

On the attached overlay I wil have to connect the resonator to the left and right hole of X1?
If you have a two pin resonator, try adding the two ceramic capacitors first, if it does not work, then replace the resonator by the quartz crystal.
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 10-26-2007, 06:17 AM
 
Join Date: May 2006
Location: Netherlands
Age: 29
Posts: 44
Mister H is on a distinguished road

Hmmz.. The more I think about it, the more i'm thinking that I might still have a 3 leg resonator. (I've been at my girlfriends house the last couple of days so I couldn't check what resonator I have)

But I wil check it this evening (12.15 atm over here) and will post it tonight
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 10-26-2007, 02:06 PM
 
Join Date: May 2006
Location: Netherlands
Age: 29
Posts: 44
Mister H is on a distinguished road

I have checked the resonator and it was the right one (3 legged)

I have also tried the two capacitors and the crystal, but it still won't work.
Maybe the problem lies with programming the PIC. I really don't know anything about it.

As I described in the Pminmo board, I programmed it in one program and verified it with another one.

The attached screenshots are the ones i made after reading the PIC in the programmer today.

Is anything wrong with this?

The PIC is an PIC16F628A

The programmer I made is this one:
http://members.home.nl/pamali/ludipipo/ludipipo-nl.htm
Info on the PIC is also on that site.

Is there anything that I can do to verify where the fault lies?
When I measure the Voltage on pins 12 and 13, they change sometimes between 0 and 4,9V when I run a program in Mach 3

The motor won't spin, but you can hear it squeaking sometimes.

When I take a look at the lines the cnc has to make, i noticed that (I connected the motor to the x-axis)when the motor had to change from going to the left to going to the right, it made 1 step and then stops. it does it all the times it changes direction from going left to going right (not reversed:S)
Attached Thumbnails
Click image for larger version

Name:	Code.JPG‎
Views:	143
Size:	153.1 KB
ID:	45809   Click image for larger version

Name:	Config memory.JPG‎
Views:	149
Size:	43.8 KB
ID:	45810   Click image for larger version

Name:	Data.JPG‎
Views:	148
Size:	52.4 KB
ID:	45811   Click image for larger version

Name:	IC configuration.JPG‎
Views:	149
Size:	52.9 KB
ID:	45812  

Click image for larger version

Name:	Interface.JPG‎
Views:	161
Size:	40.6 KB
ID:	45813   Click image for larger version

Name:	Options.JPG‎
Views:	145
Size:	46.7 KB
ID:	45814  
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 10-26-2007, 04:56 PM
 
Join Date: Aug 2006
Location: USA
Posts: 2,475
kreutz is on a distinguished road

Originally Posted by Mister H View Post
I have checked the resonator and it was the right one (3 legged)

I have also tried the two capacitors and the crystal, but it still won't work.
Maybe the problem lies with programming the PIC. I really don't know anything about it.

As I described in the Pminmo board, I programmed it in one program and verified it with another one.

The attached screenshots are the ones i made after reading the PIC in the programmer today.

Is anything wrong with this?

The PIC is an PIC16F628A

The programmer I made is this one:
http://members.home.nl/pamali/ludipipo/ludipipo-nl.htm
Info on the PIC is also on that site.

Is there anything that I can do to verify where the fault lies?
When I measure the Voltage on pins 12 and 13, they change sometimes between 0 and 4,9V when I run a program in Mach 3

The motor won't spin, but you can hear it squeaking sometimes.

When I take a look at the lines the cnc has to make, i noticed that (I connected the motor to the x-axis)when the motor had to change from going to the left to going to the right, it made 1 step and then stops. it does it all the times it changes direction from going left to going right (not reversed:S)
I just checked the V2 assembly code and the HS Xtal is being programmed.

It is difficult to troubleshoot the board at a distance, first we must make sure the oscillator is working as intended (20 Mhz), and that requires the use of a frequency meter or an oscilloscope. Then we need to check the inputs to see if it receiving step and direction signals at the PIc i/o pins level. Then, check the PIC outputs to the power chip to see the switching sequence. If we have 20 Mhz signal at the oscillator's pin, we have step and direction inputs OK (within TTL logic levels), but outputs are not, then we need to check the PIC programming.
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 10-27-2007, 07:50 AM
 
Join Date: May 2006
Location: Netherlands
Age: 29
Posts: 44
Mister H is on a distinguished road

Ok, that sounds logic.

The problem for me is that i'm a mechanical engineer and I don't have any electronic equipment except for the multimeter.

But I have 3 PICsteps and none of them work, so there must be something fundamentally wrong.

Is it possible to test if the PIC is working correctly by this method?:
http://pminmo.com/troubleshoot.htm together with this:

Posted: Tue Apr 10, 2007 9:23 am Post subject:

--------------------------------------------------------------------------------


By changing the direction pin of the input connector you should see pins 12 and 13 change state. i.e. less than one volt to greater than 3.3V. If it does the PIC is programmed.
_________________
Phil
Too many interests, too many projects, not enough time!!!!!!!!
Always looking for people to sign my guestbook @ http://pminmo.com
email me by using the email button below
When I'm running a program on Mach3, i measure that pins 12 and 13 change state sometimes. But I don't know how often it should change state.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 10-27-2007, 10:58 AM
 
Join Date: Aug 2006
Location: USA
Posts: 2,475
kreutz is on a distinguished road

Originally Posted by Mister H View Post

Is it possible to test if the PIC is working correctly by this method?:
http://pminmo.com/troubleshoot.htm
Lets take an sequential approach for the troubleshooting.

-First we need to make sure the input signals are being received (with proper TTL levels) from the PC interface.

In order to do the following tests we need to have a common schematics to refer to, the one I am using now is: http://www.fromorbit.com/projects/pi...4_0_schema.pdf

The test circuits on your links could make you reach the wrong conclusions because there is no debouncing on the switches and only one action on the step switch could produce several successive steps at the output or movement in sudden bursts, what makes difficult to see if the PIC is providing the expected outputs. It is better and easier to use Mach3 to produce the pulses, but we don't know yet if the problem is coming from the Mach3 step/direction pins configuration.

Your Mach3 configuration should reflect Step "Active Low" and Direction "Active Low" on the proper pins.

-Disconnect the motors from the power chips. Disconnect VCC cables from CONN2 (A1out, A2out, B1out, B2out)

-Program J1 jumpers for "Full STEP" mode.

-Connect the 5 volts and Ground to the input connector CONN1, as well as the PC Lpt interface cables, and pins 18 to 25 of the LPt port to GND.

You can use your multimeter to test at pin 6 and Pin 7 of the PIC for logic level changes (the other test lead should be connected to pin 6,7,8 of CONN1).

While jogging with Mach3, Measure the voltage at pin 7 of the PIC, less than 0.8 volts is a logic Low, higher than 2.4 volts is a logic High. Voltages in between indicate a problem in the Lpt port.

1-Take a note of the voltage while jogging Forward.
2-Take a note of the voltage while jogging Reverse.

You should have seen a reversal of the logic voltage during the second step.

If everything went OK, reverse the pins on Mach3 configuration (step where direction was and vice-versa), this will make the step pin receive the direction signal while the direction pin receives the step signal. The purpose of this step is to have a controlled logic level at the input that does not change with time, and thus can be accurately measured with the voltmeter, while being able to provide a logic status change by using the forward and reverse keys for the chosen axis, instead of a pulse sequence (step Signal).

-Put your voltmeter probe at pin 6 and repeat steps 1 and 2

You should get two different logic levels like in the prior test. Stop and let me know the results.

For the next set of tests I need you to build the logic probe on Pminmo's troubleshooting guide. Let me know when you are ready.

Regards,

Kreutz.
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 10-29-2007, 07:24 AM
 
Join Date: May 2006
Location: Netherlands
Age: 29
Posts: 44
Mister H is on a distinguished road

Ok I will start the tests.
The first time I'm at home is tuesday and i'll do them then.

As for the Logic probe, can I use the logic probe from the Interface board? see page 3 of the following documentation
http://pminmo.com/4axis/4axisBOBdata.pdf

The logic probe from this board is working.

As for connecting the J1 jumpers in Full step mode, is my assumption in the following link ok?

http://pminmo.com/PMinMOwiki/index.php5?title=Picstep
Below the Pull up resistors you can see the possibility to place jumpers. These jumpers set the mode (full,half,1/4 or 1/8) of the PICstep. The modes are set as following (positions from PICstep.jpg):

1/8th: No jumpers

1/4th: Top right to bottom right wired

1/2: Top left to bottom left wired

full: Top left to bottom left wired and Top right to bottom right wired
I'll have a look into the jogging function of MAch3. Don't know yet how it works. The setup of MAch 3 is ok atm I think
Tweet this Post!Share on Facebook
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
motor changing direction by iteself using picstep oliverthepig PicStep Controllers 1 04-30-2007 05:11 AM
5V for Picstep getting very hot ! max_imum2000 PicStep Controllers 1 02-14-2007 07:44 PM
mill/turn on a cin turn Robert Timby General Metal Working Machines 4 01-31-2007 11:33 PM
Cin Turn turn/mill Robert Timby General CNC (Mill and Lathe) Control Software (NC) 0 01-24-2007 08:12 PM
motor won't turn anthony Gecko Drives 2 05-14-2005 01:55 AM




All times are GMT -5. The time now is 05:07 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353