
Bluetooth Raspberry Pi Pico W Robot Controlled by PlayStation 4 Controller
It appears so Brian Starkey was busy with robots. Utilizing among the best RP2040-based boards, the Pimoroni Inventor 2040 W, they created a Bluetooth-controlled robotic that makes use of a PlayStation 4 controller. Better of all, they shared the code So everybody could make their very own robotic.
@Raspberry_Pi #PicoW Bluetooth + PS4 controller + @pimoroni Inventor 2040 W + @CannonFodder case == Enjoyable 😊Code: https://t.co/lXXGcRhl7g pic.twitter.com/2nT1Z9DNRL16 May 2023
Starkey’s {hardware} decide was Pimoroni’s Inventor 2040 W, a motherboard we reviewed at launch. The robotic case is a Tiny4WD from Coretec Robotics (aka Brian Corteil/CannonFodder) has a clear neon yellow acrylic body.
The software program facet of the mission caught our consideration. Bluetooth on the Raspberry Pi Pico W (based mostly on the Inventor 2040 W) remains to be solely appropriate to be used with the C language, so Starkey has written the robotic mission code utilizing C and has helpfully offered a Github repository stuffed with details about it. Here is easy methods to obtain, create and flash the UF2 file to your individual Inventor 2040 W. Starkey, to simplify the method of connecting to a Sony PlayStation 4 controller, Lines 59 – 66 in /src/bt_hid.c. Exchange the corresponding line together with your MAC handle, kind the code into the Inventor 2040 W, set your controller to pairing mode and also you’re prepared. “It is a fairly tough mission that brings a Sony DualShock 4 (PS4) controller on the Pico-W,” Starkey says. but when it really works in our eyes, it really works.
Bluetooth help was added by way of SDK 1.5.0 and brings a Bluetooth API by way of BTstack. It supplies Bluetooth LE, Bluetooth Basic, Subband Encoding, and Bluetooth Community Encapsulation Protocol. For now, Bluetooth help is proscribed to each C and C++. MicroPython Bluetooth Help is being labored on however no official launch date but.
All code and directions will be discovered at: Starkey’s picow_ds4 Github repository. To make use of it, you’ll now want to put in the C SDK toolchain with a one-click installer for Home windows.
#Bluetooth #Raspberry #Pico #Robotic #Managed #PlayStation #Controller