connecting ULN2003 to Linux CNC

More
9 years 1 month ago #99645 by Marcodi
Hi, thanks for your replies.

I have here a lot , lot of electronics laying around. I bought a lot , I mean a lot of sets on AliExpress, in case I would need it.

So your idea of that board is nice as it is the perfect way of learning things. Would you have a diagram for one axis how you connect and more importantly why. Cause just copying will not make me learn the logic behind the build.

I need to know the why and how the capacitors are used and a diagram including leds and pushbuttons for one connection. Than I can figure out the rest.

I don't want to blow the only motherboard with parallel port I have laying around.

Hopefully you could help me build this.

Stephane

Please Log in or Create an account to join the conversation.

  • Ozzyrob
  • New Member
  • New Member
More
9 years 1 month ago #99647 by Ozzyrob
Replied by Ozzyrob on topic connecting ULN2003 to Linux CNC
Hi,

If you go to www.homanndesigns.com/index.php?main_page=page_2 and have a browse thru some of the docs you'll get an idea of how things go together. I'm not pushing this particular manufacturer, but there is a good range of docs showing various setups.

Please Log in or Create an account to join the conversation.

More
9 years 1 month ago #99649 by Marcodi
Hi,

I have been going through these documents but I am sorry, I don't see how I could build a driver out of it.

Nor can I find how I would have to wire this uln2003 to be able to connect to a parallel port for commands with Linuxcnc.

I dit find how these 4 coils work in the motor a /a b /b

Still have not a clue how to get these uln2003 boards connected to linuxcnc :-(

Please Log in or Create an account to join the conversation.

More
9 years 1 month ago #99663 by Todd Zuercher
This site has a good explanation.
electronics-diy.com/stepper_motors.php

In Linuxcnc I think you need to configure the stepgen to use one of the 4phase types 5, 6, or 9 (I think I'd choose 9 half step mode)
linuxcnc.org/docs/html/hal/rtcomps.html

Please Log in or Create an account to join the conversation.

  • Ozzyrob
  • New Member
  • New Member
More
9 years 1 month ago #99665 by Ozzyrob
Replied by Ozzyrob on topic connecting ULN2003 to Linux CNC
Those docs were never meant to give you advice on how to build a driver, but to show you how to connect various pieces to your breakout board.......you do have a breakout board, don't you ?

www.inet.home/linuxcnc/man/man9/stepgen.9.html

This explains the different types of motors stepgen can handle. I mentioned the stepgen manpage in my first post.

Those ULN2003 are very simple and rely on the connecting micro or circuitry to generate the timing and drive for each phase. You will need to look into have others have driven this board, using a Arduino or similar, to get an idea of how they are driven. That with careful reading of the stepgen manpage should put you on the right track.

A google search using the phrase "ULN2003 stepper driver linuxcnc" tunred up this thread forum.linuxcnc.org/16-stepconf-wizard/24...-darlington-array-ic

I really think that this way, other than for learning purposes, is not going to be of a great benefit, especially when you mentioned using servo motors.

Start with a standard config using a DIR-STEP driver.......you will get this setup going with the least amount of hassle.

The Gecko driver webpage has a wealth of info regarding the theory & operation of steppers.

Please Log in or Create an account to join the conversation.

More
9 years 1 month ago - 9 years 1 month ago #99668 by Marcodi
Hi Todd,

I have read both pages... Yes I am absolutely sure this is the way it needs to be connected. It makes perfect sense.

Being noob and all, I know need to research how to create that halfile and then find out on which pins of the parallel port he is going to send out these pulses.

But this original question is hereby answered. Stepgen 4phases will drive the coils!

Thanks for providing the final answer!! Just want to mention. For people like me experimenting the first time with linuxcnc and having components from Arduino and rpi3. We all would probably have these kinds of motors laying around. Would be handy if somewhere there was a guide for linuxcnc. I might write one if I can get it running. Cause halfile is not so clear yet. ;-)
Last edit: 9 years 1 month ago by Marcodi.

Please Log in or Create an account to join the conversation.

Time to create page: 0.085 seconds
Powered by Kunena Forum