Cov txheej txheem:
- Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau
- Kauj Ruam 2: Txoj Cai
- Kauj Ruam 3: Daim duab qhia chaw
- Kauj ruam 4: Cov txheej txheem
- Kauj ruam 5: Code
Video: SERVO MOTOR NROG ARDUINO UNO R3: 5 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Servo yog ib hom ntawm lub cev muaj zog uas tsuas tuaj yeem tig 180 degrees. Nws tau tswj hwm los ntawm kev xa hluav taws xob los ntawm koj lub Arduino Uno board. Cov mem tes no qhia rau servo txoj haujlwm nws yuav tsum txav mus rau qhov twg.
Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau
- Arduino Uno board * 1
- USB cable * 1
- Kev pabcuam * 1
- Daim phiaj * 1
- Jumper xov hlau
Kauj Ruam 2: Txoj Cai
Servo muaj lub plhaub, lub rooj tsav xwm hauv tsev, tsis siv lub cev muaj zog, iav thiab nrhiav chaw. Nws txoj haujlwm ua haujlwm yog raws li hauv qab no: Arduino Uno board xa PWM teeb liab rau servo lub cev muaj zog, thiab tom qab ntawd lub teeb liab no tau ua tiav los ntawm IC ntawm lub rooj tsav xwm hauv vaj huam sib luag los xam cov kev taw qhia kom tig lub cav, thiab tom qab ntawd lub zog tsav no tau xa mus rau caj npab los ntawm kev txo qis iav. Nyob rau tib lub sijhawm, txoj haujlwm ntsuas rov qab teeb liab qhov chaw los txiav txim seb qhov chaw tau mus txog lossis tsis.
Kauj Ruam 3: Daim duab qhia chaw
Kauj ruam 4: Cov txheej txheem
Kauj ruam 1:
Tsim lub voj voog.
Kauj ruam 2:
Rub tawm cov cai los ntawm
Kauj ruam 3:
Tshaj tawm cov duab kos rau Arduino Uno board
Nyem rau Upload icon txhawm rau upload cov cai rau pawg tswj hwm.
Yog tias "Ua tiav uploading" tshwm rau hauv qab ntawm lub qhov rais, nws txhais tau hais tias daim duab tau ua tiav tiav.
Tam sim no, koj tuaj yeem pom servo motor tig 90 degrees (tig ib zaug txhua 15 degrees). Thiab tom qab ntawd tig hauv qhov kev coj rov qab.
Kauj ruam 5: Code
/***********************************************
* Lub npe: Servo
* ua haujlwm: koj tuaj yeem pom servo motor tig 90 degrees (tig ib zaug txhua 15 degrees).
* Thiab tom qab ntawd tig mus rau qhov rov qab.
************************************************/
// Email: [email protected]
// Lub Vev Xaib: www.primerobotics.in
#suav nrog
/************************************************/
Servo myservo; // tsim cov khoom siv servo los tswj lub servo
/************************************************/
void teeb tsa ()
{
myservo.attach (9); // txuas cov servo ntawm tus pin 9 rau cov khoom siv servo
myservo.write (0); // rov qab mus rau 0 degrees
ncua (1000); // tos ib pliag
}
/*************************************************/
void lub voj ()
{
myservo.write (15); // mus rau 15 degrees
ncua (1000); // tos ib pliag
myservo.write (30); // mus rau 30 degrees
ncua (1000); // tos thib ob. 33
myservo.write (45); // mus rau 45 degrees
ncua (1000); // tos thib ob. 33
myservo.write (60); // mus rau 60 degrees
ncua (1000); // tos thib ob. 33
myservo.write (75); // mus rau 75 degrees
ncua (1000); // tos thib ob. 33
myservo.write (90); // mus rau 90 degrees
ncua (1000); // tos ib pliag
myservo.write (75); // rov qab mus rau 75 degrees
ncua (1000); // tos thib ob. 33
myservo.write (60); // rov qab mus rau 60 degrees
ncua (1000); // tos thib ob. 33
myservo.write (45); // rov qab mus rau 45 degrees
ncua (1000); // tos thib ob. 33
myservo.write (30); // rov qab mus rau 30 degrees
ncua (1000); // tos thib ob. 33
myservo.write (15); // rov qab mus rau 15 degrees
ncua (1000); // tos ib pliag
myservo.write (0); // rov qab mus rau 0 degrees
ncua (1000); // tos ib pliag
}
/**************************************************/
Pom zoo:
Hloov-Hloov Cov Khoom Ua Si: Cov Khoom Ua Si Cov Khoom Ua Si Ua Tau Zoo!: 7 Cov Kauj Ruam (nrog Duab)
Hloov-Hloov Cov Khoom Ua Si: Cov Khoom Siv Hluav Taws Xob Ua Tau Zoo!: Qho khoom ua si hloov pauv qhib txoj hauv kev tshiab thiab kev daws teeb meem kom tso cai rau menyuam yaus uas muaj lub cev muaj peev xwm txwv lossis kev xiam oos qhab kev loj hlob los cuam tshuam nrog cov khoom ua si ntawm nws tus kheej. Hauv ntau qhov xwm txheej, cov menyuam yaus uas xav tau cov khoom ua si hloov pauv tsis tuaj yeem nkag mus
Yuav Ua Li Cas Vaum Thiab Kub Tiag Tiag Cov Ntaub Ntawv Teev Npe Nrog Arduino UNO thiab SD-Card - DHT11 Cov ntaub ntawv-logger Simulation hauv Proteus: 5 Cov Kauj Ruam
Yuav Ua Li Cas Vaum Thiab Kub Tiag Tiag Cov Ntaub Ntawv Teev Npe Nrog Arduino UNO thiab SD-Card | DHT11 Cov ntaub ntawv-logger Simulation hauv Proteus: Taw qhia: nyob zoo, qhov no yog Liono Maker, ntawm no yog YouTube txuas. Peb tab tom tsim txoj haujlwm muaj tswv yim nrog Arduino thiab ua haujlwm ntawm cov kab ke. Cov ntaub ntawv-Logger: Cov ntaub ntawv logger (tseem cov ntaub ntawv-logger lossis cov ntaub ntawv kaw) yog cov cuab yeej siv hluav taws xob uas sau cov ntaub ntawv dhau sijhawm
Stepper Motor Tswj Stepper Motor - Stepper Motor Raws Li Cov Lus Teb: 11 Cov Kauj Ruam (nrog Duab)
Stepper Motor Tswj Stepper Motor | Stepper Motor Raws Li Lub Caij Nyoog Encoder: Muaj ob peb lub tshuab hluav taws xob stepper pw thiab xav ua qee yam? Hauv Cov Lus Qhia no, cia peb siv lub tshuab hluav taws xob stepper ua lub cav hloov pauv kom tswj hwm lwm lub tshuab tsav lub zog txoj haujlwm siv Arduino microcontroller. Yog li tsis muaj ado ntxiv, cia ge
Cov cuab yeej cuab tam - Ceramic hauv Cov Ntsiab Lus ntawm Cov Txheej Txheem Digital thiab Analog 2015: 3 Cov Kauj Ruam (nrog Duab)
Cov cuab yeej cuab tam - Ceramic hauv Cov Ntsiab Lus ntawm Digital thiab Analog Cov Txheej Txheem 2015: Txog tam sim no, cov khoom siv hlau yog cov khoom siv tes ua uas tsis muaj kev cuam tshuam digital. Vim li no, nws zoo siab heev los ua phooj ywg nrog cov cuab yeej tshiab. Lub hauv paus pib yog daim ntawv qub thiab CNC Styrocutter.DESIGNBOOM
Tswj Cov Khoom Siv Los Ntawm Arduino Nrog Cov Neeg Siv Khoom Hloov: 8 Cov Kauj Ruam (nrog Duab)
Kev Tswj Cov Khoom Siv Los Ntawm Arduino Nrog Kev Siv Hluav Taws Xob: Lub Arduino tuaj yeem siv los tswj cov cuab yeej los ntawm kev siv cov khoom siv yooj yim hloov pauv hloov chaw