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-13-2006, 08:47 AM
 
Join Date: Mar 2006
Location: Czech republic
Posts: 15
RadekCX is on a distinguished road
Bug in PicStep - bad FW

Hello,

I made PICstep driver with FW with torque compensation but this SW not work. FW without compensation worked but if I testing max rpm i working gut only one side rotation.

I write my own FW. I lost many months development, because bug is mainly in datasheet for LMD18245. Very difficult is timing algoritmus for generating outputs for bridge.

Unfortunately my driver is comercial project and I cant public source code for PIC16F628.

My driver is public on my web http://www.cncnet.info/view.php?naze...nku=2006050002

Parameters Bistep:
-------------------------------
microstepping: 1/2 1/4 1/8 1/16 for step
input frequence: 45kHz
optocouplers on inputs compatible directly with LPT
current settings: 0.5 - 3A step 0.5A
DC supply: 12-48V...driver has on board step-down converter for 5V logic
timeout: is not implemented

By testing this driver with bipolar motor 3V/1.5A rotate above 1500rpm with full strong.

Pinout PIC16F628A with my FW is compatible with original version Picstep.

RadekCX
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 07-20-2006, 12:59 AM
Garfield2's Avatar  
Join Date: Sep 2004
Location: Australia
Posts: 232
Garfield2 is on a distinguished road

Originally Posted by RadekCX
Hello,

I made PICstep driver with FW with torque compensation but this SW not work. FW without compensation worked but if I testing max rpm i working gut only one side rotation.

I write my own FW. I lost many months development, because bug is mainly in datasheet for LMD18245. Very difficult is timing algoritmus for generating outputs for bridge.
K'eh? PICStep has been sucessfully used by hundreds of people around the world, what bug are you talking about? I'm guessing FW==firmware, what does SW equal? SW==software maybe?

If english isn't your strongest language please don't confuse your post with acronyms.

Originally Posted by RadekCX
Unfortunately my driver is comercial project and I cant public source code for PIC16F628.
Seeing as PICStep is a GPL project I hope you haven't "based" any of your code on my firmware else you're in breach of the GPL.

Alan.
Tweet this Post!Share on Facebook
Reply With Quote

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

What language is the webpage? is there a compatable english translation page?
__________________
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

  #4   Ban this user!
Old 07-20-2006, 04:45 PM
 
Join Date: Mar 2006
Location: Czech republic
Posts: 15
RadekCX is on a distinguished road

Originally Posted by Garfield2
K'eh? PICStep has been sucessfully used by hundreds of people around the world, what bug are you talking about?
Yes? Maybe, but your FW not work on both side rotation identically. I testing this FW and I dont know, why max rpm is not identically - this is not identically even if change phase on motor. I'm testing progress current through phase with osciloscope and here also not current identically. With good motor is bug better evident. This bug verify two people not dependent on me.

Originally Posted by Garfield2
I'm guessing FW==firmware, what does SW equal? SW==software maybe?
Sorry, this is my bug. Correct is only FW==firmware. FW is software for MCU.

Originally Posted by Garfield2
Seeing as PICStep is a GPL project I hope you haven't "based" any of your code on my firmware else you're in breach of the GPL.
This is very simple and long history.
I need fom may CNC drivers and PICstep was very nice and I working with PIC MCU. I made my own version PCB and flash FW version with torque compensation. This version not worked. I flash version without compensation - this version worked ( seemingly). But I need microstepping 1/16. I rewrite your FW new. No with ASM but I use mikroPascal for PIC. This FW worked as your FW - have extra only 1/16 microstepping and not support full step. This version FW and PCB is on my website http://www.cncnet.info/view.php?naze...nku=2005120802 with all source code, HEX and all documentation.

But when I this version testing I find bug see above.
What to do!!! I have four PCB and bad working. I flash again your FW and when I thoroughly test have aqual bug as my FW.

I again and again rewrite FW and testing but driver not work well. But I finaly uncover why driver not working OK. This bug is already in datasheet LMD18245. This argument for equal pinout on MCU.

Then I made new PCB with DC-DC converter and this project is Bistep. PCB not equal with Picstep, FW is not equal with Picstep - only pinout is identicaly with Picstep. My new HEX have 7.5kB - almost 2x better as PICstep.

Is this violation GPL - IMHO NOT!!! Any driver with PIC16F628, LMD18245 is PICstep?

Sorry for may english - better I dont know.

RadekCX
Tweet this Post!Share on Facebook
Reply With Quote

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

Originally Posted by RadekCX
Yes? Maybe, but your FW not work on both side rotation identically. I testing this FW and I dont know, why max rpm is not identically - this is not identically even if change phase on motor. I'm testing progress current through phase with osciloscope and here also not current identically. With good motor is bug better evident. This bug verify two people not dependent on me.
I've not seen this bug of which you speak, how are you coming to the conclusion that the speed difference is the FW and not the multitude of other variables between the IO pins of the PIC and the coils of the motor?

The coil currents are simply a look-up table output to the DAC of the LMD's. There really isn't much to go wrong here as far as my reading of the datasheet.

Originally Posted by RadekCX
Is this violation GPL - IMHO NOT!!! Any driver with PIC16F628, LMD18245 is PICstep?
No any driver with an LMD and a PIC isn't PICStep, but any driver with an LMD and a PIC programmed with my firmware or a derivative of it is. If you've written your firmware from scratch with pascal and haven't simply ripped the headers off my asm then that's fine.

But at the same time, you cannot cry "WOLF WOLF" about my firmware without showing where this "bug" is. That's just not very nice to the community that has "helped" you produce your "commercial" firmware.

Alan.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 07-21-2006, 03:55 AM
 
Join Date: Mar 2006
Location: Czech republic
Posts: 15
RadekCX is on a distinguished road

Originally Posted by Garfield2
I've not seen this bug of which you speak, how are you coming to the conclusion that the speed difference is the FW and not the multitude of other variables between the IO pins of the PIC and the coils of the motor?
This is simply - I know where is bug and bug is in DS LMD18245. Your FW is write exactly by this document.
I have two diferent version PCB and result is every equal - bad rotation (resonance, not max rpm) on one side not dependent on subtitution coil on motor (this eliminate bug in motor). When I write first version my FW was equal problem. When I flash new FW in both PCB then all problems lost.

Originally Posted by Garfield2
The coil currents are simply a look-up table output to the DAC of the LMD's. There really isn't much to go wrong here as far as my reading of the datasheet.
Problems regulation stepper motors is not simply!!! But bug in DS is fundamental. :-(

Originally Posted by Garfield2
But at the same time, you cannot cry "WOLF WOLF" about my firmware without showing where this "bug" is. That's just not very nice to the community that has "helped" you produce your "commercial" firmware.
Alan - I send to your mailbox (before I posted message in this forum) two e-mails - first 12/13/2005. Here I writed about my version PICstep and you can download my FW with torque compensation.
Before many weeks I write second email - here I write about the bug in our FW.
On my emails you do not replied. Maybe in this time was possibly cooperation.
Then I posted message in this forum. Alan don't cry now!

How community "helped" produce my version FW!!!?? Schematic PICstep is identicaly with recommended schematic in DS LMD18245. Is it not new. New my FW is absolutely different.
Driver Bistep now completed company not dependent on me and I cannot FW release.

I have not obligation to community!! Information about bug you know now. It's all.

RadekCX
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 07-21-2006, 04:22 AM
 
Join Date: Mar 2006
Location: Czech republic
Posts: 15
RadekCX is on a distinguished road

Still note:

On my web is most projects free and people can download all documents free - I not need GPL - its simply free - for example weatherstation with web output, LCD with RS232 input and other.

I working as devoleper SW for PC and working with MCU is my hobby. When I get any money from donate or when I sell any project with MCU, then I put profit from this projects into SW or instruments for develop other free projects.

RadekCX
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 07-21-2006, 07:23 AM
Garfield2's Avatar  
Join Date: Sep 2004
Location: Australia
Posts: 232
Garfield2 is on a distinguished road

Originally Posted by RadekCX
Alan - I send to your mailbox (before I posted message in this forum) two e-mails - first 12/13/2005. Here I writed about my version PICstep and you can download my FW with torque compensation.
Before many weeks I write second email - here I write about the bug in our FW.
On my emails you do not replied. Maybe in this time was possibly cooperation.
Then I posted message in this forum. Alan don't cry now!
I receive nearly 600 emails everyday, I do not reply to everyone because I wouldn't get anything else done. Also if the english is particularly hard to comprehend I'm even less likely to respond.

As for crying, I've done nothing of the sorts other than trying to decifer what you are talking about and trying to reduce your bad mouthing of _my_ many months of work.

I think you are misunderstanding my responses as aggressive when all I'm trying to do is figure out what it is you have found. Yes I understand you have produced a commercial driver, but using my driver and it's "buggy" firmware as a reason to purchase yours isn't very friendly.

Originally Posted by RadekCX
How community "helped" produce my version FW!!!?? Schematic PICstep is identicaly with recommended schematic in DS LMD18245. Is it not new. New my FW is absolutely different.
The fact you even stated you got your ideas from my driver is a prime example. I think the language barrier here is proving to be the biggest bug in this dialog. I doubt I could understand the issue you have found even if you put it as simply as possible. I get it has something to do with the datasheet information for the LMD about coil current control but what the bug is I am still scratching to understand.

Originally Posted by RadekCX
Driver Bistep now completed company not dependent on me and I cannot FW release.

I have not obligation to community!! Information about bug you know now. It's all.
Nice, good fortune to you too.

Alan.
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 07-21-2006, 08:18 AM
 
Join Date: Sep 2005
Location: EGYPT
Posts: 167
max_imum2000 is on a distinguished road

from what i understand

1. there is a problem when u turn the motor on i direction the speed is not the same as the opposite direction (it cant reach its max rpm)

2. this is due to a mistake in the datesheet of the lmd

3. this project is commerical but u are posting all the documentation on your web site, i dont know how comes ?


so please send alan the page number and line number where is the mistake in the lmd datasheet and what should be corrected, that will be better that trying to decrypt your messages

also take it easy alan, your driver is great and everyone knows it
i am sure that the langage is causing problem and thats it.


max
Tweet this Post!Share on Facebook
Reply With Quote

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

Hi,

Somebody who knows Czech language read for me the page about Picstep. I mean the Picstep you built from original schematics. Unfortunately, it is not clear there if the FW you modified from original Picstep is corrected or not. It seems that you did not correct it just modified for full step and 1/16 step. Is this true? Also, you do not mention what jumper setup is needed for each step/microstep function.
For your own version of controller/driver it seems that the schematics is the same with picstep, just some opto added. Is this true?
Do you sell (the company) already programmed chips and if yes, how and at what price?

Thank you.

Zoltan
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 07-21-2006, 02:05 PM
 
Join Date: Mar 2006
Location: Czech republic
Posts: 15
RadekCX is on a distinguished road

Originally Posted by zoltan
Hi,
Somebody who knows Czech language read for me the page about Picstep. I mean the Picstep you built from original schematics. Unfortunately, it is not clear there if the FW you modified from original Picstep is corrected or not.
My first version is on this URL http://www.cncnet.info/view.php?naze...nku=2005120802 this version is on web with source code, HEX and other documents.

When I write this version FW I dont know about bug in DS LMD18245. In this FW is identicaly bug as in Alans FW. This FW have only microstepping 1/16 and have not full step.

Originally Posted by zoltan
It seems that you did not correct it just modified for full step and 1/16 step. Is this true? Also, you do not mention what jumper setup is needed for each step/microstep function.
No, my all version (only for 20MHz clock) support only: 1/2 1/4 1/8 and 1/16 microstepping - 1/2 is with torque compensation

Originally Posted by zoltan
For your own version of controller/driver it seems that the schematics is the same with picstep, just some opto added. Is this true?
First version is on link above with schematic and PCB - this version is identicaly with Alans PICstep - I add only jumpers for easy change currents through coils.

Comercial driver BiStep http://www.cncnet.info/view.php?naze...nku=2006050002 is partly identical (PIC and LMDs - so FW are compatible) but added 3x optocouplers (DIR, STEP, BRAKE) and DC-DC step-down converter. Linear stabilisator (like 7805) is not suitable for supply 48V.

Detail picture Bistep are here: http://www.cncnet.info/gallery.php?m...&galerie_id=11

Originally Posted by zoltan
Do you sell (the company) already programmed chips and if yes, how and at what price?
Yes, its possible.

programmed PIC16F628A-20MHz: 15 euro (I cann send directly)
completed Bistep: 80 euro (company mail: zstloukal(at)volny.cz)

Next comercial question please on privat contact cncnet.info(at)gmail.com - no on this forum.

RadekCX
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 07-22-2006, 04:15 AM
 
Join Date: Mar 2006
Location: Czech republic
Posts: 15
RadekCX is on a distinguished road

to all simple test:

Leave good motor (above 1.5A) freely on wood board and rotate on left and right side with 1/2 microstepping.
Listen sound and see resonance - wood board increase sound. One side is different (hard sound) and max rpm and torque on this side rotation is slight.
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 03:55 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