Cov txheej txheem:

Nkauj-hauv qab Led-flashing Hack-O-Teeb!: 6 Cov Kauj Ruam
Nkauj-hauv qab Led-flashing Hack-O-Teeb!: 6 Cov Kauj Ruam

Video: Nkauj-hauv qab Led-flashing Hack-O-Teeb!: 6 Cov Kauj Ruam

Video: Nkauj-hauv qab Led-flashing Hack-O-Teeb!: 6 Cov Kauj Ruam
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Hlis ntuj nqeg
Anonim
Nkauj-hauv qab Led-flashing Hack-O-Lantern!
Nkauj-hauv qab Led-flashing Hack-O-Lantern!
Nkauj-hauv qab Led-flashing Hack-O-Lantern!
Nkauj-hauv qab Led-flashing Hack-O-Lantern!
Nkauj-hauv qab Led-flashing Hack-O-Lantern!
Nkauj-hauv qab Led-flashing Hack-O-Lantern!

Ua lub jack-o-lantern uas ua si, thiab ua rau pom ntau xim LED rau txhua tus nyiam zaj nkauj Xus.

Kauj ruam 1: Txheej txheem cej luam

Txheej txheem cej luam
Txheej txheem cej luam
Txheej txheem cej luam
Txheej txheem cej luam
Txheej txheem cej luam
Txheej txheem cej luam
Txheej txheem cej luam
Txheej txheem cej luam

Txoj haujlwm no yuav qhia koj yuav ua li cas thiaj ua tau zoo PIC tswj lub taub dag uas ua rau sib txawv ntawm LED rau lub suab paj nruag ntawm Adams tsev neeg nyob rau tib lub sijhawm thaum nws ua suab paj nruag Adams tsev neeg cov ntsiab lus los ntawm tus hais lus. Daim vis dis aus no yog LED teeb tawm sab nraum lub taub dag. Thov txim, Kuv tsis tuaj yeem nqa kuv lub koob yees duab tuaj tos lub teeb tawm los ntawm taub dag kom txaus kom tsim nyog suav nrog cov vis dis aus ntawm qhov no ua haujlwm tiag tiag.

Kauj ruam 2: Cov ntaub ntawv

Khoom siv
Khoom siv
Khoom siv
Khoom siv
Khoom siv
Khoom siv

Cov ntaub ntawv:

- Taub dag! - Super Bright LED's- Kuv tau siv LED ib txwm muaj, thiab kuv xav tias nws yuav zoo dua nrog hom ci ci zoo tshaj plaws ntawm LED's - Qee hom Micro -controller board - Kuv siv Parallax Basic Stamp ob vim tias yog qhov kuv muaj, tab sis Kuv paub tseeb tias Ua Tus Tswj lossis qee hom kev tswj hwm tuaj yeem siv tau ib yam. Ntsia Hlau- Cov no yuav siv los tuav lub Rooj Tswjhwm Saib Xyuas Micro-rau sab ntawm lub taub dag, koj yuav tsis xav tau cov no nyob ntawm seb koj li kev tswj hwm tuaj yeem teeb tsa yeem li cas: Khoos phis tawj hais lus- qhov no yuav ua lub suab nrov rau tus hais lus me me uas los nrog Micro Controller Cov Cuab Yeej: Riam

Kauj Ruam 3: Khaws Koj Lub Pumpkin

Carve Koj Pumpkin!
Carve Koj Pumpkin!
Carve Koj Pumpkin!
Carve Koj Pumpkin!
Carve Koj Pumpkin!
Carve Koj Pumpkin!

Kuv tus kheej nyiam ua rau kuv taub dag txaus ntshai, tab sis qhov no yog qhov uas koj tau txiav txim siab yam koj ua. Tib yam uas koj yuav tsum tau txhawj xeeb yog seb koj li LED yuav ci txaus los qhia los ntawm koj tus qauv. Kom paub tseeb tias koj lub LED yuav ci dhau, tsis txhob ua qhov loj loj hauv koj lub taub dag qhov twg lub teeb tuaj yeem khiav dim. Rau qee lub tswv yim tsim taub dag zoo sim ntawm lub xaib no

Kauj Ruam 4: Nqa Koj Tus Microcontroller

Nqa Koj Tus Microcontroller
Nqa Koj Tus Microcontroller
Nqa Koj Tus Microcontroller
Nqa Koj Tus Microcontroller
Nqa Koj Tus Microcontroller
Nqa Koj Tus Microcontroller
Nqa Koj Tus Microcontroller
Nqa Koj Tus Microcontroller

Cov kauj ruam no tiag tiag nyob ntawm hom Micro Controller koj siv, Kuv yuav siv Parallax Basic Stamp 2 micro maub los. Yog tias koj muaj hom sib txawv ntawm Micro Controller xws li Ua Tus Tswj, thiab koj xav tau qee yam kev pab, thov nug hauv kev tawm tswv yim.

