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! > OpenSource CNC Design Center > Open Source Controller Boards


Open Source Controller Boards Discussion for Open Source CNC type Controller Boards and other related items. (for personal use only)


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 03-28-2009, 07:31 PM
 
Join Date: Oct 2007
Location: India
Posts: 75
joprinz is on a distinguished road
PICStep/Linistepper/AVRSTMD Code in C or BASIC

Hello Everyone,

I have read soo many posts and discussions about the PIC Step driver , Linistepper as well as the AVRSTMD driver. Thanks to their respective designers it is possible for many hobby CNC builders like me to design a driver quickly. But I have seen... as we learn more the more complex we would like our machines to be.

For instance I wish to add some features like idle current reduction or increase the current rating of the drivers by upgrading the Transistor stage. But all these would require a certain amount of change in the PIC/AVR code. And that is where my problem starts. All of the Drivers mentioned above are open-source and hence the Assembly code file is available freely. I have read the Microchip App Notes on "Microstepping Driver" code but even they only provide the ASM File not the C Code file. I am capable of writing/Modifying C or Basic Code for PIC and AVR but I am not soo good at Assembly code. It would be a lot easier for me to build a driver if I can obtain a tested code rather than trying to "reinvent the wheel"

I was wondering if someone can help me with a Stepper Driver Firmware code in C or BASIC which has PWM Current Control and Microstepping. I am willing to do the Circuit design complete with PCB Design files, part list and Drive Performance results on various motors and step modes. We could even make this an Open-source project if there is considerable interest.

Please Advice!

Regards,

Joe!
Reply With Quote

  #2   Ban this user!
Old 03-28-2009, 11:34 PM
James Newton's Avatar  
Join Date: May 2005
Location: USA
Posts: 756
James Newton is on a distinguished road
Buy me a Beer?

I would love to have C code for an open source controller, even the Linistepper, for which I sell the kit and add-ons:
http://www.piclist.com/techref/io/st...step/index.htm

Ide current reduction can be accomplished in the Linistepper with a diode, cap, and resister as long as the step signal from the PC returns to ground between steps. See:
http://www.piclist.com/techref/io/st...axis3build.htm under "Options" / "Auto low power" near the bottom of the page. Granted, it would better be accomplished with code in the PIC, but this would require that the PIC be setup with a timer interrupt, time count, and external crystal. These are non-trivial changes. And the PIC used is close to being out of code space as it is, so you will have to upgrade to the next version if you do find or write C code.

I'm not sure I understand why the code would need to be changed to upgrade the power transistors used... You can find higher power versions and just substitute them. Honestly however, the hardware design of the Linistepper will provide diminishing returns at very high amperages, so there isn't much point. If you need that sort of power. Pony up for a Gecko. There just aren't any open source designs that are anywhere near as good for high power controllers. The Linistepper will perform just about as good as a Gecko at the medium to low power range, but it doesn't scale up.

Best wishes.


--
James.
Reply With Quote

  #3   Ban this user!
Old 03-29-2009, 05:11 AM
 
Join Date: Oct 2007
Location: India
Posts: 75
joprinz is on a distinguished road

Thank You James for your reply.

I had built Linistepper for my first router project (I run it at 2A per phase. But It did not have current reduction. I will add it as per your design)One thing about Linistepper is that it is indeed a really well designed driver and sometimes I wish it could do higher currents.

From your reply and also from what i have read at the linistepper site I understand that going above 5A is not preferred for Linistepper. However of-late NEMA 34 sized steppers are available at really reasonable prices and that makes a driver that can do above 5A a REAL WISH.

I have been trying to build a stable driver which can do 6A preferably in Bipolar mode. But since this is more of a private hobby for me I find it hard to find the time to design a driver ground up. I was hoping if I could get the Source code for say the PIC Step or the AVR-STMD may be I could alter the code and use a Discrete FET Bridges instead of the LMD Series (The LMDs are really good chips but they have a 3A Max Limit).

Please Advice!

Regards,

Joe!
Reply With Quote

  #4   Ban this user!
Old 03-29-2009, 09:50 AM
James Newton's Avatar  
Join Date: May 2005
Location: USA
Posts: 756
James Newton is on a distinguished road
Buy me a Beer?

I totally agree, an open source driver that could really do a good job with those nice big motors would be great. I hope you find one or make one, and please let us know.

From what I have seen, the design of a high power stepper driver that doesn't have all the standard resonance and other problems requires a lifetime of experience in the area. The subset of people who have that level of experience and who are willing to do open source is currently... zero. Maybe that will change.

Best wishes.

--
James.
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
I think i am going the Linistepper route phantomcow2 PIC Programing / Design 1 03-14-2009 12:19 PM
Need Help!- Linistepper troubleshooting pedro13 Open Source Controller Boards 3 02-13-2009 12:05 PM
Need Help!- Basic CNC code question from a novice piaengr CNC Plasma and Waterjet Machines 4 07-18-2008 11:55 AM
Basic G-Code Question Tazzer G-Code Programing 11 05-18-2008 09:21 PM
Linistepper tante Open Source Controller Boards 7 12-19-2005 09:24 AM




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