Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Npaj daim ntawv kaw
- Kauj Ruam 2: Sib sau Cov Khoom Siv Hluav Taws Xob
- Kauj ruam 3: Upload Code
- Kauj Ruam 4: Sib Sau Cov Khoom Kawg
Video: Tsab ntawv tsa suab Sensing Arduino Xus Pumpkin: 4 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:24
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
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
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
- Tsab ntawv tsa suab tsab ntawv tsa suab los ntawm peb cov neeg raug tsim txom
- Lub HIGH teeb liab raug xa mus rau Arduino
- Arduino hla cov lus txib mus rau DFPlayer
- 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.
- Cia qhov kev quaj thiab quaj pib.
- 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:
- Muab Arduino Nano thiab DFPlayer Mini tso rau ntawm lub khob cij
-
Siv jumper cables txuas cov:
- Nano 5V rau 5V Rail
- Nano GND rau Hauv av Rail
- Nano D11 rau 1k Ohm resistor
- 1k Ohm resistor rau DFPlayer RX
- Nano D10 rau DFPlayer TX
- Nano D9 rau HC-SR501 OUT (tus pin nruab nrab)
- HC-SR501 VCC rau 5V kev tsheb nqaj hlau
- HC-SR501 GND rau hauv av Rail
- DFPlayer VCC rau 5V Rail
- DFPlayer GND rau Hauv Tsheb Rail
- DFPlayer SPK_1 rau Tus Hais Lus +
- 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
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:
Tsab ntawv tsa suab Reactive Surfboard LED Sawb: 8 Kauj Ruam (nrog Duab)
Motion Reactive Surfboard LED Strips: Tsis ntev los no, qee tus phooj ywg thiab kuv tau pom dej nthwv dej. Nyob hauv Munich peb muaj hmoo kom muaj peb tus dej ntws nthwv dej ntawm qhov chaw nto moo Eisbach nthwv dej. Qhov tsis zoo ntawm kev caij nthwv dej yog tias nws yog ib qho ntxiv thiab yog li kuv tsis tshua pom sijhawm rau
Tsab ntawv tsa suab Sensor Tswb: 5 Kauj Ruam
Motion Sensor Tswb: Puas yog koj ib txwm tshuaj xyuas seb leej twg nyob ntawm koj lub qhov rooj? Qhov no yog cov khoom zoo tshaj rau koj. Kuv ib txwm xav paub yog tias muaj cov neeg sab nraum kuv lub qhov rooj tsis paub. Kuv tau tsim qhov Motion Sensor Tswb nrog coj teeb uas yuav qhia
Tsab ntawv tsa suab Sensor Dej Kais Siv Arduino thiab Solenoid Valve - DIY: 6 Kauj Ruam
Tsab ntawv tsa suab Sensor Dej Kais Siv Arduino thiab Solenoid Valve - DIY: Hauv qhov haujlwm no, kuv yuav qhia koj yuav tsim lub Motion Sensor Water Tap Siv Solenoid Valve li cas. Txoj haujlwm no tuaj yeem pab koj hloov koj li ntawv siv dej tam sim no mus rau hauv lub kais uas tuaj yeem tswj tau raws li kev tshawb nrhiav pom. Siv IR sensor interface
Tsab ntawv tsa suab Sensing Arduino Laser: 5 Kauj Ruam
Tsab ntawv tsa suab Sensing Arduino Laser: NCO TSEG: Txoj haujlwm no tau tsim los hauv txoj hauv kev uas txhua qhov tuaj yeem rov qab siv tau rau yav tom ntej. Raws li qhov tshwm sim, cov khoom kawg tsis ruaj khov dua li nws yuav yog koj yuav tsum siv cov ntaub ntawv ruaj khov ntxiv xws li kua nplaum, siv tshuaj txhuam, thiab lwm yam … Ceeb Toom: Ua n
Tsab ntawv tsa suab Sensor Raws DC Tso Kiv Cua Tswj Tsis Muaj Arduino: 4 Kauj Ruam
Tsab ntawv tsa suab Sensor Raws DC Tso Kiv Cua Tswj Tsis Muaj Arduino: Nyob zoo cov kwv tij thiab cov muam ntawm lub ntiaj teb, Kuv tau ua qhov haujlwm me me rau kev tswj hwm koj lub kiv cua DC tso tawm (Yog tias koj ntxiv ib qho txuas ntxiv qhov no koj tuaj yeem tswj AC tso kiv cua ntxiv) .Qhov no tuaj yeem siv tau so chav rau qhuav koj txhais tes ntub.thiab tseem siv lwm daim ntawv thov