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 04-25-2007, 04:53 PM
 
Join Date: Apr 2007
Location: usa
Posts: 8
mr jones is on a distinguished road
Smile How about the L297\1 and L298HN? surely someone has experience with these?

If you have any experience with the L297\1 and L298HN motor driver chips and have some advice for new guy with ZERO experience in CNC building i would love to hear from you!

Ive just ordered these chips on the advice of other threads i have read (is this place a wealth of info or what?) and am just curious what pitfalls i can expect to encounter.......ANY input on this topic is greatly appreciated!

Thanks so much in advance
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 04-26-2007, 12:08 AM
 
Join Date: Apr 2007
Location: Argentina
Age: 29
Posts: 15
Manuks is on a distinguished road

I also have zero experience in cnc (building, electronics, mechanics and softwre related). I don´t know what is wrong with me but I want to build a cnc mill from scratch.
I´ve chosen L297 for the drivers (for unipolar motors). I just got the chips today so I believe in the next few days I´ll be working on the PCB design. First I intend to make one single driver board in order to start testing the motor directly hooking the driver to the printer port, then if it´s all right I´ll build the other boards including the interface.
Attached to this post there is a scheme of the wirings for the boards I choose. Be aware that it was done by me and I don´t know yet if it is correct.

I hope we could help each other
good luck
Attached Thumbnails
Click image for larger version

Name:	diag.jpg‎
Views:	325
Size:	157.9 KB
ID:	36141  
Tweet this Post!Share on Facebook
Reply With Quote

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

The l297 and L298 combo is a nice pair. A little noisey (audible) by comparion to newer chips, and hot (L298) but they do a really nice job. Take a look at the stuff on my website.
__________________
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 04-26-2007, 02:20 PM
 
Join Date: Mar 2007
Location: UK
Age: 60
Posts: 460
Robin Hewitt is on a distinguished road

I used the L298 off the printer port, thought about the L297 but couldn't figure out whether it would add or subtract the half step if I switched to full step, it's probably simple, but I decided to make my own chopper circuit and drive the other four inputs directly.

I latched 5 printer port data lines used two more to decode which axis I wanted to talk to and the strobe line secures the data. The extra wire switches the 298 between full power and a holding current.

I'm driving it with DOS in 1024x768 because Windows doesn't give you unfettered access to the timer interrupt which makes step rates a doddle.

Sadly the allure of XP graphics is dragging me out of the stone age and I'm reworking it as a USB device but writing Windows code is a steep learninng curve. I've got the .dxf input on screen, I've got some icons and menu's going but I'm having trouble mastering the pop up window
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 04-26-2007, 04:35 PM
 
Join Date: Apr 2007
Location: usa
Posts: 8
mr jones is on a distinguished road

Manuks.....I am taking it even one step further by designing and manufacturing the "boards" myself......Though my 20 years electrical experience tell me that your little schematic diagram there looks sound enough---i cannot say with any certainty as ive not seen the schematics for those particular boards.

I did find a schematic of a board though included as part of the PDF file for the L296.....

http://www.ortodoxism.ro/datasheets/...onics/1333.pdf

as well as documentation of the L297....

http://www.st.com/stonline/books/pdf/docs/1334.pdf

I intend to follow both pdf articles to the letter and then running the whole thing with KellyCam through my parallel printer port. Ultimately i will build a dedicated CPU with a 20GB HDD "frankenputer" (ive got a ton of old PC's laying around here) to run the thing........but for today im just interested in getting it hooked up and cutting so i can finish my robot.

For those of you who dont know......I am building a 6' 6" tall animatronic robot and this CNC table is being built so the robot can cut out the rest of the parts he needs. You can read about the robot more at ....

http://www.myspace.com/ahg95ww1fph8u

If all goes well i will also be using these same chips to drive many of the robots extremeties (since many of those will also use steppers for accuracy and "fine motor skills") and will post pictures and daily reports here on CNC zone as i make progress........

I just got the chips in the mail today so i will be starting my "unique approach" to circuit building tonight.......Before i show you photos of my "unique" circuit building technique i must warn you all-----I was a master electrician working with heating and air conditioning all of my adult life until 4 years ago during a trip to london i happened upon a job for "The Sultan of Brunei" re-engineering the computerized climate control system in his London Penthouses. I was a heating and air conditioning repairman from Dallas, wasnt I? I should be able to figure out his nightmarishly redundant computer climate control system and re-engineer a new one, shouldnt i? The Sultan thought so and paid me $1000 an hour to figure it out. It took me 9 months to figure out (having ONLY wired houses and air conditioners in the past with NO experience in small electronics whatsoever) and I did manage to get his climate control system working again, but not before he bought me a first class crash course education in electrical engineering!

So my skill level and methods are all self taught......formally i have a 7th grade education.......but even a dummie like me can read and follow a schematic if its labeled clear enough and i go slowly enough....

So bear with me while i struggle through this and advice or criticize at your leisure......i wont turn away a nickels worth of free advice anytime.

PMINMO......I glanced your links quickly though not with the the hours they deserve......tonight when im tired of smelling solder paste and taking a break i will give them more of my attention....thanks for that! Regarding their "running hot"......should i search the scrap bucket for some small heat-sinks?

Robin Hewitt........i have absolutely no idea what half the things you said mean. Forgive my ignorance about DOS and WINDOWS programming....I should know more in this area but i am afraid i just dont. My understanding was that if i programmed the form of the piece i wish to cut out in KellyCam, KellyCam would in turn create the code and programming the G-code wouldnt be a consideration.......is this true or did i buy a lie? in either event i would like to hear more about this project youre working on (regardless of my level of understanding it) so that i might attempt to broaden my horizons a little further.

To all who responded......thanks for your input! i will keep you each in mind tonight when im trudging away......for those of you about to respond.....please do! The more information we get here.....the better.

thanks again-----im off to work!

Mr Jones
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 04-26-2007, 05:39 PM
 
Join Date: Mar 2007
Location: UK
Age: 60
Posts: 460
Robin Hewitt is on a distinguished road

Originally Posted by mr jones View Post
Robin Hewitt........i have absolutely no idea what half the things you said mean.
Hi Mr Jones

My fault. I'm getting old, keep forgetting the new way of doing things.

When I started CNC I didn't realise I was supposed to buy software and black boxes that used G codes, I simply built some electronics then wrote a computer program that wound stepper motors about and cut fancy shapes.

Obviously not the recommended route, probably best to disregard my input

best regards

Robin

PS: My robot design is only 5 foot 4, not a stepper in it
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 04-26-2007, 06:47 PM
 
Join Date: Apr 2007
Location: usa
Posts: 8
mr jones is on a distinguished road

Robin.....

PLEASE do not mistake my ignorance for indifference.....I love the old way of doing things (i use solder paste in a can with a brush and lead solder and my only GOOD tester is a "Calectro" from before the Eisenhower Administration.....) and employ what i remember about things like "Vacuum tube construction" and "Learning to make my own crystal radio" in my "unique approach to circuit building"....(you will see what i mean after i post pictures)....I am truely interested in what you are saying i simply need it spoon fed to me. do you have any links i could follow to illustrate what you are talking about?

for the record.......i love the "good old days" of electronics and have fond memories of it from childhood.

Truely....tell me more of this wisdom.......
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 04-27-2007, 05:13 AM
 
Join Date: Mar 2007
Location: UK
Age: 60
Posts: 460
Robin Hewitt is on a distinguished road

Hi Mr Jones

It is hard to beat an old fashioned moving coil meter when you want to read the switched current flowing through stepper coils, those modern digital efforts are too easily confused. There is still a place for your Calectro

Here's a quick education on timer interrupts.

If you want to drive stepper motors the only sensible way is to use a timer interrupt. All microprocessors have timers built in. Set everything up and your program gets interrupted at regular intervals so you can update your motor windings. After the windings have been updated you return to whatever the main program was doing before it was interrupted. This is all hard wired and automatic.

It means you can set up the interrupt to move to a new position in x, y, z then do something else until it arrives. Something like drawing pretty pictures of tools moving on the screen for example. Change the timer reload value and you change the step rate. Smooth accelerations are easy, you are in total control.

I keep two sets of co-ordinates, 'where I am' and 'where I want to be'. My main program only writes the 'where I am' co-ordinates if I am setting an origin. Most of the time I just write the 'where I want to be', then call the interrupt set up routine and do something else until it gets there.

On a PC running DOS the timer is used to generate the system clock at 18.2Hz. When you want to move you save a pointer to the clock, change the pointer so the interrupt goes to your stepper routine and away you go. When the move is complete you max out the timer delay, point the interrupt back to the system clock, done.

On a PC running Windows, Bill Gates is doing all kinds of important things in the background, much more important than what you want to do, and he doesn't guarantee not to keep you waiting when the interrupt fires. Your stepper motors pause momentarily at irregular intervals and your cut finish goes to hell in a hand basket.

To run under Windows you have to add another processor to drive the steppers with it's timer interrupt. Since serial communication ports are becoming a thing of the past on PC's this probably means using a PIC 18F*** with a usb connection. This begs the question, do you make your own pcb or do you buy a ready made board with a PIC on it? Do you want to limit your options for a quick fix?

The L298 limits you to 2 Amps per coil but the volts are good. They run hot so you need a good heatsink but the switching times are fast.

My first CNC was a lathe and I noticed that the X axis next to the L298's had a lot more power than the Y axis which was out on wires. For the mill I made sure the L298's were right next to the motor, see attached. On here I see people using long cables, but I still prefer to stretch the data lines rather than the motor leads. I like to keep the action close to my current sensing resistors

best regards

Robin
Attached Thumbnails
Click image for larger version

Name:	L298.jpg‎
Views:	187
Size:	81.5 KB
ID:	36212  
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 04-27-2007, 06:23 AM
 
Join Date: May 2006
Location: Australia
Age: 40
Posts: 2,198
epineh is on a distinguished road
Buy me a Beer?

Mr Jones, Phil (Pminmo) has schematics ready to go for the 297/298 combo, I was about to go down that path, had the parts ordered and arrive, was getting ready to make the boards, and at the last minute decided to change my router to servo's instead of steppers. The existing drivers were OK, but I felt the 297/298's would be a lot better.

I'm pretty sure Phil also has boards ready for sale pretty cheap, might save you some time... I have no financial link, just what I was looking at doing a little while back, before I got distracted (happens all the time to me ).

Robin, have you looked at EMC ? You get the pretty graphics if you want, but the advantage of a real time kernel, only thing is you have to run Linux, namely Ubuntu 6.06. I have started to play with this and am pretty impressed so far, certainly has improved since I last tried linux.

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

  #10   Ban this user!
Old 04-28-2007, 06:46 PM
 
Join Date: Jan 2007
Location: saudia
Posts: 7
mohaon is on a distinguished road

thanksssssssssssssss
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 05-24-2007, 05:29 PM
 
Join Date: Apr 2007
Location: usa
Posts: 8
mr jones is on a distinguished road
I got box but im skeered to hook it up without confirmation----

So after weeks of assembly and waiting on components to arrive in the mail, I am finally ready to show you all my first attempt at building these 2 chips into a circuit.

Please keep in mind that I am not a big endorser of "copper-coated fiberglass boards", and while i understand that these type boards remain an industry standard....I do not have complete faith in such methods and have built these circuits using another, lesser used method.

In my opinion....all components begin as modular components which are then hard-soldered onto the "etched" circuit board by means of heating up the connection and component.....in my experience heat=death to most components and so i try NOT to subject individual "components" to any more heat than is absolutely necessary. My "circuit boards" have plug-in connections for every component so the components remain "modular".....meaning if any individual component fails....another component is simply plugged into its place without the need to subject the board or the component to any additional heat.

Here are photos of my "non-traditional" circuit boards......some still in progress and some completed.

My question is now------How do i hook this silly thing up to my parallel port? am i missing any components, or is the information shown on the L298 pdf datasheet a complete breakdown of everything necessary to complete the stepper motor control circuit? do i hook up the box marked in red directly to the parallel port and if so which pins?

Also.......for the LARGE capacitor (470uf) should i use a cap that closely matches the voltage of the motor being driven or should i use a smaller or larger voltage cap? I have several in voltages ranging from 10 to 60......LOTS of 25 volt caps......however in my 3 axis machine i am using two 24 volt motors and one 5 volt motor; so should I use the 10v caps in the circuit for the 5 volt motor and the 25 volt caps for the 24 volt motor? i think so but some clarification on this would be most helpful!

thanks for looking and thanks a bunch in advance for answering my question
Attached Thumbnails
Click image for larger version

Name:	new-2.jpg‎
Views:	227
Size:	120.7 KB
ID:	37901  
Attached Images
File Type: bmp mc1.BMP‎ (297.1 KB, 199 views)
File Type: bmp mc3.BMP‎ (297.1 KB, 122 views)
File Type: bmp mc5.BMP‎ (297.1 KB, 72 views)
File Type: bmp mc6.BMP‎ (297.1 KB, 83 views)
File Type: bmp mc9.BMP‎ (297.1 KB, 102 views)
Tweet this Post!Share on Facebook
Reply With Quote

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

Clock, cw/ccw goto the lpt port. enable has to be wired either to its true state or controlled by a pin on the lpt port (I recommend).

Cap wvdc should be greater than your power supply voltage plus a minor safety margin.

You could trace my wiring on my l297-8 board and 4axis interface from my website to help with your wiring question.
__________________
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

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
Troubles with L297/L298 ragrillo Open Source Controller Boards 43 10-21-2010 09:10 AM
L297 or SLA7051? and some other things Konstantin Open Source Controller Boards 3 07-27-2006 02:49 PM
L297-8 and 4axis BOB aem_argentina Open Source Controller Boards 1 02-20-2006 10:55 AM
L297 for unipolar? Mcgyver Open Source Controller Boards 31 12-10-2005 01:13 PM
L297-8 PCB - who is interested / anyone sells them? RomanG Open Source Controller Boards 22 10-26-2005 02:42 PM




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