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 08-27-2010, 11:05 PM
 
Join Date: Aug 2010
Location: USA
Posts: 15
lasik2025 is on a distinguished road
How I fixed my Chinese TB6560 controller (updated)

I purchased a 4-axis controller base on the Toshiba TB6560 Driver IC from a Hong Kong vendor thru e.b.a.y. Although the board could be made to function by setting all parameters to low / relaxed / lame, I decided to find out why the controller greatly underperformed as compared to what the TB6560 IC specification implied.

Performance issues of MY board:
- required maximum (slow) timing settings in EMC2 to work without missing steps
- could be made to work at 12v but not 24v without missing steps
- would work with drive current set to minimum (25%) otherwise motors would miss steps
- at working controller settings, rapids weren't rapid...

All of these factors suggested a noise problem in the circuit (faster timings = less noise margin, higher drive voltage = more switching noise, higher drive current = more switching noise, rapid rapids = more switching noise).

Disclaimer: The information here pertains to MY TB6560 board which may not be the same as YOUR TB6560 board. Use the information here in at your own risk. I accept no responsibility as to the application of this information to YOUR board. However, the information is believed to be correct and does seem to have completely fixed MY board.

A schematic did not ship with my board. Another e.b.a.y. customer had requested the schematic from the my vendor, but the vendor response was "we dont do that". So I developed my own schematic based on inspecting and measuring MY board. See attached.

Seven issues were identified with the design on MY board:

1) Driver IC CLOCK input improperly driven: The TB6560 uses the rising edge of the CLOCK input (not explicitly called out in IC spec except for “rising edge” symbol shown in one table). The slow turn off time of the opto-coupler combined with the passive pull-up resistor are insufficient and allow system noise to cause unstable driver circuit operation. ( I measured a rise time with and oscilliscope of app 50uSec on my board.) Solution: Actively drive the CLOCK input using added 74HC14 IC as buffer.

2) Driver IC ENABLE input improperly driven: The opto-coupler for the ENABLE input is wired incorrectly having the npn emitter connected to supply. Although the circuit does function, the improper wiring of the npn will cause very low transistor gain opening the possibility of system noise corrupting the ENABLE signal. Solution: Rewire the npn of the opto-coupler with collector to supply and emitter to output.

3) Drive Current Manipulated by CLOCK/STEP signal: It appears that an attempt was made to implement a feature where the driver would reduce current to the stepper motors when the motors were idle. This was accomplished by pulling the drive current set input low when the CLOCK signal was active high. And although the feature does work for drive current settings of 25% and 50%, the implementation has negative side effects that outweigh the feature usefulness:
- the feature departs from the reference design of the TB6560 spec resulting in the spec no longer accurately describing operation
- motors may be overdriven with higher than programmed drive current
- artificially raises the lowest current motor that the controller board can safely drive
Solution: Disconnect the non-spec circuit.

4) Activity LED improper function: The activity LED circuit works properly when the STEP signal from the PC has high duty cycle (active low orientation). However, the TB6560 spec directly states that proper operation requires low CLOCK (e.g., STEP) signal duty cycle (or active high orientation). With active high orientation signal the activity LED remains lit even when the driver is not being ‘stepped’. Solution: None. Ignore the LEDs.

5) Potential for Overheating of 12V Voltage Regulator: The cooling fan is fed directly from the 12V Vreg output adding significantly to the loading of the device. The 12V Vreg will shut down if it overheats protecting itself; such a shutdown would result in lost steps of an active motor. Solution: Power the cooling fan with an external supply or (with suitable step down circuit) from the stepper motor supply voltage directly. With the fan connected to the 12v Vreg the heatsink temperature was 155 F, disconnecting the fan and waiting 5 minutes, the 12V Vreg heatsink temp dropped to 125 F.

6) System Not Optically Isolated: Despite having opto-couplers on all PC inputs and output, the controller does not properly implement optical isolation of the PC from the driver IC’s nor from the stepper motor power supply. This is due to sharing of ground among all circuits. Solution: None. However, do assure PC and stepper motor power supply externally share the same earth ground.

7) Operating Voltage Mis-information: The board is marked for input voltage “12v to 36v” but the IC spec indicates maximum operating voltage of 34V. But even that is probably not a safe operating point due to potential stepper motor generated voltage spikes. The controller board output diodes will clamp large overvoltage spikes when the diode breakdown voltage is reached, but the breakdown voltage is likely above the maximum voltage the driver IC can sustain without damage. Solution: Recommend limiting input voltage to 30v or less to provide margin of safety for operation.

Update: Immediately after posting the fixes, it occurred to me that it would be better to buffer the CLOCK/STEP signals with 1 74HC14 inverter instead of 2 :
- allows the 'activity LEDs' to work (using 1 inverter and setting software to invert the clock)
- allows 1 IC to 'fix' a 4 or 5 axis board instead of needing 2 IC's
- simpler to wire
See attachment slide10ver2.jpg for updated fix. I tested this morning and works fine.
Attached Thumbnails
Click image for larger version

Name:	cntr_top.jpg‎
Views:	5664
Size:	457.0 KB
ID:	113558   Click image for larger version

Name:	cntr_bot.jpg‎
Views:	5196
Size:	495.5 KB
ID:	113559   Click image for larger version

Name:	bufbrdmntd.jpg‎
Views:	6641
Size:	322.2 KB
ID:	113560   Click image for larger version

Name:	Slide09.JPG‎
Views:	8678
Size:	82.5 KB
ID:	113561  

Click image for larger version

Name:	Slide10ver2.jpg‎
Views:	7777
Size:	134.4 KB
ID:	113594   Click image for larger version

Name:	step_waveform.jpg‎
Views:	4193
Size:	45.3 KB
ID:	113595  
Attached Files
File Type: zip schematic_controller_TB6560.zip‎ (1.16 MB, 3621 views)

Last edited by lasik2025; 08-28-2010 at 11:42 AM. Reason: better (simpler, more complete) fix described
Reply With Quote

  #2   Ban this user!
Old 08-28-2010, 12:17 AM
doorknob's Avatar  
Join Date: Jan 2010
Location: USA
Posts: 1,240
doorknob is on a distinguished road
Buy me a Beer?

Bravo on making the effort to examine in detail how the driver board is actually wired, and what design decisions (and possible mistakes) were made by some anonymous board designer on the other side of the world.

I'm considering getting a board that looks suspiciously like the one that is shown in your photos, and so I'll have to take a closer look at the TB6560 spec sheet and reference design and compare it with your reverse-engineered info. Thanks...
Reply With Quote

  #3   Ban this user!
Old 08-28-2010, 02:51 PM
Drools's Avatar  
Join Date: Feb 2009
Location: Canada
Posts: 1,055
Drools is on a distinguished road

Very well thought out!
I do not own one of the boards you mention but you have done everyone that owns one a great service.
Reply With Quote

  #4   Ban this user!
Old 08-29-2010, 08:56 AM
 
Join Date: Jul 2010
Location: spain
Posts: 4
villamany is on a distinguished road

great!. Many thanks for share. I have same issues on my 3 axis board, with 1 motor seems to work fine, but when try with 2 o 3 motors the steppers do not work fine (some step stalls on all motors). I replace some parts (tb6560, capacitors, added pullup without good results). I am going to try your fix .

What do you think about the capacitor used for clock? I think that could be lower value for decrease the needled pulse time.

(Sorry my Spanglish )
Reply With Quote

  #5   Ban this user!
Old 08-29-2010, 09:46 AM
 
Join Date: Aug 2010
Location: USA
Posts: 15
lasik2025 is on a distinguished road

Originally Posted by villamany View Post
great!. Many thanks for share. I have same issues on my 3 axis board, with 1 motor seems to work fine, but when try with 2 o 3 motors the steppers do not work fine (some step stalls on all motors). I replace some parts (tb6560, capacitors, added pullup without good results). I am going to try your fix .

What do you think about the capacitor used for clock? I think that could be lower value for decrease the needled pulse time.

(Sorry my Spanglish )
villamany,

The capacitor on OSC does set the step pulse time as you indicate. I was not able to determine the value of that capicitor on MY board and I could not get my half-working oscilliscope to trigger properly so that I could measure the frequency on the OSC line. The silk screen on MY board says "102" which usually stands for "1000" and since the TB6560 IC spec says acceptable values are 100pF to 1000pF one would think the cap is 1000pF. But there are several parts on the board that whose values do not match the silk screen...
With that said, I am unsure if changing the OSC cap will help or not. On MY board the rise time on the step/CLOCK was simply too long. I did try changing
the step/CLOCK pull-up resistor from 4.7k to 1.0k which changed the rise time from 50uS to app. 20uS as measured on my o-scope; this change seemed to reduce the missed steps by only a small amount; only by adding the buffer with its very fast rise time was I able to eliminate missed steps (the 74HC14 biffer IC spec says rise time is less than 0.020uS or 1000 times faster than without the buffer, e.g. 20nS)

At what voltage are you trying to run your controller ? Without the buffer, I could get 12v to work but never found any settings that allowed 24v to run properly.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 08-29-2010, 10:27 AM
 
Join Date: Jul 2010
Location: spain
Posts: 4
villamany is on a distinguished road

at 13.8v i get some step stall, at 24v are very more step stall.

The stall are increase with:
- more steppers connected.
- with more torque settings.
- with more voltage.
- with less time decay settings.
- with low microstep settings.

Seems to be also noise problems.

What are the added resistors that i can see on "cntr_bot.jpg" picture?.

I only need 4x10k resistors, 1x74hc14 ic and 1x decouplig capacitor for these mods is ok?.

I has my controller working for about 5hours without problems on 12v regulator (very hot for my hand but not thermal shutdown ocurred).
Reply With Quote

  #7   Ban this user!
Old 08-29-2010, 11:36 AM
 
Join Date: Aug 2010
Location: USA
Posts: 15
lasik2025 is on a distinguished road
A buffer board schematic for your consideration

Originally Posted by villamany View Post
at 13.8v i get some step stall, at 24v are very more step stall.

The stall are increase with:
- more steppers connected.
- with more torque settings.
- with more voltage.
- with less time decay settings.
- with low microstep settings.

Seems to be also noise problems.

What are the added resistors that i can see on "cntr_bot.jpg" picture?.

I only need 4x10k resistors, 1x74hc14 ic and 1x decouplig capacitor for these mods is ok?.

I has my controller working for about 5hours without problems on 12v regulator (very hot for my hand but not thermal shutdown ocurred).
villamany,

The 4 leaded resistors that can be seen on "cnr_bot.jpg" were my attempt to fix the controller by changing the STEP/CLOCK pull-up from 4.7k to 1.0k. I did this by leaving the 4.7k in place and adding 1k resistors in parallel between the +5v supply and the Step signal ; the resulting effective pull-up was 4.7k || 1.0k = 0.8k. On my board, the chip resistors and capacitors are glued and soldered down making removal of those parts a little difficult and I did not want to risk damaging any printed circuit board traces by applying enough heat to cause the glue to release.

For the mod's, you may want 6 resistors as you will not want to leave the unused 74HC14 inputs unconnected; you can tie them to ground or +5v or, as I would suggest, to pull-up resistors. That way if you come across another signal that needs buffering the you will have spare buffers in place.

To hold my (ver 1) buffer board to the controller I used double sided foam tape (see "bufbrdmntd.jpg - buffer board mounted").

I have attached a schematic for a ver 2 buffer board for your consideration.
Attached Thumbnails
Click image for larger version

Name:	CNC Controller buffer board schematic ver 2.jpg‎
Views:	3379
Size:	56.6 KB
ID:	113641  
Reply With Quote

  #8   Ban this user!
Old 08-29-2010, 12:07 PM
 
Join Date: Jul 2010
Location: spain
Posts: 4
villamany is on a distinguished road

many thanks, finally i am going to use 3 buffers for the 3 step pins and the another 3 buffers for apply the same fix to dir pins (my controller only has 3 axis ) for prevent purposes.

If i can measure the real osc capacitors value i let you know.
Reply With Quote

  #9   Ban this user!
