Simple motor controller?

Hi All,

Is there a tutorial anywhere that you know of that has a very simple diagram or tutorial for connecting and programming a 12v DC motor similar to this one? Happy to use a shield if needed, but I don’t understand how they work and I still don’t know what commands I need to send it… or even how to do that. :frowning:

I’m finding it really hard to get my head around simply controlling the motor with a photon.

PS. I’m trying to recreate this: http://www.thingiverse.com/thing:2011164

Appreciate any help that anyone can give me.

Thanks

Tim

you could look for a Serial Controlled Motor Driver…

Sparkfun or Adafruit maybe

Thanks! Does that just work with ‘output high’ and ‘output low’ using delays? Similar to the way a servo works?

I don't know what "that" is.

A gear motor does not work like a servo, if that is your question.

Ok, thanks. Do you have any example code for controlling a motor? Simple as possible.

he he… is that a trick question?

What kind of motor? what kind of controller?

You maybe should start by looking for projects you want to do (i.e. emulate) and review their choices on motors/controllers/etc. Lots of projects out there controlling blinds.

there may even be one here.
.

1 Like

I was thinking of something like one of these.

Just looking for the simplest way to make it go in both directions, I’m relatively sure I can work out the details from there. :slight_smile:

these units do have their issues, one of which is it a 64:1 reduction. a good thing is that they have quite a bit of write-up and coding examples on the internet, i guess because they are fairly cheap and usually easy to get. they do not go very fast, however, which is the biggest thing i do not like. and there seems to be a couple different units under the same numbers because i found that some libraries & examples do not work on what i have whereas they reportedly work on other ones of the same model number.

Thanks! Can you point me at any examples? I’m really struggling to find anything with Particle and these types of motors.

examples with a particle in the mix?, no. i guess i did not explain myself well. i meant to say just plain operation of the motor examples which did not include particle products but help in getting an understanding of the unit. i can put up some link for that if it would help.i never considered using photon/electron in my project because i had a couple small wifi modules for my cars.
thought since it was still on my mind i’d go ahead and put up the links i was talking about , perhaps they interest someone,



http://42bots.com/tutorials/28byj-48-stepper-motor-with-uln2003-driver-and-arduino-uno/



http://www.thebox.myzen.co.uk/Workshop/Motors_3.html
http://www.thebox.myzen.co.uk/Workshop/Motors_4.html
http://cyaninfinite.com/tutorials/moving-the-28byj-48-stepper-motor/
http://www.geeetech.com/wiki/index.php/Stepper_Motor_5V_4-Phase_5-Wire_%26_ULN2003_Driver_Board_for_Arduino

http://www.me.umn.edu/courses/me2011/arduino/technotes/stepper/index.html
http://www.tigoe.net/pcomp/code/circuits/motors/stepper-motors/