I would like to control a simple servo or led with USB.
I opened the cable up and connecting the red and black wires to the servo made it spin properly with about 5V, as those are VCC and GND. Ok.
Now I would like to use one of the data channels to control the state (on/off) of the servo via my computer.
In the end I would like to have a script to turn it on and off. The problem is that every tutorial uses an USB architecture that makes drivers overly complicated by using vendor and products ids' to auto identify the hardware at the end of the USB (to allow for plug'n'play, I imagine), and I don't have that - that is, I don't want to make a circuit that is able to inform to the PC the specs of my device. And I do not want to use Arduino's or other complex boards for such a simple task.
I couldn't even identify my ports (in linux), as every software and utility I found lists only the plugged usb's, with their crazy ids, and my bare ended (servo apart) half-cut usb extension is not listed, as (it seems) it is not connected to a 'proper' usb gadget.
I would like to make a program that would run, ask for a physical usb port on my machine (identifying then somehow) and then let me set the output in each of the two wires, instead of a driver that can automatically detect my gadget. Simple as that.
Is there a way to do that with USB? Or should I choose another way of communicating with my device? (though I can't think of any other ways that my computer would handle... and with the advantage of built-in power...)