Does the XRP Blockly App work?

I had problems getting the the XRPCode web app (https://xrpcode.wpi.edu) to work. In particular, it was not able to install MicroPython on the XRP board, although it was attempting to do that. For those who run into this, here is how I solved the problem:

I eventually followed the instructions on this Discourse post:

Recommended firmware version for the XRP robot for using both the XRP Code Editor and WPILib - #3 by sfong21

That lead me to install the generic MicroPython firmware for the RP2040:

https://projects.raspberrypi.org/en/projects/get-started-pico-w/1

In Chrome, I then opened:

https://xrpcode.wpi.edu/

I cleared the site data, then reloaded the page. (Not sure this step is necessary, and doing it will delete any XRPCode programs you’ve written and saved to the browser’s “local storage” file system. But since I hadn’t done that yet I didn’t mind wiping the slate clean.)

I then connected the board. The first time I did that, it asked to update the XRPLib installation, which I did.

Once I had done all that, both Blockly and MicroPython worked for me.

However, when I wrote a program to drive a in square my XRP robot did some wild oscillations on every other right-angle turn, which was a surprise. Has anyone else seen that with MicroPython XRPCode turns? I suspect the default PID parameters may need tuning.

FYI, I have a two year old M1 MacBook Pro running MacOS 14.1.1 (Sonora) and I was using the latest version of Chrome. A friend also tried this on his M1 desktop iMac and had the same problem: he couldn’t install MicroPython.

I hope this problem can be fixed.

1 Like