Cov txheej txheem:

Sib tham Acrylic Hmo Ntuj: 6 Kauj Ruam
Sib tham Acrylic Hmo Ntuj: 6 Kauj Ruam

Video: Sib tham Acrylic Hmo Ntuj: 6 Kauj Ruam

Video: Sib tham Acrylic Hmo Ntuj: 6 Kauj Ruam
Video: Mob Txaus Lawm - Txhaij Lauj Ft. Tijlaug Xab Thoj (Special Project) 2024, Hlis ntuj nqeg
Anonim
Sib tham sib Acrylic Hmo Ntuj
Sib tham sib Acrylic Hmo Ntuj
Sib tham sib Acrylic Hmo Ntuj
Sib tham sib Acrylic Hmo Ntuj
Sib tham sib Acrylic Hmo Ntuj
Sib tham sib Acrylic Hmo Ntuj

Kev kos duab hmo ntuj zoo nkauj tuaj yeem txhim kho koj tus qauv tsim sab hauv, tsis hais nws yog koj chav lossis chav nyob. Txoj haujlwm no muab rau koj xaiv ntawm kev tsim koj chav nrog koj txhais tes. Sau koj cov txuj ci kos duab thiab ua raws kuv cov kauj ruam txhawm rau ua kom tiav daim duab no!

Khoom siv

1. Arduino Leonardo pawg thawj coj saib

2. Cov xov hlau (kwv yees li 20-25 ntawm lawv)

3. Kuj (4 ntawm lawv)

4. Ultrasonic sensor (HC-SR04)

5. LED qhov muag teev (4 ntawm lawv)

4. Canvas (Qhov loj koj nyiam)

5. Cov cuab yeej kos duab

-Acrylic xim

-Xim txhuam (Ntau qhov ntau ntawm lawv yuav zoo)

-Plaub

Kauj Ruam 1: Txuas Txhua Cheeb Tsam

Txuas Txhua Cheeb Tsam
Txuas Txhua Cheeb Tsam
Txuas Txhua Cheeb Tsam
Txuas Txhua Cheeb Tsam
Txuas Txhua Cheeb Tsam
Txuas Txhua Cheeb Tsam

Qhov no tuaj yeem faib ua ob ntu: Ultrasonic Sensor thiab Lub Teeb

  • Ultrasonic Sensor Tshooj:

    • VCC to 5V
    • Trig rau Digital Trig
    • Echo rau Digital Echo
    • GND rau Analog GND
  • Qhov Teeb Pom Kev Ib Sab (Muaj plaub qhov kev sib txuas zoo ib yam, nqes ib qho nkaus xwb, koj tuaj yeem rov ua nws ntau zaus raws li koj nyiam)

    • Tus lej digital mus rau qhov chaw tsis raug ntawm lub khob cij
    • Txuas lub teeb ci ci ntawm lub khob cij

      • Zoo rau Digital
      • Tsis zoo rau Kuj
    • Txuas Kev Tiv Thaiv rau Tsis Zoo

Kauj ruam 2: Xim Koj Canva

Xim Koj Canva
Xim Koj Canva
Xim Koj Canva
Xim Koj Canva
Xim Koj Canva
Xim Koj Canva

Koj tuaj yeem siv koj lub peev xwm rau daim canvas vim tias tsis muaj txoj hauv kev los kos qhov xwm txheej hmo ntuj. Kuv yuav qhia kuv cov kauj ruam thiab qhov kuv tau ua ntawm canva. Ua ntej tshaj, Kuv kos cov dej ntawm lub canva kom nws ntub thiab ntub. Qhov thib ob, Kuv tso cov xim xiav tsaus rau saum lub canva thiab thaum kawg kos duab gradient los ntawm kev siv tsawg dua xiav thiab lub teeb xiav. Nws tsim ntuj hmo ntuj nrog lub teeb nyob hauv qab. Tom qab ntawd, siv cov xim dawb los kos cov huab thiab ib feem dawb ntawm ntuj. Koj tuaj yeem kos lwm txoj hauv kev. Thaum kawg, siv cov xim dub tsaus los kos lub roob hauv qab ntawm lub canva. Cov ntoo nyob saum roob thiab tuaj yeem tsim qhov sib txawv ntawm qhov tshwm sim.

Kauj Ruam 3: Khaws daim kab xev nyob tom qab ntawm Canva

Khaws daim kab xev nyob tom qab ntawm Canva
Khaws daim kab xev nyob tom qab ntawm Canva

Cov kauj ruam no yog kom ntseeg tau tias thaum koj khawb lub qhov nraub qaum ntawm lub canva, lub canva yuav tsis tawg. Koj tuaj yeem lo daim kab xev ntau dua ntawm qhov chaw tseeb uas koj npaj rau khawb qhov kom paub tseeb tias lub canva muaj peev xwm ntawm lub zog los tiv thaiv kev nruj thiab rub.

Kauj Ruam 4: Poke Qhov ntawm Canva

Txhawm rau khawb qhov yog muab cov teeb pom kev zoo LED tso rau qhov chaw los ua piv txwv li cov hnub qub. Koj tuaj yeem cuam tshuam ntau lub qhov (Kuv poked plaub ntawm lawv), thiab ua kom cov qij LED hla hla lub canva.

Kauj ruam 5: Upload Code

Rub tawm Txoj Cai
Rub tawm Txoj Cai

Koj tuaj yeem siv Arudblock version (duab muab) lossis Code version

Code Version Txuas:

create.arduino.cc/editor/minmin1019/cdf1af…

Cias upload cov cai no ntawm Arduino thiab sim yog tias nws ua haujlwm.

Kauj Ruam 6: Xeem Nws

Txoj haujlwm no yog qhov tsim duab sib tham vim tias cov hnub qub (LEDs) yuav pib pom yog thiab tsuas yog tias ib tus neeg nyob ntawm nws xub ntiag, uas nyob ib puag ncig 40 cm. Koj tuaj yeem muab nws tso rau hauv koj lub tsev thiab kho kom zoo nkauj ib puag ncig koj!

Pom zoo: