nousernameforme
Newbie level 3
Hi all,
I'm working on a project where I have some hardware in a box and I would like it to communicate with a user interface via USB.
The hardware box will probably have an Atmega128 or more likely a 2560. The user interface is a simple few buttons and LED's so possibly only a small atmega or an AVR USB chip?
The device will also need to plug into a PC for firmware updates via the same USB connection that is used for the interface (unplug interface and plug into PC).
There seem to be some auxiliary chips around that deal with the protocol stacks etc and turn the connection of a microcontroller into a serial port when plugged into a host, but what do I do if I want the host to be the microcontroller?
My current idea is to have the hardware as a USB device, the interface as a host. Then the hardware unit would plug into the PC as a host or the interface as a host.
Any suggestions? Either on the setup or the easiest way to create a microcontroller USB host.
I'm working on a project where I have some hardware in a box and I would like it to communicate with a user interface via USB.
The hardware box will probably have an Atmega128 or more likely a 2560. The user interface is a simple few buttons and LED's so possibly only a small atmega or an AVR USB chip?
The device will also need to plug into a PC for firmware updates via the same USB connection that is used for the interface (unplug interface and plug into PC).
There seem to be some auxiliary chips around that deal with the protocol stacks etc and turn the connection of a microcontroller into a serial port when plugged into a host, but what do I do if I want the host to be the microcontroller?
My current idea is to have the hardware as a USB device, the interface as a host. Then the hardware unit would plug into the PC as a host or the interface as a host.
Any suggestions? Either on the setup or the easiest way to create a microcontroller USB host.