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 > PIC Programing / Design


PIC Programing / Design Discuss programing of PIC chips here and design of electronics using PIC chips.


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 03-15-2008, 01:23 AM
 
Join Date: Feb 2006
Location: USA
Posts: 131
Kingjamez is on a distinguished road
Smile Higher number of microsteps with LiniStepper?

I am using the linistepper for a telescope CNC project. I need as many microsteps as the PIC on the linistepper will allow. Any tips on how to reprogram the PIC for a higher microstep count than the 1/18th that comes stock?

-Jim
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 03-24-2008, 03:10 PM
 
Join Date: Feb 2007
Location: New Zealand
Posts: 483
Blog Entries: 1
kiwichris is on a distinguished road

The effective resolution is effectively set by the 1N4148 + resistor network on rb4-7.

You'd have to change this circuit to get a higher resolution, and as it happens you'd probably need a different PIC to get higher resolution as well, as the 16F84 is out of pins in that circuit...
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 03-24-2008, 05:25 PM
 
Join Date: Feb 2006
Location: USA
Posts: 131
Kingjamez is on a distinguished road

I don't think the effective resolution is set by the resistor network for the higher microsteps count. It seems that is done inside the PIC using software. James Newton claims on the linistepper site that it is rather trivial to do it. I just don't know how.

-Jim
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 03-25-2008, 05:30 AM
 
Join Date: Feb 2007
Location: New Zealand
Posts: 483
Blog Entries: 1
kiwichris is on a distinguished road

Hmmmmmmmmmmmm, (Looks at circuit again, while scratching head)

OK... I get what he's saying in the 'how it works' section of the linistepper pages

3 levels of current / 6 microsteps (1200 steps/rev) is what he gets from the resistor network alone, and he's modulating the three outputs using some sort of PWM to get that up to 18 microsteps or 3600 steps/rev.... Veddy Interesting.

I'm going to assume that for a telescope you don't need high speed movement? If you don't need to do high-speed travel you can probably do this with a far less complex circuit than the linistepper.

What rotational speed are you looking for? I feel a software challenge coming on. (Like I need _another_ project!)
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 03-26-2008, 03:24 AM
 
Join Date: Feb 2007
Location: New Zealand
Posts: 483
Blog Entries: 1
kiwichris is on a distinguished road

Had a bit more of a think about this...

Theoretically you should be able to generate fairly accurate microstepping up to any resolution you wanted at low speed using just PWM outputs from the pic into a single resistor/capacitor integrator, with a similar output stage to the linistepper.

I'm sure I've read threads on here (or maybe elsewhere) about the limitations of doing this though, which are mainly around top-end speed and torque... ie: the faster you want to go the less effective it would be.

Looking at the spec for the hardware PWM modules in the PIC16F876 I reckon you could probably do 32 microsteps accurately at up to about 5khz.. Which equates to 6400/12800 steps per rev, but only 1.28 or 2.56 revs/second which is not very fast for CNC usage. With a bit of fiddling you could probably transition to full steps and get faster speed, but that would require some experimentation, and my bench is already covered in another project that is half-finished!
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-30-2008, 05:07 PM
James Newton's Avatar  
Join Date: May 2005
Location: USA
Posts: 690
James Newton is on a distinguished road
Buy me a Beer?

The easy way to get a smoother motion is to bump up the value of the current smoothing capacitors C5 and C6. Much larger values (exactly how large depends on a lot of factors, so it's a try and see thing) will result in a smoother transition from each PWM microstep to the next. Doing this reduces your top speed, so you have to be aware of that. If you use the caps to limit the change in current to the point that your motor is getting a totally smooth transition from one step to the next at your normal operating speed, then it can't possible move any faster than that or the cap will smooth out the faster steps into... well... not steps.

Another way to smooth things out is by adding physical mass to the shaft. Again, at some point, you loose the ability to move that as quickly as you might like.

Recoding the PIC is also possible, but not easy unless you are a top end PIC programmer. If you do it, please honor the open source status of the driver and share your code.

Hope that helps, let us know your results.
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 03-30-2008, 05:20 PM
 
Join Date: Feb 2007
Location: New Zealand
Posts: 483
Blog Entries: 1
kiwichris is on a distinguished road

Hi James.

I've not built any linisteppers, but It's a very clever design. It's on my list of things to play with when I get some time, but I keep on getting other projects leaping into the 'queue' as it were.

re: speed. I think the real question is how fast a stepper has to go for the application, with that figure in hand you could make all sorts of rash suggestions! .

Cheers, Chris H.
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 04-13-2008, 11:16 PM
 
Join Date: Apr 2007
Location: USA
Posts: 1,137
harryn is on a distinguished road

Hi - on a somewhat related question - I am currently soldering up some linistepper kits (thank you, they are nice) for use with a motor with the following specs

- 6 - 7 mH
- approx 3 amps max current (room for growth)
- about 900 oz in when fully powered
- rotor inertia - approx 0.04 oz - in / s2
- For use with a direct drive rack and pinion
- 1/16th micro step mode
- RPM = 0 - 50 rpm, with 0 - 10 common

Now for the question.

I have read some posts about more common bipolar driver setups having "resonance" when run at low speeds. From what I understand about the linistepper drivers being more of a "linear mode" approach, it seems like they should be relatively smoother. Is that more or less right ?

I am not an EE and have really no scope capability, but suppose I double the capacitance of the (above discussed ) caps - is that enough to make a difference - or is it more like 10 x to make a real change ?

Thanks

Harry
Tweet this Post!Share on Facebook
Reply With Quote

  #9  
Old 04-14-2008, 10:50 AM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,669
Mariss Freimanis is on a distinguished road

The ultimate limit for microstep smoothness is the motor itself. There are two factors involved here:

1) Accuracy. Most step motor data sheets list a +/-5% non-accumulative tolerance. Think of this as a cyclic "wobble" in the motor's motion over the span of one revolution. It limits the motor's ultimate accuracy to +/-0.09 degrees or 1/2,000 of a revolution.

2) Linearity. 1 full step (1.8 degrees mechanical) is equivalent to 90 degrees electrical. Mathematically, the ideal waveform for the motor's current is sine and cosine. When a motor is microstepped at 10 microsteps per full step, an ideal motor would move exactly 0.18 degrees for every 9 degrees change in sine-cosine.

Motors are not ideal. They have some non-linearity (curvature) to what should be a straight line relationship between mechanical angle and electrical angle. The best motors we have tested show a +/-2% non-linearity over the span of 1 full step which would put the maximum possible smoothness limit at 25 microsteps.

Mariss
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 04-14-2008, 02:07 PM
 
Join Date: Apr 2007
Location: USA
Posts: 1,137
harryn is on a distinguished road

Hi Mariss - Thank you very much for that information.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 04-29-2008, 06:15 AM
 
Join Date: Mar 2005
Location: usa
Posts: 509
smarbaga is on a distinguished road

to increase the smoothness and increase the steps per telescope movement
perhaps a 1:10 (or so) ratio toothed pully on the system would be the best choice.
this would put less strain on the motor and be good for stargazing via a video camera.
the motor could then handle the extra weight of the camera.
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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to ask for a higher wage MBG CNCzone Club House 14 02-25-2008 03:25 PM
Higher Spindle RPM? keen Tormach PCNC 10 08-07-2007 10:59 AM
How to tune the linistepper for higher current? Niggo Open Source Controller Boards 10 09-22-2006 02:52 PM
Changing Microsteps rweatherly Xylotex 5 10-04-2005 11:22 AM
Capacitor at higher voltage? DAB_Design Gecko Drives 5 12-18-2004 05:46 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