Cov txheej txheem:

Rotating Ntxuam Siv Servo Tsav thiab Kev Tswj Ceev: 6 Kauj Ruam
Rotating Ntxuam Siv Servo Tsav thiab Kev Tswj Ceev: 6 Kauj Ruam

Video: Rotating Ntxuam Siv Servo Tsav thiab Kev Tswj Ceev: 6 Kauj Ruam

Video: Rotating Ntxuam Siv Servo Tsav thiab Kev Tswj Ceev: 6 Kauj Ruam
Video: "Strong Couple" by Dr. Txab Ntsum Yig Vaaj 2024, Hlis ntuj nqeg
Anonim
Image
Image

Hauv qhov kev qhia no peb yuav kawm paub yuav ua li cas tig kiv cua nrog kev hloov kho nrawm siv servo motor, potentiometer, arduino thiab Visuino.

Saib cov yees duab!

Kauj ruam 1: Yam Koj Yuav Tsum Tau

Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
  • Arduino UNO (lossis lwm lub rooj tsavxwm)
  • Ntxuam module
  • Potentiometer
  • Servo tsav
  • Jumper xov hlau
  • Visuino program: Rub tawm Visuino

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
Qhov Circuit
Qhov Circuit
  • Txuas Servo motor "Txiv kab ntxwv" (teeb liab) tus pin rau Arduino Digital tus pin [2]
  • Txuas Servo motor "Liab" tus pin rau Arduino tus pin zoo [5V]
  • Txuas Servo motor "Brown" tus pin rau Arduino tus pin tsis zoo [GND]
  • Txuas tus pin potentiometer [DTB] rau arduino analog pin [A0]
  • Txuas tus pin potentiometer [VCC] mus rau tus pin arduino [5V]
  • Txuas tus pin potentiometer [GND] mus rau tus pin arduino [GND]
  • Txuas tus kiv cua module tus pin [VCC] rau arduino tus pin [5V]
  • Txuas tus kiv cua module tus pin [GND] rau arduino tus pin [GND]
  • Txuas tus kiv cua module tus pin [INA] rau arduino tus pin [5]

Kauj Ruam 3: Pib Visuino, thiab Xaiv Arduino UNO Board Type

Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type

Visuino: https://www.visuino.eu xav tau kev teeb tsa. Pib Visuino raws li pom hauv thawj daim duab Nyem rau ntawm "Cov cuab yeej" khawm ntawm Arduino tivthaiv (Daim Duab 1) hauv Visuino Thaum qhov kev sib tham tshwm, xaiv "Arduino UNO" raws li qhia hauv daim duab 2

Kauj Ruam 4: Hauv Visuino Ntxiv, Teeb & Txuas Cheeb Tsam

Hauv Visuino Ntxiv, Teeb & Txuas Cheeb Tsam
Hauv Visuino Ntxiv, Teeb & Txuas Cheeb Tsam
Hauv Visuino Ntxiv, Teeb & Txuas Cheeb Tsam
Hauv Visuino Ntxiv, Teeb & Txuas Cheeb Tsam
Hauv Visuino Ntxiv, Teeb & Txuas Cheeb Tsam
Hauv Visuino Ntxiv, Teeb & Txuas Cheeb Tsam
Hauv Visuino Ntxiv, Teeb & Txuas Cheeb Tsam
Hauv Visuino Ntxiv, Teeb & Txuas Cheeb Tsam
  • Ntxiv "Sine Analog Generator"
  • Ntxiv "Servo"
  • Xaiv "SineAnalogGenerator1" thiab hauv cov khoom qhov rai teeb tsa Amplitude rau 0.30 thiab Zaus rau 0.1
  • Txuas Arduino board Analog Pin Out (0) rau Arduino board Digital Pin In (5)
  • Txuas SineAnalogGenerator1 tus pin (Tawm) rau Servo1 tus pin (Hauv)
  • Txuas Servo1 tus pin (Tawm) rau Arduino board Digital Pin In (2)

Kauj Ruam 5: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code

Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code

Hauv Visuino, hauv qab nyem rau ntawm "Tsim" Tab, xyuas kom tseeb tias qhov chaw nres nkoj raug xaiv, tom qab ntawd nyem rau ntawm "Compile/Build and Upload" khawm.

Kauj ruam 6: Ua si

Yog tias koj ua lub zog Arduino UNO module, lub cav servo yuav pib suav thiab Fan kiv cua yuav pib tig, koj tuaj yeem kho lub kiv cua nrawm nrog lub zog. Saib cov vis dis aus rau kev qhia ntxaws ntxaws.

Nrog koj zoo siab! Koj tau ua tiav koj txoj haujlwm nrog Visuino. Kuj txuas nrog yog Visuino qhov haujlwm, uas kuv tau tsim rau Cov Lus Qhia no, koj tuaj yeem rub nws thiab qhib nws hauv Visuino:

Pom zoo: