webusb / arduino

WebUSB demos running on Arduino (and compatible) hardware.
580 stars 154 forks source link

Compatibility of Arduino Mega ADK #38

Closed varunkumar closed 7 years ago

varunkumar commented 7 years ago

Is this library compatible with Arduino Mega ADK board? https://www.arduino.cc/en/Main/ArduinoBoardMegaADK?from=Main.ArduinoBoardADK

jpliew commented 7 years ago

@varunkumar the MEGA board has a ATmega8U2 chip bridging the USB. The flash and ram in this chip is probably too low to run this library.

xander777 commented 7 years ago

I tried to use my chinees copy of MEGA 2560 with console demo app and it didn't work. maybe someone knows how to fix it or what min parameters of board should be for work with WebUSB?

reillyeon commented 7 years ago

The UNO and MEGA are built differently from the boards which are supported. Instead of the USB port being directly connected to the microcontroller on which your sketch (and the WebUSB library) runs there is an additional chip which acts as a USB to serial converter and connects to one of the UART pins on the main microcontroller. This means that in order to get WebUSB support on the device you need to reprogram this chip as well and this is currently unsupported.

varunkumar commented 7 years ago

Thanks for the explanation