Replies: 11 comments 3 replies
-
Thanks for the question. I apologize in advance since this will be a rather long answer to a simple question. There are two main challenges in providing support for Pico W. The first challenge is that I would need to convert the code from using the RPi Pico C SDK to using Earle F. Philhower's Arduino library. Adding WiFi support to the current Pico SDK version is not an issue. However, the user will have to edit the Pico library code to provide their network's SSID and Password and recompile it before uploading it to the Pico. The most straightforward development environment to do this would be the Arduino IDE environment. To continue using the RPi Pico C SDK would require the user to set up a rather complex VS code environment, for which I am not willing to provide support. The second challenge is that I have not been able to find anywhere I can purchase the Pico W locally. If you are willing to buy two units and solder headers and provide them to me, I would be willing to do the port in exchange. If this sounds acceptable, I propose I try doing the port to a non-wifi version board. If that is successful, I will let you know, and you can then provide the Pico W boards. Doing the port should not be a considerable challenge (famous last words) since I already have an Arduino Core version for the Arduino Nano 2040 Connect board. It uses a different board type, but the code should be very similar. With any luck, the Python side should not have to change for the threaded or asyncio versions of the code. Please let me know your thoughts. |
Beta Was this translation helpful? Give feedback.
-
Hi @MrYsLab thanks for the detailed response!
Do you mean setting up VS Code is a lot more complex than Arduino IDE (which is almost certainly true), or is setting up the Pico SDK in VS Code pretty complex? I'm guessing something like Thonny + MicroPython per this document might not work well for some reason?
I recently bought some Pico W's with separate headers from PiShop that I plan to solder and connect to Maker Pi Pico Bases for an autonomous research lab demo [GitHub]. Out of curiosity, why two units?
Sounds interesting. I'll give this some more thought! I have a conference related to the demo I mentioned at the end of the month, so I'll probably need to look for another solution in the meantime, but I would love to come back to this after that. Do you have any suggestions in the short term for getting some kind of server set up with the RPi Pico W so that I can control the brightness and RGB values of the Maker Pi Pico Base NeoPixel and read sensor data from the AS7341? |
Beta Was this translation helpful? Give feedback.
-
Do you mean setting up VS Code is a lot more complex than Arduino IDE (which is almost certainly true), or is setting up the Pico SDK in VS Code pretty complex? Setting up VS Code is simple, but getting setup with the SDK, cmake and my code is painful if not impossible. I don't use VS Code, but JetBrains CLion. This is a commercial product, so I would not ask users to purchase it. I have never been able to get VS Code to build my JetBrains code. There is something different in how the two tools handle cmake. I'm guessing something like Thonny + MicroPython per this document might not work well for some reason? MircoPython is very slow. It also has a problem in that there is a conflict with its REPL and the read function. I documented the conflict (sort of) in this article. why two units? In case I blow one up. Let me know if you want me to go ahead. Thanks, Alan |
Beta Was this translation helpful? Give feedback.
-
Thanks for the clarifications! Yeah, let's do it! |
Beta Was this translation helpful? Give feedback.
-
Ok. I will start by porting using my non-wifi pico. If that is successful, I will let you know, and we can go from there. Please don't buy anything yet, in case I am not successful. |
Beta Was this translation helpful? Give feedback.
-
@MrYsLab sounds good! |
Beta Was this translation helpful? Give feedback.
-
I have ported the code using Earle F. Philhower's Arduino library. I have a lot of testing to do but was able to blink the onboard LED, so I know I have serial communication functioning. I am running the non-wifi version of the board. I want to test all functionality using this library before asking you to purchase the pico W. There is neopixel support, as well as AccelStepper stepper motor support. The grove ports should be supported since they are attached to standard GPIO pins. I will post again when testing is complete. |
Beta Was this translation helpful? Give feedback.
-
Yet another quick update. Going through Philhower's library in some detail, it supports Pico features that the Arduino Nano RP2040 connect does not. Features such as supporting both i2c and spi ports and not just one. There may be others I have not uncovered as of yet. What does this all boil down to? I already support these features for the non-wifi pico and want to support them for the pico W. It will take me a little time to incorporate Philhower's implementation and test it. Stay tuned. |
Beta Was this translation helpful? Give feedback.
-
@sgbaird I moved your original issue to this discussion, and I am keeping track of my progress here. |
Beta Was this translation helpful? Give feedback.
-
@sgbaird Question: Does your application require SPI support? I am thinking of not including it for the Pico W. I am not sure if my mpu9250 has gone bad or not, but I can't get it to work on any hardware platforms. |
Beta Was this translation helpful? Give feedback.
-
Thanks. I only have one interface left (besides spi): stepper motor support. I hope to test that this weekend. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions