1.

Solve : BAT Files and USB Ports. is it possible??

Answer»

is there a way to program bat files to work with USB ports?
such as controling an outside device, a Lego USB Tower. i would like to try and control my lego mindstorms robot from my comp using a Batch program. is it even possible?Quote from: macdad- on January 19, 2008, 07:53:04 AM

...
such as controling an outside device, ...


The above quoted part reminded me of something I read online.
It is not batch file related, nor USB. If those are of key importance, then the link I have in mind is not going to be for you.

If controlling devices is the key thing though, you might like to visit and read:
http://www.hardwaresecrets.com/article/233

It is interesting.


There are 7 pages. It starts out with a simple example. Just LEDs.
By the 6th page or so, it shows you how to build and interface to control just about anything.

that page is really interesting. i was watching on the discovery channel last christmas. about christmas lights and this guy in florida had a comp controled christmas lights. the page u sent me to actually told me how to do that.

Thanks!!!Hello macdad,
to start off (if you have not ALREADY) install VB Express or something, then you can easily write input/output procedures.

Beyond the LEDs you can play with, you can hookup Stepper Motors that can be harvested from CD drives.

There is more fun than just playing with a LPT port. You can hookup an Analog Joystick (BEST a X & Y , 4 button FligthMaster with a Hood Switch) to the Gaming port, and there is where the fun starts.
Now you can control the Stepper. All you need is a PCI Sound card.

I intercepted the X and Y and Hood Switch and hooked up an Infrared Detector and displayed the received results on the screen. If it works properly it can receive Radio Speaker SIGNALS or display your Heart Beat from your finger via a Laser beam.

Caution:
The PCI cards this way are easy to fry!!
However a used one + Software you can buy for $10.
Also PowerSupplies are easily burned out if the Stepper Transistors are not running in the proper sequence.

With a bit of searching you can find all the Info on the Internet.

Let me know how you are making out.

Regards.

Quote from: macdad- on January 21, 2008, 06:06:16 PM
that page is really interesting. i was watching on the discovery channel last christmas. about christmas lights and this guy in florida had a comp controled christmas lights. the page u sent me to actually told me how to do that.

Thanks!!!

You're very welcome.

I'm glad you took time to read it, and that you found it interesting.
I did - I suppose that is why I had it bookmarked. I'm glad I did that too, now.

Thanks for posting back too.


It sounds like it got you to dreaming and thinking. That is a Good Thing.

And, it appears that alexK is into that sort of thing too. If you two partner up, be nice to me when you take over the world, ok? Quote from: WillyW on January 19, 2008, 09:54:14 AM
Quote from: macdad- on January 19, 2008, 07:53:04 AM
...
such as controling an outside device, ...

The above quoted part reminded me of something I read online.
It is not batch file related, nor USB. If those are of key importance, then the link I have in mind is not going to be for you.

If controlling devices is the key thing though, you might like to visit and read:
http://www.hardwaresecrets.com/article/233

It is interesting.

There are 7 pages. It starts out with a simple example. Just LEDs.
By the 6th page or so, it shows you how to build and interface to control just about anything.

That's a pretty cool IDEA..... All kinds of ideas are popping into my head after reading that.
Quote from: alexK on January 21, 2008, 08:01:17 PM
You can hookup an Analog Joystick (best a X & Y , 4 button FligthMaster with a Hood Switch) to the Gaming port, and there is where the fun starts.

would a PS2 controller work. i have the conecter cable and the controller.macdad- ,

I started the experiments with an old Joystick that I found in the basement. That one is an Analog with 15 pins. An USB one appears to be Digital, but I am not sure.
Searching on the internet I only found projects using the 15 Pin ones. I don't know if all 15 Pin joysticks are Analog. Maybe somebody out there may be able to fill in on that one.
To interface the data from the Gaming or LPT Port in VB Express requires DLLs (e.g. InOutput or InOutput 32) that can be downloaded. (VB Express does not support that Interface).
To run those projects requires some extensive programming and research on the Internet. The U.K. has quite some selection.
thanks for the tip


Discussion

No Comment Found