question about usb
I have been doing some reading about usb programming. From what I gathered it looks fairly complex. I mostly do games related programming, and have no experience with communicating with any kind of hardware.
From what I understand the usb cable has 4 pins. Power plus and negative, and two data ports. What I want to control with my usb is regular RC servo. It only takes one input (apart from power). Can I use one of the data signals from the usb and plug that directly into the rc servo?
Is there anyway of doing this without having to write some over complicated driver? All I would need is a function for turning the data A and B signals on and off. Anyone knows of any resources that will point me in that direction without being overly complicated? Using a library would work great, if something like that exists.
Something that works in c/c++ would be prefered but im open to anything that works. Im working on a Windows Vista machine.
As a side note, does wireless usb exist?
Seeing as usb also delivers power, I assume there isn't a wireless version.
But if you are looking to control an RC vehicle wirelessly from the computer, then I would expect you should be able to get a remote control / radio transmitter and connect it to the computer, then be able to control just about any RC vehicle.
Wireless is not important at all. I was just wondering. So using a usb cable and nothing else would be prefered, if its possible. The RC servo was just an example.
Check this guy here. He is using a usb to serial board that also comes with drivers.
Thanks. That looks interesting.
A question about the API for this one Will it work with visual studio (c++)and windows vista? I tried something like that before, but in order to get it to work I had to buy a license for some other compiler in order to use the .dll files that comes with it.
A couple of years ago I did some usb interface programming (in that time I also asked this board for help - although i dont find the thread), at that time our goal was easy: set up a usb device which we can use as if we were adressing/controlling the typical parallel port - with the advantage of the power supply of usb of course. Anyhow my solution was to use a pic microcontroller which had already alot of assembler etc written for so it only took a couple of tweaks to the assembler code to accomplish the low level part.
This site looks promising http://www.alanmacek.com/usb/ , a nice working example with source code included...