Cov txheej txheem:

Pib Nrog M5StickV AI + IOT Lub Koob Yees Duab: 6 Cov Kauj Ruam (nrog Duab)
Pib Nrog M5StickV AI + IOT Lub Koob Yees Duab: 6 Cov Kauj Ruam (nrog Duab)

Video: Pib Nrog M5StickV AI + IOT Lub Koob Yees Duab: 6 Cov Kauj Ruam (nrog Duab)

Video: Pib Nrog M5StickV AI + IOT Lub Koob Yees Duab: 6 Cov Kauj Ruam (nrog Duab)
Video: Sib Hawm Dhau (Time Passed) Music Video by: Deeda/Dib Xwb 2024, Kaum ib hlis
Anonim
Pib Nrog M5StickV AI + IOT Lub Koob Yees Duab
Pib Nrog M5StickV AI + IOT Lub Koob Yees Duab

Qhia me ntsis

M5StickV yog lub me AI + IOT lub koob yees duab yuav luag qhov loj me ntawm txoj kab uas hla ntawm 2 npib, tus nqi nyob ib puag ncig $ 27.00 uas rau qee qhov yuav zoo li kim rau lub koob yees duab me me tab sis nws ntim qee qhov tshwj xeeb. Lub koob yees duab tau siv los ntawm lub tshuab muaj zog tsis txaus ntseeg kawm AI nti Kendryte K210, ntug kev suav nrog-rau-nti nrog dual-core 64bit RISC-V CPU thiab lub xeev-ntawm-kos duab neural network processor, uas ua rau nws zoo meej thiab npaj txhij-rau- siv rau:

  • Ntsej muag lees paub/nrhiav pom
  • Nrhiav kom paub/cais tawm
  • Tau txais qhov loj thiab kev tswj hwm ntawm lub hom phiaj hauv lub sijhawm
  • Tau txais hom hom phiaj pom hauv lub sijhawm tiag
  • Kev paub zoo
  • Kev ua si simulator

M5StickV los hauv pob zoo uas muaj M5StickV nws tus kheej thiab USB-A rau USB-C cable.

Kho vajtse nta

SoC-Kendryte K210 dual-core 64-ntsis RISC-V processor @ 400MHz nrog kev ywj pheej ywj pheej ob npaug FPU, 8MB ntawm-nti SRAM, Neural Network Processor (KPU) @ 0.8Tops, Field-Programmable IO Array (FPIOA), thiab ntau dua

  • Cia - 16MB nyem, microSD daim npav qhov
  • Zaub - 1.14 ″ SPI zaub nrog 240 × 135 daws teeb meem (ST7789 tus tsav tsheb)
  • Lub koob yees duab - VGA (640 × 480) lub koob yees duab ntawm OV7740 sensor
  • Suab - MAX98357 mono audio amplifier, hais lus
  • Sensor-MPU6886 3-axis gyroscope, 3-axis accelerometer
  • USB-1x USB-C chaw nres nkoj rau lub zog thiab lub cajmeem
  • Misc - Pem hauv ntej thiab sab khawm (A / B), khawm lub zog, RGBW LED
  • Kev nthuav dav-4-pin "CONNEXT" chaw nres nkoj
  • Hwj chim Mov
  • Roj teeb 200 mAh
  • AXP192 PMIC

Cov lus qhia ntxaws ntxaws tuaj yeem nrhiav pom hauv lub vev xaib raug cai ntawm M5Stack. Ua ntej tshaj plaws, peb yuav tsum rub tawm qhov tseeb firmware version.

Kauj Ruam 1: Yuav Ua Li Cas Hlawv Firmware ntawm M5StickV

  • Txuas M5StickV rau lub khoos phis tawj los ntawm Hom-C cable.
  • Rub tawm qhov tseeb firmware rau M5StickV los ntawm qhov txuas no.

Rau Windows:

Muaj 3 txoj hauv kev los hlawv firmware rau Windows OS:

Siv EasyLoader cov cuab yeej

  1. Xaiv qhov chaw nres nkoj COM kom raug
  2. Nias Hlawv
  3. Tom qab ua tiav kev hloov kho firmware, koj yuav pom tias nws tau ua tiav hlawv.

Siv Kflash GUI

  1. Qhib rub tawm firmware siv Open File khawm
  2. Xaiv pawg thawj coj ua M5StickV
  3. Nyem Download

