jmsv / l293d

Python module to drive DC motors from a Raspberry Pi using the L293D chip
http://l293d.rtfd.io
MIT License
18 stars 15 forks source link

Stepper motor support #20

Open jmsv opened 8 years ago

jmsv commented 8 years ago

This issue might be a long shot - I've currently never experimented with using the L293D for stepper motors, but I know that this chip does support them.

I'll buy a stepper motor at some point in the (distant) future and have a go at writing something to try and make it work. In the meantime, if you stumble upon this and reckon you could have a go at it, I would be very grateful if you did - just assign yourself and/or comment to say you're having a go.

After a quick Google I found this Adafruit lesson which looks like it might be a good place to start. This tutorial also looks helpful.

SmithcS commented 8 years ago

I've done some stuff with stepper motors before. Kinda strapped on time, but I'll see if I can get this working. Also just got my IC's today so i'll be able to give it a test.

jmsv commented 8 years ago

@SmithcS I've ordered a stepper motor online but it'll take weeks to come. If you were to add support for stepper motors could you also add some documentation in the README? Also, did you get your Twitter account sorted out? You can DM me here

For developing and documenting on this issue, the setup shown in the Adafruit lesson (link in issue description) looks like a good way of doing it.

As the l293d.driver.motor class has been developed for use with DC motors, it might be worth renaming motor to dc_motor or dc, and creating a new class called stepper or stepper_motor for use with stepper motors.

jmsv commented 7 years ago

The Motor class has been renamed to 'DC'. See commit referenced in issue #48.

jmsv commented 7 years ago

@SmithcS Are you still interested in this issue? Don't worry if not - I can have a look at some point in the future