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

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)?
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload
On Jul 8, 8:23 pm, snipped-for-privacy@gmail.com wrote:

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
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload
On Jul 8, 5:23 pm, snipped-for-privacy@gmail.com wrote:

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?
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload

Thank you BRW; as for the above question, I'm trying to program something that will be stand alone.
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload

Polytechforum.com is a website by engineers for engineers. It is not affiliated with any of manufacturers or vendors discussed here. All logos and trade names are the property of their respective owners.