Siv qhov hais kom ua

  • Txheeb xyuas qhov chaw nres nkoj COM rau koj M5StickV ntawm Tus Thawj Tswj Ntaus Ntawv ntawm Windows.
  • Ntawm Windows, koj yuav tsum muaj Python3 nrog pip3 teeb tsa thiab pob pyserial ib yam. Koj tuaj yeem rub tawm qhov tseeb ntawm Python los ntawm lub vev xaib raug cai.
  • Qhib cov lus txib ua tus thawj coj thiab ntaus cov lus txib hauv qab no

pip3 nruab kflash

Tom qab ua tiav kev teeb tsa, khiav cov lus txib hauv qab no

kflash.exe -p COM3 M5StickV_Firmware_1022_beta.kfpkg

Rau Linux:

  • Siv Kflash GUI
  • Siv davhlau ya nyob twg

Khiav cov lus txib hauv qab no ntawm lub davhlau ya nyob twg:

sudo pip3 nruab kflash

Siv Kflash hlawv cov duab firmware

sudo kflash -b 1500000 -B goE M5StickV_Firmware_1022_beta.kfpkg

Rau MacOS:

Qhib davhlau ya nyob twg thiab khiav cov lus txib hauv qab no

sudo pip3 nruab kflash

Yog tias koj tau txais qhov yuam kev tom qab teeb tsa, sim cov lus txib hauv qab no:

sudo python -m pip nruab kflash

sudo python3 -m pip nruab kflash sudo pip nruab kflash sudo pip2 nruab kflash

Nkag mus rau cov lus txib hauv qab no

sudo kflash -b 1500000 -B goE M5StickV_Firmware_1022_beta.kfpkg

Kauj Ruam 2: Pib M5stickV thawj zaug

Rau MacOS thiab Linux:

  1. Qhib davhlau ya nyob twg Nruab qhov ntsuas hluav taws xob rau MacOS thiab Linux.
  2. Nws tuaj yeem raug teeb tsa los ntawm cov lus txib hauv qab no:

sudo apt-tau nruab screen

Siv cov cuab yeej tshuaj ntsuam txuas rau M5stickV ntawm kev sib txuas lus txuas

sudo screen /dev /ttyUSB0 115200

Nws yuav luam tawm:

[MAIXPY] Pll0: freq: 832000000 [MAIXPY] Pll1: freq: 398666666 [MAIXPY] Pll2: freq: 45066666 [MAIXPY] cpu: freq: 416000000 [MAIXPY] kpu: freq: 398666666 [MAIXPY] Flash: 0xc8 thib ob qhib core… gc heap = 0x80215060-0x80295060 [MaixPy] init kawg _ _ _ _ _ _ _ _ | \/ | Ib /\ | _ _ | / \ / / | _ / \ / / / | / / | Ib / / | | / V / | | _) | / \ _ / / | | \/| | / / / \ | | > <| _ / / / | | | | / _ / _ | | _ /. / | | | | | _ | | _ | / _/ / _ / | _ | / _/ / _ / | _ | | _ | M5StickV los ntawm M5Stack: https://m5stack.com/ M5StickV Wiki: https://m5stack.com/ Co-op los ntawm Sipeed: https://m5stack.com/ [MAIXPY]: result = 0 [MAIXPY]: numchannels = 1 [MAIXPY]: piv txwv = 44100 [MAIXPY]: byterate = 88200 [MAIXPY]: blockalign = 2 [MAIXPY]: bitspersample = 16 [MAIXPY]: datasize = 158760 init i2c2 [MAIXPY]: nrhiav ov7740

Thaum txuas nrog, nws yuav cia li nkag mus rau Maixpy UI. Tam sim no lub cuab yeej tau ua haujlwm txoj haujlwm tsis raug cai, koj tuaj yeem txiav nws los ntawm Ctrl+C

Rau Windows

  1. Rub tawm PuTTY - pub dawb SSH thiab telnet tus thov rau Windows
  2. Nruab thiab Qhib PuTTY
  3. Xaiv COM chaw nres nkoj thiab tus nqi baud
  4. Nyem Qhib khawm thiab koj yuav zoo ib yam cov duab tso tawm raws li saum toj no.
  5. Txiav nws los ntawm Ctrl+C.

Kauj Ruam 3: Luam Nyob Zoo Lub Ntiaj Teb Piv txwv ntawm Zaub M5StickV

Luam Nyob Zoo Tus Qauv Piv Txwv ntawm Zaub ntawm M5StickV
Luam Nyob Zoo Tus Qauv Piv Txwv ntawm Zaub ntawm M5StickV

Nkag mus rau cov lus txib hauv qab no hauv koj lub davhlau ya nyob twg ntawm MacOS thiab Linux. Rau Windows siv PuTTY

ntshuam lcdlcd.init () lcd.draw_string (100, 100, "nyob zoo ntiaj teb", lcd. RED, lcd. BLACK)

Kauj ruam 4: MaixPy IDE

MaixPy IDE
MaixPy IDE

MaixPY IDE yog cloned version ntawm OpenMV IDE. M5StickV txhawb nqa OpenMV thiab MicroPython kev txhim kho ib puag ncig.

  • Rub tawm MaixPy IDE los ntawm no.
  • Nruab MaixPy IDE
  • Tua tawm MaixPy IDE
  • Xaiv tus qauv ntawm pawg thawj coj loj-Cov cuab yeej-> Xaiv Pawg-> M5StickV.
  • Nyem rau ntsuab txuas txuas khawm hauv lub kaum sab laug sab laug thiab xaiv USB chaw nres nkoj txuas txuas, nyem OK.
  • Thaum khawm txuas tau hloov los ntawm ntsuab rau liab, nws tau txuas nrog ua tiav.
  • Nyem rau Khiav khawm hauv lub kaum sab laug sab laug kom ua txoj cai thiab txheeb xyuas nws.
  • Nyem rau ntawm lub davhlau ya nyob twg tab hauv qab no.
  • Thaum kawg, koj yuav pom cov zis ntawm MaxPy qhov rai.

Kauj Ruam 5: Nrhiav Lub Ntsej Muag Siv M5StickV

Kev Pom Lub Ntsej Muag Siv M5StickV
Kev Pom Lub Ntsej Muag Siv M5StickV
  • Los ntawm lub ntsej muag pom lub ntsej muag tus qauv thiab cov haujlwm txheej txheem twb tau teeb tsa ua ntej. Nov yog nws ua haujlwm li cas.
  • Piv txwv nrhiav lub ntsej muag ua haujlwm zoo heev.
  • Txhawm rau kom siv tau lwm tus qauv, peb yuav tsum hlawv nws mus rau hauv lub cim xeeb nyem ntawm M5StickV siv kflash_gui. Lwm cov qauv tuaj yeem rub tawm los ntawm no. Muaj tus qauv kawm ua ntej, mobilenet, uas tau kawm ua ntej kom paub txog 1000 yam khoom. Nws tuaj yeem txheeb xyuas ntau yam khoom niaj hnub nrog yooj yim.
  • Luam cov cai hauv qab no rau hauv MaixPy IDE.

ntshuam sensorimport duab ntshuam KPU ua kpu sensor.reset () sensor.set_pixformat (sensor. RGB565) sensor.set_framesize (sensor. QVGA) sensor.run (1) task = kpu.load (0x300000) thauj tog rau nkoj = (1.889, 2.5245, 2.9465), 3.94056, 3.99987, 5.3658, 5.155437, 6.92275, 6.718375, 9.01025) a = kpu.init_yolo2 (ua haujlwm, 0.5, 0.3, 5, thauj tog rau nkoj) thaum (Tseeb): img = sensor.snapshot () code = kpu.run_yolo2 (ua haujlwm, img) yog tus lej: rau kuv hauv tus lej: luam tawm (i) a = img.draw_rectangle (i.rect ()) a = kpu.deinit (haujlwm)

  • Nias lub pob Khiav, thiab lub rooj tsav xwm nthuav qhia cov vis dis aus los ntawm lub koob yees duab mus rau MaixPyIDE.
  • Qhov tseeb yog qhov zoo nkauj txiav txim siab peb tab tom khiav nws ntawm $ 27 pawg thawj coj. Qhov no yog qhov muaj txiaj ntsig tiag tiag thiab hloov pauv.

Kauj Ruam 6: Xaus

Pawg thawj coj no tsis zoo tag nrho, txawm li cas los xij nws tsis muaj cov khoom siv sib xws, lub microphone, WiFi, thiab Bluetooth. Txawm li cas los xij, nws yog lub koob yees duab zoo nrog AI lub peev xwm uas tuaj yeem siv rau kev lees paub lub ntsej muag, yam khoom lossis lub ntsej muag kom pom thiab ntau lwm yam kev nrhiav pom. Tsis tas li, qhov no yog cov khoom siv txaus txaus kom pib nrog Kendryte K210 RISC-V core.

Kuv vam tias koj pom phau ntawv qhia no muaj txiaj ntsig thiab ua tsaug rau kev nyeem. Yog tias koj muaj lus nug lossis tswv yim? Tawm lus tawm hauv qab no. Nyob twj ywm!

Pom zoo: