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-28-2011, 04:47 PM
 
Join Date: Jan 2011
Location: uk
Posts: 16
dolomitedave is on a distinguished road
psu problems low current??

Hi,

i have built myself a PSU, control and dual H-Bridge driver for my stepper X 1 so far, connected it all together and it works but the stepper does not seem to draw the current i was expecting it to and there is little torque compared to me testing this stepper on a bench PSU. please see attached schematic for the H-Bridge and control. i am stepping it from a 555 timer for now just to test it.

The PSU consists of toroidal transformer 100VA (only using 1 tap 18V AC) - bridge rectifier - smoothing cap - LM7812 for logic and LM317 with a 1R resistor between adj and output pins to make it a constant current supply of 1.25A

I was under the impression as the motors are rated at 1.7A they would still work. I know with no load they will use less but when its under load it's still the same low. it only draws 150mA under load.

could someone point me in the right direction with this please, i know there are commercial products that will do what i want but i want the pleasure and experience of building my self.

Thanks in advance for your help.
Attached Thumbnails
Click image for larger version

Name:	Hbridge.jpg‎
Views:	35
Size:	58.7 KB
ID:	140949  
Reply With Quote

  #2   Ban this user!
Old 08-28-2011, 06:13 PM
john_100's Avatar  
Join Date: Mar 2007
Location: uk
Posts: 413
john_100 is on a distinguished road

looking at your circuit both coils are on all the time
the direction of the current is reversed in each coil on alternate steps

so the current in each coils is 1.25/2 = 0.625A

this current may be reduced if the coil and transistor on resistance is more
than 24v/0.625A = 38 ohm

looking closer at your circuit the upper transistors in the bridge
may not be turned fully on

you need to add an extra circuit to shift the logic level from 5v or 18v(TTL or CMOSlogic levels) to what ever the constant current circuit output voltage is

as it is ,if the voltage out of the constant current supply is more than the logic 1 level

the emitters of Q5 ,8 , 13, 16 will be about logic 1 level -1.2v !
ie for CMOS logic run of 12v the emitters will be 12v - 1.2v = +10.8v max

John

Last edited by john_100; 08-29-2011 at 07:41 AM.
Reply With Quote

  #3   Ban this user!
Old 08-29-2011, 03:34 AM
 
Join Date: Jan 2011
Location: uk
Posts: 16
dolomitedave is on a distinguished road

John,

Thanks for your help but i am a little confused i was using the image attached as a guide (this is from the datasheet for my steppers) which shows both windings on at the same time or have missunderstood you. also i may have misslead you but i have 2 supplies 1 at fixed 12V for logic the other at fixed current for the steppers only.

Dave
Attached Thumbnails
Click image for larger version

Name:	steps.jpg‎
Views:	21
Size:	20.6 KB
ID:	140977  
Reply With Quote

  #4   Ban this user!
Old 08-29-2011, 06:24 AM
john_100's Avatar  
Join Date: Mar 2007
Location: uk
Posts: 413
john_100 is on a distinguished road

Hi Dave,

your circuit is as I expected , with CMOS logic levels (I just chose a different supply voltage)

If you look at the darlington transistors (Q1 +Q5 ,Q4+Q8, Q9+Q13,Q12+Q16) in the upper half of the H bridge circuit they will act as emitter followers

the diagram shows 2 possible mods, using either opto isolators or 4 pnp transistors

with the simple full step circuit the current from a single constant current supply is equally divided between both coils

with a half step drive to the coils would alternate between all and half the supply current unless each bridge had its own constant current supply

have alook at this reply to another post - half /full step circuit :-





http://www.cnczone.com/forums/genera...ar_driver.html

you can use a 4066 to switch between full and half step instead of the links shown

John

PS as the step frequency is increased ,the inductance of the motor winding will have more of an effect ,
reducing the current more than expected ,if the upper half of the bridge is not being switched hard on

PPS if you drive the circuit directly from the TTL levels (eg printer port)
you may have to reduce the logic supply to 5v
if I remember correctly 0 to 30% v supply = logic 0 ,60 to 100 % vs = logic 1
Attached Thumbnails
Click image for larger version

Name:	h bridge driver circuits.jpg‎
Views:	31
Size:	48.2 KB
ID:	140978   Click image for larger version

Name:	full-half step circuit 2.jpg‎
Views:	25
Size:	67.5 KB
ID:	140980  

Last edited by john_100; 08-29-2011 at 08:54 AM. Reason: add pps
Reply With Quote

  #5   Ban this user!
Old 08-30-2011, 03:35 PM
 
Join Date: Jan 2011
Location: uk
Posts: 16
dolomitedave is on a distinguished road

John,

Thanks for your help, It wasn't until i was explaining this to a friend, i had the light bulb moment. i see where i went wrong i guess it's an easy mistake to make.

in your 2nd drawing the pnp one, you have an extra npn transistor with 2 diodes from base to gnd. when i first saw it it looked like your inverting the signal which it doesn't need to. would you mind explaining this a little further for me. i think i know what your doing here but don't fully understand it.

sorry for my lack of knowledge, i am still learning

Thanks again

Dave
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 08-30-2011, 03:48 PM
john_100's Avatar  
Join Date: Mar 2007
Location: uk
Posts: 413
john_100 is on a distinguished road

Hi Dave ,

if you have not all ready done so

connect the two motor windings directly to your constant current psu

if the current is now 1.25A note the voltage across the windings
13v or less will explain the problem

if the current is less than expected
the ic may need two capacitors adding (22- 100uF) if not all ready fitted
to decouple the input and output of the IC

John
Attached Thumbnails
Click image for larger version

Name:	constant current psu + motor test.jpg‎
Views:	23
Size:	59.5 KB
ID:	141078  

Last edited by john_100; 08-30-2011 at 03:53 PM. Reason: typo
Reply With Quote

  #7   Ban this user!
Old 08-30-2011, 04:05 PM
 
Join Date: Jan 2011
Location: uk
Posts: 16
dolomitedave is on a distinguished road

John,

Sorry i should have explained before i have replaced the 4 upper npn's of the Darlington pair with pnp's as advised by you. I am now getting the correct current through the motor windings. but the motors are not stepping now which is why i was sent the last post questioning what the extra transistor was for and 2 diodes.

Dave
Reply With Quote

  #8   Ban this user!
Old 08-30-2011, 04:22 PM
john_100's Avatar  
Join Date: Mar 2007
Location: uk
Posts: 413
john_100 is on a distinguished road

Hi Dave

thats great , just what we want

you posted the last reply whileI was adding the capacitors (in red) to my diagram

the npn transistor , emitter resistor and diodes provide a switched constant current to switch on the pnp transistor

this fixes the base current to pnp transistor over a wide range of supply
voltage to H bridges


now the upper transistors are switching on
is the logic counting when clocked ( stepped) ?

and are is the outputs driving the correct two transistors?

if its the correct two transistors the motor should be locked

if they where both on the same side of the bridge
the motor will be free to rotate by hand
as they are short circuiting the supply (its good its current limited!)

John



ps I'll have another look at the logic circuit

Last edited by john_100; 08-30-2011 at 04:46 PM. Reason: add PS
Reply With Quote

  #9   Ban this user!
Old 08-30-2011, 05:00 PM
 
Join Date: Jan 2011
Location: uk
Posts: 16
dolomitedave is on a distinguished road

John,

I know its stepping correctly as i also have LED's on the logic output from when i was testing with no hbridge. i did check that the right transistors are being switched on at the correct time but maybe i need to double check this, this was the first thing i checked when it wasn't working.

Thanks again for your help and time on this.
Reply With Quote

  #10   Ban this user!
Old 08-30-2011, 05:00 PM
john_100's Avatar  
Join Date: Mar 2007
Location: uk
Posts: 413
john_100 is on a distinguished road

Hi Dave ,

just had another look at the logic circuit again

the JK flipflops ( U1a and U1b 4027) the set and reset pins 4 ,7 ,9 and 13 should be tied to logic 0 ie pin 8 the negative supply

John


oops posts crossed again
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 08-30-2011, 05:07 PM
 
Join Date: Jan 2011
Location: uk
Posts: 16
dolomitedave is on a distinguished road

John,

sorry my fault again the diagram i posted was an old one when i made the board i couldn't get it working then realised i hadn't tied these pins low so modified the board and not the drawing. there are possibly other mistakes in there as well.

Dave

Last edited by dolomitedave; 08-30-2011 at 05:07 PM. Reason: spelling
Reply With Quote

  #12   Ban this user!
Old 08-30-2011, 07:26 PM
john_100's Avatar  
Join Date: Mar 2007
Location: uk
Posts: 413
john_100 is on a distinguished road

Hi Dave


just another diagram of the revised H bridge

the 2 diodes limit the voltage to the base of lower
npn transistors to 1.2v
a 600 ohm emitter will result in a collector current of 1mA
(600 ohm x 1mA = 0.6V , ie 1.2v less the base emitter voltage 0.6v)

this 1mA via a resistor of 4k7 to 10k switches on the pnp transistor
and npn power transistor combination

the 1K resistors shown in red can be added if the transistor don't turn
completely off when they warm up
as a result the 10K resistors connected to the base connections
will have to be reduced to 8K2 (or 6k8)

the resistor values may need changing depending on the transistors used


John

PS what have you used to build the test circuit
Vero board ?
Attached Thumbnails
Click image for larger version

Name:	modified H bridge.jpg‎
Views:	22
Size:	59.1 KB
ID:	141110  

Last edited by john_100; 08-31-2011 at 10:00 AM. Reason: add ref to 10K resistors + typo
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
Problem- Low Current interface, High Current Motor? Clackvalve General Electronics Discussion 15 05-13-2010 12:42 PM
USB max current? Brenck General Electronics Discussion 5 06-04-2009 12:16 AM
Chopper current? KPyro Stepper Motors and Drives 1 10-18-2006 03:56 PM
current induction in control wires causing problems Smertrios Gecko Drives 7 05-19-2006 01:30 AM
current over bbrreid General Electronics Discussion 4 08-01-2005 04:43 PM




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