Is there a way to program a robot with python (ex, an electric motor, control it's speed, etc)

Jul 09, 2007 3 Replies

i hope someone here can help me.



basically, me and my friend have a summer project.



in this project, we need something that would basically function as a blender. we know we'll need to buy a motor that spins, but what we're having trouble with is figuring out how to program it. we want to be able to control the speed of the motor. how would we accomplish this?



i'm new to all of this, so i'm having a hard time wrapping my mind around how it'd be possible to program one of those things :\



ex: what if i want the motor to turn for 10 seconds. stop for 5. then turn the other direction.



would you program it the same way you would on a personal computer (via c, python, etc)?



your programming project. I quick way to accomplish what you want would be to buy a motor controller with a serial port interface. Then you could program the PC to send commands out the serial port to the motor controller (start, stop, speed ref, etc.). Just about any PC programming language is capable of sending serial port commands. There are many makers of these serial motor controllers (e.g. Pololu for low power DC motors).

BRW

Are you trying to program something that is stand alone and just cycles through a set number of commands or do you want a box with switches on it?

Thank you BRW; as for the above question, I'm trying to program something that will be stand alone.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required