About Dean's MyUSB

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi fellows,
Idea just came out of my mind. I want to make some kind of USB speaker application using AT90USBKey - AT90USB1287. I know there are many direct USB audio chip (sound card) on the market (eg:PCM2704). I'm just curious about the implementation. Is it possible to implement this kind of USB class using AT90USB1287?
I have another idea. Is it possible to implement USB host using AT90USB1287 to control USB audio chip above (PCM2704)? This makes AT90USB1287 must be an USB audio speaker host.
Thanks.

KISS - Keep It Simple Stupid!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The MyUSB library comes with an AudioOut device demo, turning the USB AVR into a standard USB speaker. It's also got a AudioIn demo which turns it into a USB microphone.

Since all USB Audio devices belong to the standardized audio class, you could implement a USB audio host demo to connect to standard audio class devices. I actually experimented with this as a MyUSB demo several months ago, however couldn't think of a way to make a small, easy to read demo.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks Dean. Now i'm reading your USB Host demo codes to make that.

KISS - Keep It Simple Stupid!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Dear Dean

You have done very nice work on "MyUSB" Project. I was not familiar with AVR Gcc but since there is so much documentation it was easy for me to understand how it works.
I have used the project AudioInput and i would like to ask you a few questions about it.
Everything is ok with the code but since the pc is the host and the usb key the device i need a program to see the data from the usb. I have searched in the internet for such a program but I didn’t manage to find anything that works with the usb key, do you have something in mind that could help me?

Another question that I would like to ask you, is it possible to use usb key as a host and a usb flash as a device in order to acquire data from a/d and store them in the usb flash.
If it is possible can you tell me witch usb flash would be suitable for this application.

I would like to thank you in advance.
If there is anyone taht can help Feel free to make any suggestions I am interested in your opinion, thank you for your time.

I use AVR Studio 4.13.571 Service Pack 2
Flip 3.3.0 and AT90USBKey

Regards

Nikos

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Everything is ok with the code

Really? It's broken in every version except the current internal SVN, and the internal version posted a few days ago in the MyUSB thread.

Quote:

the pc is the host and the usb key the device i need a program to see the data from the usb. I have searched in the internet for such a program but I didn’t manage to find anything that works with the usb key, do you have something in mind that could help me?

I'd suggest using the CDC device demo if you want to easily transfer data to and from the device. It will enumerate as a virtual COM port which you can then use with any standard terminal, or any software (yours or others) which can direct the data to a COM port on the host computer.

Quote:

Another question that I would like to ask you, is it possible to use usb key as a host and a usb flash as a device in order to acquire data from a/d and store them in the usb flash.
If it is possible can you tell me witch usb flash would be suitable for this application.

The MassStorageHost demo does what you want -- it serves as a host to a mass storage device (such as any common USB memory stick). It doesn't currently have any FAT implementation, but if you added one of the myriad of free FAT libraries to the project, you'd be able to read and write files on the USB device.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you Dean for your quick reply.
I will try to follow your instructions,
when i will have results i will post again