RP2350 support (Raspberry Pico 2)

Small announcement:

The dev branch of SimpleFOC now supports Raspberry Pico 2 and, more generally its RP2350 MCU.

Angle: 119.76.Iter/s: 51338
Angle: 124.76.Iter/s: 51278
Angle: 129.78.Iter/s: 51387
Angle: 134.78.Iter/s: 51390
Angle: 139.78.Iter/s: 51397

51390 iterations per second in FOC-voltage mode with SPI encoder. That’s pretty good :slight_smile:

To use it, please use the earlephilhower core for Raspberry Pico, for example in PlatformIO via Max Gerhard’s integration:

Example platformio.ini:

[env:pico2]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = rpipico2
framework = arduino
board_build.core = earlephilhower

lib_archive  = false

For now you will need the dev branch of SimpleFOC if you want to try it out, but it will be part of the next release.

6 Likes

I could use the regular rp2040 without platformio. I guess it will only be a matter of time until rpico2 is fully integrated in arduinos IDE?

Lets hope, the boards will be available again, until then. :frowning:

Perhaps, but PlatformIO is better for development, and the earlephilhower core has better performance than Arduino’s original one, so all in all I think this is a better way of working with the Pico 2 anyway…

Perhaps they will integrate it into the Arduino core eventually, but I would not hold my breath, TBH.