Mar 22, 2011 at 5:49pm Mar 22, 2011 at 5:49pm UTC
Hello friends i want to ask you if you can give me advice what i should learn in C++ to control USB things...
I must do 1 job in school to control 3 LED Diodes < PIC Micro controller <( USB or other PORT ) < Computer
Example : I got Red / Green / Blue diodes
in win32 i write Red and Red Turn On i write Green Green Turn on and ...
Thank you before
Mar 22, 2011 at 5:56pm Mar 22, 2011 at 5:56pm UTC
Well you can always use an arduino. They have some simple usb protocols.
(edit)500
Last edited on Mar 22, 2011 at 5:56pm Mar 22, 2011 at 5:56pm UTC
Mar 22, 2011 at 6:16pm Mar 22, 2011 at 6:16pm UTC
i am not sure my teacher will accept it :( arduino is something like PIC ?
Mar 22, 2011 at 7:07pm Mar 22, 2011 at 7:07pm UTC
Ya, it's based on the AVR micro.
You can also get a 3rd party lib. And you can get a usb to serial adapter.
Mar 23, 2011 at 2:34am Mar 23, 2011 at 2:34am UTC
I agree with ultifinitus, the easiest way is to use a USB to RS232 adapter. Otherwise you'll need the USB code for the AVR. FTDI make a number of USB to serial IC's and provide drivers for the PC.
Mar 23, 2011 at 7:18am Mar 23, 2011 at 7:18am UTC
mob has cleared all the things in one post. I completely agree with him.