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   Ban this user!
Old 12-28-2007, 06:45 AM
Steve-Tee's Avatar  
Join Date: Nov 2006
Location: New Zealand
Age: 44
Posts: 90
Steve-Tee is on a distinguished road
My Design for a home made Pendant

Hi folks,

I have designed and built a simple Pendant for use with the CNC machine I am building.
It uses discrete parts, so as to make for easy testing during development.
A stepper motor is used as a carrier for the jog wheel and the optical encoder disc. The stepper motor has another use too, it generates a very pleasant degree of tactile feedback when turning the jog wheel.
I thought I would include my circuit diagram here, so folks could take a look and suggest possible improvements / weaknesses.

There are pictures of the completed device in the photo callery.
It's quite a small unit, so it fits nicely in my hand.
I need to use both hands to operate it. This helps to keep my digits clear of the moving machine parts .

The 4 axes can be driven at the same time, but will all go in the same direction - since there is only one direction control coming from the Pendant.
Single axes can be selected by pressing the appropriate switch while delivering pulses from the 2 possible onboard sources.
1) A variable oscillator provides 'auto pulse' mode (200Hz to 6000Hz),
2) An optical MPG provide 'manual jog pulses' when the jog wheel is turned.

The MPG has a velocity control switch to select between full jog speed and 1/64th of full jog speed.
This comes in handy when making final adjustments to the positions of the various axes.

Direction control comes from the jog wheel. Its last movement dictates the direction in which the axes move when driven in 'auto pulse' mode.

When the Pendant is plugged into the mill, the computer detects its presence and halts the program, if it was running.
This function is afforded by the 'Computer lockout' pin on the connector. Its purpose is to prevent the two sources of motor pulses from interfering with each other.

The Pendant has to be unplugged before the computer can resume control of the machine

This design is not perfect, as it is possible for the 'auto pulses' to be delivered while the 'manual pulses' are being generated.
A bit of extra circuitry could have fixed this, but I figured it wouldn't be too bad .

If I were to do this again, I am sure I would opt for a PIC Micro.
This would save on parts and make for a much more versatile device.

Best wishes,
Steve-tee.
Attached Files
File Type: pdf Steve's Pendant Schematic.pdf‎ (18.0 KB, 609 views)
Reply With Quote

  #2   Ban this user!
Old 12-30-2007, 11:50 AM
neilw20's Avatar  
Join Date: Jun 2007
Location: Australia
Age: 63
Posts: 2,338
neilw20 is on a distinguished road
Talking MPG device.

Ever tried using the output from a small stepper motor as an MPG.

Shouldn't take much to clean up the signal and create suitable pulses.
Picking the right size resistors as a load on each phase can adjust the 'feel'.
__________________
Super X3. 3600rpm. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.
Reply With Quote

  #3   Ban this user!
Old 12-31-2007, 05:41 PM
Steve-Tee's Avatar  
Join Date: Nov 2006
Location: New Zealand
Age: 44
Posts: 90
Steve-Tee is on a distinguished road
Re: Steppers as MPGs

Howdy Neilw20,
Yes, stepper motors do work as MPGs. Not only this, but they also generate a convenient quadrature signal.
This can be obtained from any one of the other coil phases in the motor.
At first, I thought I had found the winning combination, as the signals being generated seemed to be perfect.
Sadly, it all fell over when I tried to turn the stepper motor at very low speeds.
When I did this, the signal amplitude became too low to be readily detected.
Perhaps I should have more carefully amplified those weak signals for digital detection.
Hmmm, better yet, I could have used a differential amplifier to operate on opposing coil phases.
Ok, that experiment was done 20 years ago, well before I needed such a device for a CNC application.
Crikey, I didn't know what CNC meant until a year ago .
Now, I am a CNC addict

Considering that Pendants have velocity selectors in them, perhaps it's not such a problem that one can't use a stepper motor at very low speeds. After all, one can turn the dial at moderate speeds and use the velocity selector to slow the stream of stepping pulses.
Well, it looks like you have given me the needed impetus to reinvestigate this possibility .

It ought to be a lot easier to build than this Pendant was, so it's worth another look.

Best wishes,
Steve-tee.
Reply With Quote

  #4   Ban this user!
Old 12-31-2007, 06:00 PM
neilw20's Avatar  
Join Date: Jun 2007
Location: Australia
Age: 63
Posts: 2,338
neilw20 is on a distinguished road
Question Low Voltage CMOS

Try some of the low voltage CMOS families.
15K Resistors on the inputs, and a supply of about 1v, then a level translator.
We must stay digital (LOL).
Or, maybe just drive (through resistors) straight into the base of a transistor
that is almost biased on. A current mirror comes to mind. That will be good over a wide temperature range if you use a dual transistor in a package.
Make sure they get a couple of emitter resistors to improve balance.
A stepper motor designed for higher voltage should generate a bit more at low speeds too.
All is not lost.
__________________
Super X3. 3600rpm. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.
Reply With Quote

  #5   Ban this user!
Old 12-31-2007, 06:06 PM
Steve-Tee's Avatar  
Join Date: Nov 2006
Location: New Zealand
Age: 44
Posts: 90
Steve-Tee is on a distinguished road

Hehehhe, ahhh another convert to the great ways of the 'Digital world' .

Yes, I am sure I could get some great results by redoing those experiments. Hmmm, now where's that little pile of broken floppy drives?





Originally Posted by neilw20 View Post
Try some of the low voltage CMOS families.
15K Resistors on the inputs, and a supply of about 1v, then a level translator.
We must stay digital (LOL).
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-01-2008, 09:28 AM
 
Join Date: Sep 2006
Location: USA
Posts: 71
flyboy1015 is on a distinguished road

Steve,

I'm with Nielw20 on the stepper MPG. I think it's a great idea, however, I don't have any experience with it, so I probably have an idealistic idea of how it should work. I'm a mechanical engineer struggling to work in an electrical environment. I understand the concepts very well, but the implementation is something else.

Anyway, here is my idea: Use the stepper to generate pulses that are received by an op-amp. The op-amp is set up as a schmitt trigger. The op-amp is biased such that it will only trigger once the input has reached a certain level, which you can adjust. This may require an amplifier prior to the op-amp as you previously mentioned. The purpose of this whole exercise is to produce a nice, clean, consistent output from the device. There are probably 100 other ways to do this and a lot of them are probably better than this, but at my current level of experience and understanding, I think this is how I would proceed.

I would really like to be able to do this with a picmicro. Unfortunately, I have a minimal understanding of programming in assembly and even less in other programming languages. That being said, the next major hurdle would be communication between the pendant and the computer. I would like the cnc software to interface with the pendant.

I am also currently running turbocnc. I really with it had velocity contouring. I would probably continue using it if it did.

Thanks for your post. This helps me understand more about how to interface and how the machines work.

Chad
__________________
My Solsylva machine (my first cnc)
http://www.cnczone.com/forums/showthread.php?t=44336
Reply With Quote

  #7   Ban this user!
Old 01-01-2008, 04:28 PM
Steve-Tee's Avatar  
Join Date: Nov 2006
Location: New Zealand
Age: 44
Posts: 90
Steve-Tee is on a distinguished road
Re: Stepper as MPG

Hi Chad,
Yer pretty much on the mark when it comes to the use of op amps for pulse shaping and amplification.
A lot of op amp packages on the market have 4 devices in them.
Hmmm, how convenient. 2 devices per chosen stepper phase .
The first op amp would be set up as an amplifier, with diode clipped inputs for protection from over speeding of the stepper spindle. This would be most likely to be DC coupled to the motor for best response at very low speeds.
The output from this would then feed another of the 4 opamps which would be set up with positive feedback to make it into a schmitt trigger. this arrangement ought to be quite elegant in its simplicity.
By duplicating this arrangement with the other 2 opamps in the package, perhaps a TL074, we could extract the required quadrature pulse structure from the motor coils.
Once done, those pulse groups are then sent to a 'D type clocked latch'. This device combines the signals to produce a 'Forward' / 'Reverse' direction control signal.
So, with just 2 chips and an old stepper, you have made a pendant .
Now, at this point, a PIC Micro starts to look interesting. As these have analogue to digital convertors in them, it is possible to produce a 'virtual schmitt trigger' in software.
The resulting virtual states are now in the form of data bits in a register.
By deciding which occurs first, and which occurs after, one can determine the direction of rotation and hence produce a direction control signal to accompany the motor clocking pulses.
The same PIC Micro can be used as the autopulse generator, controlled by a potentiometer driving an ADC input.
But why stop there?
An LCD would fit in quite nicely, as PICs love to play with these .
Oh, the ideas are really starting to flow now. Looks like the morning coffee is kicking in .
At the moment, my thinking cap is in the wash. It's really quite hard to get all the little bits of brain off it .
Hmmm, come to think of it, that could be grease from my hair...
Once it's ready to wear again, I'll give this some more considered thought.

