Cov txheej txheem:
- Kauj Ruam 1: Sib Sau Ua Ke
- Kauj Ruam 2: Npaj Analog Joystick
- Kauj ruam 3: Servos
- Kauj Ruam 4: Ua Kev Sib Txuas
- Kauj Ruam 5: Sau thiab Xa Cov Cai
Video: Tswj 2 Servos Siv Analog Joystick: 5 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:24
Nyob zoo cov neeg, qhov no yog kuv thawj zaug qhia thiab hauv kab ntawv no kuv yuav qhia siv Analog Joystick los tswj Servos siv Arduino UNO. Kuv yuav sim piav qhia nws yooj yim li vam tias koj nyiam nws.
Kauj Ruam 1: Sib Sau Ua Ke
- 1 x Arduino UNO. (Amazon Asmeskas / Amazon EU / Banggood)
- 2 x Servos. (Amazon Asmeskas / Amazon EU / Banggood)
- 1 x Analog Joystick. (Amazon Asmeskas / Amazon EU / Banggood)
- 1 x Breadboard. (Amazon Asmeskas / Amazon EU / Banggood)
Koj tuaj yeem siv ib qho Analog Joystick uas muaj nyob hauv kev ua lag luam uas twb muaj daim ntawv lo ntawm tus pin yog li nws yooj yim siv lawv. Kuv tau siv khaws ib feem los ntawm qub PS2 maub los uas muaj 2 joysticks.
Kauj Ruam 2: Npaj Analog Joystick
Koj tuaj yeem siv qhov uas muaj nyob hauv kev ua lag luam uas muaj daim ntawv lo pins thiab siv tau yooj yim lossis koj tuaj yeem txuag ob peb phaus thiab khaws cov qub los ntawm cov tswj kev ua si uas muaj 2 sab hauv lawv. Kuv tau qhia cov duab ntawm ib qho kuv muaj thiab kuj kuv tau sau cov pins, uas kuv pom los ntawm kev rov qab taug qab cov ntawv theej ntawm PCB, ntawm no ob lub lauj kaub tau siv rau hauv txhua lub joysticks ib qho rau x axis thiab lwm yam rau y axis peb siv nruab nrab qhov nruab nrab ntawm cov lauj kaub no los tswj cov servos. lwm ob tus pin yog lub hwj chim thiab hauv av pins qhov peb siv 5volt thiab Ground.the tus pins uas tsis sau rau ntawm lub ces kaum yog lub khawm pins uas tsis xav tau ntawm txoj haujlwm no. ntawm koj cov pas peb tuaj yeem txav mus rau kauj ruam tom ntej uas txuas rau hauv Circuit Court.
Kauj ruam 3: Servos
Servos yog cov tsav tsheb uas qeeb tab sis muaj lub zog loj thiab tig mus txog 180 °. Ib qho kev pabcuam ib txwm muaj 3 tus pin: 1. Daj/Txiv kab ntxwv uas yog tus pin teeb liab thiab txuas rau PWM pins ntawm Arduino.2. Liab uas yog tus pin fais fab uas peb muab +5v uas txuas nrog rau +5v ntawm Arduino.3. Xim av/Dub uas yog av pin thiab kuv tau txuas nrog GND tus pin ntawm Arduino lossis -ve lub davhlau ya nyob twg ntawm roj teeb. Hauv txoj haujlwm no peb siv 2 Servos ib qho txuas nrog tus lej tsis. 3 thiab lwm yam rau tus pin No. 5. Kuv tau siv micro 9g servo tab sis ib qho yuav ua haujlwm.
Kauj Ruam 4: Ua Kev Sib Txuas
Ua raws daim duab qhia kev kom ua qhov kev sib txuas ntawm cov servos.cov hlau liab mus rau 5v thiab xim av xim hlau mus rau GND teeb liab tus pin ntawm ib tus servo mus rau 3 thiab lwm qhov servo mus rau 5 ntawm Arduino.next txuas nrog Analog Joystick nws muaj + thiab - lub davhlau ya nyob twg uas mus rau 5v thiab GND feem. tus X axis tus pin mus rau A0 lossis Analog 0 tus pin ntawm Arduino thiab Y axis mus rau A1 lossis Analog 1 tus pin.next peb yuav tso tus lej.
Kauj Ruam 5: Sau thiab Xa Cov Cai
Cov cai yooj yim thiab zoo ib yam li Knob piv txwv ntawm lub tsev qiv ntawv servo hauv Arduino IDE. servo2.attach (5);} void loop () {val = analogRead (xaxis); val = daim ntawv qhia (val, 0, 1023, 0, 180); servo1.write (val); val = analogRead (yaxis); val = daim ntawv qhia (val, 0, 1023, 0, 180); servo2.write (val);} luam theej cov cai saum toj no thiab muab tshuaj txhuam tso rau hauv Arduino IDE thiab muab tso ua ke. tom qab ntawd xa cov cai thiab cov servos yuav tsum txav mus rau hauv txoj haujlwm nruab nrab ces koj tuaj yeem tswj tau cov servos siv tus joystick. lwm Joystick tuaj yeem tswj tau 2 servos ntxiv. koj tsuas yog yuav tsum txuas lub servos rau PWM pins ntawm Arduino thiab hloov kho txoj cai. Qhov chaws yooj yim los hloov pauv thiab txhua tus neeg nrog kev paub txog Arduino yooj yim tuaj yeem ua nws. koj.
Pom zoo:
Phab Ntsa Mount rau IPad Raws Li Tsev Automation Tswj Vaj Huam Sib Luag, Siv Servo Tswj Cov Hlau nplaum los Qhib Screen: 4 Cov Kauj Ruam (nrog Duab)
Phab Ntsa Mount rau IPad Raws Li Tsev Automation Tswj Vaj Huam Sib Luag, Siv Servo Tswj Cov Hlau nplaum los Qhib Screen: Tsis ntev los no kuv tau siv sijhawm qee lub sijhawm siv khoom hauv thiab ib puag ncig kuv lub tsev. Kuv tab tom siv Domoticz ua kuv daim ntawv thov Tsev Automation, saib www.domoticz.com kom paub meej. Hauv kuv tshawb nrhiav daim ntawv thov daim ntawv qhia uas qhia tag nrho Domoticz cov ntaub ntawv tog
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: 6 Kauj Ruam
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: Cov lus qhia no piav qhia yuav ua li cas thiaj tsim tau Arduino Robot uas tuaj yeem txav mus raws qhov xav tau (Forward, Backward) , Sab laug, Txoj Cai, Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) xav tau Kev nrug deb hauv Centimeters siv lub suab hais kom ua. Neeg hlau kuj tseem tuaj yeem txav tau tus kheej
Tswj Cov Khoom Siv Nrog Lub Suab Hais Kom Siv NodeMCU: 7 Cov Kauj Ruam (nrog Duab)
Tswj Cov Khoom Siv Nrog Lub Suab Hais Kom Siv NodeMCU: Kuv tsuas yog xav hais nyob zoo rau txhua tus, qhov no yog kuv thawj zaug sau cov phiaj xwm qhia. Lus Askiv tsis yog kuv hom lus yog li kuv yuav sim ua luv thiab kom meej meej li sai tau. Tswj cov cuab yeej nrog lub suab hais kom ua tsis yog ib yam coj txawv txawv
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
Siv PSP Raws Li Lub Computer Joystick thiab Tom Qab Tswj Koj Lub Computer Nrog PSP: 5 Cov Kauj Ruam (nrog Duab)
Siv PSP Raws Li Lub Computer Joystick thiab Tom Qab Tswj Koj Lub Computer Nrog PSP: Koj tuaj yeem ua ntau yam txias nrog PSP homebrew, thiab hauv qhov kev qhia no kuv cam yuav qhia koj yuav siv koj li PSP li joystick rau kev ua si li cas, tab sis kuj tseem muaj ib txoj haujlwm uas tso cai rau koj siv koj lub joystick ua koj tus nas. Ntawm no yog cov mater