Cov txheej txheem:

Arduino Programing Nrog Python: 8 Kauj Ruam
Arduino Programing Nrog Python: 8 Kauj Ruam

Video: Arduino Programing Nrog Python: 8 Kauj Ruam

Video: Arduino Programing Nrog Python: 8 Kauj Ruam
Video: Gesture-Controlled Servo with Python and Arduino #electronics #arduinotraining 2024, Kaum ib hlis
Anonim

Los ntawm electronicsmithFollow Ntau los ntawm tus sau:

Arduino Game Controller
Arduino Game Controller
Arduino Game Controller
Arduino Game Controller
Dinosaur Game Hack Google Chrome Ua Si
Dinosaur Game Hack Google Chrome Ua Si
Dinosaur Game Hack Google Chrome Ua Si
Dinosaur Game Hack Google Chrome Ua Si
Arduino Serial Luam
Arduino Serial Luam
Arduino Serial Luam
Arduino Serial Luam

Hauv kab lus no, peb tab tom yuav tswj Arduino nrog GUI nab hab sej.

ua haujlwm nrog nab hab sej yog qhov yooj yim heev. Kuv yuav qhia txhua kauj ruam kom ntxaws txij thaum pib.

Kauj ruam 1: Cov ntaub ntawv

Arduino UNO x 1

Led x 1 po

220-ohm resistor x 1

qab x 1

Jumper xov hlau m-m x 1

Kauj Ruam 2: Kev Python Installation

Python Installation
Python Installation
Python Installation
Python Installation

Rub tawm nab nab los ntawm cov vev xaib raug cai:-

kuj, xyuas txoj kev teeb tsa.

Kauj ruam 3:

Duab
Duab

Tom qab ua tiav kev teeb tsa nab hab sej, peb yuav tsum teeb tsa lub tsev qiv ntawv pyserial.

Yog tias koj tab tom siv nab hab sej 3 Tkinter preinstalled hauv nws. Txhawm rau teeb tsa lub tsev qiv ntawv mus rau qhov hais kom ua tam sim qhib nws yooj yim nias lub qhov rais + r khiav lub qhov rais pop up nyob rau hauv pem hauv ntej ntawm koj thiab ntaus cmd nias sau. Lub qhov rai dub tawm ntawm koj lub vijtsam.

Kauj ruam 4:

Duab
Duab

Txhawm rau nruab pyserial tsev qiv ntawv hom hauv qab no hais kom ua ntawm koj cov lus txib kom ua.

pip nruab pyserial

Kauj ruam 5: Arduino Programing

Arduino Txoj Haujlwm
Arduino Txoj Haujlwm

upload cov cai hauv qab no hauv koj aduino.

cia koj Arduino txuas nrog thiab khiav tus nab npawb nab npawb qhia sib koom

Kauj Ruam 6:

Duab
Duab

Hloov chaw "com13" chaw nres nkoj nrog koj tus kheej Arduino chaw nres nkoj. koj yuav pom nws ntawm cov cuab yeej> chaw nres nkoj hauv Arduino lub tswv yim.

Kauj Ruam 7: Kev Sib Txuas

Kev sib txuas
Kev sib txuas

Txuas qhov zoo ntawm coj mus rau arduino tus lej 9 thiab tsis zoo nrog arduino hauv av

Pom zoo: