5508 views|3 replies

12

Posts

1

Resources
The OP
 

[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...


  • Unboxing

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.


  • Power on

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.


  • Easy to use
  1. 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.

  1. 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.

This post is from Mobile and portable

Latest reply

It feels like it was a long time ago. Come on, landlord, work hard all night   Details Published on 2023-2-6 14:21
 
 

6821

Posts

11

Resources
2
 

Have you spent a whole year with a rookie? Aren’t you afraid that he will cry?

This post is from Mobile and portable
 
 
 

6027

Posts

6

Resources
3
 

Isn't this all finished? Did you just receive the test samples?

This post is from Mobile and portable
Personal signature

在爱好的道路上不断前进,在生活的迷雾中播撒光引

 
 
 

280

Posts

7

Resources
4
 

It feels like it was a long time ago.

Come on, landlord, work hard all night

This post is from Mobile and portable
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list