Motor1.writeMicroseconds(0) //make sure throttle is at zero Serial.print("\r\nA wild controller has appeared") Serial.print("\r\nNo controller atm") Serial.print(F("\r\nPS3 Bluetooth Library Started")) Serial.print(F("\r\nOSC did not start")) Any help on this would be very appreciated. Furthermore, I have seen a few different, very simple, PS3 controller implementations on motor functions, but none of them seem to address this. For example, if the controller connects (which takes about 15 minutes and pressing reset about 10 times), pressing R2 causes the motors to spin up, but releasing R2 has no effect.
I've posted a brief test code below for those interested, but in the end, the main problem is that my controller will not connect to the dongle, and if it does, there is an obscene amount of 'lag' between commands (where the only command is to press the right trigger to accelerate the motors). Now the problem: I pretty much stole the code right out of PS3BT.ino, just as a way to begin, so I wouldn't mess up the code part, but somehow I have still managed to make an error somewhere. Running PS3BT.ino (from the USBHost library examples) shows my ps3 controller connecting, and shows all the outputs from pushing buttons, moving the joysticks, pressing the triggers, etc, just as I would expect. I have gotten it to successfully pair with the bluetooth dongle, so I don't believe the dongle is the issue (I've also tried two different dongles). To that end, I bought a USB Host Shield for my arduino mega, and have been trying to pair my PS3 controller.
I finished a lot of the trickier parts, but I decided I would also add manual control for my own fun and enjoyment. I've finally gotten it built, and I started programming about ~2ish months ago. I started on a robot recently that (in the end) I want to do automated surveillance on my apartment.
Hello forum, I have a question that I can't seem to find answers to anywhere, so I finally figured I'd ask someone here.