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 02-01-2008, 09:04 PM
 
Join Date: Jan 2008
Location: Australia
Posts: 6
vim.au is on a distinguished road
Unhappy DIY Driver, LMV339 chopper, 74HC08 not chopping.

Thanks mostly to the fantastic information available on these forums, I'm doing pretty well with my DIY stepper driver.

I've run up against a problem I don't have the tools or experience to deal with, and I'm hoping someone here might be able to point me in the right direction.

So far I've got a microprocessor handling the step logic, and a LMV339 (quad comparator) regulating the current via a sense resistor.

In order to combine the step logic with the LMV339 chopper, I've added an 74HC08 AND gate - and it's giving me trouble.

When I AND the step logic and the chopper the 74HC08 drives the fets, but isn't limiting the current.
During testing I wired the AND gate to switch from just the LMV339 chopper and the result is _almost_ no current limiting at all, but I'm at a loss as to what that means...

anyone got any bright ideas??

Thanks,
vim

Last edited by vim.au; 02-02-2008 at 12:37 AM. Reason: small mistakes
Reply With Quote

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

Need to see you schematic. How much off time do you have, blanking time, sense trip levels, sense resistors.....etc
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Reply With Quote

  #3   Ban this user!
Old 02-02-2008, 07:03 PM
 
Join Date: Jan 2008
Location: Australia
Posts: 6
vim.au is on a distinguished road

Phil,
Thanks for the reply.

I'll work on a schematic/diagram and post it as soon as I'm done.

For simplicity of testing I've stripped back the circuit to just one comparator, one AND gate and one mosfet. All this runs a small DC motor.

off time, blanking time: I've no idea. The comparator is running without hysteresis (I'm ok with the concept, but lost practically), so it's all controlled by the sense resistor.

sense trip levels: 0.01 - 0.08v.

sense resistors: just one 1w 1ohm for this test.

Thanks.
Reply With Quote

  #4   Ban this user!
Old 02-02-2008, 10:47 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

Blanking depends on drive type, unipolar or bipolar, and other factors. Unipolar can be faster, 6us or slower. For example the Allegro SLA7078's vary fro 6us to 12us depending on step size and angle.
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Reply With Quote

  #5   Ban this user!
Old 02-02-2008, 11:30 PM
 
Join Date: Jan 2008
Location: Australia
Posts: 6
vim.au is on a distinguished road

Phil,

I take it blanking is used to allow the inductor (motor coil) to discharge?

Attachment one shows just the chopper. This works fine regulating the speed of a small DC motor.

Attachment two shows the addition of the AND gate. This works but gives very little in the way of speed control (it runs very fast)

Sorry for the quality of my schematics.
Attached Thumbnails
Click image for larger version

Name:	chopped_sm.jpg‎
Views:	120
Size:	12.0 KB
ID:	52290   Click image for larger version

Name:	AND_notchopping_sm.jpg‎
Views:	126
Size:	14.3 KB
ID:	52291  

Last edited by vim.au; 02-03-2008 at 07:09 AM.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 02-02-2008, 11:57 PM
Motorcoach1's Avatar  
Join Date: Jan 2008
Location: USA
Posts: 30
Motorcoach1 is on a distinguished road

@ Pminmo - been studying the step motor and the driver and looking at all the driver circuts out there. is it possable to use the back BEMF(of the coil) to triger the step from the motor to the logic drive so as not to get harises or gosht in the vector rastor. low drain and gate in the IRF 520 and the 820 series does not due well in the inviroment.
Reply With Quote

  #7   Ban this user!
Old 02-03-2008, 07:19 AM
neilw20's Avatar  
Join Date: Jun 2007
Location: Australia
Age: 63
Posts: 2,338
neilw20 is on a distinguished road
Cool Better IC to use.

74HC08 can only drive +/- 4ma so it can't pull the charge out of the gate of the mosfet, hence it stays on.

This sugestion will simplify your circuit.

Try using a proper current mode controller.
UC3843A - LOW COST, 8 pins
This has inbuilt oscilator, 5v reference output, comparitor, High current totem pole drive for MOSFET and current sense input and udervoltage sensing so you don't blow up MOSFET when there is not enough drive.
Have a close look at all the application notes for this chip. Just replace the output transformer with your motor.

The current sensing drops 1v across resistor, but this can be offset to 400mv with a diode in series with and a 1K resitor to pin 3 of the IC.
Cathode to sense resistor.
From the anode of the diode connect a 10K to pin 8.
From pin 3 to ground you will probably find that a small capacitor to ground, maybe 1n will make the circuit more reliable. This will stop spikes inadvertently causing early turnoff.
__________________
Super X3. 3600rpm. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.

Last edited by neilw20; 02-03-2008 at 07:22 AM. Reason: typo. (fat fingers)
Reply With Quote

  #8   Ban this user!
Old 02-03-2008, 10:01 PM
 
Join Date: Aug 2006
Location: USA
Posts: 2,624
kreutz is on a distinguished road

Originally Posted by vim.au View Post
Phil,

I take it blanking is used to allow the inductor (motor coil) to discharge?

Attachment one shows just the chopper. This works fine regulating the speed of a small DC motor.

Attachment two shows the addition of the AND gate. This works but gives very little in the way of speed control (it runs very fast)

Sorry for the quality of my schematics.

Attachment 1 works almost as a linear current regulator (not as a chopper drive). Attachment 2 does not work because you don't leave time for the current to decay so there is no current control. Neilw20 is right about the poor driving current of the 74HC08 for Mosfet control.

Take a look at the theory behind chopper based current control on the following link: http://www.cs.uiowa.edu/~jones/step/


Regards,

Kreutz.
Reply With Quote

  #9   Ban this user!
Old 02-04-2008, 12:30 AM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

Kreutz is correct, you have no off time delay. In addition the mosfet isn't a logic level mosfet, with the sense resistor you can't guarantee turn on. It's capacitive characteristcs aren't bad.

NiewlW20, 74HC08 can source and sink 20ma and they don't do too bad of job with low capacitance logic level mosfets. Not as good as a real mosfet driver, but do work for the price.
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Reply With Quote

  #10   Ban this user!
Old 02-05-2008, 07:58 PM
 
Join Date: Jan 2008
Location: Australia
Posts: 6
vim.au is on a distinguished road

neilw20: initially I had no idea what you meant regarding the mosfet gate. After a lot of reading I'm now aware of gate capacitance and have some idea about it's effect at high switching frequencies. Thanks for pointing me in the right direction!
Regarding the UC3843A - The reason I'm trying to build my own controller (apart from the educational value) is that I've given up trying to get hold of 'exotic' components. If an Australian supplier has it they likely want $25 each, and if I give in and pay the p&h from the US I just know I'm going to have to do it again for the other $1 component I need to complete the circuit... </rant>

kreutz: the Jones documents are the best and most comprehensive collection of information I've come across. While I get more out of them all the time I still only really understand a little of what is presented there.
Fortunately the information here is a little more practical!

kreutz & pminmo: so the output from the 339 needs to be massaged into a nice regular square wave, and to a frequency the HC08(and the mosfet) can handle?
I guess the output should also have a variable duty cycle, though that sounds a bit complicated. A fixed duty cycle with minimum off times should work, shouldn't it?

pminmo: the datasheet I have indicates a Gate Threshold Voltage of 2-4v.
oh. argh - I guess the catch is that the "test conditions" for that are VDS = VGS... ?
so much to learn.

I'm a bit confused about the sink current on the HC08, but seeing as all the outputs together failed to pull the mosfet down and the datasheet indicates 20mA I'm going to assume that's per input so it's not such an immediate problem.

Adding hysteresis to the 339 would slow it's switching speed down, wouldn't it?

Thanks all for your input, I'm starting to feel like this might work yet.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 02-05-2008, 09:43 PM
neilw20's Avatar  
Join Date: Jun 2007
Location: Australia
Age: 63
Posts: 2,338
neilw20 is on a distinguished road
Cool UC3843 available and cheap!

vim.au...

$2.70 That's cheaper than a pile of discrete parts!
Under $2 for +25.

UC3843BN Farnell 988-2847

http://au.farnell.com/jsp/search/bro...equestid=69610

Set top boxes and other cheap consumer goods use these in their power supplies.
__________________
Super X3. 3600rpm. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.
Reply With Quote

  #12   Ban this user!
Old 02-05-2008, 10:07 PM
 
Join Date: Jan 2008
Location: Australia
Posts: 6
vim.au is on a distinguished road

Originally Posted by neilw20 View Post
UC3843BN Farnell 988-2847
Thanks. It seems farnell have changed since I gave up on them a few years back.
$10 p&h isn't good, but it's not bad either.

If there isn't an inexpensive way to complete the circuit I have I'll look into the UC3843BN option.
Reply With Quote

Reply

Tags
74hc08, chopper, lmv339




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
HobbyCNC Unipolar Chopper Driver Kit! HobbyCNC Product Announcements & Manufacturer News 1 11-09-2009 08:40 PM
Difference between 4AUPC Chopper and HobbyCNC PRO chopper driver board shreifali CNC Wire Foam Cutter Machines 1 02-09-2007 12:09 PM
Cutting/Chopping small aluminum pc's best way? dbtoutfit General Metalwork Discussion 3 03-18-2006 06:28 PM
Driver Amplifier + Chopper idea - need help Parameter Stepper Motors and Drives 10 09-07-2005 03:47 PM
phase chopping l297+l298 dfv General Electronics Discussion 1 06-16-2005 07:33 PM




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