Cov txheej txheem:

Arduino Yuav Ua Li Cas Txuas Ntau Yam Servo Motors - PCA9685 Qhia: 6 Kauj Ruam
Arduino Yuav Ua Li Cas Txuas Ntau Yam Servo Motors - PCA9685 Qhia: 6 Kauj Ruam

Video: Arduino Yuav Ua Li Cas Txuas Ntau Yam Servo Motors - PCA9685 Qhia: 6 Kauj Ruam

Video: Arduino Yuav Ua Li Cas Txuas Ntau Yam Servo Motors - PCA9685 Qhia: 6 Kauj Ruam
Video: Computer Vision with Python! Resizing Images 2024, Kaum ib hlis
Anonim

Hauv qhov kev qhia no peb yuav kawm paub txuas ntau lub cav servo siv PCA9685 module thiab arduino.

PCA9685 module zoo heev thaum koj xav tau txuas ntau lub cav, koj tuaj yeem nyeem ntxiv txog nws ntawm no

Saib Video!

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
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
  • Arduino UNO lossis lwm yam Arduino board lossis ESP
  • 16 Channel PWM/Servo Driver I2C PCA9685
  • Servo motors (hauv qhov piv txwv no peb siv 4 servos)
  • Cov qhob cij
  • Jumper xov hlau
  • Visuino software: Rub tawm ntawm no

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
  • Txuas txhua qhov txuas txuas rau PCA9685 pins (servo1 rau pins 0, servo2 rau pins 1, thiab lwm yam)
  • Txuas PCA9685 tus pin SCL rau Arduino tus pin SCL
  • Txuas PCA9685 tus pin SDA rau Arduino tus pin SDA
  • Txuas PCA9685 tus pin VCC rau Arduino tus pin 5V
  • Txuas PCA9685 tus pin GND rau Arduino tus pin GND

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 tseem yuav tsum tau teeb tsa. Rub tawm Dawb version lossis sau npe rau Kev sim Dawb (Pom zoo rau kev paub dhau los).

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
  • Ntxiv "NXP Servo PCA9685 (I2C)" tivthaiv
  • Ntxiv "Sine Analog Generator" tivthaiv
  • Txuas "SineAnalogGenerator1" pin tawm rau "ServoPCA96851" pins 0
  • Txuas "SineAnalogGenerator1" pin tawm mus rau "ServoPCA96851" pins 1
  • Txuas "SineAnalogGenerator1" pin tawm mus rau "ServoPCA96851" pins 2
  • Txuas "SineAnalogGenerator1" pin tawm mus rau "ServoPCA96851" pins 3
  • Txuas "ServoPCA96851" tus pin tswj I2C rau Arduino board tus pin I2C Hauv

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, servo motors yuav pib tig.

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: