Cov txheej txheem:

Arduino Halloween Edition - Zombies Pop -out Screen (Kauj Ruam Nrog Duab): 6 Kauj Ruam
Arduino Halloween Edition - Zombies Pop -out Screen (Kauj Ruam Nrog Duab): 6 Kauj Ruam

Video: Arduino Halloween Edition - Zombies Pop -out Screen (Kauj Ruam Nrog Duab): 6 Kauj Ruam

Video: Arduino Halloween Edition - Zombies Pop -out Screen (Kauj Ruam Nrog Duab): 6 Kauj Ruam
Video: BOT ML VS HUMAN || MLBB 2024, Kaum ib hlis
Anonim
Image
Image

Xav kom ntshai koj cov phooj ywg thiab ua suab nrov nrov hauv Xus? Los yog tsuas yog xav ua qee qhov prank zoo? Qhov Zombies pop-out screen tuaj yeem ua li ntawd! Hauv Cov Lus Qhia Kuv yuav qhia koj yuav ua li cas dhia tawm Zombies yooj yim siv Arduino. HC-SR04 lub ntsuas hluav taws xob ultrasonic yuav ntes cov lus tsa suab, thiab tom qab ntawd yuav ua rau lub vijtsam pop-out (Nws tuaj yeem yog zombie txaus ntshai lossis dab, nyob ntawm koj nyiam)!

Koj tuaj yeem thov qhov DIY no rau Xus kev npaj lossis siv qhov no los ua prank koj cov phooj ywg.

Los ntawm ua raws cov kauj ruam yooj yim hauv qab no, koj tuaj yeem ua qhov nrawm txawm tias koj yog tus pib rau Arduino!

Khoom siv

Cov ntaub ntawv ntawm txoj haujlwm no suav nrog:

Lub khob cij x1

Arduino Leonardo x1

Lub laptop x1

USB kab x 1

Cov ntaub so ntswg lossis lub npov random x1

HC-SR04 ultrasonic sensor x1

Jumper xov hlau txiv neej rau txiv neej x7

Txiab x 1

Kab x 1

Cov ntawv zoo nkauj (txhua xim uas koj nyiam)

Kauj Ruam 1: Circuit rau HC-SR04

Circuit rau HC-SR04
Circuit rau HC-SR04
Circuit Court rau HC-SR04
Circuit Court rau HC-SR04
Circuit Court rau HC-SR04
Circuit Court rau HC-SR04

Cov duab kos nyeem kab lus rau HC-SR04. HC-SR04 yog ultrasonic rangefinder thiab xa rov qab qhov nrug mus rau qhov khoom ze tshaj plaws hauv ntau. Txhawm rau ua qhov no, nws xa cov mem tes mus rau lub ntsuas kom pib nyeem ntawv, tom qab ntawd tos kom lub plawv dhia rov qab los. Qhov ntev ntawm cov mem tes rov qab yog sib piv rau qhov nrug ntawm qhov khoom los ntawm lub sensor.

Ua raws cov duab saum toj no txhawm rau txuas HC-SR04 rau Arduino.

Siv Jumper xov hlau txiv neej rau txiv neej, 1. txuas GND ntawm HC-SR04 mus rau kab tsis zoo ntawm lub khob cij

2. txuas ECHO ntawm HC-SR04 rau tus lej digital 7 ntawm Arduino phaj

3. txuas TRIG ntawm HC-SR04 rau tus lej digital 6 ntawm Arduino phaj

4. txuas VCC ntawm HC-SR04 mus rau kab zoo ntawm lub khob cij

Kauj Ruam 2: Cov Hluav Taws Xob 2

Cov voj voog 2
Cov voj voog 2
Cov voj voog 2
Cov voj voog 2

Txuas cov xov hlau raws li ob daim duab saum toj no qhia.

Siv ob Jumper xov hlau txiv neej rau txiv neej, 1. txuas cov xaim los ntawm kab tsis zoo ntawm lub khob cij rau GND

2. txuas cov hlau los ntawm kab zoo rau 5V

Kauj Ruam 3: Circuit 3 - Keyboard Commands

Cov voj voog 3 - Cov lus txib keyboard
Cov voj voog 3 - Cov lus txib keyboard
Cov voj voog 3 - Cov lus txib keyboard
Cov voj voog 3 - Cov lus txib keyboard
Cov voj voog 3 - Cov lus txib keyboard
Cov voj voog 3 - Cov lus txib keyboard

Xa tus keystroke mus rau lub khoos phis tawj txuas nrog. Qhov no zoo ib yam li nias thiab tso tus yuam sij ntawm koj cov keyboard. Koj tuaj yeem xa qee tus cim ASCII lossis cov keyboard hloov pauv ntxiv thiab cov yuam sij tshwj xeeb.

Los ntawm kev txuas ib tus Jumper hlau txiv neej rau txiv neej raws li cov duab qhia saum toj no, koj tuaj yeem cia Arduino xa cov lus txib keyboard mus rau lub khoos phis tawj. Siv ib lub xov hlau txuas rau txiv neej, txuas GND rau tus lej digital 4.

Tam sim no koj ua tiav cov circuits! Cov kauj ruam tom ntej yog rau kev pom kev zoo nkauj thiab coding!

Kauj ruam 4: Hniav Outlook

Hniav Outlook
Hniav Outlook
Hniav Outlook
Hniav Outlook
Hniav Outlook
Hniav Outlook

Tam sim no koj yuav tsum ua kom pom kev zoo nkauj. Cov ntaub ntawv xav tau rau qhov no yog qee cov ntawv zoo nkauj, txiab, thiab kua nplaum. Koj tuaj yeem kho nws nrog txhua yam uas koj xav tau, rau kuv, Kuv tau coj cov xim Xus (dub, txiv kab ntxwv, thiab ntshav liab) ua xim ntawm lub thawv vim. Qhov loj ntawm lub thawv tsis tas yuav loj npaum li no, koj tuaj yeem hloov kho qhov loj me thiab cov duab, lub thawv tsuas yog qhov chaw tso rau Arduino board. Kuv xaiv lub thawv loj vim tias koj tuaj yeem muab lub tais ntim khoom qab zib rau nws thiab thaum cov neeg tuaj nqa nws, HC-SR04 sab hauv tuaj yeem tshawb pom cov lus tsa suab ces ua rau lub vijtsam tawm.

Kauj ruam 5: Upload Code

Nyem qhov txuas no kom tau txais cov lej tag nrho!

create.arduino.cc/editor/catherine0202/aa7…

Pom zoo: