2872 views|2 replies

303

Posts

5

Resources
The OP
 

[Xingkong Board Python Programming Learning Main Control Board] 2: Power on the Xingkong Board and run + download and run the main.py demonstration program [Copy link]

This post was last edited by yaoquan5201314 on 2022-12-11 10:00

This article begins with some introductions after the Xingkong board is powered on, downloads and runs the downloaded main.py demonstration program file to the Xingkong board, and runs the display effect.

First, after powering on, you will see the following interface:

You can view the homepage directory. One interface cannot display the entire directory. You need to press the down button in the lower right corner of the screen to pull down to display the remaining directory interfaces. The specific functions of each directory will be introduced in detail later when they are used.

The Xingkong board is connected to the computer via USB. The connection will identify the Xingkong board network card device, and then enter 10.1.2.3 on the computer browser to enter the Xingkong board homepage, as shown below:

You can see that there are four directories on the left side of the Xingkong board homepage. The first one is the homepage, which mainly displays the official website and official forum URL of Xingkong board. Then there are usage tutorials below, including three introductory tutorials: upper, middle and lower.

Then click the Apply switch option on the left, and the following figure is displayed:

You can turn on the application switches including the Siot server control switch and the Jupyter code editor switch. You can see that the Slot switch is turned on by default, and then open the page, which is shown as follows:

When watching the introduction video of the Xingkong board before, you can learn that through this setting interface of Siot, the server can send control commands to the Xingkong board. Here, different command control projects can be set with the newly added project ID. When realizing other functions later, the Slot control function will be implemented and demonstrated in detail.

The third option on the left side of the Xingkong board homepage is Network Settings. Click on the Network Settings option to display the following interface:

The network settings include two parts, WiFI status and connect to WIFI options. The WiFI status means that the Xingkong board acts as a WiFi hotspot so that other devices can connect to the Xingkong board via WIFI. Connecting to WIFI means that the Xingkong board connects to the WIFI network. It should be because my computer is connected to the HUWEI WIFI network, so the Xingkong board automatically scans this WIFI, and then enters the password to connect. Then there is a prompt here that it only supports 2.4G wifi network.

At the bottom left of the Xingkong board homepage is the file upload interface, as shown below:

This interface is mainly used to upload the written py file to the memory of the Xingkong board. Later, we will talk about uploading the official demonstration program main.py file, and then running the main.py file on the Xingkong board.

The main.py file is the Jupyter service that needs to open the application switch on the Xingkong board homepage, and then click to open the page:

Click to open the Jupyer page and the following figure will be displayed:

Through this page, you can see that there are three directory options: File, Run and Cluster. The file directory interface shows the main.py file and four pictures. What I want to download is the main.py file here.

Select the hollow box on the left of main.py and choose the download option, as shown below:

Before downloading, open and look at the contents of the main.py file, as shown below:

Then try to modify this file into the function code you want to implement. After downloading the main.py file, select the file upload option in the homepage interface of the Xingkong board and upload the main.py file to the Xingkong board memory, as shown in the figure below:

After uploading, select the option to switch to running the program in the line board interface, as shown below:

After entering the switch running program, select the main.py file to run, as shown in the following figure:

The above operations on the running board are all done by pressing the home button on the left to confirm the selection function, and then pressing the upper button on the right to switch options up, and pressing the lower button on the right to switch options down.

After clicking the home button to confirm running the main.py file, the following interface appears:

Here is a sleeping robot interface, with two robots with closed eyes and snotty noses, and at the bottom it says shake to wake it up. I gently shook the Starry Sky Board and the following interface appeared:

Here the robot turns into a smiling face, and the Chinese characters displayed below show "Nice to meet you". After a few seconds, the following picture is displayed:

There is an additional arrow in the upper right corner to display characters. According to the interface prompt, I click the upper right button and the following picture is displayed:

This interface shows that the eyes are open, and there are two red hearts, one large and one small. The arrow in the upper right corner is gone, and a new arrow appears below the original arrow. The text at the bottom shows that you pressed the A key, which means that the upper right key just pressed is defined as the A key. According to the arrow prompt, press the lower right key, as shown in the figure below:

This interface previously showed that you pressed the B key, but this interface was displayed before I took a photo, indicating that the button on the right is the B key. This interface prompts you to press the A key to enter the next item. After I pressed the A key, the display is as shown below:

This interface is a visualization of sound and light data. The left side shows the ambient sound volume data detected by the ambient sound sensor, and the right side shows the light intensity data. These two visualization data displays of my son just correspond to the sound sensor and light sensor on the Xingkong board. Because there are family members talking in the house, the sound volume data keeps changing. Then I took the Xingkong board under the desk lamp, and the light intensity data displayed was relatively large, as shown in the figure below:

The data displayed in the middle is full, which should be 100. Then, after the blank board is moved away from the desk lamp, the light intensity data drops significantly, as shown in the figure below:

At this time, by pressing the A key, you can switch to the next interface. The next interface displays the analog clock and the real-time clock, as shown in the figure below:

This clock interface is well designed. Next time, you can try to change the clock chassis style. Press the A key to display the next interface. The next interface displays the QR code of the official website of Xingkong Board, as shown below:

After pressing the A key again, the interface displayed is the QR code of the Xingkong board tutorial, as shown below:

Press the A key again, and the last page will be displayed as shown below:

The interface shows that you can exit by long pressing the Home button. In fact, I can also exit by short pressing the HOME button. OK, here I have demonstrated the functions of the official demonstration program of the Xingkong board. I will have a day of FPGA training tomorrow. I will see if I have time to use the Xingkong board to control the light or read the SHT30 temperature and humidity sensor data through I2C. If everything goes well, I can read the infrared carbon dioxide sensor data through the serial port later.

PS: When I was preparing to apply for the Xingkong board, I carefully watched the official promotional video of the Xingkong board. I saw that it had many functions and was very powerful. I was very shocked. At that time, I did not notice that the Xingkong board was controlled by two main chips, Rockchip CPU and GD MCU. Today, when I was reading the text tutorial of the Xingkong board, I saw that the Xingkong board had these two main control chips, and the reading and controlling peripheral functions were mainly controlled by the GD chip. A few years ago, I used the STMF103 chip to run the MicroPython program, and at that time, it mainly realized the function of reading ADC data. This time, the GD chip used by the Xingkong board is the GD32VF103C8T6 chip. I hope to use Python as smoothly as using STM32F103 before. Of course, the Xingkong board supports complete Python functions, so the functions that can be realized will be more complete and powerful than MicroPython. The Bluetooth and WIFI functions of the Xingkong board are also very useful functions. Later, I hope to adjust these two functions and show them. Well, this article is written here. Today, some operations of the Xingkong board have been preliminarily realized. In the next article, I will start to modify the program to realize my own functions. Thank you for reading.

This post is from Programming Basics

Latest reply

I am looking forward to the host testing the Bluetooth and WIFI functions of the Xingkong board, which are also very useful functions.   Details Published on 2022-12-12 07:32
 

6593

Posts

0

Resources
2
 

I am looking forward to the host testing the Bluetooth and WIFI functions of the Xingkong board, which are also very useful functions.

This post is from Programming Basics

Comments

Well, yesterday I had a day of FPGA training, so I could only do simple mind+ graphical programming, and connect to the Xingkong board online, and use the Xingkong board to display the running results in real time, such as displaying pictures and making electronic photo albums. At the beginning, the pictures displayed were relatively large and the display was not correct. Later, I talked about how to modify the picture pixels to match  Details Published on 2022-12-12 08:44
 
 
 

303

Posts

5

Resources
3
 
Jacktang posted on 2022-12-12 07:32 I am looking forward to the host testing the Bluetooth and WIFI functions of the Xingkong board, which are also very useful functions,,,

Well, yesterday, because of the one-day FPGA training, I could only simply use mind+ graphical programming, and connect to the Xingkong board online, and use the Xingkong board to display the running results in real time, such as displaying pictures and making electronic photo albums. At the beginning, the pictures displayed were relatively large and the display was not correct. Later, I learned that the picture pixels were modified to the same pixel ratio as the Xingkong board, and it was normal. I feel that graphical programming is very efficient. Later, I will see if I can transmit photos and sensor data through Bluetooth and WIFI. I strive to make both functions work smoothly. In addition, I have Bluetooth WIFI modules from other manufacturers, so I can compare them.

This post is from Programming Basics
 
 
 

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