I wasn't getting any feedback from the dongle in the serial monitor either. I plugged the usb bluetooth adapter into my pc and got the address from device manager (Generic Bluetooth Radio, properties, advanced tab)
//PS3BT PS3(&Btd); // This will just create the instance
PS3BT PS3(&Btd, 0x00, 0x15, 0x83, 0xd1, 0x15, 0xd7); // This will also store the bluetooth...
Restart Arduino, plug PS3 in via USB
Restart Arduino again.
Unplug PS3 and plug in Bluetooth.
Restart Arduino again.
Press PS3 connect button, wait a few seconds and watch it connect.
D:\Program files\Arduino\libraries\USB_Host_Shield_Library\BTD.cpp: In member function 'void BTD::HCI_task()':
D:\Program files\Arduino\libraries\USB_Host_Shield_Library\BTD.cpp:533:41: warning: large integer implicitly truncated to unsigned type [-Woverflow]
hci_num_reset_loops = 2000;
^
D:\Program files\Arduino\libraries\USB_Host_Shield_Library\BTD.cpp:657:42: warning: NULL used in arithmetic [-Wpointer-arith]
if(remote_name == NULL)
^* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\PS3USB.cpp: In member function 'virtual uint8_t PS3USB::Init(uint8_t, uint8_t, bool)': D:\Program files\Arduino\libraries\USB_Host_Shield_Library\PS3USB.cpp:173:43: warning: large integer implicitly truncated to unsigned type [-Woverflow]
^* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\PS3USB.cpp:174:43: warning: large integer implicitly truncated to unsigned type [-Woverflow]
^* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\PS3USB.cpp:179:42: warning: large integer implicitly truncated to unsigned type [-Woverflow]
^* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\PS3USB.cpp:180:42: warning: large integer implicitly truncated to unsigned type [-Woverflow]
^* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\SPP.cpp: In member function 'void SPP::print(const _FlashStringHelper*)': D:\Program files\Arduino\libraries\USB_Host_Shield_Library\SPP.cpp:726:25: warning: 'progmem' attribute ignored [-Wattributes]
_ const char PROGMEM *p = (const char PROGMEM *)ifsh;
^* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\SPP.cpp: In member function 'void SPP::println(const __FlashStringHelper*)': D:\Program files\Arduino\libraries\USB_Host_Shield_Library\SPP.cpp:763:25: warning: 'progmem' attribute ignored [-Wattributes]
_ const char PROGMEM *p = (const char PROGMEM *)ifsh; _
^* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\SPP.cpp: In member function 'const char* SPP::doubleToString(double, uint8_t)': D:\Program files\Arduino\libraries\USB_Host_Shield_Library\SPP.cpp:861:10: warning: address of local variable 'output' returned [-Wreturn-local-addr]
char output[10];*
^* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\XBOXRECV.cpp: In member function 'virtual uint8_t XBOXRECV::Init(uint8_t, uint8_t, bool)': D:\Program files\Arduino\libraries\USB_Host_Shield_Library\XBOXRECV.cpp:154:45: warning: large integer implicitly truncated to unsigned type [-Woverflow]
^* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\XBOXRECV.cpp:155:45: warning: large integer implicitly truncated to unsigned type [-Woverflow]
^* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\XBOXRECV.cpp:160:46: warning: large integer implicitly truncated to unsigned type [-Woverflow]
^* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\XBOXRECV.cpp:161:46: warning: large integer implicitly truncated to unsigned type [-Woverflow]
^* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\XBOXRECV.cpp:167:45: warning: large integer implicitly truncated to unsigned type [-Woverflow]
^* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\XBOXRECV.cpp:168:45: warning: large integer implicitly truncated to unsigned type [-Woverflow]
^* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\XBOXRECV.cpp:173:46: warning: large integer implicitly truncated to unsigned type [-Woverflow]
^* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\XBOXRECV.cpp:174:46: warning: large integer implicitly truncated to unsigned type [-Woverflow]
^* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\XBOXRECV.cpp:180:45: warning: large integer implicitly truncated to unsigned type [-Woverflow]
^* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\XBOXRECV.cpp:181:45: warning: large integer implicitly truncated to unsigned type [-Woverflow]
^* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\XBOXRECV.cpp:186:46: warning: large integer implicitly truncated to unsigned type [-Woverflow]
^* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\XBOXRECV.cpp:187:46: warning: large integer implicitly truncated to unsigned type [-Woverflow]
^* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\XBOXRECV.cpp:193:45: warning: large integer implicitly truncated to unsigned type [-Woverflow]
^* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\XBOXRECV.cpp:194:45: warning: large integer implicitly truncated to unsigned type [-Woverflow]
^* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\XBOXRECV.cpp:199:46: warning: large integer implicitly truncated to unsigned type [-Woverflow]
^* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\XBOXRECV.cpp:200:46: warning: large integer implicitly truncated to unsigned type [-Woverflow]
^* In file included from D:\Program files\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from D:\Program files\Arduino\libraries\USB_Host_Shield_Library\XBOXRECV.h:24,*
from D:\Program files\Arduino\libraries\USB_Host_Shield_Library\XBOXRECV.cpp:20:* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\XBOXRECV.cpp: In member function 'void XBOXRECV::readReport(uint8_t)': D:\Program files\Arduino\libraries\USB_Host_Shield_Library\XBOXRECV.cpp:310:34: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
case 0x80: str = PSTR(" as controller\r\n"); break;*
^* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\XBOXRECV.cpp:311:34: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
case 0x40: str = PSTR(" as headset\r\n"); break;*
^* D:\Program files\Arduino\libraries\USB_Host_Shield_Library\XBOXRECV.cpp:312:34: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
case 0xC0: str = PSTR(" as controller+headset\r\n"); break;*
^* exit status 1 Error compiling for board Arduino/Genuino Uno. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
had the same problem with the Bluetooth adapter. found one on eBay.co.uk for £1.50
it has to have Enhanced Data Rate (EDR) support from what I've read, maybe this was just a fluke lol
I got my controller paired but it didn't give the desired output. Whatever button I press, it always give RightHatY : 1.
Here's debugging result from serial monitor:
PS3 Bluetooth Library Started
Bluetooth Dongle Initialized
No response to HCI Reset
HCI Reset complete
Write class of device
Bluetooth Dongle Initialized
HCI Reset complete
Write class of device
Local Bluetooth Address: 00:11:22:98:76:54
Wait For Incoming Connection Request
Keyboard is connecting
Incoming Connection Request
Remote Name: PLAYSTATION(R)3 Controller
Connected to Device: 00:26:5C:69:31:01
HID Control Incoming Connection Request
HID Control Successfully Configured
HID Interrupt Incoming Connection Request
HID Interrupt Successfully Configured
Wait For Incoming Connection Request
Dualshock 3 Controller Enabled
hi sorry if this has been brought up before but i was wandering if i can still connect the ps3 controller to the usb hub and use the controller that way as a input into the arduino rather than relying upon the bluetooth connections
I am traying to use a generic ps3 controller which includes a USB stick por the PC.
I tried the example PS3USB and after several hours it does not work at all for me. The PS3BT yes.
When the arduino request by the controller, nothing happen when i plug it. Nevertheless, it recognize the Stick for the PC but so it is useless.
Questions:
1)it is possible use it as a original ps3
2) how can i use the stick directly instead the bluetooth dongle? which libraries do i need? does somebody think i can consider it as an usb wired gamepad?