Cov txheej txheem:

Arduino Tutorial - Servo Motor Control With Potentiometer: 5 Kauj Ruam
Arduino Tutorial - Servo Motor Control With Potentiometer: 5 Kauj Ruam

Video: Arduino Tutorial - Servo Motor Control With Potentiometer: 5 Kauj Ruam

Video: Arduino Tutorial - Servo Motor Control With Potentiometer: 5 Kauj Ruam
Video: Arduino tutorial 5.(control servo motor with potentiometer) interfacing servo motor and pot 2024, Kaum ib hlis
Anonim
Arduino Tutorial - Servo Tsav Tswj Nrog Potentiometer
Arduino Tutorial - Servo Tsav Tswj Nrog Potentiometer

Cov lus qhia no yog sau cov ntawv ntawm kuv "Arduino: Yuav Ua Li Cas Tswj Servo Motor nrog Potentiometer" YouTube video uas kuv tau tshaj tawm tsis ntev los no. Kuv pom zoo kom koj txheeb xyuas nws.

Mus ntsib YouTube Channel

Kauj ruam 1: Tutorial

Image
Image

Tswj txoj haujlwm ntawm RC (nyiam) servo motor nrog koj Arduino thiab lub zog ntsuas.

*** Kuv pom zoo! Koj tsis txuas ncaj qha rau servo motor rau arduino. Kuv qhia koj siv lub zog sab nraud rau servo.

SG90 Mini RC servo motors tuaj yeem siv tau. Qhov no tuaj yeem ua rau Arduino MG996 nrawm nrawm nrawm.

MG996 Stall Torque: 9.4kg / cm (4.8V) - 11 kg / cm (6.0V) thiab Kev siv hluav taws xob: 4.8 ~ 6.6v.

Kuv xav qhia hauv qhov kev qhia no; kev sib txuas, kev tsim cov cai thiab kev tswj lub cev. Yog li kuv tsis tau qhia meej ntxiv txog lub cav.

Kauj ruam 2: Yuav tsum kho vajtse

Circuit Court
Circuit Court

Yuav tsum tau kho vajtse

  • Arduino lossis Genuino Board
  • Servo Tsav
  • 10k hmo
  • potentiometer
  • sib txuas xov hlau
  • mini khob cij

Kauj ruam 3: Circuit Court

Servo motors muaj peb lub xov hlau: fais fab, av, thiab teeb liab. Cov xaim hluav taws xob feem ntau yog xim liab, thiab yuav tsum txuas nrog 5V tus pin ntawm Arduino lossis Genuino board. Cov xov hlau hauv av feem ntau yog xim dub lossis xim av thiab yuav tsum txuas nrog tus pin hauv av ntawm lub rooj tsavxwm. Cov cim teeb liab feem ntau yog daj lossis txiv kab ntxwv thiab yuav tsum txuas nrog tus pin 9 ntawm lub rooj tsavxwm.

Lub hwj chim ntsuas hluav taws xob yuav tsum tau txuas kom nws ob lub pins sab nraud txuas nrog lub zog (+5V) thiab hauv av, thiab nws tus pin nruab nrab txuas nrog cov tswv yim analog 0 ntawm lub rooj tsavxwm.

Kauj ruam 4: Code

Code
Code

Qhov piv txwv no ua rau siv Arduino servo library.

Tau txais Txoj Cai

Kauj Ruam 5: Yog Kuv Pab Tau

Yog Kuv Pab Tau
Yog Kuv Pab Tau
Yog Kuv Pab Tau
Yog Kuv Pab Tau

Ua ntej tshaj plaws, Kuv xav ua tsaug rau koj tau nyeem phau ntawv qhia no! Kuv vam tias nws yuav pab koj.

Yog tias koj xav txhawb nqa kuv, koj tuaj yeem sau npe yuav kuv channel thiab saib kuv cov vis dis aus.

Mus ntsib Kuv

YouTube Channel

Pom zoo: