Cov txheej txheem:

Hnub Ci Tracker Ntaus: 25 Cov Kauj Ruam
Hnub Ci Tracker Ntaus: 25 Cov Kauj Ruam

Video: Hnub Ci Tracker Ntaus: 25 Cov Kauj Ruam

Video: Hnub Ci Tracker Ntaus: 25 Cov Kauj Ruam
Video: Электрический или водяной полотенцесушитель? Что выбрать? Установка. #25 2024, Hlis ntuj nqeg
Anonim
Hnub Ci Tracker Ntaus
Hnub Ci Tracker Ntaus
Hnub Ci Tracker Ntaus
Hnub Ci Tracker Ntaus

Los ntawm ua raws cov theem no, koj yuav tuaj yeem tsim thiab siv lub hnub ci vaj huam sib luag uas hloov kho nws txoj haujlwm kom ua raws hnub ci. Qhov no tso cai rau qhov siab tshaj plaws ntawm lub zog uas tau ntes nyob rau ib hnub. Cov cuab yeej muaj peev xwm nkag siab lub zog ntawm lub teeb uas nws tau txais los siv ob daim duab tiv thaiv kab mob, thiab nws siv cov ntaub ntawv no los txiav txim siab tias nws yuav tsum tig mus rau qhov twg.

Lub Hom Phiaj Kawm

  • Kawm paub txog kev thaiv kab thaiv daim phiaj
  • Kawm paub yuav ua li cas ua haujlwm yooj yim (upload/initialize code) ntawm Arduino
  • Kawm paub txog cov khoom siv hluav taws xob sib txawv
  • Kawm paub txog yuav ua li cas ntxiv kev tsim hluav taws xob tuaj yeem txhim kho

Raws li qhov no yog txoj haujlwm rau chav kawm, peb tab tom nrhiav los hais txog qee Cov Qauv rau Kev Paub Txuj Ci Txuj Ci (STL) los ntawm ITEEA. Yam peb xav kom cov tub ntxhais kawm kawm los ntawm txoj haujlwm no yog:

Txuj 16: Kev Siv Hluav Taws Xob thiab Hluav Taws Xob

Nws yog lub luag haujlwm ntawm txhua tus pej xeem los khaws cov peev txheej siv hluav taws xob kom ntseeg tau tias cov neeg tiam tom ntej yuav nkag tau rau cov peev txheej no. Txhawm rau txiav txim siab seb yuav siv cov peev txheej twg ntxiv, tib neeg yuav tsum tshuaj xyuas qhov cuam tshuam zoo thiab tsis zoo ntawm kev siv ntau yam peev txheej peev txheej ntawm ib puag ncig.

Qib 6-8 Cov tshuab hluav taws xob tau siv los tsav thiab muab kev txhawb rau lwm lub tshuab thev naus laus zis Feem ntau lub zog siv hauv peb ib puag ncig tsis tau siv kom muaj txiaj ntsig.

Qib 9-12 Lub zog tuaj yeem tsim ua pawg loj: cov cua sov, hluav taws xob, hluav taws xob, khoom siv hluav taws xob, tshuaj lom neeg, nuclear, thiab lwm yam Cov peev txheej siv hluav taws xob tuaj yeem txuas ntxiv tau lossis tsis rov tsim dua Lub tshuab fais fab yuav tsum muaj lub zog, txheej txheem, thiab thauj khoom

Kev kwv yees tus nqi yog rau Cov Khoom Siv Vaj Huam Sib Luag Hnub Ci ($ 50), Cov Khoom Siv Arduino ($ 40), thiab Cov Khoom Lego Assorted ($ 25) rau tag nrho ntawm $ 115 rau txhua qhov, tshiab tshiab.

Kauj Ruam 1: Txhawb Nqis

Txhawb Nqa
Txhawb Nqa
Txhawb Nqa
Txhawb Nqa

Lob plaub ntawm cov 1x16 (15 qhov) lego cib thiab muab tso ua ke zoo li hauv daim duab thib ob

Kauj ruam 2: Swivel Mount

Siav Mount
Siav Mount
Siav Mount
Siav Mount

Ob ntawm cov khoom no yuav ua, yog li ob npaug cov khoom xav tau thiab thim rov qab rau lwm sab.

Lob ib qho ntawm cov ntawv grey no, ib qho dub "H" txuas, thiab ib qho txuas txuas nrog nrog peg ntxiv rau ntawm ib sab thiab ib puag ncig peg ntawm lwm qhov.

Tsim cov khoom siv raws li qhia hauv daim duab thib ob thiab tsim qhov thib ob nyob rau hauv ib qho kev thim rov qab rau sab nraud.

Kauj Ruam 3: Muab Kauj Ruam 1 & 2

Ua ke Cov Kauj Ruam 1 & 2
Ua ke Cov Kauj Ruam 1 & 2

Sib sau lub hauv paus thiab cov ntawv txuas yav dhau los raws li qhia hauv daim duab

Kauj Ruam 4: Hnub Ci Vaj Huam Sib Luag Base

Hnub ci vaj huam sib luag puag
Hnub ci vaj huam sib luag puag
Hnub ci vaj huam sib luag puag
Hnub ci vaj huam sib luag puag

Luam cov nuj nqis no thiab thim rov qab tsim rau sab nraud.

Nqa ib qho 11x1 tus pas nrig txuas, ob lub kaum sab xis, thiab 8 tag nrho cov kab sib txuas sib txuas.

Sib sau ua ke raws li qhia hauv daim duab thib ob.

Kauj Ruam 5: Hnub Ci Vaj Huam Sib Luag Qhov

Hnub ci vaj huam sib luag qhov
Hnub ci vaj huam sib luag qhov
Hnub ci vaj huam sib luag qhov
Hnub ci vaj huam sib luag qhov

Kev tsim kho dua tshiab.

Siv plaub qhov txuas 90 degree, ob txoj kab txuas 15x1, thiab ob txoj kab txuas 9x1 txuas thiab sib sau ua ke raws li qhia hauv daim duab thib ob

Kauj Ruam 6: Kev Ruaj Ntseg Txuas

Kev ruaj ntseg txuas
Kev ruaj ntseg txuas
Kev ruaj ntseg txuas
Kev ruaj ntseg txuas

Kev tsim kho dua.

Siv ob lub 90 degree txuas, thiab 13x1 tus pas txuas thiab ntsaws lawv ua ke raws li qhia hauv daim duab thib ob.

Kauj Ruam 7: Hnub Ci Vaj Huam Sib Luag Tuav Lub Rooj Sib Tham

Hnub ci vaj huam sib luag tuav los ua ke
Hnub ci vaj huam sib luag tuav los ua ke
Hnub ci vaj huam sib luag tuav los ua ke
Hnub ci vaj huam sib luag tuav los ua ke

Siv cov khoom ua yav dhau los thiab sib sau ua ke.

Kauj Ruam 8: Hnub Ci Vaj Huam Sib Luag

Hnub ci vaj huam sib luag caj npab
Hnub ci vaj huam sib luag caj npab
Hnub ci vaj huam sib luag caj npab
Hnub ci vaj huam sib luag caj npab

Txuas tus H txuas thiab L txuas raws li qhia hauv daim duab thib ob.

Kauj Ruam 9: Hnub Ci Vaj Huam Sib Luag Arms Cont

Hnub ci vaj huam sib luag caj npab Cont
Hnub ci vaj huam sib luag caj npab Cont
Hnub ci vaj huam sib luag caj npab Cont
Hnub ci vaj huam sib luag caj npab Cont

Siv qhov sib txuas L sib txawv thiab ob lub pegs ib zaug, txuas lawv raws li qhia.

Kauj ruam 10: Hnub ci vaj huam sib luag caj npab Cont

Hnub ci vaj huam sib luag caj npab Cont
Hnub ci vaj huam sib luag caj npab Cont
Hnub ci vaj huam sib luag caj npab Cont
Hnub ci vaj huam sib luag caj npab Cont

Tom ntej no, koj yuav tsum tuav lwm L txuas, ib qho nrog lub hauv paus luv dua, thiab ob lub pegs ntxiv, thiab txuas lawv ib yam.

Kauj Ruam 11: Hnub Ci Vaj Huam Sib Luag Arms Cont

Hnub ci vaj huam sib luag caj npab Cont
Hnub ci vaj huam sib luag caj npab Cont
Hnub ci vaj huam sib luag caj npab Cont
Hnub ci vaj huam sib luag caj npab Cont

Tam sim no koj yuav ntxiv ib daim ncaj thiab ob lub pegs ntxiv rau lub rooj sib txoos raws li qhia.

Kauj Ruam 12: Hnub Ci Vaj Huam Sib Luag Arms Cont

Hnub ci vaj huam sib luag caj npab Cont
Hnub ci vaj huam sib luag caj npab Cont
Hnub ci vaj huam sib luag caj npab Cont
Hnub ci vaj huam sib luag caj npab Cont

Rau cov kauj ruam kawg hauv kev sib dhos sab caj npab, ntxiv qhov kawg L daim raws li qhia. Daim ntawv no yuav fim kom pab tuav lub hnub ci vaj huam sib luag.

Kauj Ruam 13: Ntxiv Tshooj rau Los Ua Ke

Ntxiv Tshooj rau Los Ua Ke
Ntxiv Tshooj rau Los Ua Ke
Ntxiv Tshooj rau Los Ua Ke
Ntxiv Tshooj rau Los Ua Ke
Ntxiv Tshooj rau Los Ua Ke
Ntxiv Tshooj rau Los Ua Ke

Txuas ntu uas koj nyuam qhuav tsim rau lub rooj sib txoos raws li qhia hauv cov duab. Tom qab ntawd, tsim lwm qhov raws nraim li nws thiab ntxiv rau lwm sab.

Kauj Ruam 14: Lub hauv paus

Lub hauv paus
Lub hauv paus
Lub hauv paus
Lub hauv paus
Lub hauv paus
Lub hauv paus
Lub hauv paus
Lub hauv paus

Siv cov khoom uas tau qhia hauv cov duab, koj yuav sib sau ua ke kom zoo ib yam uas yuav ua lub hauv paus rau lub hnub ci tracker. Thaum sib sau ua ke, txuas lawv raws li qhia.

Kauj Ruam 15: Hloov Lub Rooj Sib Tham

Rotating los ua ke
Rotating los ua ke
Rotating los ua ke
Rotating los ua ke

Txhawm rau tso cai rau kev sib dhos tig, peb yuav tsum txuas lwm daim rau hauv qab uas yuav ua qhov no. Ua lub xwmfab siv 4 daim raws li tau hais ua ntej hauv kev qhia, thiab txuas cov txuas raws li qhia.

Kauj Ruam 16: Ntxig rau Hnub Ci Vaj Huam Sib Luag

Ntxig rau Hnub Ci Vaj Huam Sib Luag
Ntxig rau Hnub Ci Vaj Huam Sib Luag
Ntxig rau Hnub Ci Vaj Huam Sib Luag
Ntxig rau Hnub Ci Vaj Huam Sib Luag

Txhawm rau ntxig rau lub hnub ci vaj huam sib luag, koj yuav xav tau tshem ib txhais caj npab. Tsuas yog tshem tawm ib qho, xaub hauv lub vaj huam sib luag, thiab txuas nws dua.

Kauj Ruam 17: Txuas rau Servo Motor

