MATLAB: How to properly install the device drivers for Arduino Mega so that I can use it with the target support package for Simulink 8.2 (R2013b)

simulink

I plugged an Arduino Mega 2560 board into my computer. The device drivers failed to install, bringing up a window with the message, "Device driver software was not successfully installed." How can I properly install the device drivers so that I can use the board with the Simulink target support package for Arduino?

Best Answer

The first time the Arduino Mega 2560 is connected to your computer, the device driver may fail to install. If this happens, you can update the driver with the one that was installed with the Arduino Target Support Package. To do this on a Windows computer, you can take the following steps:
- If you have not already installed the Arduino support package, you can do so by using the TARGETINSTALLER command in MATLAB. Alternatively, go to the Home tab in MATLAB, click the "Add-Ons" button, and select "Get Hardware Support Packages".
- Open "Devices and Printers" from the Start menu.
- Open the Unidentified Device.
- Under the Hardware tab, select Properties.
- Under the Driver tab, select "Update Driver".
- Browse to the "arduino-1.0" folder that was installed with the target support package. The default location for this folder in R2013b is:
C:\MATLAB\SupportPackages\R2013b
- Update the driver.
Related Question