This C++ library is designed to interface with the Arduino Manager app on iOS and macOS.
- Supported Boards: Pico W & Pico 2 W
- Protocol: WiFi
Arduino Manager allows you to control and receive data from any Arduino or Arduino compatible microcontroller and Raspberry Pico. It provides:
- Over 30 customizable widgets (such as switch, knob, slider, display, gauge, bar and more)
- A built-in Code Generator for quickly and easily generating the code
More information available here:
- iOS: https://sites.google.com/site/fabboco/home/arduino-manager-for-iphone-ipad
- macOS: https://sites.google.com/site/fabboco/home/arduino-manager-for-mac
This library leverages the no-OS-FatFS-SD-SDIO-SPI-RPi-Pico library to manage the SD Card.
https://github.com/carlk3/no-OS-FatFS-SD-SDIO-SPI-RPi-Pico
-
Open Visual Studio Code
-
Using the Raspberry Pico extension create a new Project:
- Project Name: [Project Name]
- Board Type: Pico W or Pico 2 W
- Location: any folder of choice
- Pico SDK Version: 2.1.0 or greater
- Stdio Support: Console over UART, Console over USB or both, depending on your setup
- Wireless Options: Pico W onboard LED
- Generate C++ code
- DebugProbe or SWD depending on your setup
-
Create a new folder named lib
-
Right click the lib folder and select Open in Integrated Terminal
-
Enter the following commands:
git clone --recurse-submodules https://github.com/ArduinoManager/AM_SDK_PicoWiFi.git
git clone --recurse-submodules https://github.com/carlk3/no-OS-FatFS-SD-SDIO-SPI-RPi-Pico.git
cd no-OS-FatFS-SD-SDIO-SPI-RPi-Pico
git switch --detach tags/v3.6.2
- Copy the content of:
lib/examples/skeleton/skeleton.cpp
to your main file as starting point
- Make the following changes to CMakeLists.txt
pico_sdk_init()
add_subdirectory(lib/AM_SDK_PicoWiFi/src build)
…
…
target_link_libraries(…
pico_stdlib
hardware_adc
hardware_pwm
AM_PicoWiFi
)
…
…
target_include_directories(example2 PRIVATE
${CMAKE_CURRENT_LIST_DIR}
${CMAKE_CURRENT_LIST_DIR}/..
lib/AM_SDK_PicoWiFi/include
)
- Update the following information as per your network
#define TCP_PORT 180
#define WIFI_SSID "YOUR NETWORK SSID"
#define WIFI_PASSWORD "YOUR NETWORK PASSWORD"
....
IP4_ADDR(&ip, 192, 168, 1, 17);
IP4_ADDR(&netmask, 255, 255, 255, 0);
IP4_ADDR(&gateway, 192, 168, 1, 1);
-
Delete build folder if exists
-
From the Raspberry Pico extension select Configure CMake
-
Press F5 to run the program
-
Generate the code using the Arduino Manager Code Generator
-
Open Visual Studio Code and using the Raspberry Pico extension import the project
-
Create a new folder named lib
-
Right click the lib folder and select Open in Integrated Terminal
-
enter the following commands:
git clone --recurse-submodules https://github.com/ArduinoManager/AM_SDK_PicoWiFi.git
git clone --recurse-submodules https://github.com/carlk3/no-OS-FatFS-SD-SDIO-SPI-RPi-Pico.git
cd no-OS-FatFS-SD-SDIO-SPI-RPi-Pico
git switch --detach tags/v3.5.1
-
From the Raspberry Pico extension select Configure CMake
-
Press F5 to run the program
- Open the file
lib/AM_SDK_PicoWiFi/src/CMakeLists.txt
- Uncomment the required defines:
# DEBUG # Uncomment this line to debug the library
# DUMP_ALARMS # Uncomment this line to dump the alarms
# DEBUG_SD # Uncomment this line to debug SD Card operations
- Open the file
no-OS-FatFS-SD-SDIO-SPI-RPi-Pico/include/my_debug.h
- add the following lines
#define USE_PRINTF 1
#define USE_DBG_PRINTF 1
Go to the AM_SDK_PicoWiFi folder and enter:
git pull origin main