Best wishes,
Steve-tee.
Reply With Quote

  #8   Ban this user!
Old 01-01-2008, 04:54 PM
neilw20's Avatar  
Join Date: Jun 2007
Location: Australia
Age: 63
Posts: 2,338
neilw20 is on a distinguished road
Why use power, or wires?

Carefuly done, with a capacitor and a few diodes, you can power an 8 pin PIC direct off the power generated by the stepper.
A some PICs will run for minutes, on a really small capacitor. 10uF 1206 SMD
Stuff a big cap in there, and the number of wires required keeps diminishing. Blue tooth!(LOL)

Put an 3 axis accelerometer chip (5mm x 2mm under usd$5) in the pendant and point it where you want to go!
The invention improves. Hit the pendant on the correct side for rapid. Who needs a knob. Now we have a matchbox size pendant, with no wires.
Battery (now required) will last over 1 year.
Drop it on the floor for emergency stop.
__________________
Super X3. 3600rpm. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.
Reply With Quote

  #9   Ban this user!
Old 01-02-2008, 03:46 AM
Steve-Tee's Avatar  
Join Date: Nov 2006
Location: New Zealand
Age: 44
Posts: 90
Steve-Tee is on a distinguished road
Re:Amazingly inventive Pendant design

Howdy Nielw20,

Oh boy, not only are you inventive but jolly funny too .
I must remember not to be drinking coffee while reading your posts, it makes such a mess when one suddenly bursts into laughter.


Best wishes,
Steve-tee.
Reply With Quote

  #10   Ban this user!
Old 01-02-2008, 03:07 PM
neilw20's Avatar  
Join Date: Jun 2007
Location: Australia
Age: 63
Posts: 2,338
neilw20 is on a distinguished road
Talking commants?

Originally Posted by Steve-Tee View Post
Howdy Nielw20,

Oh boy, not only are you inventive but jolly funny too .
I must remember not to be drinking coffee while reading your posts, it makes such a mess when one suddenly bursts into laughter.


Best wishes,
Steve-tee.
You should read the comments in my C code!
I think I'm coming down with a Lisp. (to generate GCode)
__________________
Super X3. 3600rpm. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 01-03-2008, 07:12 PM
Steve-Tee's Avatar  
Join Date: Nov 2006
Location: New Zealand
Age: 44
Posts: 90
Steve-Tee is on a distinguished road

Hehehehe, thanks for the warning.
I will be sure to keep coffee, and other sticky beverages well clear of the 'dot com machine' while reading your posts

Oh, for a waterproof keyboard .



Hmmm, now I'm off to design some more 'lektronic bits.
I have an idea for an SMPS that will supply the current that the motors will need.
It's an odd design, so it should work oddly? - or perhaps evenly?.
We'll see .




Originally Posted by neilw20 View Post
You should read the comments in my C code!
I think I'm coming down with a Lisp. (to generate GCode)
Reply With Quote

  #12   Ban this user!
Old 01-03-2008, 07:26 PM
neilw20's Avatar  
Join Date: Jun 2007
Location: Australia
Age: 63
Posts: 2,338
neilw20 is on a distinguished road

Originally Posted by Steve-Tee View Post
Hehehehe, thanks for the warning.
I will be sure to keep coffee, and other sticky beverages well clear of the 'dot com machine' while reading your posts

Oh, for a waterproof keyboard .
Water Proof Flexible Keyboards about $25 at ROCKBY ELECTRONICS (I think)

Originally Posted by Steve-Tee


Hmmm, now I'm off to design some more 'lektronic bits.
I have an idea for an SMPS that will supply the current that the motors will need.
It's an odd design, so it should work oddly? - or perhaps evenly?.
We'll see .
__________________
Super X3. 3600rpm. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Home made ATC pstockley General Metal Working Machines 21 11-09-2009 04:12 PM
Home made EDM RFERG43 CNC Plasma and Waterjet Machines 18 08-29-2007 06:18 AM
Using a Contour Design Shuffle as a pendant David Da Costa Benchtop Machines 0 07-28-2006 01:48 PM
Home made CNC mill (and some products made by it) gcamlibel DIY-CNC Router Table Machines 23 04-05-2004 05:54 PM
How about this for a home made cnc mill? fyffe555 DIY-CNC Router Table Machines 7 12-23-2003 05:14 PM




All times are GMT -5. The time now is 09:08 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