Cov txheej txheem:

Lub Koob Yees Duab Slider Tswj [Arduino Nano]: 4 Cov Kauj Ruam
Lub Koob Yees Duab Slider Tswj [Arduino Nano]: 4 Cov Kauj Ruam

Video: Lub Koob Yees Duab Slider Tswj [Arduino Nano]: 4 Cov Kauj Ruam

Video: Lub Koob Yees Duab Slider Tswj [Arduino Nano]: 4 Cov Kauj Ruam
Video: DIY Slider for DSLR Camera - txua lub txhoj tso khiav koob thaij yees duab 2024, Kaum ib hlis
Anonim
Lub Koob Yees Duab Slider Tswj [Arduino Nano]
Lub Koob Yees Duab Slider Tswj [Arduino Nano]
Lub Koob Yees Duab Slider Tswj [Arduino Nano]
Lub Koob Yees Duab Slider Tswj [Arduino Nano]

Koj puas xav tau lub koob yees duab swb kom tau txais qhov ntxim nyiam ntxim nyiam ntawm koj tsim qee yam, khoom lag luam, lossis txawm tias koj tau tsim dab tsi?

Kev ua haujlwm pub dawb muaj cov khoom siv swb zoo, tab sis tsis muaj kev npaj ua tiav kev tswj los ua ke rau nws. Cov ntawv tshaj tawm no yuav piav qhia yuav ua li cas siv lub cav servo hloov kho rau kev sib hloov tas mus li, thiab hloov kho nws mus rau cov khoom siv ntawd txhawm rau ua kom nws nqa tau yooj yim. Qhov tsis zoo yog tias nws yuav nyuaj ua kom nws qeeb raws li cov khoom siv qub, tab sis tsis tas yuav rub ib ncig ntawm txoj hlab ntaws ua rau nws yooj yim thauj mus rau qhov koj xav tau.

Koj kuj tseem yuav xav tau phaj servo, txuas txuas, sawv ntsug, thiab ob peb 6-32 ntsia hlau txhawm rau txhim kho lub servo kom raug. Cov vis dis aus ntawm tus txheej txheem tuaj yeem pom ntawm no, thiab nws yuav muab tso rau qhov kawg ntawm cov vis dis aus.

Lub tswv yim no tuaj yeem siv nrog lwm hom kev swb, tab sis yuav tsum tau yoog raws cov txheej txheem uas koj siv.

Kauj Ruam 1: Cov Khoom Siv Hluav Taws Xob thiab Cov Khoom Siv Xav Tau

Cov Khoom Siv Hluav Taws Xob thiab Cov Khoom Xav Tau
Cov Khoom Siv Hluav Taws Xob thiab Cov Khoom Xav Tau
Cov Khoom Siv Hluav Taws Xob thiab Cov Khoom Xav Tau
Cov Khoom Siv Hluav Taws Xob thiab Cov Khoom Xav Tau

Cov khoom siv hluav taws xob yuav tsum tau txuas ua ke raws li qhia hauv daim duab Fritzing ntawm no. Nco tseg ob lub pulldown resistors siv nruab nrab ntawm cov chaw nres tsheb thiab hauv av kom lub teeb liab qis kom txog thaum nws raug thawb (thev naus laus zis, lawv yuav tsum zaum yuav teeb tsa ua haujlwm qis)

  • On/off hloov/khawm
  • Arduino Nano Cov
  • Servo
  • Potentiometer
  • (2) hloov
  • (2) resistors
  • 9V roj teeb
  • 9V roj teeb txuas
  • capacitor

Nco ntsoov tias hauv qhov me me koj tuaj yeem siv lub hwj chim mini-USB los khiav koj li kab ke ntau dua li 9V roj teeb.

Kauj ruam 2: Arduino Code

"thauj khoom =" tub nkeeg "tau cog lus tseg, ntawm no yog daim vis dis aus. Yog tias koj txaus siab rau nws-lossis txawm tias koj tsis-Kuv yuav caw koj los sau npe yuav los ntawm qhov txuas YouTube no kom pom dab tsi los tom ntej! Kuv xav tias yuav muaj ntau dua panning txhaj tshuaj ntawm txhua yam kuv ua thaum kawg ua:-)

Pom zoo: