[Automatic clock-in walking timer system based on face recognition] Unboxing (1): SiPEED Maix Bit (K210)
[Copy link]
Today, the development board of Digi-Key's Innovation Design Competition has finally arrived. I am full of excitement and anticipation! Here is an unboxing report and a hands-on experience! (I'll tell you in advance, it's pretty nice! )
1. Unboxing:
(1) Powerful logistics and express delivery:
(2) The development boards applied for are SiPEED Maix Bit (burning tool: USB-JTAG/TTL Debuger) and ESP32-EYE, I2S AMP MAX98357A audio output board. Very good materials , 100 thumbs up! ! ! ! K210's development board is really powerful for developing AI+IoT! Very nice!
(3) Can’t wait to unbox MAIX BIT and try it out!
(4) Assemble the screen and camera, power on the board, and run the built-in firmware: MaxiPy firmware V0.5.0
(5) Introduction to MaixBit development board:
A. The board is simple and elegant, with full expansion capabilities!
B. AIoT development, strong computing power, the best cost performance!
C. Getting started with expansion is simple!
It has both the image sensor and sound MIC needed for AI development! ! ! !
D. Rich open source information, and geeks' favorite Python language! ! ! Very attractive~~~~
(II) Getting Started with the First Steps:
(1) First, you need to go to the Seeed (Sipeed) website to download the MaixBit development board related information, including Spec, HDK, and SDK related information:
Download Site - Sipeed
(2) Download MaixPy IDE and install it:
https://api.dl.sipeed.com/shareURL/MAIX/MaixPy
PS: Special reminder: Windows users need to use administrator privileges to run it!!!
(3) Run the IDE and open the following interface:
(4) Connect the development board to the computer with a USB Type C data cable. In the device manager, check whether two COM ports are recognized. The port with the lower COM number is the port for downloading Python code (if you are not sure, you can use putty/Tera to connect to the development board using 115200 8N1. You can see the following words printed!!! PS: Please note that when using the IDE, you must close the serial port tool. Serial port resource usage conflicts will cause the IDE's "connect" [green button at the bottom left of the IDE] to fail! )
(5)To get started with LED flashing, modify the default helloworld code in MaixPy IDE to:
# Hello World Example
#
# Welcome to the MaixPy IDE!
# 1. Conenct board to computer
# 2. Select board at the top of MaixPy IDE: `tools->Select Board`
# 3. Click the connect buttion below to connect board
# 4. Click on the green run arrow button below to run the script!
import utime
from Maix import GPIO
from board import board_info
from fpioa_manager import fm
#开发板RGB灯颜色和LED_R/G/B对应不上
#LED_R->Blue LED_B->Green LED_G->Red
fm.register(board_info.LED_B,fm.fpioa.GPIO0)
led_r=GPIO(GPIO.GPIO0,GPIO.OUT)
while True:
utime.sleep_ms(500)
led_r.value(0)
utime.sleep_ms(500)
led_r.value(1)
fm.unregister(board_info.LED_R)
First, click the green button (Connect) at the bottom left of the IDE, and select the corresponding COM port in the pop-up window. If the connection is successful, the button will turn red. If the connection fails, please follow the previous steps to check whether the COM resource usage permissions conflict!!!
Then click the triangle button (Run) below the Connect button, and you can see the LED light flashing on the development board!
PS: The RGB values in the board info in Python do not match the actual development board. Please refer to the comments in the code snippet for details!!!
(6) In the MaixPy document introduction, you can find sample codes for LED breathing light (the development board is equipped with RGB three-color LED) and real-time photography.
MaixPy Documentation - Sipeed Wiki
The key point is to verify whether the sensor and LCD screen of the development board are functioning properly, so I choose to run the real-time photo taking function!!!
Pretty nice, right? Just a few lines of code to complete sensor image capture and screen display! !
import sensor
import image
import lcd
lcd.init()
sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.QVGA)
sensor.run(1)
while True:
img=sensor.snapshot()
lcd.display(img)
(7) Operation effect:
Host computer effect:
The effect on the development board:
PS: I found that the default firmware of the development board has a bug. It should be that the screen display is mirrored, so the screen image displayed is opposite to the actual object! ( In subsequent development, refresh the firmware and fill the gap!)
The first post of the unboxing experience ends here! The overall delivery of the competition development board, the board packaging, the board quality, and the hands-on experience are all quite good, very awesome!!! I give a thumbs up to the organizer of the competition!!!
In the next stage, we will experience the functions of ESP32-EYE again! Stay tuned!!!
|