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

Translate This Thread From English to

Threaded View
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)?


Re: Is there a way to program a robot with python (ex, an electric motor, control it's speed, 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


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


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?


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


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


Site Timeline