Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for ULN2003 #16

Open
flipkill1985 opened this issue Jul 13, 2021 · 5 comments
Open

Support for ULN2003 #16

flipkill1985 opened this issue Jul 13, 2021 · 5 comments

Comments

@flipkill1985
Copy link

Hello,

does this work with driver ULN2003?
If not can you implement this?

best regards Jan

@rkaczorek
Copy link
Owner

No it doesn't work with ULN. To be honest I don't think it is a good idea to use this low level IC for stepper motor control with rasperry pi. It uses 7 GPIOs and needs complete software based implementation of stepping. In my opinion it's an overkill. Why would you like to use it?

@astrojolo
Copy link

astrojolo commented Jul 18, 2021

Hi Radek,

I think it may be a reasonable feature since ULN2003 is enough to control standard unipolar geared steppers like the ones in Moonlite or Robofocus solutions. It requires four lines to control the stepper. I may try to implement this - just let me know if I should work with the branch and pull request or do you prefer to fork the repo.

Best regards,
Lucas

@rkaczorek
Copy link
Owner

Hi Lukasz,

Are we talking about this IC? This is a bare metal IC containing 7 Darlington arrays. I assume you would like to use just 4 of them and control stepper coils with it. Pretty straight forward however you cannot use stepper library on raspberry pi the same way as on arduino. As the result you need to code whole procedure from scratch, including step sequence etc. I'm ok with pull request but to be honest I'm not sure you can easily integrate code needed for ULN2003 with this Astroberry DIY driver, or I'm missing something obvious. If you want to go this way let me know if you need any help

@jryd2000
Copy link

You can check out my fork at https://github.com/jryd2000/astroberry-diy to see a ULN2003 implementation. Unfortunately to make it easier to code I removed the other 2. I also made some changes to implement aborts.

@rkaczorek
Copy link
Owner

Well done! This shows however that integrating it to the existing driver is not a piece of cake and takes a lot of work. I will think it over how it can be done so maybe we'll come back to this topic some day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants