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 07-27-2006, 02:06 PM
 
Join Date: Jan 2005
Location: Belgium
Age: 55
Posts: 147
lucas is on a distinguished road
Using Picstep's PIC to microstep other driver chips.

A lot of chopping driver chips don't directly support microstepping, however it can be done by varying the VREF input.
I made a simple circuit using a R2R DAC and a voltage follower between the PIC outputs and the VREF input of TEA3718 chips (used these TEA's because I had them here), it's working fine.

Below is the basic diagram.

With this it's possible to use recuperated or cheaper chips than those quite expensive LMD's.

If there's an interest I can make up the complete schematic and post it in the open forum.

There are no modifications needed to the PICSTEP firmware.
Alan, do you have objections or comments?

Luc.
Attached Files
File Type: pdf Step_R2R.pdf‎ (7.7 KB, 1387 views)
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 07-27-2006, 09:52 PM
 
Join Date: Jul 2005
Location: us
Age: 55
Posts: 668
Madclicker is on a distinguished road

I've also considered these "poor man DAC's". They should be every bit accurate enough for the application. I just got a sample tube of 18200's, but they're only a buck or so cheaper than the 18245's. I'm thinking discrete is the way to go.
__________________
Steve
DO SOMETHING, EVEN IF IT'S WRONG!
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 07-28-2006, 12:20 AM
 
Join Date: Mar 2005
Location: Romania
Posts: 339
zoltan is on a distinguished road

Wow...great. I have also a lot of TEA3718 recuperated from broken old printers. Could you, please, upload the full schematics?

Thank you.

Zoltan
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 07-28-2006, 05:40 AM
 
Join Date: Jan 2005
Location: Belgium
Age: 55
Posts: 147
lucas is on a distinguished road

Originally Posted by Madclicker
I've also considered these "poor man DAC's". They should be every bit accurate enough for the application. I just got a sample tube of 18200's, but they're only a buck or so cheaper than the 18245's. I'm thinking discrete is the way to go.
These DAC's can be very accurate, the R2R exists in precision resistor arrays like these at up to 0.01%:
http://www.semiconwell.com/r_net/swr2r04a.htm

For CNC microstepping is in most cases not used to increase resolution but to smooth out the motor, so tolerance isn't a big issue: just have a look at the step tolerance of a typical stepper.....

I use industry standard 1% resistors from the same batch and use 2 in series to make up the 2R values, this should be more than good enough.

My next project could be a high current driver using mosfet's and the L6506 (or similar) for the chopping part of it.

Edit: I misinterpreted your reply, you were saying that this is accurate enough, sorry. I will leave this for those who have doubts.
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 07-28-2006, 12:54 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

Have you done the code for your poor man's dac?
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 07-28-2006, 01:27 PM
 
Join Date: Jan 2005
Location: Belgium
Age: 55
Posts: 147
lucas is on a distinguished road

Originally Posted by pminmo
Have you done the code for your poor man's dac?
No, it uses the Picstep firmware as is (see message #1) and the output after the opamp looks just fine on the scope.
Alan did a good job.

Originally Posted by LMD datasheet
The DAC sets the threshold voltage for chopping at VDAC REF x D/16, where D is the decimal equivalent (0–15) of the binary number applied at M4 through M1.
This is also what an R2R DAC does but VDAC REF are the 5V outputs from the PIC. This concept will never output exactly 5V, it will be slightly less but very close and this doesn't really matter for CNC applications.
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 07-28-2006, 02:11 PM
 
Join Date: Mar 2005
Location: Romania
Posts: 339
zoltan is on a distinguished road

Hi,

Sorry for repeating myself, but are you going to upload the full schematics as you said: "If there's an interest I can make up the complete schematic and post it in the open forum."
I am interested to try your solution.

Thank you.

Zoltan
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 07-28-2006, 04:21 PM
 
Join Date: Jan 2005
Location: Belgium
Age: 55
Posts: 147
lucas is on a distinguished road

Zoltan,

no problem, just needed a bit of time to complete the schematics.

So here we go:

http://www.cnczone.com/forums/showth...567#post181567

Feedback appreciated.

Regards,
Luc.
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 07-28-2006, 04:51 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

I never analyzed the LMD DAC, I tought it was like allegro's 3 bit non linear dacs, I see that isn't true now.
I'm missing something though, I did some calculations and the 4 bit dac of the lmd and it looks like it has as much as 5% error when quarterstepping? How are people doing 1/16th micro stepping with it?
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 07-28-2006, 05:45 PM
 
Join Date: Jan 2005
Location: Belgium
Age: 55
Posts: 147
lucas is on a distinguished road

Phil,

like you I never looked into the details of the DAC's usage nor their "error" or the respective results.
I simply use the PICSTEP firmware and it gives wonderfull results.
5 % of one quarterstep (= 0.25/step) is only 0.0125/step, this doesn't look really important for our applications.

How they do 1/16th: just to smooth the motor's movement, certainly not to perfectly increase the resolution to exactly 1/16th with 1% precision.
Must say that I didn't try 1/16 yet, the new firmware wasn't available at that time.

A stepper motor has a bigger tolerance problem per step than this.
If my memory serves me right, Mariss, Gerry and others have pointed this out several times, microstepping doesn't increase resolution.

Regards,
Luc.

.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 07-28-2006, 07:11 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

Yes I understand the increased resolution/accuracy issue, just wanted to point it out if anyone was thinking along those lines.
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 07-30-2006, 09:49 PM
Garfield2's Avatar  
Join Date: Sep 2004
Location: Australia
Posts: 232
Garfield2 is on a distinguished road

Originally Posted by lucas
There are no modifications needed to the PICSTEP firmware.
Alan, do you have objections or comments?
None at all. Nice work!

Alan.
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On





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