Cov txheej txheem:

Khoos phis tawj + Ntawv = Khawv koob: 8 Kauj Ruam
Khoos phis tawj + Ntawv = Khawv koob: 8 Kauj Ruam

Video: Khoos phis tawj + Ntawv = Khawv koob: 8 Kauj Ruam

Video: Khoos phis tawj + Ntawv = Khawv koob: 8 Kauj Ruam
Video: dab neeg sib aim muab xoom Ntawm taw txaj mas ntsaj heev tiag tiag 2024, Hlis ntuj nqeg
Anonim
Khoos phis tawj + Ntawv = Khawv koob
Khoos phis tawj + Ntawv = Khawv koob

Vim li cas thiaj yuav tsum hnov qab qhov qub thaum qhov tshiab tuaj txog. Vim li cas peb tsis tuaj yeem sib koom ua ke hauv qee txoj hauv kev los tsim cov khoom tshiab uas txaus siab rau qhov xav tau: qhov xav tau kev ua khawv koob.

Nrog rau qhov kev qhia no koj yuav ua lub computer ntawv + keyboard. Peb ntawm cov yuam sij ntawm cov keyboard keyboard tau txuas rau Arduino board. Thaum koj nqa cov hlau nplaum nyob ze ib qho ntawm cov yuam sij no, nws yuav ua rau lub carousel sab hauv lub khoos phis tawj tig los tso saib qhov tshwm sim uas pib nrog tsab ntawv ntawd. Piv txwv: B yog rau Bakery thiab F yog rau hav zoov. Thaum tsis tseem ceeb yog "nias" lub carousel tau ua ke nrog cov lus uas nyeem "nyob zoo ntiaj teb". Rau lub carousel peb yuav ua 3 phau ntawv. Kuv yuav npog yuav ua li cas thiaj li kawg, tab sis koj tuaj yeem pib xav txog qhov xwm txheej zoo li cas koj yuav xav ua. Qhov chaw ua haujlwm 1. tso ua ke cov khoom siv hluav taws xob thiab cov khoom siv hluav taws xob 2. sib sau ua ke lub computer ntawv + keyboard los ntawm cov ntawv PDF 3. Ua 3 phau ntawv

Kauj ruam 1: Cov khoom xyaw

Cov khoom xyaw
Cov khoom xyaw

::: Circuit::::

1. 3 reed keyboards (koj tuaj yeem pom lawv ntawm Sparkfun) 2. Arduino board + bread board (yog tias koj tsis xav tau cov khoom sib dhos) 3. Cov hlua qhwv 28 ntsuas (koj tuaj yeem siv cov tuab tuab ntawm no yog tias koj xav tau) 4. Cov ntaub qhwv (tsis xav tau, tab sis zoo kom muaj) 5. tus txiv neej lub taub hau 6. lub ntiaj teb hlau nplaum 7. servo motor::: Khoos phis tawj + keyboard + phau ntawv::: 1. Plaub daim ntawv 24 x 36 (koj tuaj yeem muaj daim ntawv sib txawv me me) 2. Lub tshuab txiav laser lossis rab riam tseeb 3. Elmer's kua nplaum 4. Xim + xaum xim dub 5. Cov qhab nias (saib daim duab hauv qab)::: zog::: 1. masonite 2. laser txiav lossis ntoo ua haujlwm cov cuab yeej 3. 3 cov ntoo (2x4x4, 1 x1 x 2, 1 x 1x 2) 4. balsa round stick (qhov no yuav tsum phim lub nruab nrab ntawm cov iav)

Kauj Ruam 2: Thawj Ntu: Circuit

Thawj ntu: Circuit Court
Thawj ntu: Circuit Court

1. Hlau txhua sab ntawm tus ntoo thuv hloov pauv nrog cov xaim qhwv rau tus pin header 2. Ib sab mus rau hauv av thiab lwm qhov rau kev nkag mus 1, 2, thiab 3 ntawm Arduino (nco ntsoov zoo li hloov pauv peb xav tau kom muaj 10 K resistor nyob nruab nrab ntawm cov tswv yim + 5V) saib daim duab hauv qab no. Cov xov hlau zoo ib yam txawm hais tias ib qho hauv daim duab yog lub laub khawm. 3. Txuas txhua lub xaim ntawm servo motor rau GROUND + 5V + OUTPUT tus pin 9 hauv Arduino board

Kauj ruam 3: Code

Code
Code

::: Tus lej no yog qhov sib txawv ntawm Sweep code los ntawm Barragan::: Luam theej hauv qab no // Sweep // los ntawm BARRAGAN // Sweep // los ntawm BARRAGAN #include Servo myservo; // tsim cov khoom siv servo los tswj hwm servo // ntau kawg ntawm yim yam khoom siv servo tuaj yeem tsim int pos = 0; // servo tus nqi int inputPin1 = 1; // swiches int inputPin2 = 2; int inputPin3 = 3; int val1 = 0; int val2 = 0; int val3 = 0; // qhov tseem ceeb rau qhov hloov pauv // hloov pauv kom khaws qhov chaw ua haujlwm tsis muaj teeb meem teeb tsa () {myservo.attach (9); pinMode (inputPin1, INPUT); pinMode (inputPin2, INPUT); pinMode (inputPin3, INPUT); // txuas cov servo ntawm tus pin 9 rau cov khoom siv servo} void loop () {val1 = digitalRead (inputPin1); val2 = digitalRead (inputPin2); val3 = digitalRead (inputPin3); yog (val1 == LOW && val2 == HIGH && val3 == HIGH) {// hauv cov qib ntawm 1 degree myservo.write (pos = 44); } lwm yog (val2 == LOW && val1 == HIGH && val3 == HIGH) {myservo.write (pos = 89); } lwm yog (val3 == LOW && val1 == HIGH && val2 == HIGH) {myservo.write (pos = 134); } lwm {myservo.write (pos = 179); }}

Kauj Ruam 4: Kuaj Koj Li Circuit Court

Ntsuam Xyuas Koj Lub Hauv Paus
Ntsuam Xyuas Koj Lub Hauv Paus
Ntsuam Xyuas Koj Lub Hauv Paus
Ntsuam Xyuas Koj Lub Hauv Paus

1. Txiav tawm ib daim ntawv me me ua cov cim 2. Nqa ze rau txhua tus reed hloov cov hlau nplaum 3. koj lub servo yuav tsum txav los ntawm kev txav los ntawm 0º mus rau 45º. 90º los yog 179º.

Kauj Ruam 5: Daim Duab Loj

Daim Duab Loj
Daim Duab Loj
Daim Duab Loj
Daim Duab Loj
Daim Duab Loj
Daim Duab Loj

::: Saib los ntawm nraub qaum::: Thaum kawg koj lub servo yuav txav ob lub zog hauv cov lus teb ntawm cov hlau nplaum tau raug coj los ze rau tus yuam sij uas muaj lub reed hloov. Cov zog no yuav txav cov carousel teeb rau saum lawv 360º

Kauj Ruam 6: Rub tawm PDF rau Computer + Keyboard

Kauj Ruam 7: Rub tawm PDF rau Ob Lub Zog

Kauj Ruam 8: Cia Muab Lub Computer + Keyboard Ua Ke

yuav tsum txuas ntxiv mus…

Pom zoo: