Cov txheej txheem:

Siv Gestures los Tswj YouTube Ua Si Nrog Arduino: 5 Kauj Ruam
Siv Gestures los Tswj YouTube Ua Si Nrog Arduino: 5 Kauj Ruam

Video: Siv Gestures los Tswj YouTube Ua Si Nrog Arduino: 5 Kauj Ruam

Video: Siv Gestures los Tswj YouTube Ua Si Nrog Arduino: 5 Kauj Ruam
Video: Musicians talk about Buckethead 2024, Kaum ib hlis
Anonim
Image
Image

Dab neeg

YouTube tsuas yog tso cai rau koj nrawm dua 5 vib nas this txhua lub sijhawm koj nyem lub pob kom raug. Yog li kuv txiav txim siab siv Arduino thiab nab nab los ua tus tswj kom pab kuv nrawm dua 20 vib nas this txhua lub sijhawm kuv wava kuv txhais tes.

Khoom siv

Seeeduino V4.2 [Yuav Ntawm No] (https://www.seeedstudio.com/Seeeduino-V4-2-p-2517….)

Pom Grove-Human Presence Sensor [Yuav Ntawm No] (https://www.seeedstudio.com/Grove-Human-Presence-S…)

Python [Rub Tawm Ntawm No] (https://www.python.org/)

Arduino IDE [Rub Tawm Ntawm No] (https://www.arduino.cc/en/Main/Software)

Kauj Ruam 1: Kev Kho Vajtse Txuas

Kho vajtse txuas
Kho vajtse txuas

Txuas koj Arduino nrog koj lub computer thiab IR sensor. IR sensor yuav tsum tau ntsaws rau hauv I2C chaw nres nkoj.

Kauj ruam 2: Rub tawm thiab Nruab Arduino Library

Rub tawm [Grove_Human_Presence_Sensor Library] (https://github.com/Seeed-Studio/Grove_Human_Presence_Sensor) los ntawm Github. Tom qab ntawd suav nws rau hauv koj lub tsev qiv ntawv Arduino. Koj tuaj yeem xa mus rau [Yuav ua li cas rau teeb tsa tsev qiv ntawv] (https://wiki.seeedstudio.com/How_to_install_Arduino_Library/) txhawm rau txhim kho tsev qiv ntawv rau koj Arduino.

Kauj Ruam 3: Arduino Code

Luam thiab paste Arduino code hauv qab no rau hauv koj li Arduino IDE. Tom qab ntawv suav thiab muab tso rau hauv koj li Arduino board.

Kauj ruam 4: Python Code

Luam thiab muab tus nab npawb nab npawb hauv qab no rau hauv koj tus kws kho mob nab. Nco ntsoov nruab pyserial thiab pynput library. Yog koj tsis paub yuav ua li cas. Tsuas yog qhib koj lub davhlau ya nyob twg thiab ntaus 'pip install pyserial' thiab 'pip install pynput'.

Kauj ruam 5: Txaus siab rau Tus Tswj

Ua cov ntaub ntawv nab hab sej thiab ua si nrog koj tus kheej tes taw!

Pom zoo: