当前位置:网站首页>How to use maixll dock
How to use maixll dock
2022-07-01 04:24:00 【Salted fish shell】
Maixll-Dock Usage method
Cough , We installed the image system above . The problem is coming. , How to use it? ?
This article talks about two simple ways to use V831
We use IDE To show some simple effects .
Serial port tools let's do offline debugging .
MaixPy3 IDE
MaixPy3 IDE be based on jupyter Realized Python3 Integrated development environment (IDE,Integrated Development Environment ), It is intended to help users write Python After the language code , The user runs the... Provided by the developer jupyter notebook After the documents , After connecting the hardware, click 【 function 】 The following effect pictures can be presented in real time .
install MaixPy3 IDE
IDE Download address
Unpack the installation
installed , Desktop generation IDE Icon
open IDE
You will find ,U Pan ?!( No, U The appearance of the disk is equal to ADB There's something wrong with the drive , This is not connected IDE Of )
At this time, you need to uninstall manually according to the following figure Android ADB Interface Mobile phone driver
【 My computer 】 Right click 【 attribute 】【 Device manager 】
There is nothing to say about uninstalling directly
If U The disk still does not appear as in the above steps , Try a different mouth , Restart the equipment after burning the system again or consider changing a computer .
this time OK 了 .
Use MaixPy3 IDE
IDE After opening, there is a web page file and a console adb Let's look at the web page first jupyter
stay Jupyter In the documentation you can step through the code , And keep the output , It can also keep the content displayed on the screen .
The features of the software are as follows :
- adopt TCP/IP Connect the development board , Support running on this computer Python Code , Real time feedback of the running results or pictures of the development board .
- adopt jupyter notebook Documents can save the results of each run , Facilitate the dissemination of knowledge .
- Inherit ipython Realization Python Highlighting and completion of grammar ( Can press tab To complete ).
It has nothing to do with us doge
open IDE A web page will appear jupyter
choice 【New】【RPyc-Python】( Switch the kernel to Rpyc-python)
test : Input print(666)
Click on the run (python The foundation must be a little ) You can also enter the following code to test
import platform
print(platform.platform())
import time
print(time.asctime())
The above results show that :
One 、 The time this code runs is [ rpyc-kernel ]( running at Wed Apr 27 09:45:07 2022 )
Two 、 The platform on which this code runs is Linux-4.9.118-armv7l-with-libc
3、 ... and 、 This time running this code , The board subsystem time is Wed Apr 27 01:45:07 2022. This is a time zone difference , If you are interested, change it to GMT+8 It can be matched
When the code is running at the current time , And print out the above code , It indicates that the development board has been connected and can be used normally
wuhu
Then light the lamp , If we can light it up, we'll get it done
from maix import gpio
import time
ph7 = gpio.gpio(7, "H", 1) # Definition GPIO
while True:
ph7.set_value(0)
print(ph7.get_value())
time.sleep(1)
ph7.set_value(1)
print(ph7.get_value())
time.sleep(1)
LED The light flashes three times , Do you understand . Here we can run directly to see the effect . Now we exit IDE( There is a in the lower right corner of the computer IDE The icon , Right click to exit )
Then open the main.py, No change . So if you want to run offline , Put the program in main.py Keep it in .IDE It's just for testing and demonstration .
A serial port
It uses IDE after , I feel the effect is good , Suitable for displaying effects .
In fact, the hardware plays a lot , I prefer this interactive serial port function , Let's introduce one . Use whatever you like in the back ~
Let's choose a serial port tool ——MobaXterm( No connection , Baidu has ..)
MobaXterm Is the ultimate toolkit for remote computing , It is mainly used for Windows Enhanced terminal for , with X11 The server 、 Tabbed SSH client 、 Network tools, etc . In a Windows In the application , It provides a lot for programmers 、 Webmaster 、it Customized functions for administrators and almost all users who need to process remote jobs in a simpler way .
MobaXterm Provides all important remote networking tools (SSH、X11、RDP、VNC、FTP、MOSH etc. ) and Unix command (bash,ls,cat,sed,grep,awk,rsync,…) To Windows desktop , In a single portable exe Documents are available out of the box .
Usage method
take Type-c Access to USB UART On
Check the port number in Device Manager
No port number , Find the problem as shown in the figure above , You need to download the driver .
V831 The serial driver of is CH340 Just Baidu next .
After installation, the problem is solved
3. open MobaXterm, choice 【 conversation 】【 A serial port 】【 Serial port 】【115200】【 well 】
4. There is !( If nothing starts , Then press enter twice )
6. test : Input python Can enter the python Interactive compiler .
7. Encourage yourself to enter :print(“ I am great. ”)
Come here first , This article is written for friends who have no foundation . So step by step
Turn off the serial port tool . We will mainly use it for offline debugging later ~.
Digression : How to ask questions gracefully
Official group , There are various players , All kinds of boards . If you want to solve problems quickly, you need to know some skills .
Here is a hint of how Mengxin should ask questions gracefully .( Of course, money can quickly solve the problem , Cough )
- First explain the board you use and its status :
for example : I'm using XX Family V831, Installed XX Mirror image ,maixpy The version is XX - Take photos to illustrate the problem , And trying methods .
( Some simple mistakes Baidu can solve , It's a waste of time to ask .)
such as : I installed. IDE, But there is no U disc , The interleaver is shown below . According to the official ( terms of settlement ) The document operation , Uninstalled ADB, Not yet. . - What kind of effect do you want .
for example : I want to connect this interposer V831, And show me V831 Of U disc - Polite language
Such as : Is there a handsome big man who can save the children (doge) - It is necessary to generate documents after solving , Help more cute new friends
Such as : Can't initialize Photoshop Because the temporary storage disk is full
边栏推荐
- 2022危险化学品生产单位安全生产管理人员题库及答案
- Obtain detailed ideas for ABCDEF questions of 2022 American Games
- Haskell lightweight threads overhead and use on multicores
- 2. Use of classlist (element class name)
- 【深度学习】(4) Transformer 中的 Decoder 机制,附Pytorch完整代码
- How to choose the right server for website data collection?
- 嵌入式系統開發筆記80:應用Qt Designer進行主界面設計
- [learn C and fly] S1E20: two dimensional array
- JD intelligent customer service Yanxi intention system construction and intention recognition technology introduction
- Do280 management application deployment --rc
猜你喜欢
NFT: start NFT royalty journey with eip-2981
Maixll-Dock 使用方法
Class and object finalization
[leetcode skimming] February summary (updating)
Procurement intelligence is about to break out, and Alipay'3+2'system helps enterprises build core competitive advantages
互联网行业最佳产品开发流程 推荐!
Mallbook: how can hotel enterprises break the situation in the post epidemic era?
DO280管理应用部署--RC
Do280 management application deployment --rc
2022年煤气考试题库及在线模拟考试
随机推荐
(12) Somersault cloud case (navigation bar highlights follow)
LetCode 1829. Maximum XOR value per query
206.反转链表
陈宇(Aqua)-安全->云安全->多云安全
Annual inventory review of Alibaba cloud's observable practices in 2021
Dual Contrastive Learning: Text Classification via Label-Aware Data Augmentation 阅读笔记
What is uid? What is auth? What is a verifier?
使用WinMTR软件简单分析跟踪检测网络路由情况
Embedded System Development Notes 79: why should I get the IP address of the local network card
OdeInt与GPU
2022年煤气考试题库及在线模拟考试
LeetCode 1400. Construct K palindrome strings
After many job hopping, the monthly salary is equal to the annual salary of old colleagues
Loop filtering based on Unet
Day 52 - tree problem
Offline installation of Wireshark 2.6.10
js 图片路径转换base64格式
互联网行业最佳产品开发流程 推荐!
JMeter learning notes 2 - brief introduction to graphical interface
NFT: utilisez EIP - 2981 pour commencer un voyage de redevances NFT