Old 09-01-2010, 10:05 AM
WoodSpinner's Avatar  
Join Date: May 2010
Location: usa
Posts: 211
WoodSpinner is on a distinguished road

I was considering buying one of these boards, guess I wont bother.

John
Reply With Quote

  #10   Ban this user!
Old 09-04-2010, 11:24 AM
 
Join Date: Sep 2010
Location: USA
Posts: 5
brutusgraphics is on a distinguished road

Hi folks,

I'm very new to CNC and have a long way to go no doubt. I have also bought the TB6560 board and have not hooked it up yet and I'm glad I ran across your board fix post first before I do hook it up. I have a question. Should a breakout-board be used with this TB6560 board ? ? ?
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-04-2010, 01:20 PM
 
Join Date: Aug 2010
Location: USA
Posts: 15
lasik2025 is on a distinguished road

Originally Posted by brutusgraphics View Post
Hi folks,

I'm very new to CNC and have a long way to go no doubt. I have also bought the TB6560 board and have not hooked it up yet and I'm glad I ran across your board fix post first before I do hook it up. I have a question. Should a breakout-board be used with this TB6560 board ? ? ?
brutusgraphics,

MY TB6560 board, as shown in the previous pictures, includes the circuitry that a breakout-board would provide; so the answer is "no you dont need a [separate] breakout-board" if YOUR TB6560 board is the same as mine.

However, there is one caveat. The optical isolation provided by MY TB6560 board was poorly implemented and does not provide all the protection a properly implemented breadout-board could. But as long as you plug in your PC to the same wall outlet (or the same power strip) as the powersupply for your CNC machine then you should be ok. Trying to use a separate breakout board with MY TB6560 would be extremely difficult.
Reply With Quote

  #12   Ban this user!
Old 09-05-2010, 11:44 AM
 
Join Date: Sep 2010
Location: us
Posts: 13
circuitz is on a distinguished road

Hi lasik2025,

I was busily reversing engineering a 3-axis controller when another user 'doorknob' pointed out your existence over on this forum page.

Here's some more flaws for the list.

- There is a FR301 diode in the motor voltage supply to each TB6560. When back EMF hits, that current can only dump into the 3300uF decoupling cap. The volts increase and folks on this forum start practicing their French. >> replace the 3 culprit diodes with fuses.

- No back EMF diode on the coil of the relay >> add diode

- Pins 25 of the TB6560 extends over the trace from pin 23 >> trim back

- Heatsink not grounded. The resistance from heatsink to ground is small but non-zero. When failure occurs substrate currents will help the remaining TB6560s to join the party >> according to the datasheet isolate each device from the heatsink or simply ground the heatsink

On the OSC pin issue, I observed a nice sawtooth waveform, ranging from 0.5V to 2.5V, with a frequency spread from 38kHz to just slightly over 40kHz.
The max step rate for the TB6560 is 1/4 of this.

Last edited by circuitz; 09-06-2010 at 12:22 AM.
Reply With Quote

Reply

Tags
missing steps, rapids, savebase, tb6560




LinkBacks (?)
LinkBack to this Thread: http://www.cnczone.com/forums/general_electronics_discussion/110986-how_i_fixed_my_chinese.html
Posted By For Type Date
CNCMASTERKIT Forums-viewtopic- TB6560AHQ This thread Refback 10-05-2010 05:07 PM

Currently Active Users Viewing This Thread: 5 (0 members and 5 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
Mac 3 setup for TB6560 controller board davidarf General CNC (Mill and Lathe) Control Software (NC) 1 07-27-2011 02:31 AM
tb6560 help me!!!!!!!! AvioP Stepper Motors and Drives 1 08-02-2010 03:06 PM
Chinese RZNC-05 controller & spindle help? Metalmog Commercial CNC Wood Routers 0 05-24-2010 11:20 PM
Chinese Mill + Chinese accesory + Newbee = Problem csaw Benchtop Machines 5 01-24-2010 10:39 AM
New Machine Build- Cheap Chinese Controller Arkwhizzard Controller Cards 13 02-27-2009 03:07 AM




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