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-09-2011, 11:19 AM
Khalid's Avatar  
Join Date: Apr 2006
Location: Pakistan
Age: 32
Posts: 2,851
Khalid is on a distinguished road
Reversed Logic voltage to PICSTEP- What component to be replaced?

I have developed the Picstep version 4 board but i did not install the IDC cable as my BOB only requires STEP and DIR signals. Today i accidentally reversed the Logic voltage cables so that instead of installation of +5V DC wire to the +5V Logic i install the +5V to the Gnd... The result was my PIC become too hot as soon i realize what i did wrong i removed the cables...

Fortunately most of the capacitors are ceramic or MKT type (non polar) so i am not worried about them But:
1- I am sure that the PIC is blown away.
2- What components else might be blown away?... XTAL and LMD?????

Anyone can tell me should i replace all the components and discard them? Or should i replace the 20MHz XTAL?
__________________
http://free3dscans.blogspot.com/ http://my-woodcarving.blogspot.com/
http://my-diysolarwind.blogspot.com/
Reply With Quote

  #2  
Old 10-09-2011, 11:52 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,544
Al_The_Man is on a distinguished road
Buy me a Beer?

I doubt if the XTAL was damaged as it usually is connected to two pins on the PIC and isolated from DC -ve by two caps, if this is the configuration you have?
Probably just the PIC suffered, if you have any electrolytic's or Tantalum on board, you could remove them and test if need be.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #3   Ban this user!
Old 10-09-2011, 12:13 PM
Khalid's Avatar  
Join Date: Apr 2006
Location: Pakistan
Age: 32
Posts: 2,851
Khalid is on a distinguished road

Thanks Al, I do have the electrolytic on the board.. I hae replaced the PIC as well as the Xtal.. Two wires (+5V and GND) from the ATX computer power supply, i am using to give the Logic voltage to the PICstep... I have connected 24VDC and GND on the PICstep board for Motor powering.. My Motor has total 6 wires so i have just left the both COMMON wires unconnected..the rest of the 4 wires are connected to the board A A' and B B'...

Following is my observation... With the motor connected and the both the Power supply enabled and the PIC install..My motor do not hold...

But when i keep finger under the PIC and Xtal soldering joints, Motor holds and i can't rotate it by fingers... But as i removed the fingers from the Xtal/Pic soldering joints the motor do not hold..
I thought that the cold solder may be their but the Digital Meter shows continiuty of all the joints...

1-Whats going wrong?
2- Should i make ENABLE pin to ground?
3-If the Motors hold it means that LMD and other Electrolytic capacitors are working well...

NOTE:
I am using 20MHz Xtals with 22PF capacitors.
__________________
http://free3dscans.blogspot.com/ http://my-woodcarving.blogspot.com/
http://my-diysolarwind.blogspot.com/
Reply With Quote

  #4  
Old 10-09-2011, 01:45 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,544
Al_The_Man is on a distinguished road
Buy me a Beer?

I had a weird problem like that once and the reason turned out to be the fact I had not had the right config string in the asm code and the power up reset was not set for internal pull up.
Every time if I touched the board it would set it.
Is this a pre-programmed Pic or are you programming it? What PIC IC is it?.
If there is nothing connected to the Master Clear pin, you could take it high to see if it runs.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #5  
Old 10-09-2011, 02:24 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,544
Al_The_Man is on a distinguished road
Buy me a Beer?

I found a schematic of the board, and MCLR pin 1 goes to +5 so it may not be the cause if this is connected.
What about the stop input?
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-09-2011, 04:02 PM
robe_uk's Avatar  
Join Date: Apr 2005
Location: Northern Ireland
Posts: 181
robe_uk is on a distinguished road

Hi
you have to ground the enable line and also feed a step pulse for the motors to hold. So tie your enable to ground, with standard code the motors will not hold till it see's a pulse on the step pin.


Cheers Rob
__________________
I'll get it finished sometime after I start it.....
Reply With Quote

  #7   Ban this user!
Old 10-09-2011, 04:07 PM
robe_uk's Avatar  
Join Date: Apr 2005
Location: Northern Ireland
Posts: 181
robe_uk is on a distinguished road

did you get your pic's programmed ok?
__________________
I'll get it finished sometime after I start it.....
Reply With Quote

  #8   Ban this user!
Old 10-10-2011, 01:34 AM
Khalid's Avatar  
Join Date: Apr 2006
Location: Pakistan
Age: 32
Posts: 2,851
Khalid is on a distinguished road

@Al:
I have QL-2006 advance PIC programmer and i am programming the PIC Myself. Hex code uploaded to the PIC successfully without Error with all Configuration Bits. Attached is also the screen shot of software after reading Back the Hex code from the PIC. The Right side of the initial and re-read Hex file has different characters and i think this is due to the placing of configuration bits.

What do you mean by STOP input.Please clarify.

@robe_uk:
A) I have ground the Enable Pin 01 to the GROUND with a Jumper but nothing happen. The motor do not hold.
B) As the Modular Card PICSTEP is not connected to the BOB, so can i externally give inputs to the STEP PIN?
Should i provide +5V DC to step pin to check or connect it to GND. Your help and opinion needed.

C) The PIC is programmed successfully as per attached picture and above points.
Attached Thumbnails
Click image for larger version

Name:	Hex file Selected.jpg‎
Views:	13
Size:	62.2 KB
ID:	143696   Click image for larger version

Name:	HEX Code.jpg‎
Views:	14
Size:	210.9 KB
ID:	143697   Click image for larger version

Name:	Bit Configuration Settings.jpg‎
Views:	13
Size:	39.3 KB
ID:	143698   Click image for larger version

Name:	Uploaded Code read from the PIC.jpg‎
Views:	14
Size:	212.4 KB
ID:	143699  

__________________
http://free3dscans.blogspot.com/ http://my-woodcarving.blogspot.com/
http://my-diysolarwind.blogspot.com/
Reply With Quote

  #9   Ban this user!
Old 10-10-2011, 07:57 AM
Khalid's Avatar  
Join Date: Apr 2006
Location: Pakistan
Age: 32
Posts: 2,851
Khalid is on a distinguished road

If someone have a working HEX file can share with me please.
__________________
http://free3dscans.blogspot.com/ http://my-woodcarving.blogspot.com/
http://my-diysolarwind.blogspot.com/
Reply With Quote

  #10   Ban this user!
Old 10-10-2011, 08:05 AM
Khalid's Avatar  
Join Date: Apr 2006
Location: Pakistan
Age: 32
Posts: 2,851
Khalid is on a distinguished road

Hmmm... In above picture i have mistakenly selected PIC 16LF628A but whether this may be the cause of trouble?
__________________
http://free3dscans.blogspot.com/ http://my-woodcarving.blogspot.com/
http://my-diysolarwind.blogspot.com/
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 10-10-2011, 08:59 AM
doorknob's Avatar  
Join Date: Jan 2010
Location: USA
Posts: 1,240
doorknob is on a distinguished road
Buy me a Beer?

Originally Posted by Khalid View Post
Following is my observation... With the motor connected and the both the Power supply enabled and the PIC install..My motor do not hold...

But when i keep finger under the PIC and Xtal soldering joints, Motor holds and i can't rotate it by fingers... But as i removed the fingers from the Xtal/Pic soldering joints the motor do not hold..
I thought that the cold solder may be their but the Digital Meter shows continiuty of all the joints...
I have no experience with that circuit, but I am wondering whether the symptom you have described could be caused by a balky oscillator, with a crystal that does not want to start oscillating.

Is there any indication on the board (such as a blinking LED that is under the direct control of the PIC firmware) that the PIC is actually getting a clock signal when you don't have your finger under the crystal circuitry? If the oscillator does not start reliably then you will have problems. It might be possible that the capacitance values that you are using are not well matched to the crystal.
Reply With Quote

  #12  
Old 10-10-2011, 10:27 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,544
Al_The_Man is on a distinguished road
Buy me a Beer?

Is this the schematic you are working with?
http://www.jrkerr.com/pstep_bd.pdf
There is an active high E-stop input, which would indicate that this has to be taken low to remove the stop.
My programmer won't allow a different PIC than designated to be programmed?
What is the PIC you are using?
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
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
Problem- How to prevent excessive voltage to Geckodrive logic inputs? Sunmixed Gecko Drives 0 09-11-2011 11:11 PM
LB15 shear pin replaced what know ? meadowtech Okuma 5 06-21-2011 06:36 PM
Replaced encoder, replaced cable, still can't get 4th axis working ralph@nes Haas Mills 40 02-07-2008 05:03 PM
Can't find C5 and C7 (PicStep component) obscurity PicStep Controllers 3 08-04-2006 02:02 AM
Picstep board voltage question dberndt Stepper Motors and Drives 1 01-15-2005 10:34 PM




All times are GMT -5. The time now is 03:50 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 354 355 356 357 358 359 360 361