Cov txheej txheem:

Tus Qauv Cim Cim Tsim los ntawm Arduino Servo Motors: 5 Kauj Ruam
Tus Qauv Cim Cim Tsim los ntawm Arduino Servo Motors: 5 Kauj Ruam

Video: Tus Qauv Cim Cim Tsim los ntawm Arduino Servo Motors: 5 Kauj Ruam

Video: Tus Qauv Cim Cim Tsim los ntawm Arduino Servo Motors: 5 Kauj Ruam
Video: Cheem niam lub hnub nyoog Kawm Muas 2024, Kaum ib hlis
Anonim
Image
Image
Lub Cim Cim Cim Tsim los ntawm Arduino Servo Motors
Lub Cim Cim Cim Tsim los ntawm Arduino Servo Motors

Nrog Cov Ntawv Qhia Kuv yuav qhia koj li cas los tsim lub moos siv Arduino Nano thiab Servo motors. Txhawm rau ua qhov no koj yuav xav tau cov khoom hauv qab no,

Khoom siv

  • Arduino Board (Kuv tau siv Arduino Nano)
  • 2 Servo motors
  • LED Qij
  • Hlau
  • Lub thawv ntawv
  • Cwj mem
  • Mem hluav
  • Tus kav
  • Cov pos hniav
  • Ntawv txiav

Kauj Ruam 1: Tua Qhov Tseeb LED Teeb

Solder Qhov Yuav Tsum Tau LED Qij
Solder Qhov Yuav Tsum Tau LED Qij
Solder Qhov Yuav Tsum Tau LED Qij
Solder Qhov Yuav Tsum Tau LED Qij
Solder Qhov Yuav Tsum Tau LED Qij
Solder Qhov Yuav Tsum Tau LED Qij
  1. Txhawm rau qhia qhov cim qhia ob peb feeb thiab qhov tseem ceeb peb xav tau LED Qij. Siv jumper xaim lossis lub qhov ncauj sib txuas cov xov hlau rau LED.
  2. Ua rau lawv zoo li hauv cov duab

Kauj Ruam 2: Npaj Teev Sijhawm thiab Minute Servo Motors

Npaj Teev Sijhawm thiab Minute Servo Motors
Npaj Teev Sijhawm thiab Minute Servo Motors
Npaj Teev Sijhawm thiab Minute Servo Motors
Npaj Teev Sijhawm thiab Minute Servo Motors
Npaj Teev Sijhawm thiab Minute Servo Motors
Npaj Teev Sijhawm thiab Minute Servo Motors

Hauv cov kauj ruam no yuav tsum tsim Tus Nqi Teev Sijhawm thiab Tus Nqi Minute uas qhia cov lej tooj.

  1. Siv cov duab los qhia lub voj voos thiab suav thaj chaw zoo li hauv 180 degree vim tias servo yuav siv kev txhawb nqa 180 degree nkaus xwb. Yog tias koj siv 360 degree txhawb nqa servo motor koj tuaj yeem hloov pauv phaj tsim.
  2. Txiav lawv raws li hauv daim duab.
  3. Yog tias koj tsis siv tus pin txhawm rau txuas lub cav servo rau lub moos phab ntsa siv qee qhov txheej txheem los ua qhov ntawd. Hauv qhov no kuv tau siv lub thawv ntawv los npog lub cav servo thiab lub npog uas yuav haum rau lub moos phab ntsa.

Kauj Ruam 3: Program Arduino Board rau Moos

Program Arduino Board rau Moos
Program Arduino Board rau Moos

Ua ntej sib sau ua ke tag nrho cov khoom tsuas yog koom nrog cov xov hlau LED, Servo lub cev muaj zog xov hlau mus rau Arduino pawg thawj coj saib thiab txheeb xyuas qhov raug. Qhov program kuv tau siv yog txuas ntawm no.

Rau qhov qhia thib ob LED siv Arduino tus pin 3

Txog Qhov Qhia Taw Qhia 4 LEDs siv Arduino tus pin 7, 8, 9, 10

Rau Servo motors siv 5, 6 tus pin

Kauj Ruam 4: Sib Sau Ua Ke Txhua Qhov

Sib Sau Ua Ke Txhua Qhov
Sib Sau Ua Ke Txhua Qhov
Sib Sau Ua Ke Txhua Qhov
Sib Sau Ua Ke Txhua Qhov
Sib Sau Ua Ke Txhua Qhov
Sib Sau Ua Ke Txhua Qhov

Tam sim no servo motors thiab LEDs tuaj yeem txuas rau lub thawv ntawv thawv coj los ua lub moos tseem ceeb phab ntsa. Tom qab haum lub teev thiab feeb daim phiaj rau ntawm phab ntsa. Tom qab ua tiav txoj haujlwm tam sim no pom zoo li saum toj no.

Kauj Ruam 5: Ua tiav Txoj Haujlwm thiab Kev Txhim Kho

Tam sim no fais fab pawg tswj hwm arduino siv lub zog sab nraud thiab koj tuaj yeem txaus siab rau lub moos tshiab. Rau lub hom phiaj demo moos tau khiav nrawm dua li lub moos ceev. Qhov ntawd tuaj yeem hloov kho siv tus lej arduino.

Hauv qhov haujlwm no kuv tsis ntxiv sijhawm teeb tsa lub luag haujlwm. Qhov ntawd tuaj yeem siv tau yooj yim siv cov ntawv nyeem cov ntaub ntawv lossis txuas cov cuab yeej bluetooth.

Ua tsaug rau koj saib qhov no.

Pom zoo: