Tags: basically, control, electric, friend, function, motor, program, programming, project, python, robot, speed, summer
Is there a way to program a robot with python (ex, an electric motor, control it's speed,
On Programmer » Python
30,064 words with 11 Comments; publish: Fri, 04 Jan 2008 17:38:00 GMT; (200108.40, « »)
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)?
http://python.itags.org/q_python_44281.html
All Comments
Leave a comment...
- 11 Comments

- socialanxiety.python.itags.org.gmail.com wrote:Quote:=== Original Words ===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)?
Try "comp.robotics.misc" for the basics of robot motor control.
John Nagle
#1; Fri, 04 Jan 2008 17:39:00 GMT

- On Jul 8, 5:14 pm, John Nagle <n....python.itags.org.animats.comwrote:Quote:=== Original Words ===would you program it the same way you would on a personal computer
(via c, python, etc)?
>
Try "comp.robotics.misc" for the basics of robot motor control.
>
John Nagle
thank you.

- On Sun, 2007-07-08 at 17:06 -0700, socialanxiety.python.itags.org.gmail.com wrote:Quote:=== Original Words ===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)?
The answers to your questions depend very much on what you're working
with and how the motor is controlled. Is this supposed to be a
self-contained machine, or is it supposed to be connected to a personal
computer as a peripheral device?
The easier way is the peripheral device. In that case, you need some way
of sending signals e.g. from your computer's parallel or serial port to
a relay switch or voltage controller that controls your motor. In that
case, apart from the nitty gritty hardware to make the physical
connections, it's a matter of controlling the parallel or serial port
that the "robot" is attached to, which can definitely be done in Python.
I won't go into details because you're not saying enough about your
project constraints, and as fascinating as your question is, it is
somewhat off-topic on this list (as if that's a deterrent to discussing
something on this list ;-). As John said, you're more likely to receive
useful advice on comp.robotics.misc.
Good luck,
--
Carsten Haese
http://informixdb.sourceforge.net
#3; Fri, 04 Jan 2008 17:41:00 GMT

- On Jul 8, 5:06 pm, socialanxi....python.itags.org.gmail.com wrote:Quote:=== Original Words ===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)?
This might be interesting to you.
~Sean
#4; Fri, 04 Jan 2008 17:42:00 GMT

- First you'll need a computer interface to your robot. Lego Mindstorm,
for example, comes with ways to program the onboard CPU. Other
standard robotic toolkits will also come with some kind of interface,
which may or may not have Python bindings.
Cheers,
-T
On Jul 9, 10:06 am, socialanxi....python.itags.org.gmail.com wrote:
Quote:=== Original Words ===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)?
#5; Fri, 04 Jan 2008 17:43:00 GMT

- On Jul 8, 5:37 pm, Carsten Haese <cars....python.itags.org.uniqsys.comwrote:Quote:=== Original Words ===would you program it the same way you would on a personal computer
(via c, python, etc)?
>
The answers to your questions depend very much on what you're working
with and how the motor is controlled. Is this supposed to be a
self-contained machine, or is it supposed to be connected to a personal
computer as a peripheral device?
>
The easier way is the peripheral device. In that case, you need some way
of sending signals e.g. from your computer's parallel or serial port to
a relay switch or voltage controller that controls your motor. In that
case, apart from the nitty gritty hardware to make the physical
connections, it's a matter of controlling the parallel or serial port
that the "robot" is attached to, which can definitely be done in Python.
>
I won't go into details because you're not saying enough about your
project constraints, and as fascinating as your question is, it is
somewhat off-topic on this list (as if that's a deterrent to discussing
something on this list ;-). As John said, you're more likely to receive
useful advice on comp.robotics.misc.
>
Good luck,
>
--
Carsten Haesehttp://informixdb.sourceforge.net