I have an Arduino Mega 2560 ADK. I am running the 1.8.10 IDE
I am trying to connect a PS3 controller to my arduino. Below is my snippet:
#include <PS3BT.h>
#include <usbhub.h>
........
void setup(){
if (Usb.Init() == -1)
{
Serial.print(F("\r\nOSC did not start"));
while (1); //halt
}
.......
Every time I start the arduino and open the serial monitor to try and connect to the controller, I get the error: OSC did not start
I have checked my libraries. I have the USB_Host_Shield library installed. I tried to install the USBHost library from the manager, and while it installs, it installs in a sub folder titled “INCOMPATIBLE”. I have also loaded the USB_Host_Shield_Library_2.0 and tried just running an example sketch. I still get the same error. OSC did not start.
Thank you in advance for your help.