View Single Post
  #11   Ban this user!
Old 10-27-2007, 09:58 AM
kreutz kreutz is offline
 
Join Date: Aug 2006
Location: USA
Posts: 2,624
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.
Reply With Quote

 

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 354 355 356 357 358 359 360 361