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

 comp.robotics.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Is there a way to program a robot with python (ex, an electric motor, control it's speed, etc) socialanxiety 07-08-2007
Posted by on July 8, 2007, 8:23 pm
Please log in for more thread options
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)?


Posted by BRW on July 9, 2007, 1:00 pm
Please log in for more thread options
On Jul 8, 8:23 pm, socialanxi...@gmail.com wrote:
> 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)?

>From your post, I sense that you want to stay within the PC world for
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


Posted by sundewzer@gmail.com on July 9, 2007, 5:08 pm
Please log in for more thread options
On Jul 8, 5:23 pm, socialanxi...@gmail.com wrote:
> 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)?

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?


Posted by on July 9, 2007, 5:52 pm
Please log in for more thread options
> On Jul 8, 5:23 pm, socialanxi...@gmail.com wrote:
>
>
>
> > 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)?
>
> 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.


Posted by on August 14, 2007, 1:41 am
Please log in for more thread options
was going down the whole War time.

All we are saying, is give peace a chance.


----

I repeat: Civil war would have broken out.

----


Dire suspension of Constitutional protections happens during War:

Abraham Lincoln ordered thousands of people detained without hearings,
and opposition newspapers shut down during the Civil War. During
World War II: the president orders Japanese and such to be held in
internment camps.

So why do we have all these loss of freedoms during peacetime?

Answer:

Because the Military has never stopped fighting World War II.

# "Spy Agencies Faulted for War Focus"
# By Tim Wiener, The New York Times, June 28, 1996
#
# American intelligence agencies devote too much time and money to supporting
# the Military, and FAR too little to understanding the problems of peace, a
# new and authoritative critique concludes.
#
# The report is one of FOUR MAJOR STUDIES to cite the "alarming imbalance"
# of spending more than $26 billion a year on machines, and less than $3
# billion on people, and those people spend their time analyzing the
# information the machines collect.
#
# The Foreign Service has been crippled by budget cuts, sapped by the
# Militariz



Similar ThreadsPosted
Motor speed control August 12, 2005, 2:59 am
Electronic motor speed control. September 21, 2005, 12:33 am
proportional speed dc motor control April 11, 2006, 10:56 pm
Re: proportional speed dc motor control April 12, 2006, 2:27 am
Leeson DC Variable Speed Motor Control = Ebay # 7538461721 August 17, 2005, 1:55 am
rest regarding electric speed August 19, 2007, 3:44 am
control the servo vs control the speed controller May 16, 2007, 2:20 am
Connecting an Electric Motor to Computer June 16, 2008, 5:38 pm
speed control with modified servos? May 4, 2007, 3:37 pm
Re: Motor Speed Problem July 22, 2005, 3:12 am

The site map in XML format XML site map
other useful resources:
Official Robosapien Website
Lego Mindstorms Website

Contact Us | Privacy Policy