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

2007-07-08 Thread socialanxiety
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://mail.python.org/mailman/listinfo/python-list


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

2007-07-08 Thread socialanxiety
On Jul 8, 5:14 pm, John Nagle <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] 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)?
>
> Try "comp.robotics.misc" for the basics of robot motor control.
>
> John Nagle

thank you.

-- 
http://mail.python.org/mailman/listinfo/python-list


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

2007-07-08 Thread socialanxiety
On Jul 8, 5:37 pm, Carsten Haese <[EMAIL PROTECTED]> wrote:
> On Sun, 2007-07-08 at 17:06 -0700, [EMAIL PROTECTED] 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)?
>
> 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

I would like the robot to be self contained. basically, I'd like to be
able to program functions in python, ex:

while True:
motor.rotate(1)

and have it repeat the same piece of code every time it's turned on.

-- 
http://mail.python.org/mailman/listinfo/python-list


logging into forms on an ssl server using python

2007-03-03 Thread socialanxiety
Hi, I need some help, I'm trying to create a script that will fill in
the forms on an ssl website, and submit them. Could anyone help me
out, examples would be  nice.
Thanks in advance

-- 
http://mail.python.org/mailman/listinfo/python-list


clientcookie/clientform and checking to see if a website accepted my login details

2007-03-05 Thread socialanxiety
alright, i'm coding a program that will log me into yahoo.com (so
far), now, the problem i have is that once i've submitted by login &
password, the program doesn't know whether yahoo.com accepted it.
"
response = ClientCookie.urlopen(form.click())
"

now, when i get an error, the contents of 'response' will be
different, ex: the contents of  'example' will be
'logged in!'. is there any function that can search
through the code for that text to check if i'm logged in or not?

all help is appreciated

-- 
http://mail.python.org/mailman/listinfo/python-list