Cov txheej txheem:

Motion Controlled Timelapse: 7 Kauj Ruam (nrog Duab)
Motion Controlled Timelapse: 7 Kauj Ruam (nrog Duab)

Video: Motion Controlled Timelapse: 7 Kauj Ruam (nrog Duab)

Video: Motion Controlled Timelapse: 7 Kauj Ruam (nrog Duab)
Video: Ua hnub ci hauv iclone 8 (Make sun light in iclone 8 and raining 3D animation) 2024, Kaum ib hlis
Anonim
Image
Image
Txoj Kev Npaj
Txoj Kev Npaj

Timelapses yog qhov zoo! Lawv pab peb saib mus rau hauv lub ntiaj teb qeeb uas peb yuav hnov qab ua tsaug rau qhov zoo nkauj ntawm nws. Tab sis qee zaum kev yees duab ncua sij hawm tsis tu ncua tuaj yeem ua rau txaus siab lossis muaj ntau yam tshwm sim nyob ib puag ncig uas tsuas yog ib lub kaum sab xis tsis txaus. Cia peb txuj lom nws!

Hauv Cov Lus Qhia no, Kuv yuav qhia koj li cas kuv tau ua lub cuab yeej uas yuav ntxiv cov lus tsa suab rau koj lub sijhawm ncua sijhawm. Cia peb pib!

Kauj Ruam 1: Txoj Kev Npaj

Kuv xav kom lub koob yees duab txav mus rau ob txoj kev piv txwv li hauv kab rov tav (X) thiab ntsug (Y). Txog qhov ntawd, Kuv yuav xav tau ob lub cav.

Peb yuav tsum tuaj yeem xaiv qhov pib thiab nres txoj haujlwm rau ob qho tib si.

Kev txav ntawm lub cav yuav zoo li tom qab txhua daim duab lub axis yuav tsum tig los ntawm 1 degree.

Txhawm rau kom tau txais kev tswj xyuas meej, kuv yuav siv Servo Motors.

Tsis tas li, peb yuav tsum tuaj yeem teeb tsa lub sijhawm sib nrug.

Kuv xav kom nws txav tau yooj yim yog li kuv txiav txim siab siv nws ntawm LiPo roj teeb uas txhais tau tias yuav tsum tau them nqi thiab txhawb kev sib tw.

Thiab qhov kawg, lub hlwb los tswj txhua yam no yuav yog Arduino. ATMega328p yuav siv los ua tus tswj hwm tus kheej.

Kuv tau mus nrog GoPro lub koob yees duab raws li nws me me thiab ua timelapses nrog nws yog qhov yooj yim. Koj tuaj yeem mus nrog lwm lub koob yees duab me me lossis koj lub xov tooj ntawm tes.

Kauj Ruam 2: Daim Ntawv Teev Npe

Cov npe ntawm Cheebtsam
Cov npe ntawm Cheebtsam
Cov npe ntawm Cheebtsam
Cov npe ntawm Cheebtsam
Cov npe ntawm Cheebtsam
Cov npe ntawm Cheebtsam

1x ATmega328p (nrog Arduino bootloader)

2x MG995 Servo Tsav

1x MT3608 Boost Hloov

1x TP4056 LiPo Roj Teeb Charging Module

1x SPDT Hloov

1 x 16 MHz Crystal

2 x 22pF Capacitor

2 x 10k Resistor

1x Potentiometer (txhua tus nqi)

1x Push Button (Nquag Qhib)

Yeem:

3D Tshuab Luam Ntawv

Kauj Ruam 3: Tsim PCB

Tsim PCB
Tsim PCB
Tsim PCB
Tsim PCB
Tsim PCB
Tsim PCB

Txhawm rau ua kom lub Circuit Court me me li sai tau, kuv tau mus nrog daim ntawv luam tawm Circuit Board. Koj tuaj yeem kos lub rooj tsavxwm koj tus kheej hauv tsev lossis cia cov kws tshaj lij ua haujlwm hnyav rau koj thiab qhov ntawd yog qhov kuv tau ua.

Thaum txhua yam ua haujlwm raug ntawm daim ntawv tais, peb tuaj yeem pib nrog txheej txheem PCB tsim. Kuv xaiv EasyEDA rau kev tsim qauv vim nws ua rau yooj yim rau cov pib zoo li kuv.

Kos, kos thiab kos! Xyuas kom koj tsis nco dab tsi tawm. Thaum koj paub meej, nyem rau ntawm Tsim Cov Ntawv Tsim los rub tawm Gerber cov ntaub ntawv lossis koj tuaj yeem xaj ncaj qha los ntawm JLCPCB rau tsuas yog 2 $ siv qhov kev xaiv hauv qab no.

Thaum koj tau txais/ua koj li PCB, nws yog lub sijhawm kom tso nws. Khaws koj daim duab qhia chaw npaj thiab pib siv cov khoom sib txuas raws li cov cim silkscreen.

Ntxuav PCB tom qab siv cov Iso Propyl Cawv los tshem cov dej ntws tawm.

Kauj Ruam 4: Muab Tej Yam Ua Ke

Muab Tej Yam Ua Ke
Muab Tej Yam Ua Ke
Muab Tej Yam Ua Ke
Muab Tej Yam Ua Ke
Muab Tej Yam Ua Ke
Muab Tej Yam Ua Ke
Muab Tej Yam Ua Ke
Muab Tej Yam Ua Ke

Koj yuav tsis xav tau lub tshuab luam ntawv 3D zoo nkauj. Cov ntu tuaj yeem tsim tau yooj yim heev nrog cov cuab yeej tsim nyog. Kuv nyuam qhuav tau txais lub tshuab luam ntawv 3D thiab xav siv nws hauv kuv qhov project. Kuv pom qee qhov ntawm Cheeb Tsam.