Txuas nrog Servo Motor
Txuas nrog Servo Motor
Txuas nrog Servo Motor
Txuas nrog Servo Motor
Txuas nrog Servo Motor
Txuas nrog Servo Motor

Siv cov khoom tso tawm, tsim kev sib dhos raws li qhia.

Kauj ruam 18:

Duab
Duab
Duab
Duab
Duab
Duab
Duab
Duab

Koj yuav tsum txuas daim ntawv txuas tom ntej no siv cov xaim lossis qee yam zoo sib xws kom ruaj ntseg nws.

Kauj ruam 19:

Duab
Duab
Duab
Duab

Txuas lub rooj sib txoos tshiab uas tsim los rau hauv lub rooj sib txoos tag nrho raws li qhia. Qhov no yuav pab nrog kev tso chaw ntawm servo motor.

Kauj Ruam 20: Txuas Cov Duab-resistors rau Cov Xov

Txuas Photo-resistors rau Cov Hlau
Txuas Photo-resistors rau Cov Hlau
Txuas Photo-resistors rau Cov Hlau
Txuas Photo-resistors rau Cov Hlau

Txuas qhov kawg ntawm txhua tus yees duab-resistor rau xov hlau raws li qhia.

Kauj Ruam 21: Nthuav Tawm Cov Duab-Resistors rau Los Ua Ke

Nthuav duab-Resistors rau los ua ke
Nthuav duab-Resistors rau los ua ke
Nthuav duab-Resistors rau los ua ke
Nthuav duab-Resistors rau los ua ke

Siv daim kab xev lossis lwm yam nplaum, txuas daim duab-tiv thaiv rau txhua qhov kawg ntawm kev sib dhos raws li qhia.

Kauj Ruam 22: Sau Cov Khoom Siv Hluav Taws Xob

Sau Cov Khoom Siv Hluav Taws Xob
Sau Cov Khoom Siv Hluav Taws Xob

Ua kom ntseeg tau tias koj muaj txhua ntu tso tawm, lossis zoo ib yam, ua ntej koj pib ua hluav taws xob sib dhos.

-Arduino: Uno R3 Controller Board

-9x Jumper Xov

-4x Poj niam-rau-Txiv neej Dupont Cov Xov

-1 x 9V Roj teeb

-1x Roj teeb Snap-on Txuas Txuas

-2x 1K Ohm Resistors

-2x Photo-resistor (Photocell)

-1x Servo Tsav (SG90)

Txhua qhov khoom tuaj yeem npaj muaj nyob hauv Elegoo Super Starter Kit

Kauj Ruam 23: Txuas Servo Motor

Txuas nrog Servo Motor
Txuas nrog Servo Motor
Txuas nrog Servo Motor
Txuas nrog Servo Motor

Hlau servo lub cev muaj zog rau hauv lub khob cij thiab Arduino raws li qhia. Cov xaim xim av tsis zoo, xaim liab zoo, thiab xaim daj yog kev tswj hwm rau servo.

Kauj Ruam 24: Wire Photo-Resistors

Hlau Duab-Resistors
Hlau Duab-Resistors
Hlau Duab-Resistors
Hlau Duab-Resistors
Hlau Duab-Resistors
Hlau Duab-Resistors

Hlau tus yees duab-resistors rau hauv lub khob cij raws li qhia. Tom qab ntawd, tso cov khoom siv hluav taws xob tso rau hauv lub hauv paus raws li qhia.

Kauj ruam 25: Load Code

Ib daim ntawv theej PDF ntawm tus lej, nrog rau qhov tseeb Arduino program cov ntaub ntawv tau suav nrog rau siv. Lub tsev qiv ntawv Servo tau suav nrog thiab yuav tsum tau khaws tseg hauv computer ua ntej ua ke cov lej.

Cov ntawv luam ntawm peb cov cai hauv qab no; nws zoo li tsis zoo vim tias tsis muaj cov qauv thaum nws tau muab pasted, tab sis nws yuav tsum suav sau.

// Solar Tracker // NC State University // TDE 331 // Taylor Blankenship, Preston McMillan, Taylor Ussery // December 3, 2018/ * * Qhov program no yog sau los tswj qhov yooj yim ib-axis hnub ci tracker. * Qhov kev zov me nyuam ntsuas qhov tsis sib xws los ntawm ob daim duab-tiv taus, ib qho ntawm ob sab ntawm lub hnub ci vaj huam sib luag. * Hauv lub ntiaj teb tiag, ob tus neeg tiv thaiv yuav txiav txim siab tias yuav tig txoj kev twg los tig lub hnub ci vaj huam sib luag, Sab Hnub Poob lossis Sab Hnub Poob, nyob ntawm seb lub hnub txoj haujlwm nyob rau hauv thiaj li ua kom muaj zog ntau zog ntxiv rau kev tsim hluav taws xob. */// Koj yuav tsum suav nrog cov pob servo txuas nrog yog li Arduino paub tswj hwm nws lub luag haujlwm #suav nrog // tsim cov khoom siv servo los tswj lub servo Servo myservo; // sib txawv los khaws qhov chaw ua haujlwm servo pos pos = 90; // sau pins rau photocell resistors int sab hnub tuaj = 0; sab hnub poob = 1; // photocell qhov tseem ceeb los muab piv rau sab hnub tuaj Nyeem; sab hnub poob Nyeem; // txoj kev twg yuav tsum lub hnub ci vaj huam sib luag tig? int koob = -1; void teeb () {// txuas cov servo ntawm tus pin 9 rau cov khoom siv servo myservo.attach (9); // Initializes servo rau 90 degrees, nruab nrab ntawm nws ntau myservo.write (90); // Tso cai rau tus neeg siv tso servo rau ntawm qhov siab tshaj 5000ms lossis ncua sijhawm 5 feeb (5000);

// Pib Serial monitor rau kev ntsuas lub hom phiaj Serial.begin (9600); } void loop () {// Txiav txim siab qhov tseem ceeb ntawm Photocell resistors eastRead = analogRead (sab hnub tuaj); westRead = analogRead (sab hnub poob); // Puas yog lub hnub ci vaj huam sib luag xav tau tig mus rau Sab Hnub Tuaj? yog (EastRead> westRead) {Serial.println ("Sab Hnub Tuaj"); // Teeb tsa qhov sib txawv los tig servo mus rau Sab Hnub Tuaj compass = 0; } // Puas yog lub hnub ci vaj huam sib luag xav tau tig mus rau Sab Hnub Poob? yog (sab hnub poobRead> sab hnub tuaj) {Serial.println ("Sab Hnub Poob"); // Teem sib txawv kom tig servo mus rau sab hnub poob compass = 1;

} // Hauv qab pab pawg ntawm if (compass == 0) {degree kam rau ua yog (5 <= pos && pos <= 175) {// Rho tawm 1 los ntawm qhov "pos" sib txawv thiab sau ntau ntxiv cov lej pos -= 1; // Teeb tsa txoj haujlwm ntawm servo myservo.write (pos); } Serial.println (pos); } // Hauv qab pab pawg ntawm txoj cai hloov lub hnub ci vaj huam sib luag mus rau sab hnub poob yog (compass == 1)

chaws hloov lub hnub ci vaj huam sib luag rau sab hnub tuaj txoj haujlwm yog nyob nruab nrab ntawm 5 thiab 175 // 0 thiab 180 yog qhov siab tshaj plaws ntawm qhov kev pabcuam thiab qhov no muaj 5

// Yog tias servo

{// Yog tias txoj haujlwm servo nyob nruab nrab ntawm 5 thiab 175 // 0 thiab 180 yog qhov txiaj ntsig siab tshaj plaws ntawm servo thiab qhov no muaj qib 5 kam rau ua yog (5

Pom zoo: