Go USB
Discussion in "New Ideas regarding projects" started by sandeepsasi Feb 17, 2010.
Wed Feb 17 2010, 09:12 pm
Hello Friends,
RS232 was a soft option for serial communication with the PC until the dawn of new laptops with no serial ports. Of course, we are aware of USB to serial converters. I feel they are not very reliable. They are still used to support those legacy projects. But when it comes to new designs; I say we better move on to USB.
Have a feeling that USB programming is hard? I too had the same feeling until I came across the VUSB project. If you are already aware of this one, then you may skip this thread. VUSB is a magic that transforms ordinary AVRs (ATTINY2313, ATMEGA8, etc) into a USB plug and play device. You need no additional hardware apart from a few zenner diodes and resistors. You can download and use the VUSB libraries for free!
Check this link: http://www.obdev.at/products/vusb/index.html
Now for the PC side programming, there is another project: libusb. A windows port of libusb is available at: http://libusb-win32.sourceforge.net.
Now I am back building PC powered projects. My first USB project: an RGB LED that can be controlled via PC. The PC application displays a color chooser window. The LED is set to the chosen color. It is built around ATTINY2313. I am attaching a few images and also a video. Please check them out.
Video:
So, what are you waiting for? Go USB...!
Sandeep Sasi
([email protected])
RS232 was a soft option for serial communication with the PC until the dawn of new laptops with no serial ports. Of course, we are aware of USB to serial converters. I feel they are not very reliable. They are still used to support those legacy projects. But when it comes to new designs; I say we better move on to USB.
Have a feeling that USB programming is hard? I too had the same feeling until I came across the VUSB project. If you are already aware of this one, then you may skip this thread. VUSB is a magic that transforms ordinary AVRs (ATTINY2313, ATMEGA8, etc) into a USB plug and play device. You need no additional hardware apart from a few zenner diodes and resistors. You can download and use the VUSB libraries for free!
Check this link: http://www.obdev.at/products/vusb/index.html
Now for the PC side programming, there is another project: libusb. A windows port of libusb is available at: http://libusb-win32.sourceforge.net.
Now I am back building PC powered projects. My first USB project: an RGB LED that can be controlled via PC. The PC application displays a color chooser window. The LED is set to the chosen color. It is built around ATTINY2313. I am attaching a few images and also a video. Please check them out.
Video:
So, what are you waiting for? Go USB...!
Sandeep Sasi
([email protected])
Ûž TPS Ûž like this.
Thu Feb 18 2010, 05:40 pm
Hi Sandeep,
Very impressive this one..
should i add this to download section?
Very impressive this one..
should i add this to download section?
Tue Jun 01 2010, 12:32 am
ultimate buddy... i would like to try code for it... i can write the code for avr.. but didn understood how u interfaced it with the paint(color selection )...
Tue Jun 01 2010, 07:01 pm
its not paint. its a custom designed software what sends color code to AVR via serial.
Tue Jun 01 2010, 07:59 pm
As Ajay said it is not paint.
Instead it is a simple java application. The color chooser you see
is the JColorChooser class of javax.swing package. The application interacts with
the WinUSB driver via JNI (Java Native Interfacing).
Anyway, thanks buddy. I almost forgot. I promised that I shall upload the code nearly six
months ago.
Instead it is a simple java application. The color chooser you see
is the JColorChooser class of javax.swing package. The application interacts with
the WinUSB driver via JNI (Java Native Interfacing).
Anyway, thanks buddy. I almost forgot. I promised that I shall upload the code nearly six
months ago.
Tue Jun 01 2010, 08:11 pm
Hi Sandeep,
welcome back again!
Well atleast you remind that you promised. many have forgot
Keep in touch!
welcome back again!
Well atleast you remind that you promised. many have forgot
Keep in touch!
Powered by e107 Forum System