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 > General Electronics Discussion


General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-19-2006, 03:12 AM
*Registered User*
 
Join Date: Dec 2003
Location: turkey
Posts: 33
mechanicer is on a distinguished road
stall detection

Hi,

I want to make a stall detection system. How can it be?
I suppose,
It will sense the step commands coming from computer and signals from step motor (with optical sensor or etc.) that whether it is turning or not.
While steps are coming, it will check if step motor is turning or not. If motor is turning no problem but if motor is not turning, it will shut the system.(means stall).

Anybody can help me in this subject.

Best regards.
Reply With Quote

  #2   Ban this user!
Old 01-19-2006, 09:14 AM
 
Join Date: Dec 2005
Location: USA
Posts: 3,319
NC Cams is on a distinguished road

You are essentially describing exactly what the feedback system of a servo does.

So, all you have to do is add a feedback encoder and wire it in and create the logic to respond to it.

I'd look into merely installing a servo if it were my choice.
Reply With Quote

  #3   Ban this user!
Old 01-19-2006, 09:19 AM
 
Join Date: Sep 2005
Location: USA
Posts: 2
jl15 is on a distinguished road

You could use an optical encoder on the motor shaft and input the shaft position and step commands to a Picmicrocontroller. The PIC can then be used to shut down the system when a stall is detected.
Reply With Quote

  #4   Ban this user!
Old 01-19-2006, 11:14 AM
Syp Syp is offline
 
Join Date: Jan 2006
Location: USA
Posts: 31
Syp is on a distinguished road

Another idea would be to use an accelerometer on the axis you want to detect stall conditions. If the accelerometer is reading zero when you are moving, probably you are stalled. :-)

A 2 axis accelerometer is about $29 nowadays.

Syp
Reply With Quote

  #5  
Old 01-19-2006, 11:18 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,455
ger21 is on a distinguished road
Buy me a Beer?

You can get a system that will detect if the machine is out of position that works with Mach3 from www.rogersmachine.net

Works with both steppers and servos, and will pause the machine if it loses position.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-19-2006, 11:29 AM
 
Join Date: Dec 2005
Location: USA
Posts: 3,319
NC Cams is on a distinguished road

Accelerometer = not so good idea

Here's why:

At rest, you have ZERO acceleration

At ANY constant velocity you have ZERO acceleration.

When you have any change in velocity, you have acceleration (positive=acceleraion whereas negative=deceleration). Its gonna be real hard to keep an error signal from occurring when you have to find a awy to come up with a control logic that will "think" about what's going on and when.

With some AND or OR logic, you could get an accelerometer to work but a tachometer feedback would probably your easiest thing to integrate. If you were stepping, you better have an RPM of some king. Trouble is, if you step only enough to get a few thou movement, you won't generate a perceptible RPM.

Still say, use a servo and drive - it is ultimately what you're trying to emulate and it is a bolt on if you are willing to spend the $$$.
Reply With Quote

  #7   Ban this user!
Old 01-19-2006, 04:35 PM
 
Join Date: Jan 2005
Location: Belgium
Age: 56
Posts: 149
lucas is on a distinguished road

I have been thinking on this also, when I saw a small tool heavily bending because the Z stalled.
The easiest way is indeed to detect motor, screw or table movement optically and compare that with the step pulses, there's no need for accuracy, it's only a safety issue.
There could even be 10 step pulses for only one feedback pulse, a few thou shouldn't matter, it's not a servo emulation. Benefit of a servo is that this feature is incorporated.

I have a basic concept in mind but no details yet.

@ Gerry: The board you suggested looks like overkill for only this purpose. Do you intend to use it for your dual motor gantry? In your case a stall detection (for whatever reason) would be very usefull.

BTW: It's also possible for the stepper driver to detect a stall, some have it and there's also a application note on the subject. But it seems quite complicated to implement it.
Reply With Quote

  #8   Ban this user!
Old 01-19-2006, 05:17 PM
 
Join Date: Sep 2005
Location: EGYPT
Posts: 167
max_imum2000 is on a distinguished road
easy solution

according to my knowledge

There are very easy solution that can be done and cost almost nothing. you can sense the current going to the motor , as dc motors takes too much current when in stall
so you wither

1. make a circuit to detect the current and stop the system or do whatever u want

2. add a fuse with rating close to stall so it blows up

3. add a fused switch (like the one found on homes) that when certain amperage is reached the switch is turend off
Reply With Quote

  #9  
Old 01-19-2006, 05:32 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,455
ger21 is on a distinguished road
Buy me a Beer?

Originally Posted by lucas
@ Gerry: The board you suggested looks like overkill for only this purpose. Do you intend to use it for your dual motor gantry? In your case a stall detection (for whatever reason) would be very usefull.
That board was designed to prevent damaging parts if you do happen to lose steps, not just let you know that you have.

I don't plan on needing that for mine. If it's losing steps, I'll get bigger motors/ better drives.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #10   Ban this user!
Old 01-19-2006, 06:20 PM
 
Join Date: Jan 2005
Location: Belgium
Age: 56
Posts: 149
lucas is on a distinguished road

Originally Posted by ger21
That board was designed to prevent damaging parts if you do happen to lose steps, not just let you know that you have.

I don't plan on needing that for mine. If it's losing steps, I'll get bigger motors/ better drives.
Gerry, Mechanicer (and me) would like to automatically stop the machine in time, not just signalling it to the operator to hit the E-stop and then it will be too late: ruined parts, tools or even wrecked machine.

Aren't you worried on this? Your motors, drivers could be well sized and function properly but then one day the totally unexpected thing happens: failing drive, damaged cables (motors or limit switches), the cleaning lady does something wrong...
Even the "unthinkable" like a mice feeding from cables or peeing on drives and when you start the machine the gantry get's wrecked.

I've seen several stepper driven systems with optical feedback only for safety and I personally would like to have it on a big machine where a lot of time and money has been invested.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 01-19-2006, 07:49 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,564
Geof will become famous soon enough

Originally Posted by lucas
....The easiest way is indeed to detect motor, screw or table movement optically and compare that with the step pulses....I have a basic concept in mind but no details yet....
Here is a cheap optical system: Mount an aluminum disc with a brushed or fine sand blasted finish somewhere on the drive system. Get a cheap optical mouse and mount it so it is looking at the disc and plug it into an available usb port. Write a program that looks for "mouse" signals at that port when step pulses are being sent; no signals no motion, stop the system.
Reply With Quote

  #12   Ban this user!
Old 01-20-2006, 08:22 AM
 
Join Date: Jan 2005
Location: Belgium
Age: 56
Posts: 149
lucas is on a distinguished road

The real simple setup wich I would like to try is a 16 slot disc mounted on the screw with an optical sensor.
There would be 12.5 steppulses for each sensor pulse using a 200 step/rev motor.
Feed the steppulses in a simple counter and reset the counter with the sensor pulse.
The counter would count up to 12 and then be reset to 0 by the sensor.
When it reaches 16: something's wrong: create E-stop. 2 or 3 IC's should do the job.
One problem: on a direction change when the counter has reached 9 and the motor reverses it will count up to 18 before the next sensor pulse arrives, a change in direction should also reset the counter.

The number of slots and counter values are just an example, other combinations should work also.
This is just an idea wich needs some more thinking but it would be a simple solution.
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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -5. The time now is 10:57 PM.





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