Has anyone developed a library or other code to use the XRP through Arduino IDE? My program is designed around C++/Arduino IDE and I don’t have the time to teach two programming languages so I am having my class program through Arduino IDE. I developed a library with a lot of AI help (using Claude) but still have issues with using the IMUs to code straight lines and set degree turns. Using Bluepad32 I am able to link the XRP controller to an ESP32 and control it without using a computer. Using a ESP32 CAM I have streaming video so we will be doing our second iteration of challenges through FPV.
Anyway, thought I would ask before I spend the time trying to figure out the nuisances of the XRP RP2350 through Arduino.
@SparkFro did you do a version of the balance bot with C++?
No official Arduino library currently exists for the XRP, unfortunately. The closest thing I’m aware of is the XRP WPILib firmware, which is a PlatformIO implementation (leverages the Arduino framework), but that’s really not a library that can be easily used for a classroom environment.
@Fgrossman @bamiller @ZeeQueue Do any of you have time, or know someone who does, to create an Arduino implementation of XRPLib? I could help get things set up, just need someone who has the time to convert things from Python to C++.
No, only MicroPython (documented here with example code).
DigiKey have a YouTube video “Introduction to ROS Part 12: Talking to Microcontrollers”
in which they use the earlephilhower/arduino-pico library to program the XRP controller.
I have not tried this yet, as I have only just ordered my XRP kit, but it seems worth a try.
Thanks. I managed to get a working Arduino IDE Library using the earlephilhower pico board manager. I added the ability to talk via I2C to a ESP32 using BluePad32 to use a PS4 controller without a computer involved. A few glitches and bugs to sort out, but it worked reliably enough for my students to complete the Mountain Mayhem challenge event. Claude AI was a lifesaver in the effort.