For example, I came across the AVR-CDC project, which turns a mega328 into a CDC-class USB-serial converter. printing values to a serial monitor), unfortunately this feature is missing in most V-USB projects. This is useful especially for debugging (i.e. strings) in and out between the device and a host computer through the USB port. The second reason to have USB is for serial communication - the ability to transfer data (e.g. This way you can flash a program through the USB port directly, without using a serial cable or an external AVRISP programmer. For this, there is a very nice open-source project called USnoobie, which can bootload mega328 as a USBasp programmer. One is to flash a program to the microcontroller, so it needs a USB-based bootloader. What do I need the USB for? Mostly for two reasons. Besides, I am fully embracing the ‘I do it because I can’ spirit, and this is actually a great motivation for me to learn about V-USB. But mega32u4 only exists in SMT package, and it’s more expensive than mega328 after all. I know there is the Arduino Leonardo, which is based on ATmega32u4, and which has hardware-based USB functionality. With this, it’s possible to make a very low-cost standalone Arduino with USB port and without having to use an FTDI chip. It adds USB functionality for almost any AVR, particularly for those without hardware USB functionality. As you probably know, V-USB is a very useful software-only implementation of low-speed USB device for AVR microcontrollers. Introductionįirst, let me explain what I am trying to do. In this blog post, I will describe some work I did a little while back about implementing HID-class serial communication for AVR microcontrollers using the V-USB library. The thing is there are so many of them that I don’t know which one to start with! Anyways, I’ve decided to put a stop to this. Since my last trip to Shenzhen, I actually have quite a few new ideas and projects to post about. A month with no new post? That’s unacceptable.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |