找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

帖子

【Arduino】168種傳感器系列實(shí)驗(yàn)(153)---Maixduino AI開發(fā)板

查看數(shù): 29852 | 評論數(shù): 152 | 收藏 5
關(guān)燈 | 提示:支持鍵盤翻頁<-左 右->
  • 1/146
  • 2/146
  • 3/146
  • 4/146
  • 5/146
  • 6/146
  • 7/146
  • 8/146
  • 9/146
  • 10/146
  • 11/146
  • 12/146
  • 13/146
  • 14/146
  • 15/146
  • 16/146
  • 17/146
  • 18/146
  • 19/146
  • 20/146
  • 21/146
  • 22/146
  • 23/146
  • 24/146
  • 25/146
  • 26/146
  • 27/146
  • 28/146
  • 29/146
  • 30/146
  • 31/146
  • 32/146
  • 33/146
  • 34/146
  • 35/146
  • 36/146
  • 37/146
  • 38/146
  • 39/146
  • 40/146
  • 41/146
  • 42/146
  • 43/146
  • 44/146
  • 45/146
  • 46/146
  • 47/146
  • 48/146
  • 49/146
  • 50/146
  • 51/146
  • 52/146
  • 53/146
  • 54/146
  • 55/146
  • 56/146
  • 57/146
  • 58/146
  • 59/146
  • 60/146
  • 61/146
  • 62/146
  • 63/146
  • 64/146
  • 65/146
  • 66/146
  • 67/146
  • 68/146
  • 69/146
  • 70/146
  • 71/146
  • 72/146
  • 73/146
  • 74/146
  • 75/146
  • 76/146
  • 77/146
  • 78/146
  • 79/146
  • 80/146
  • 81/146
  • 82/146
  • 83/146
  • 84/146
  • 85/146
  • 86/146
  • 87/146
  • 88/146
  • 89/146
  • 90/146
  • 91/146
  • 92/146
  • 93/146
  • 94/146
  • 95/146
  • 96/146
  • 97/146
  • 98/146
  • 99/146
  • 100/146
  • 101/146
  • 102/146
  • 103/146
  • 104/146
  • 105/146
  • 106/146
  • 107/146
  • 108/146
  • 109/146
  • 110/146
  • 111/146
  • 112/146
  • 113/146
  • 114/146
  • 115/146
  • 116/146
  • 117/146
  • 118/146
  • 119/146
  • 120/146
  • 121/146
  • 122/146
  • 123/146
  • 124/146
  • 125/146
  • 126/146
  • 127/146
  • 128/146
  • 129/146
  • 130/146
  • 131/146
  • 132/146
  • 133/146
  • 134/146
  • 135/146
  • 136/146
  • 137/146
  • 138/146
  • 139/146
  • 140/146
  • 141/146
  • 142/146
  • 143/146
  • 144/146
  • 145/146
  • 146/146
發(fā)布時間: 2020-3-6 17:20

正文摘要:

37款傳感器與模塊的提法,在網(wǎng)絡(luò)上廣泛流傳,其實(shí)Arduino能夠兼容的傳感器模塊肯定是不止37種的。鑒于本人手頭積累了一些傳感器和執(zhí)行器模塊,依照實(shí)踐出真知(一定要動手做)的理念,以學(xué)習(xí)和交流為目的,這里準(zhǔn)備 ...

回復(fù)

ID:513258 發(fā)表于 2020-10-24 15:57
john_yike 發(fā)表于 2020-4-5 20:44
103#
Processing sipeed-maixduino (platform: kendryte210; framework: arduino; board: sipeed-maixd ...

謝謝師傅!半年前做的實(shí)驗(yàn),有些忘記,板子也找不到了,呵呵
ID:221401 發(fā)表于 2020-4-5 20:45
eagler8 發(fā)表于 2020-3-24 17:19
把接腳改為pin 1,下載成功

105# 如何改?
ID:221401 發(fā)表于 2020-4-5 20:44
eagler8 發(fā)表于 2020-3-24 16:45
Verbose mode can be enabled via `-v, --verbose` option
PLATFORM: Kendryte K210 1.2.1 > Sipeed MAIXD ...

103#
Processing sipeed-maixduino (platform: kendryte210; framework: arduino; board: sipeed-maixduino)
---------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION:docs.platformio點(diǎn)org/page/boards/kendryte210/sipeed-maixduino.html
PLATFORM: Kendryte K210 1.2.1 #6099b97 > Sipeed MAIXDUINO
HARDWARE: K210 400MHz, 6MB RAM, 16MB Flash
DEBUG: Current (iot-bus-jtag) External (iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, sipeed-rv-debugger, tumpa)
PACKAGES:
- framework-maixduino 0.3.9
- tool-kflash-kendryte210 0.9.1
- tool-openocd-kendryte 1.203.1 (2.3)
- toolchain-kendryte210 8.2.0
LDF: Library Dependency Finder -> bit點(diǎn)ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 14 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Checking size .pio\build\sipeed-maixduino\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [          ]   0.5% (used 32456 bytes from 6291456 bytes)
Flash: [          ]   0.4% (used 68319 bytes from 16777216 bytes)
Configuring upload protocol...
AVAILABLE: iot-bus-jtag, jlink, kflash, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, sipeed-rv-debugger, tumpa
CURRENT: upload_protocol = kflash
Looking for upload port...
Auto-detected: COM11
Uploading .pio\build\sipeed-maixduino\firmware.bin
[INFO] COM Port Selected Manually:  COM11
[INFO] Default baudrate is 115200 , later it may be changed to the value you set.
[INFO] Trying to Enter the ISP Mode...
***************
Greeting fail, check serial port ([ERROR] No vaild Kendryte K210 found in Auto Detect, Check Your Connection or Specify One by`-p COM3`  )
*** [upload] Error 1
=========================================================== [FAILED] Took 24.30 seconds ===========================================================

Environment           Status    Duration
--------------------  --------  ------------
sipeed-maix-go        FAILED    00:00:21.691
sipeed-maix-one-dock  FAILED    00:00:22.965
sipeed-maix-bit       FAILED    00:00:23.936
sipeed-maixduino      FAILED    00:00:24.296
====================================================== 4 failed, 0 succeeded in 00:01:32.889 ======================================================
終端進(jìn)程已終止,退出代碼: 1

終端將被任務(wù)重用,按任意鍵關(guān)閉。
ID:221401 發(fā)表于 2020-4-5 20:07
eagler8 發(fā)表于 2020-3-24 09:12
嘗試添加 Maix 系列開發(fā)板,這里是MaixduinoPIO 目前提供命令行與圖形界面兩種方式來安裝。1、命令行
點(diǎn)擊 ...

83樓,platformio platform install “kendryte210” 沒有雙引號,platformio platform install kendryte210
ID:221401 發(fā)表于 2020-4-5 18:10
eagler8 發(fā)表于 2020-3-24 09:12
嘗試添加 Maix 系列開發(fā)板,這里是MaixduinoPIO 目前提供命令行與圖形界面兩種方式來安裝。1、命令行
點(diǎn)擊 ...

83號樓的操作要先運(yùn)行 88號樓,安裝 Git client端,
ID:221401 發(fā)表于 2020-4-5 18:02
eagler8 發(fā)表于 2020-3-24 09:12
嘗試添加 Maix 系列開發(fā)板,這里是MaixduinoPIO 目前提供命令行與圖形界面兩種方式來安裝。1、命令行
點(diǎn)擊 ...

打開后是這個樣子哦,如何解決?

Microsoft Windows [版本 6.1.7601]
版權(quán)所有 (c) 2009 Microsoft Corporation。保留所有權(quán)利。

C:\Users\Administrator>
ID:513258 發(fā)表于 2020-3-26 15:43
4、串口終端PuTTY的控制命令:

   CTRL-A-在空白行上,進(jìn)入原始REPL模式
   CTRL-B-在空白行上,進(jìn)入常規(guī)REPL模式
   CTRL-C-中斷正在運(yùn)行的程序
   CTRL-D-在空白行上,對電路板進(jìn)行軟復(fù)位
   CTRL-E-在空白行上進(jìn)入粘貼模式

5、有關(guān)可用模塊的列表,請鍵入help('modules')

KPU               gc                random            uio
Maix              hashlib           re                ujson
__main__          heapq             sensor            ulab
_boot             image             socket            uos
_thread           json              struct            urandom
_webrepl          lcd               sys               ure
array             machine           time              usocket
audio             math              touchscreen       ustruct
binascii          math              ubinascii         utime
board             micropython       ucollections      utimeq
builtins          modules           ucryptolib        uzlib
cmath             nes               uctypes           video
collections       network           uerrno            zlib
errno             os                uhashlib
fpioa_manager     pye_mp            uheapq
Plus any modules on the filesystem
ID:513258 發(fā)表于 2020-3-26 10:30
實(shí)時采集并顯示圖像在TFT屏上,并獲取和顯示實(shí)時幀數(shù)


  1. #實(shí)時采集并顯示圖像在TFT屏上,并獲取和顯示實(shí)時幀數(shù)

  2. import sensor
  3. import image
  4. import lcd
  5. import time

  6. clock = time.clock()
  7. lcd.init()
  8. sensor.reset()
  9. sensor.set_pixformat(sensor.RGB565)
  10. sensor.set_framesize(sensor.QVGA)
  11. sensor.run(1)
  12. sensor.skip_frames(30)
  13. while True:
  14.     clock.tick()
  15.     img = sensor.snapshot()
  16.     fps =clock.fps()
  17.     img.draw_string(40,2, ("%2.1ffps" %(fps)), color=(128,0,0), scale=2)
  18.     lcd.display(img)
復(fù)制代碼



ID:513258 發(fā)表于 2020-3-26 09:59
實(shí)時拍照


  1. import sensor
  2. import image
  3. import lcd

  4. lcd.init()
  5. sensor.reset()
  6. sensor.set_pixformat(sensor.RGB565)
  7. sensor.set_framesize(sensor.QVGA)
  8. sensor.run(1)
  9. while True:
  10.     img=sensor.snapshot()
  11.     lcd.display(img)
復(fù)制代碼



ID:513258 發(fā)表于 2020-3-26 08:27
  1. #1.將板連接到計算機(jī)
  2. #2.在MaixPy IDE頂部選擇板:`工具-> 開發(fā)板`
  3. #3.單擊下面的連接按鈕以連接板
  4. #4.單擊下面的綠色運(yùn)行箭頭按鈕運(yùn)行腳本!

  5. import sensor, image, time, lcd                   #導(dǎo)入傳感器,圖像,時間,液晶

  6. lcd.init(freq = 15000000)
  7. sensor.reset()                                         #重置并初始化傳感器
  8.                                                            #自動運(yùn)行,調(diào)用sensor.run(0)停止
  9. sensor.set_pixformat(sensor.RGB565)  #將像素格式設(shè)置為RGB565(或GREYSCALE)
  10. sensor.set_framesize(sensor.QVGA)     #將幀大小設(shè)置為QVGA(320x240)
  11. sensor.skip_frames(time = 2000)         #等待設(shè)置生效。
  12. clock = time.clock()                              #創(chuàng)建一個時鐘對象以跟蹤FPS。

  13. while(True):
  14.     clock.tick()                                      #更新FPS時鐘。
  15.     img = sensor.snapshot()               #拍照并返回圖像。
  16.     lcd.display(img)                             #在LCD上顯示
  17.     print(clock.fps())                       #注意:MaixPy的凸輪在連接時的運(yùn)行速度大約是其一半
  18.                                                               #到IDE。斷開連接后,F(xiàn)PS應(yīng)增加。
復(fù)制代碼


ID:513258 發(fā)表于 2020-3-25 16:56
附:kflash_gui 特性
支持 *.bin 和 *.kfpgk 文件, 支持文件選擇器選擇
支持開發(fā)板選擇
可選擇程序燒錄到 Flash 或者 SRAM
自動檢測電腦上的串口
波特率可編輯
黑白兩種皮膚可供選擇
界面支持中英文切換
支持燒錄進(jìn)度顯示和燒錄速度顯示
支持取消下載進(jìn)程
支持合并多個 bin 文件為一個 bin 文件
支持把 kfpkg 文件轉(zhuǎn)換為一個 bin 文件
支持使能 bin 文件
自動識別文件是不是固件

kflash_gui 使用方法
下載文件(kflash_gui_v*.*) 下載地址:release頁面
解壓, 并雙擊 kflash_gui.exe 或 kflash_gui
可以自行建快捷方式或者固定到開始頁面或者固定要任務(wù)欄方便使用; 如果是 Linux, 可以修改 kflash_gui.desktop 里面的路徑, 然后用管理員身份復(fù)制到/usr/share/application 目錄, 然后就可以在系統(tǒng)菜單里面找到kflash_gui的圖標(biāo)了,點(diǎn)擊即可打開
選擇 bin 文件或者 kfpkg 文件, 如果是bin文件需要指定地址,如果是固件需要指定0x0000地址
選擇開發(fā)板
選擇燒錄到開發(fā)板的哪個位置 Flash(速度慢但是重新上電還可運(yùn)行) 或者 SRAM(RAM中運(yùn)行,下載快斷電丟失程序)
選擇串口
選擇波特率,推薦1.5M
點(diǎn)擊 下載 按鈕來開始下載
如果需要取消,點(diǎn)擊 取消 按鈕


小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表