Cov txheej txheem:

Tsab ntawv tsa suab Sensing Arduino Xus Pumpkin: 4 Kauj Ruam
Tsab ntawv tsa suab Sensing Arduino Xus Pumpkin: 4 Kauj Ruam

Video: Tsab ntawv tsa suab Sensing Arduino Xus Pumpkin: 4 Kauj Ruam

Video: Tsab ntawv tsa suab Sensing Arduino Xus Pumpkin: 4 Kauj Ruam
Video: I love my Flipper Zero. 2024, Kaum ib hlis
Anonim
Tsab ntawv tsa suab hnov Arduino Xus taub dag
Tsab ntawv tsa suab hnov Arduino Xus taub dag
Tsab ntawv tsa suab hnov Arduino Xus taub dag
Tsab ntawv tsa suab hnov Arduino Xus taub dag
Tsab ntawv tsa suab hnov Arduino Xus taub dag
Tsab ntawv tsa suab hnov Arduino Xus taub dag

Lub hom phiaj tom qab Cov Lus Qhia no yog tsim kom pheej yig, thiab txoj hauv kev yooj yim los ua Halloween dai kom zoo nkauj hauv tsev yam tsis muaj kev paub ua ntej lossis lwm yam cuab yeej zoo nkauj. Siv cov khoom yooj yim los ntawm cov khoom siv hauv is taws nem, koj ib yam tuaj yeem ua rau koj tus kheej yooj yim thiab tus kheej Xus Hmo Hmo Ua Ntej.

Qhov kev tsim no yog ua raws li kev siv lub tshuab luam ntawv 3D (ua tau zoo, ib qho cuab yeej zoo nkauj), txawm li cas los xij, qhov no tsis yog qhov xav tau, raws li cov lus qhia kom ua raws tseem tuaj yeem ua haujlwm nrog taub dag tiag uas koj tau nyiam ua tes lossis khw yuav Halloween kho kom zoo nkauj uas koj tau tua, thov txim, thim rov qab tsim kho. Koj tuaj yeem xaiv ntau yam kom ua rau txhua yam uas koj tuaj yeem pom tau yog tias koj tuaj yeem nkag mus rau hauv nrog tsawg kawg qhov chaw txaus los khaws cov khoom siv.

Zoo Siab Haunting

Khoom siv

Txhawm rau tsim Halloween Pumpkin no koj yuav xav tau cov hauv qab no:

  • Kev kho kom zoo nkauj (nyiam dua taub taub kom haum nrog lub ntsiab lus ntawm Cov Lus Qhia no)

    Yog tias koj tau nkag mus rau lub tshuab luam ntawv 3D peb tau txuas.stl rau lub taub dag uas tau muab faib ua peb ntu kom yooj yim luam ntawv

  • Ib qho Arduino Nano (nrog lub taub hau ua ntej) - peb siv Elegoo Nano kom txuag tau tus nqi
  • DFPlayer Mini MP3 Player
  • HC-SR501 PIR Motion Sensor
  • Ib daim ntawv me me
  • Ib daim npav Micro SD
  • Xaiv Jumper Cables
  • Ib qho 1k Ohm Resistor
  • Tus Hais Lus - peb siv 1 x 1.5 "40 Ohm 3W hais lus (EK1794)
  • Cov ntaub ntawv audio - nyiam dua lub suab nrov nrov nrov lossis luag ntxhi (lossis yog tias koj xav ua kom tib neeg ntshai … hnoos thiab txham) peb siv WAV cov ntaub ntawv los ntawm no
  • Super Glue - txhawm rau khi Pumpkin ua ke (yog tias luam tawm 3D)
  • USB Mini-B rau USB A Cable

Kauj Ruam 1: Npaj daim ntawv kaw

Npaj daim ntawv kaw
Npaj daim ntawv kaw
Npaj daim ntawv kaw
Npaj daim ntawv kaw
Npaj daim ntawv kaw
Npaj daim ntawv kaw

Tog twg los tau carving los yog luam ntawv. Xav tias dawb los ua cov haujlwm no rau lwm tus hauv koj tsev neeg.

Yog tias koj tab tom kos duab, thov ua tib zoo saib thiab xav kom muaj tswv yim zoo li koj tuaj yeem ua tau.

Yog tias koj tab tom luam ntawv, hloov kho qhov chaw rau koj tus kheej nyiam tab sis peb xav kom siv lub brim.

Thaum cov ntu tau luam tawm lawm koj yuav tsum khi ib nrab sab saum toj mus rau ib nrab hauv qab. Peb tau ntxiv cov tab kom cia siab muab qee qhov kev pab thaum sib dhos cov ntu. Tsis txhob lo lub Hau nyob rau hauv qhov chaw, ib yam li taub dag qhov no yuav yog koj li kev nkag.

Whilst peb tso cov kua nplaum los teeb, cia pib ua cov khoom siv hluav taws xob.

Kauj Ruam 2: Sib sau Cov Khoom Siv Hluav Taws Xob

Sib sau Electronics
Sib sau Electronics
Sib sau Electronics
Sib sau Electronics
Sib sau Electronics
Sib sau Electronics

Hauv kev ua kom yooj yim ntawm Arduino, peb khaws cov khoom sib dhos ua ntsaws thiab ua si siv cov hlua txuas thiab lub khob cij me me. Txheeb xyuas qhov txheej txheem txheej txheem thiab txuas txhua tus pin uas xav tau raws li qhia.

Lub hom phiaj ntawm qhov system yog raws li hauv qab no

  1. Tsab ntawv tsa suab tsab ntawv tsa suab los ntawm peb cov neeg raug tsim txom
  2. Lub HIGH teeb liab raug xa mus rau Arduino
  3. Arduino hla cov lus txib mus rau DFPlayer
  4. DFPlayer khaws cov ntaub ntawv khaws cia ntawm daim npav SD thiab xa nws ntawm nws txoj kev zoo siab tawm ntawm peb tus neeg hais lus.
  5. Cia qhov kev quaj thiab quaj pib.
  6. Tom qab peb cov neeg raug tsim txom tau so qhov xwm txheej lossis tsuas yog sawv tseem ntev txaus (feem ntau nyob rau lub sijhawm no khaws cov khoom qab zib los ntawm lub thoob; nws yog Xus tom qab tag nrho), lub suab txav mus rov qab rau lub LOW teeb liab, rov qab ua haujlwm rau nws tus kheej thiab riam phom xeev.

Hauv cov ntsiab lus yooj yim, cov lus tsa suab sensor nkag thiab suab tso tawm.

Sib sau ua ke:

  1. Muab Arduino Nano thiab DFPlayer Mini tso rau ntawm lub khob cij
  2. Siv jumper cables txuas cov:

    1. Nano 5V rau 5V Rail
    2. Nano GND rau Hauv av Rail
    3. Nano D11 rau 1k Ohm resistor
    4. 1k Ohm resistor rau DFPlayer RX
    5. Nano D10 rau DFPlayer TX
    6. Nano D9 rau HC-SR501 OUT (tus pin nruab nrab)
    7. HC-SR501 VCC rau 5V kev tsheb nqaj hlau
    8. HC-SR501 GND rau hauv av Rail
    9. DFPlayer VCC rau 5V Rail
    10. DFPlayer GND rau Hauv Tsheb Rail
    11. DFPlayer SPK_1 rau Tus Hais Lus +
    12. DFPlayer SPK_2 rau Tus Hais Lus -

Kauj ruam 3: Upload Code

Txhawm rau upload cov cai, koj yuav tsum xub rub tawm thiab teeb tsa Arduino IDE.

Cov ntaub ntawv ntawm DFPlayer tuaj yeem pom ntawm no.

Koj tuaj yeem pom Arduino Code hauv qab no. Cias rub tawm nws thiab khaws cia hauv cov ntawv muaj feem ua ntej ntshuam nws ua daim duab tshiab.

Xyuas kom koj muaj SoftwareSerial thiab DFRobotDFPlayerMini Arduino cov tsev qiv ntawv teeb tsa.

Kauj Ruam 4: Sib Sau Cov Khoom Kawg

Sib sau Cov Khoom Kawg
Sib sau Cov Khoom Kawg
Sib sau Cov Khoom Kawg
Sib sau Cov Khoom Kawg

Nrog lub taub dag sib sau ua ke lossis txua ntoo, cov khoom siv hluav taws xob txuas ua ke thiab teeb tsa cov cai, nws yog lub sijhawm yooj yim los tso txhua feem hauv lub taub dag. Txo tus neeg hais lus ua ntej, ua kom nws nrog tus hais lus grill hauv lub hauv paus thiab maj mam tso tus so ib puag ncig nws.

Pom zoo: