[Weixue RP2040 dual-core development board] Unboxing review
[Copy link]
I should be the latest unboxing post. When I first applied, the development board was delayed in my hands due to the epidemic in Chongqing. After the lockdown was lifted, I was so busy that I moved and forgot to put the development board in the box... Recently, the staff reminded me that I didn’t even write an unboxing report...
The package was packed in a foam courier bag, which looked a bit crude. After unpacking it, there was only a box the size of a playing card, which had some signs of being squeezed. The development board was packed in an anti-static bag with a foam cushion inside, which provided adequate protection. No damage was found after taking it out.
The development board is a prototype as a whole, with a slightly protruding type-c interface. The front is a screen without touch function, and the back is covered with such components. The details of each period are borrowed from the official pictures. The design is simple, but the functions are very practical. For simple application scenarios, it can be directly used as a prototype for verification.
There is only one interface, so just plug in the data cable. After the factory program is started, a picture will be displayed, and then the following interface will be displayed, dynamically displaying the six-axis sensor and battery voltage data, and the interface update is very smooth. At the same time, a serial port device appears in the device manager. Under the configuration of 115200 8N1, log information can be seen output.
- Firmware Update Method
Connect the USB cable and press the boot and reset buttons at the same time to enter the boot mode. At this time, a new "RPI-RP2" disk will be added in the computer resource manager. Download the sample program from the official website and find the *.uf2 file in the sample program folder. This is the binary file corresponding to the sample program. Simply drag or copy it to the "RPI-RP2" disk to complete the program download. The development board will automatically restart and execute the program just downloaded.
- Python Development
This is what I am very interested in. Why can the development board execute Python programs?
To experience Python development, you need to configure the environment as follows:
a. Install the Thonny software. The official recommendation here is to install version 3.3.3. After the installation is complete, open the Thonny software, select Tools -> Options... -> Interpreter (the Chinese version is Tools -> Settings -> Interpreter), select MicroPython (Raspberry Pi Pico) as the interpreter, and select the port according to the actual situation. You can also select automatic port detection, and then click OK. The software will automatically open the port.
b. Update the corresponding Python firmware (I use rp2-pico-20220117-v1.18.uf2 here). After the program is executed, the screen is not used and there is no display.
Open the Python sample program file in Thonny (I use RP2040-LCD-1.28.py), click Run, and the screen will be updated from no display to the following interface. At this time, the command line window in the Thonny software can also execute simple commands.
The Python program seems to mainly use adc and i2c to read data and update it to the screen through spi. However, the peripheral API is encapsulated in the form of a library. I guess the firmware downloaded to the development board has the implementation of these APIs and executes Python scripts in a way similar to RPC. However, the source code has not been found yet. I will study it in detail when I have time in the future.
|