Koj yuav tsum tau txuas tus LED thiab tus neeg hais lus nyob hauv qhov chaw zoo ib yam li kuv qhia, lossis cov haujlwm uas kuv yuav suav nrog hauv cov kauj ruam tom ntej yuav tsis ua haujlwm. Hauv kab 14th thib 12 thiab thib 11, txuas rau 470 ohm resistors ua rau cov kab sib txawv nyob hauv qab Vss cov dav hlau, cov tiv thaiv yuav tsum coj mus rau tib kab ib yam li lawv tawm los. Tam sim no coj plaub qhov sib txawv ntawm LED thiab ntsaws qhov tsis zoo (luv luv kawg) xaus ntawm LED's rau hauv Vss cov dav hlau. Siv qhov zoo kawg (ntev dua) ntawm LED's thiab ntsaws lawv rau hauv kab ib yam li koj ntsaws cov resistors rau (kab 14, 13, 12, thiab 11) Ob qhov kawg ntawm tus hais lus yuav tsum tau ntsaws rau hauv kab 9, thiab ib qho ntawm Vss lub davhlau ya nyob twg, siv cov xov hlau ntev dua yog tias tsim nyog. Yog tias koj yuav siv lub khoos phis tawj hais lus los nthuav lub suab, tsuas yog txuas tus xov tooj uas tawm los ntawm lub dav hlau 9 mus rau lub xov tooj cua ntawm koj lub khoos phis tawj hais lus. Cov duab yuav tsum ua txhua yam ntawm no kom meej dua yog tias qhov no ua rau koj tsis meej pem.

Kauj ruam 5: Software

Lub Software
Lub Software

Qhov kev zov me nyuam uas kuv tau ua, yog nyob rau hauv cov lus yooj yim programming, thiab yuav tso tawm qhov zaus xav tau, tib lub sijhawm thaum nws teeb lub LED. Yog tias koj tsis yog tus programmer lossis tsuas yog tsis nyiam coding, tsis txhob txhawj, Kuv tau suav nrog cov cai kuv tau siv, thiab kuv yuav piav qhia nws ua haujlwm li cas koj tuaj yeem hloov kho nws yog tias koj xav tau. Kuv tau suav nrog txoj haujlwm hauv hom ntawv yooj yim (.bs2) thiab hauv kab ntawv (.txt)

'{$ STAMP BS2}' {$ PBASIC 2.5} Ob lo lus txib saum toj no yog qhia rau tus neeg sib tham seb hom coding koj tab tom siv, thiab hom khoom siv twg koj yuav siv. Ua "ua" cov lus txib qhia tus tswj kom ua txhua yam nws pom txog thaum nws tsoo lub voj hais kom ua 14 HIGH 14 "qhov siab" hais kom tus tswj kom siv hluav taws xob rau tus pin uas ua raws, hauv qhov no tus lej yog tus lej 14, zoo ib yam tus lej kaum plaub raws li muaj nyob ntawm koj lub micro tswj PAUSE 100 Qhov "ncua" hais kom tus tswj kom ncua txhua yam uas nws tau ua rau lub sijhawm muab rau hauv rooj plaub no nws yuav ncua rau 100 mili seconds FREQOUT 9, 200, 1568 Tus "Freqout" hais kom Tus Tswj Xyuas kom tso tawm cov ntawv pov thawj rau lub sijhawm lees paub lub sijhawm dhau los ntawm tus lej tus lej pov thawj, qhov no tus lej tus lej yog 9, lub sijhawm yog 200 lab lub vib nas this thiab qhov zaus yog 1568Hz LOW 14 Qhov "qis" hais kom ua tswj kom tsis txhob siv qhov hluav taws xob rau qee tus pin, hauv qhov no tus pin 14. LOOP Cov lus "voj" hais qhia tus tswj kom rov qab lo lus "DO" nws pom ua ntej, qhov no yuav tsim lub voj.

Kauj Ruam 6: Muab Txhua Yam Ua Ke, thiab Muaj Xus Zoo

Muab tag nrho ua ke, thiab Muaj Xus Zoo
Muab tag nrho ua ke, thiab Muaj Xus Zoo
Muab tag nrho ua ke, thiab Muaj Xus Zoo
Muab tag nrho ua ke, thiab Muaj Xus Zoo
Muab tag nrho ua ke, thiab Muaj Xus Zoo
Muab tag nrho ua ke, thiab Muaj Xus Zoo

Tam sim no, txhua yam koj yuav tsum ua yog tso koj lub maub los rau hauv taub dag. Kuv siv ob peb tus ntsia hlau los tuav lub maub los rau ntawm lub taub dag kom lub teeb ntau dua los ntawm kuv tus qauv. Thaum koj tau ua tiav qhov no, koj yuav ua tiav koj li LED-Flashing, Nkauj-Ua Si Hack-O-Lantern. Nrog koj zoo siab, koj tam sim no muaj qhov pib ntawm Halloween zoo.

Pom zoo: