Re: USB in python

2009-01-27 Thread Tino Wildenhain
Hi, Astan Chee wrote: Diez B. Roggisch wrote: If all you need is on-off - why can't you just use a switch? Because I want to control the on-off the device using a computer and write software for it (which I am confident I can do if I had references to how the wrappers to said inte

Re: USB in python

2009-01-27 Thread Grant Edwards
On 2009-01-27, Lie Ryan wrote: > From the little I know on electronics, a simple, single > transistor would (almost) immediately switch from > on-to-off-to-on depending on the voltage of the control pin (I > think it was the middle pin). I was suggesting this > simplistic hack because as far as

Re: USB in python

2009-01-27 Thread Muriel de Souza Godoi
Some people got success in Arduindo using an older mobile cable which works as USB/Serial converters. So you can read and write data as a serial port using pyserial. On Tue, Jan 27, 2009 at 8:31 AM, Lie Ryan wrote: > On Mon, 26 Jan 2009 11:08:48 -0600, Unknown wrote: > > > On 2009-01-26, Lie Rya

Re: USB in python

2009-01-27 Thread Lie Ryan
On Mon, 26 Jan 2009 11:08:48 -0600, Unknown wrote: > On 2009-01-26, Lie Ryan wrote: > >> How about (a crazy idea) using the audio jack out? (DISCLAIMER: Little >> Hardware Experience). High pitched sound (or anything in sound-ology >> that means high voltage) means the device is on and low pitch

Re: USB in python

2009-01-26 Thread Astan Chee
Brian Allen Vanderburg II wrote: This is the FT245 chip which is basically USB-to-Parallel. Chips: http://www.ftdichip.com/Products/FT245R.htm Kit/Board: http://www.ftdichip.com/Products/EvaluationKits/UM245R.htm The spec sheet for the board seems quite simple. It's pin out is similar to tha

Re: USB in python

2009-01-26 Thread Дамјан Георгиевски
>> Sorry, by USB device, I meant a device that is powered/activated by a >> bunch of wires that I want to control using a computer and since I >> had a spare USB jack lying around, I used that instead. But so far I >> haven't tried it, nor will try it if it wont work properly. Yes, it >> is not a p

Re: USB in python

2009-01-26 Thread Grant Edwards
On 2009-01-26, Lie Ryan wrote: > How about (a crazy idea) using the audio jack out? (DISCLAIMER: Little > Hardware Experience). High pitched sound (or anything in sound-ology that > means high voltage) means the device is on and low pitched sound off. 1) Pitch has nothing to do with voltage.

Re: USB in python

2009-01-26 Thread Brian Allen Vanderburg II
astan.c...@al.com.au wrote: Tim Roberts wrote: Sorry, but you have NOT created a USB device, and I sincerely hope you do not try to plug it in to a real USB port. Sorry, by USB device, I meant a device that is powered/activated by a bunch of wires that I want to control using a computer and

Re: USB in python

2009-01-26 Thread Steve Holden
Astan Chee wrote: > Tim Roberts wrote: >> Sorry, but you have NOT created a USB device, and I sincerely hope you do >> not try to plug it in to a real USB port. >> > Sorry, by USB device, I meant a device that is powered/activated by a > bunch of wires that I want to control using a computer and

Re: USB in python

2009-01-26 Thread Steve Holden
Lie Ryan wrote: > On Fri, 23 Jan 2009 18:56:38 +1100, Astan Chee wrote: > >> Diez B. Roggisch wrote: >>> If all you need is on-off - why can't you just use a switch? >>> >>> >>> >> Because I want to control the on-off the device using a computer and >> write software for it (wh

Re: USB in python

2009-01-26 Thread Banibrata Dutta
high pitch is == high frequency, no higher amplitude... but the difference can be easily made out and the electronics for this is very well understood and used.point is, the gentleman asking the question might already have a USB controller built into his device, and while most modern computers have

Re: USB in python

2009-01-26 Thread Lie Ryan
On Fri, 23 Jan 2009 18:56:38 +1100, Astan Chee wrote: > Diez B. Roggisch wrote: >>> >>> >> If all you need is on-off - why can't you just use a switch? >> >> >> > Because I want to control the on-off the device using a computer and > write software for it (which I am confident I can do i

Re: USB in python

2009-01-25 Thread Astan Chee
Tim Roberts wrote: Sorry, but you have NOT created a USB device, and I sincerely hope you do not try to plug it in to a real USB port. Sorry, by USB device, I meant a device that is powered/activated by a bunch of wires that I want to control using a computer and since I had a spare USB jack

Re: USB in python

2009-01-25 Thread Tim Roberts
Astan Chee wrote: > >Im trying to write a program for my USB device and I'm thinking of using >python to do this. The USB device is of my own making and it is >activated when one of the two data pins of the USB is given about 5V (or >similar to whatever the power pin is getting). Now I'm confus

Re: USB in python

2009-01-22 Thread Astan Chee
Diez B. Roggisch wrote: If all you need is on-off - why can't you just use a switch? Because I want to control the on-off the device using a computer and write software for it (which I am confident I can do if I had references to how the wrappers to said interface). Cheers Astan.

Re: USB in python

2009-01-22 Thread Diez B. Roggisch
Astan Chee schrieb: Diez B. Roggisch wrote: Others suggested the parallel port. It is the natural choice for such things, with two caveats: - it is legacy, and thus often not available on modern hardware, especially on mobile ones. So if you want it be prepared to additionally buy a usb2pa

Re: USB in python

2009-01-22 Thread Astan Chee
Diez B. Roggisch wrote: Others suggested the parallel port. It is the natural choice for such things, with two caveats: - it is legacy, and thus often not available on modern hardware, especially on mobile ones. So if you want it be prepared to additionally buy a usb2parallel-adapter. -

Re: USB in python

2009-01-22 Thread Diez B. Roggisch
Astan Chee schrieb: Diez B. Roggisch wrote: Astan Chee wrote: Hi, Im trying to write a program for my USB device and I'm thinking of using python to do this. The USB device is of my own making and it is activated when one of the two data pins of the USB is given about 5V (or similar to whate

Re: USB in python

2009-01-22 Thread Brian Allen Vanderburg II
astan.c...@al.com.au wrote: Hi, Thanks for all the responses but I forgot to mention that I have very little hardware understanding (at least in english) and the device itself it very simple and only needs about 5V power to be active. The problem here is that I want to control when the device

Re: USB in python

2009-01-22 Thread Grant Edwards
On 2009-01-23, Astan Chee wrote: > Thanks for all the responses but I forgot to mention that I have very > little hardware understanding (at least in english) and the device > itself it very simple and only needs about 5V power to be active. The > problem here is that I want to control when th

Re: USB in python

2009-01-22 Thread Astan Chee
Diez B. Roggisch wrote: Astan Chee wrote: Hi, Im trying to write a program for my USB device and I'm thinking of using python to do this. The USB device is of my own making and it is activated when one of the two data pins of the USB is given about 5V (or similar to whatever the power pin is

Re: USB in python

2009-01-22 Thread Brian Allen Vanderburg II
astan.c...@al.com.au wrote: Hi, Im trying to write a program for my USB device and I'm thinking of using python to do this. The USB device is of my own making and it is activated when one of the two data pins of the USB is given about 5V (or similar to whatever the power pin is getting). Now I

Re: USB in python

2009-01-22 Thread Tino Wildenhain
Astan Chee wrote: Hi, Im trying to write a program for my USB device and I'm thinking of using python to do this. The USB device is of my own making and it is activated when one of the two data pins of the USB is given about 5V (or similar to whatever the power pin is getting). Now I'm confuse

Re: USB in python

2009-01-22 Thread Diez B. Roggisch
Astan Chee wrote: > Hi, > Im trying to write a program for my USB device and I'm thinking of using > python to do this. The USB device is of my own making and it is > activated when one of the two data pins of the USB is given about 5V (or > similar to whatever the power pin is getting). Now I'm c

USB in python

2009-01-21 Thread Astan Chee
Hi, Im trying to write a program for my USB device and I'm thinking of using python to do this. The USB device is of my own making and it is activated when one of the two data pins of the USB is given about 5V (or similar to whatever the power pin is getting). Now I'm confused to if the softwa