GoPro Mount:

Servo Horn:

Cov xov hlau txuas mus rau Lub Hwj Chim Hloov, Lub lauj kaub thiab Laub khawm nrog poj niam lub taub hau thiab txuas lawv rau tus txiv neej lub taub hau ntawm PCB.

Rub tawm thiab qhib cov ntawv txuas hauv Arduino IDE thiab xa cov cai rau koj Arduino. Tom qab xa cov cai, tshem IC los ntawm Arduino board thiab ntxig nws rau hauv koj lub PCB.

/*Tus Sau: IndoorGeek YouTube: www.youtube.com/IndoorGeek Ua tsaug rau koj rub tawm. Vam tias koj nyiam txoj haujlwm. */

#suav nrog

Servo xServo;

Servo yServo;

int potPin = A0;

int val, xStart, xStop, yStart, yStop; int khawm = 2; unsigned ntev lub sij hawmInterval;

void teeb tsa () {

pinMode (khawm, INPUT); xServo.attach (3); yServo.attach (4); }

void voj () {

xAxis (); ncua (1000); xStart = val; yAxis (); ncua (1000); yStart = val; xAxis (); ncua (1000); xStop = val; yAxis (); ncua (1000); yStop = val; setTimeInterval (); ncua (1000); timelapseStart (); }

void xAxis () {

thaum (digitalRead (khawm)! = HIGH) {val = analogRead (A0); val = daim ntawv qhia (val, 0, 1023, 0, 180); xServo.write (nqi); }}

void yAxis () {

thaum (digitalRead (khawm)! = HIGH) {val = analogRead (A0); val = daim ntawv qhia (val, 0, 1023, 0, 180); yServo.write (nqi); }}

tsis muaj dab tsi setTimeInterval () {// Hloov lub sijhawm ua ntu zus raws li koj lub koob yees duab lub sijhawm ncua sijhawm

thaum (digitalRead (khawm)! = HIGH) {val = analogRead (A0); yog (val> = 0 && val = 171 && val = 342 && val = 513 && val = 684 && val = 855 && val <1023) {timeInterval = 60000L; }}}

void timelapseStart () {

unsigned ntev lastMillis = 0; xServo.write (xStart); yServo.write (yStart); thaum (xStart! = xStop || yStart! = yStop) {if (millis () - lastMillis> timeInterval) {if (xStart xStop) {xServo.write (xStart); lastMillis = millis (); xStart--; } yog (yStart xStop) {yServo.write (yStart); lastMillis = millis (); yStart--; }}}}

Kauj ruam 5: Ua haujlwm

Ua hauj lwm
Ua hauj lwm
Ua hauj lwm
Ua hauj lwm

Qhib qhov hloov pauv tseem ceeb.

X-axis yuav ua haujlwm. Tig lub lauj kaub rau txoj haujlwm los ntawm qhov chaw koj xav pib lub sijhawm ncua sijhawm. Nias lub Xaiv laub khawm kom paub meej tias txoj haujlwm pib. Tom qab ntawd, Y-axis yuav ua haujlwm. Ua tib yam los xaiv Y-axis Pib txoj haujlwm.

Rov ua dua cov txheej txheem saum toj no rau X thiab Y txoj haujlwm Nres nres.

Tam sim no, siv lub lauj kaub, xaiv lub sijhawm sib nrug ntawm txhua qhov kev txhaj tshuaj. Kev sib hloov ntawm lub lauj kaub tau muab faib ua 6 ntu rau ntu 1 sec, 2sec, 5sec, 10 sec, 30 sec thiab 60 sec. Koj tuaj yeem hloov qhov kev ncua hauv setTimeInterval () ua haujlwm raws li qhia hauv daim duab. Nias lub Xaiv laub khawm kom paub meej tias nws.

Cov servos yuav tau mus rau lawv txoj haujlwm pib thiab yuav txav los ntawm 1 degree tom qab lub sijhawm luv.

Ib theem zuj zus:

  1. Teeb X-axis Pib txoj haujlwm
  2. Teeb Y-axis Pib txoj haujlwm
  3. Teeb X-axis Nres txoj haujlwm
  4. Teeb Y-axis Nres txoj haujlwm
  5. Teem sijhawm ncua sijhawm

Kauj Ruam 6: Kev txhim kho yav tom ntej

Kev txhim kho yav tom ntej
Kev txhim kho yav tom ntej

1) Tam sim no, vim 1 txhaj tshuaj/qib, feem ntau ntawm cov duab uas peb tuaj yeem tau txais yog 180 raws li servos tuaj yeem tig ntawm 0 txog 180 degrees. Ntxiv zog yuav ua rau kom daws teeb meem. Yog li peb yuav muaj kev txhaj tshuaj ntau dua thiab yog li, lub sijhawm ua haujlwm du. Kuv yooj yim heev nrog cov khoom siv hluav taws xob tab sis tsis ntau nrog cov khoom siv tshuab. Nrhiav rau pem hauv ntej los txhim kho nws.

2) Lub potentiometer tuaj yeem hloov los ntawm Rotary encoder.

3) Wireless tswj, tej zaum?!

Muaj ntau yam los kawm

Kauj ruam 7: Txaus siab rau

Ua tsaug rau koj ua kom txog thaum kawg. Vam tias koj txhua tus nyiam txoj haujlwm no thiab kawm paub qee yam tshiab hnub no. Qhia rau kuv paub yog tias koj ua ib qho rau koj tus kheej. Sau npe yuav ua rau kuv tus YouTube channel rau ntau qhov haujlwm yav tom ntej. Ua tsaug ntau ntau!

Pom zoo: