• sales

    +86-0755-88291180

RP2040 and ESP32 code example

1】 Download the decompression package

2】 Code for burning ESP32

2.1] Turn the dial switch to ESP32, RT and TX to RP2040

      

2.2] In the extracted package, enter the RP2040andESP32 folder, and then enter RP2040 again_ ESP32 folder, open RP2040_ ESP32.ino

Install the ESPAsyncWebSrv third-party library

    

Open the Arduino library path: click File, click (Preferences).

(Note: Each person's path is different)

    

Copy the path to my computer path search box


After entering librariesh, locate the ESPAsyncWebSrv folder and enter,


Then enter src and open the AsyncWebSocket.cpp file


Modify the I PAddress AsyncWebSocketClient:: remoteIP() in it

Before modification


After modification


2.3] Configure Arduino IDE_ ESP32C3 parameter


After configuring the parameters as shown in the above figure, enter the WIFI name and password

2.4] After burning, open the serial port monitor


After burning, open the serial port monitor


At the beginning, there will be a connection process, and after a moment, you can see the STA IP address (the WIFI address is different for everyone). Copy to website


After copying the IP address to the website, the following figure appears


3】 Burn RP2040

3.1] Turn the dial switch to RP2040

    


3.2 】 To enter the boot loading program, please press and hold the BOOT button, and while continuing to press and hold (do not release!), press and release the (RST) reset button. Continue to press and hold the BOOT button until the RPI-RP2 drive appears!




Copy rpi pico honey.uf2 from the package to RPI-RP2

3.3] Open RP2040. py and select Thanny as the opening method



3.4] After opening, choose to stop compiling


3.5】这页面左下角时候会出现


3.6 Click main.py, hold down Ctrl+shift+S on the keyboard


Select Raspberry pi Pico


Select main,py and click ok.


Choose to overwrite main.py.

After the coverage is completed, press the RST button once to complete the burning.

4】 Experimental phenomenon: Clicking on the Trigger LED will flip the 25LED light in RP2040.



TAG: Metal Case Raspberry Pi 5 PD Trigger ESP32-S3 Display Raspberry Pi 3.5 inch e-Paper link (G) RYBW 384x184 For Arduino / Jetson Nano / STM32 1.54inch OLED user guide Raspberry Pi 5 Audio Jack ESP32 S3 Development Board 1.43 inch AMOLED Display 1.43inch TouchScreen For Arduino LVGL With SD-Port/ QMI8658C 6-Axis Sensor ADXL356BEZ Argon ONE V3 Case with FAN IR For Raspberry Pi 5 USB To CAN FD 1.28 inch Round Rotary LCD Smart Screen 1.28inch Knob Display 240x240 Option Touch/No-Touch 2.13inch e Paper HAT+ Black-White 250x122 E-Ink For Raspberry Pi /Jetson Nano /Sunrise X3 Pi /Pwnago ESP32 S3 Development Board 1.85 inch Round LCD Display 360×360 QMI8658 Sensor / MIC / SD /MP3 Audio /Battery Port LVGL/HMI For Arduino ESP32-S3 ETH Camera Development Board PoE RJ45 / OV2640 OV5640 Port / W5500 / Micro-SD Compatible With Raspberry Pi Pico Size STM32 programmer Industrial USB to RS485 Converter Screen RM520N GL 5G/4G/3G M.2 Moudle IoT EMBB For LTE-A/NSA/SA And GNSS For DFOTA /VoLTE For Quectel DeepSeek XiaoZhi AI Voice Chat Robot BOX ESP32-S3 Development Board 1.28 inch Round LCD 1.28inch TouchScreen N16R8 Industrial USB TO RS232/485 Serial UART Converter FT232RNL Compact Size