Cov txheej txheem:
- Kauj Ruam 1: Yam Koj Xav Tau
- Kauj ruam 2: Rub tawm Arduino
- Kauj Ruam 3: Muab Nws Ua Ke
- Kauj Ruam 4: Lub Tsev rau Arduino
- Kauj Ruam 5: Ua Caj Npab
- Kauj Ruam 6: Sib Koom Hauv Tsev thiab Caj Npab
- Kauj Ruam 7: Tiav Touches
Video: Coffee-Art Project: 7 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Zoo, nyob zoo! Kuv lub npe yog Manou thiab qhov no yog kuv thawj qhov kev qhia. Cov lus qhia no yog txhua yam hais txog kev ua tus kws kho tshuab caj npab nrog arduino genuino uno! Qhov no txhua yam pib nrog lub tswv yim yooj yim no: Kuv xav ua tus neeg hlau uas ua kos duab thiab thaum tham nrog tus tub ntxhais kawm, kuv xav tias nws yuav lom zem los ua caj npab uas yuav ua rau cov ntaub pua rooj tsis huv.
Yog li qhov uas txoj haujlwm no ua yog, tig caj npab ntawm txoj haujlwm tsis raug thiab rov qab mus rau qhov pib, thaum tuav lub khob lossis lwm yam thiab qaij nws nce thiab nqis thaum tuaj txog ntawm txoj haujlwm. Kev kos duab kas fes tau tsim nrog: lub tais me me hauv qab qhov pib qhov twg lub khob dips nws tus kheej rov qab los.
Txoj haujlwm no yog rau koj yog tias koj yog tus tshiab rau arduino thiab yog tias koj xav txhim kho koj cov txuj ci hauv kev coding thiab ua qee yam, tab sis kuj rau cov uas twb tau ua tiav lawm, vim tias koj tuaj yeem muab txoj haujlwm no siab dua.
Kauj Ruam 1: Yam Koj Xav Tau
Koj xav tau dab tsi:
- 1x Arduino genuino uno (https://www.floris.cc/shop/en/search?controller=se…), - arduino.exe program (rub tawm dawb:
- 3x servo motors (Kuv siv TG9e, koj tuaj yeem siv lwm tus ib yam nkaus thiab txawm tias qhov loj dua lossis ib qho txuas ntxiv, tab sis cov no tsis suav nrog kuv cov cai)
- 11x pinwires (tab sis tej zaum ntau dua, cov xov hlau tsis taus!)
- cov ntawv luam tawm
- MDF 4mm tuab ntoo phaj (hais tias 1x1 meter)
- ntoo nplaum
- tiv tauj glue
- grimlets (ntau qhov sib txawv, 4mm 10mm xyaum yog piv txwv)
- ntoo
- fretsaw
- soldering hlau
- 4x cross-screws
- hla tus ntsia hlau
- 1x pob
- ntoo ntawv
- xuab zeb ntawv
Tiav tiav:
- khob (lossis ntau dua yog tias koj xav koom nrog tus neeg hlau)
- ntau lub tais (rau xim sib txawv)
- ntaub ntaub dawb qub lossis ntawv A3/A2
- kav kas fes
- txawv koj qhov tsw qab (vim yog xim)
Kauj ruam 2: Rub tawm Arduino
Thaum rub tawm arduino.exe ntawm koj lub computer, koj tuaj yeem qhib nws hauv cov ntawv uas koj tau khaws nws thiab tau txais cov vijtsam hauv qab no.
Rho tawm cov cai dhau los thiab luam cov cai hauv qab no:
Txoj cai suav nrog qee qhov piav qhia nws ua dab tsi, yog tias nws tsis ua haujlwm nyem rau ntawm cov ntawv ntxiv nrog kuv cov cai.
// Ua kom ntseeg tau tias kev ua haujlwm servo tuaj yeem siv thiab raug xa tawm hauv txoj haujlwm.#Suav nrog
// Variables kom paub qhov txawv servo's sib txawv.
Servo tsav;
Servo tsav 2;
Servo tsav 3;
// Nov yog txiav txim siab qhov twg servo txuas rau tus pin thiab yog tias lawv pib nrog tus nqi. hauv qhov no nws yog 0.
void teeb tsa () {
Serial.begin (9600);
servo.attach (8);
servo2.attach (9);
servo3.attach (10); cov.
servo.write (0); cov.
servo2.write (0);
servo3.write (0);
}
void voj () {
// Qhov hloov pauv tsis tu ncua rau qhov tig ntawm servo thiab tso lawv rau hauv txoj haujlwm tsis sib xws hauv nws qhov ntau (Qhov twg caj npab tuaj yeem ncav cuag).
const int angleIncrement = 1;
const int incrementDelay = 10;
const int randomStop = random (20, 135);
// Lub kaum pib ntawm xoom. yog tias lub kaum me dua yog qhov txav txav, qhov servo yuav tig vim tias ntxiv rau lub kaum sab xis ntxiv nrog ncua me me (nce ntxiv).
rau (int lub kaum = 0; kaum sab xis <randomStop; kaum sab xis += lub kaum sab xis ntxiv) {
// qeeb txav mus rau tom ntej.
servo.write (kaum sab xis);
servo2.write (kaum sab xis);
ncua (incrementDelay);
}
// Kom ntseeg tau tias ncua sijhawm, yog li kev hloov pauv ntawm sab laug-txoj cai mus rau-down tshwm sim hloov pauv thiab nyob hauv txoj kev yog.
ncua (1000);
// Ua kom ntseeg tau tias servo3 txav qis dua nrog ncua sijhawm.
rau (int goingDown = 0; goingDown <60; goingDown ++) {
servo3.write (goingDown);
ncua (incrementDelay);
}
// Ua kom ntseeg tau tias servo3 txav mus rau saum toj nrog ncua sijhawm.
rau (int goingUp = 60; goUp> 0; goingUp -) {
servo3.write (goingUp);
ncua (incrementDelay);
}
// Lub kaum pib ntawm randomStop. Yog tias lub kaum sab xis loj dua xoom, lub kaum sab xis yuav txav rov qab vim tias rho tawm lub kaum sab xis ntxiv nrog qhov kev ncua me me (nce zuj zus).
rau (int angle = randomStop; kaum sab xis> 0; kaum sab xis -= angleIncrement) {
// qeeb txav rov qab
servo.write (kaum sab xis);
servo2.write (kaum sab xis);
ncua (incrementDelay);
}
// Ua kom ntseeg tau tias ncua sijhawm, yog li kev hloov pauv ntawm sab laug-txoj cai mus rau-down tshwm sim hloov pauv thiab nyob hauv txoj kev yog.
ncua (1000);
// Xyuas kom meej tias servo3 txav qis qis nrog ncua sijhawm. rau (int goingDown = 0; goingDown <60; goingDown ++) {
servo3.write (goingDown);
ncua (incrementDelay);
}
// Ua kom ntseeg tau tias servo3 txav mus rau saum toj nrog ncua sijhawm.
rau (int goingUp = 60; goUp> 0; goingUp -) {
servo3.write (goingUp);
ncua (incrementDelay);
}
}
Kauj Ruam 3: Muab Nws Ua Ke
Zoo tam sim no tias txoj cai ua haujlwm: koj tuaj yeem txuag nws nrog lub cim kos nyob rau ntawm kaum sab laug saum toj no thiab xa nws mus rau koj cov arduino nrog cov xub xub nyob ib sab.
Tom ntej no peb yuav ua lub installation.
Hauv kuv daim duab kuv siv ntau lub xov hlau, tab sis nws muaj peev xwm ua tau tsawg dua, saib kuv cov phiaj xwm thiab tom qab ntawd muab nws txuas ua ke.
Tib qho uas yuav tsum tau ua yog tso USB2.0 cable hauv arduino thiab hauv koj lub laptop, lub txhab nyiaj lossis txawm tias siv roj teeb (nrog rau lwm qhov chaw nres nkoj).
Tam sim no txoj haujlwm ua haujlwm tsuas yog sab laug ua yog ua qee yam nyob ib puag ncig nws.
Kauj Ruam 4: Lub Tsev rau Arduino
Okay! hauv theem no peb tab tom ua chaw nkaum rau koj cov arduino, cov ntawv luam tawm thiab cov xov hlau. Kuv siv lub tshuab txiav laser los ua cov duab plaub zoo meej, tab sis koj tuaj yeem ua qhov no yooj yim nrog pom!
Tsuas yog kos thiab ntsuas ntoo thiab pom nws.
Kuv ua kuv tus kheej:
qhov siab yog 6, 5
dav yog 7cm
ntev yog 9cm
Nco ntsoov tias sab rau arduino kabel muaj lub qhov thiab qhov sab uas cov xaim servo xav tau mus rau hauv muaj qhov zoo ib yam. Kuv ua lub qhov 1cm thiab 1 ntawm txhua lub ces kaum (sab uas yog 9cm thiab 6, 5cm).
Muab lub thawv tso ua ke nrog cov ntawv nplaum, xyuas kom sab saum toj tseem tsis tau lo!
Kauj Ruam 5: Ua Caj Npab
Tom ntej no peb tab tom ua caj npab. dua kuv tau ua kuv lub lasercutter, tab sis pom thiab fretsaw yuav ua haujlwm zoo heev! Kuv txhais caj npab tag nrho 16cm ntev thiab txoj kab uas hla ntawm txhua lub voj voog yog 6 txog 7cm nrog lub qhov me me ntawm 5mm, saib rau saum koj lub servo nws tuaj yeem txawv!
Kuv kuj tau ua 2 kab nyob hauv qab ntawm txhais caj npab thiab me me plank nyob nruab nrab ntawm cov ntoo.
Tom qab ntawd koj tuaj yeem tso koj ob lub 180 degree servo ua ke, ib qho yuav tsum tau rov qab thiab lwm qhov ncaj ua ke nrog ob lub xov hlau nyob ntawm ib sab. Tam sim no peb tab tom ua lub thawv me me nyob ib puag ncig lawv nrog ntoo thiab ntoo ntoo. Ib zaug ntxiv kom ntseeg tau tias sab nrog cov xov hlau muaj qhov loj txaus. Tom qab ntawd hu xov tooj rau cov servo ntawm caj npab. (xyuas kom tseeb tias txoj cai servo tau txuas rau ntawm caj npab).
Kauj Ruam 6: Sib Koom Hauv Tsev thiab Caj Npab
Okay nrog ob qho ntawm cov khoom tseem ceeb npaj, peb yuav muab tso ua ke. Coj koj pob khawm, thiab kos rau ntawm arduino tsev uas koj xav muab nws txuas. ntsia nws rau sab xub thawj thiab tom qab ntawm caj npab. Yog tias koj muaj teeb meem uas txhais caj npab tsis ncaj ncaj ua ib qho me me plank hauv qab lub tsev kom muaj caj npab ruaj khov.
Tam sim no ob leeg nyob ua ke, tab sis nws tsis tuaj yeem qaij dua. Txhawm rau ua qhov no, siv servo 3 thiab tso ib nrab yas sab saum toj rau nws. (Cov no los nrog servo's). tso lub servo hauv qab ib kab ntawm caj npab. Ua ib lub thawv me me nyob ib puag ncig nws thiab tej zaum tso cov servo siab dua me ntsis yog tias koj muaj teeb meem nrog caj npab ncaj.
Kauj Ruam 7: Tiav Touches
Nrog koj zoo siab, tus tsim tiav lawm!
tsuas yog yam uas yuav tsum tau ua yog:
- tshem tawm cov xov hlau nrog tej zaum ntawv lossis yas cillinder
- ua lub tais me me ntoo rau kas fes lossis siv ib qho ntawm koj cov khoom sau.
tom qab qhov no tau npaj cov ntaub pua chaw, ua kas fes, tau khob me me (muab tso rau hauv dej rau qee qhov hnyav thiab ua haujlwm tau zoo dua ntawm cov nyhuv) thiab tig txoj haujlwm!
Pom zoo:
Arduino Interactive LED Coffee Table: 6 Cov Kauj Ruam (nrog Duab)
Arduino Interactive LED Coffee Table: Kuv tau ua cov rooj kas fes sib tham uas tig coj teeb nyob rau hauv ib qho khoom, thaum cov khoom raug muab tso rau saum rooj. Tsuas yog cov leds uas nyob hauv qab qhov khoom ntawd yuav ci tuaj. Nws ua qhov no los ntawm kev siv cov ntsuas sib thooj sib luag, thiab thaum qhov sib thooj
Animation Coffee Table: 9 Kauj Ruam (nrog Duab)
Animation Coffee Table: Muaj ntau ntau cov lus qhia zoo txog yuav ua li cas los sib tham cov rooj kas fes nrog LED matrices, thiab kuv coj kev tshoov siab thiab cov lus qhia los ntawm qee qhov ntawm lawv. Qhov no yog qhov yooj yim, pheej yig thiab feem ntau ntawm txhua qhov nws tau txhais los txhawb kev muaj tswv yim: nrog tsuas yog ob qho tab sis
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Yuav Ua Li Cas Thiaj Li Tshem Tawm Lub Computer Nrog Cov Kauj Ruam Yooj Yim thiab Duab: 13 Kauj Ruam (nrog Duab)
Yuav Tsum Tshem Tawm Lub Khoos Phis Tawj Li Cas Nrog Cov Kauj Ruam Yooj Yim thiab Duab: Nov yog cov lus qhia txog yuav ua li cas tshem lub PC. Feem ntau ntawm cov khoom siv yooj yim yog hloov pauv thiab tshem tawm tau yooj yim. Txawm li cas los xij nws yog ib qho tseem ceeb uas koj tau koom nrog nws. Qhov no yuav pab tiv thaiv koj kom tsis txhob poob ib feem, thiab tseem ua rau kev rov ua dua tshiab
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv