Cov txheej txheem:
- Kauj Ruam 1: Txiav Koj Lub Pumpkin
- Kauj Ruam 2: Hlau Cov Khoom Siv Hluav Taws Xob
- Kauj Ruam 3: Ua Haujlwm Koj Lub Pumpkin
- Kauj ruam 4: Txaus siab rau
Video: Ib IoT Halloween Pumpkin - Tswj LEDs Nrog Arduino MKR1000 thiab Blynk App ???: 4 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:24
Nyob Zoo Sawv Daws, Ob peb lub lis piam dhau los yog Halloween thiab ua raws li kev coj noj coj ua kuv txiav tawm lub taub dag zoo rau kuv lub sam thiaj. Tab sis muaj kuv lub taub dag sab nraum zoov, Kuv pom tau tias nws yog qhov txaus siab heev uas yuav tsum tau tawm mus txhua hmo kom taws tswm ciab. Thiab kuv kuj tau pom tias nws yuav lom zem dua, yog tias kuv tuaj yeem hloov xim ntawm lub tswm ciab.
Yog tias koj xav kawm paub yuav ua li cas siv koj lub taub dag lub teeb thiab tuaj yeem muaj xim sib txawv teeb pom kev zoo rau koj lub taub dag Xus, cov ntawv qhia no yog rau koj.
Nov kuv yuav xub qhia koj li cas siv IoT ntaus ntawv (ntawm no Arduino MKR1000) los tswj ON/OFF hloov ntawm koj lub taub dag teeb (RGB LED Neopixel Ring). Hauv zaum thib ob, Kuv tseem yuav qhia koj li cas teeb teeb sib txawv xim siv koj lub xov tooj. ???
Cia peb pib!
Khoom siv:
Nov yog cov npe ntawm cov khoom, koj yuav xav tau rau txoj haujlwm no. Yog tias koj xav yuav ib yam ntawm cov khoom siv, saib eBay lossis Amazon, koj tuaj yeem yuav lawv rau tus nqi ncaj ncees.
- Ib lub taub dag
- Arduino MKX 1000
- Neopixel Nplhaib - 12 RGB LED (SK6812)
- 1000µF Capacitor
- 470Ω Cov neeg tiv taus
- 3.7V 2000mAh LiPo Roj Teeb - yog tias tsis siv ntawm USB Micro
- Qee cov xov hlau jumper
- Ib qho hlau txuas
Kauj Ruam 1: Txiav Koj Lub Pumpkin
Muaj kev lom zem thiab txaus siab rau cov kua zaub taub dag nrog nqaij taub dag koj txiav tawm ntawm sab hauv ??
Kauj Ruam 2: Hlau Cov Khoom Siv Hluav Taws Xob
Nkag siab koj cov khoom
Koj yuav pom daim duab kab hluav taws xob rau txoj haujlwm no hauv qab no. Ua ntej pib qhov thaiv, muaj qee yam uas koj yuav tau xav txog.
- Koj siv Arduino microcontroller board twg? Koj lub rooj tsavxwm puas muaj 5V lossis 3.3V cov lus tawm? Koj lub rooj tsavxwm puas muaj 5V tus pin tso zis?
- Qhov loj ntawm koj lub LED Neopixel ntiv nplhaib - 12, 16, 24 pixel yog dab tsi?
- Koj yuav ua li cas thiaj muaj zog rau koj Arduino microcontroller thiab koj cov LEDs?
Hauv txoj haujlwm no, Kuv tau xaiv los siv Arduino MKR1000, uas muaj lub cim WiFi txuas nrog. Kuv txiav txim siab mus nrog Arduino no raws li kuv xav muaj peev xwm tswj hwm kuv Arduino los ntawm kuv lub xov tooj ntawm WiFi. Tsis tas li, kuv twb muaj lub rooj tsav xwm no nyob hauv tsev thiab tsis siv rau lwm yam. Lwm qhov kev xaiv yuav yog siv Arduino Uno, Nano lossis lwm yam Arduino nrog ESP8266 WiFi module.
Piv rau lwm Arduino, MKR1000 khiav ntawm 3.3V. Thaum koj tuaj yeem muab 5V rau lub rooj tsavxwm ntawm USB chaw nres nkoj, koj tsis tuaj yeem xa ntau dua 3.3V rau I/O pins. MKR1000 muaj tus pin 5V, uas tuaj yeem siv los txhawb lub zog 5V. Hauv peb qhov xwm txheej, peb yuav siv tus pin no los txhawb peb lub nplhaib Neopixel. Yog tias koj siv lub nplhaib loj xws li 16, 24 lossis ntau dua pixels, koj yuav xav txiav txim siab siv lub hwj chim cais.
Cov taub dag thiab cov khoom siv hluav taws xob yuav nyob ntawm kuv lub sam thiaj thiab yog li peb yuav siv 3.7V LiPo roj teeb los txhawb peb Arduino thiab Neopixel. MKR1000 BatteryLife kev qhia yog pab tau los pab koj txiav txim siab lub peev xwm ntawm lub roj teeb uas koj yuav siv. Raws li kuv tsis xav rov roj teeb txhua hnub, Kuv tau xaiv lub roj teeb 2000mAh. Ntxiv mus, Kuv txiav txim siab tso Arduino ntawm hom tos thaum tsis teeb kuv lub taub dag. Qhov no pab txo qis kev siv hluav taws xob vim tias WiFi module raug kaw.
Hlau koj cov khoom
- Solder lub capacitor ncaj qha rau lub nplhaib Neopixel. Sab tsis zoo rau GND thiab sab zoo rau 5V
- Solder 470Ω resistor rau Cov Ntaub Ntawv Hauv (DI) tus pin
- Txuas tus 5V tus pin ntawm Arduino mus rau 5V ntawm Neopixel siv lub jumper hlau
- Txuas tus GND tus pin ntawm Arduino mus rau GND ntawm Neopixel siv lub jumper hlau
- Txuas tus #4 Digital tus pin ntawm Arduino mus rau DI ntawm Neopixel siv lub jumper hlau
Thaum qhov no ua tiav, koj yuav tsum qhib "IoT-Halloween-Pumpkin" GitHub nplaub tshev thiab ua qee qhov kev hloov pauv me me rau txoj cai ua ntej xa nws mus rau koj Arduino. Vam tias koj tau npaj rau me ntsis ntawm cov phiaj xwm !! ????
Kauj Ruam 3: Ua Haujlwm Koj Lub Pumpkin
Program koj Arduino
Hauv txoj haujlwm no, peb xav ua haujlwm rau peb Arduino kom cov hauv qab no ua tiav:
- Arduino txuas nrog Blynk App ntawm WiFi.
- Cov xim ntawm Neopixel teeb tau hloov pauv ntawm Blynk App.
Koj tuaj yeem pom cov cai rau txoj haujlwm no hauv kuv "IoT Halloween Pumpkin" GithHub chaw cia khoom. Tab sis ua ntej koj khawb rau hauv nws, koj yuav xav nyeem txog ob peb yam uas kuv tau kawm thaum ua txoj haujlwm no! ???
LED Teeb Qhia
LEDs nyob tau lossis hauv Adafruit cov lus "NeoPixel" xws li WS2812, WS2811 thiab SK6812 LED tsav tsheb tuaj yeem tswj tau siv Adafruit NeoPixel lub tsev qiv ntawv. Yog tias nws yog thawj zaug uas koj siv NeoPixel, Kuv yuav qhia koj kom saib Adafruit NeoPixel Uberguide. Tag nrho cov lus qhia thiab cov lus qhia, nws yog cov peev txheej zoo!
Txhawm rau teeb LED xim rau koj lub taub dag, koj yuav tsum xa RGB tus nqi rau koj Arduino/NeoPixel. Qhov yooj yim tshaj yog saib cov cai xim ntawm qee cov xim! Spiro Disco Blue, Harlequin, Daffodil lossis Rose Bonbon, ntawm no yog qee qhov txias.
Txoj hauv kev lom zem dua yog kom muaj xim ntawm koj NeoPixel "seev cev". Yog tias koj mob siab tiag tiag, muab nws mus! Txwv tsis pub, kos Tweaking4All LEDStrip Effects blog post. Koj yuav pom cov cai rau qee qhov ua rau pom kev zoo nkauj zoo nkauj. Lwm qhov peev txheej zoo yog Neopixel Effect Generator los ntawm Adriano.
App ntawm Blynk
Blynk App yog ib qho ntawm IoT platform nrov tshaj plaws. Blynk App yooj yim heev rau siv thiab tsawg dua 5 feeb koj yuav tuaj yeem tsim IoT app ntawm koj lub xov tooj ntawm tes kom sib txuas lus hauv Is Taws Nem nrog koj lub cuab yeej IoT. Ua ntej txiav koj Blynk App rau koj xav tau, koj yuav tsum:
1. Rub tawm Blynk app
2. Nruab Blynk lub tsev qiv ntawv
3. Teeb kev sib txuas rau koj li IoT ntaus ntawv
Blynk App tau tshaj tawm cov ntaub ntawv zoo los pab txhua tus kom pib. Saib ntawm no yog zoo li kuv, nws yog koj thawj zaug siv nws.
Kauj ruam 4: Txaus siab rau
Nrog koj zoo siab, tam sim no koj tuaj yeem zaum tau yooj yim hauv koj lub rooj zaum thiab siv koj lub xov tooj smartphone los tswj LEDs cov xim ntawm koj lub taub dag Xus. ???
Ua tsaug rau koj nyeem los ntawm kuv tes num. Kuv vam tias koj txaus siab rau nws thiab nws yuav txhawb koj kom ua qee yam zoo sib xws rau koj cov LEDs ntawm koj tsob ntoo Christmas, ntawm koj lub caij ntuj no snowman, lossis lwm yam!
Pom zoo:
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv
555 Timer Nrog Lub Kaum Ib Hlis Counter thiab LEDS thiab Piezo Buzzer; Cov lus piav qhia yooj yim ntawm Circuit: 6 Cov Kauj Ruam
555 Timer Nrog Decade Counter thiab LEDS thiab Piezo Buzzer; Cov lus piav qhia yooj yim ntawm Circuit: Qhov Circuit no muaj peb ntu.Lawv yog piezo buzzer uas ua suab. Ib Txoj Cai (program) yuav ua si " Zoo Siab Hnub Yug " los ntawm Arduino los ntawm piezo Cov kauj ruam tom ntej yog 555 lub sijhawm uas yuav tsim cov mem tes uas ua raws li lub moos
Kub thiab Vaum Zaub thiab Sau Cov Ntaub Ntawv Nrog Arduino thiab Ua: 13 Kauj Ruam (nrog Duab)
Kub thiab Vaum Zaub thiab Sau Cov Ntaub Ntawv Nrog Arduino thiab Ua: Intro: Qhov no yog Txoj Haujlwm uas siv Arduino board, Sensor (DHT11), lub khoos phis tawj Windows thiab Kev Ua Haujlwm (rub tawm dawb) program los tso saib Kub, Cov ntaub ntawv vaum hauv digital thiab bar kab ntawv, tso tawm lub sijhawm thiab hnub tim thiab suav lub sijhawm suav
Cov Cuab Yeej Siv Hluav Taws Xob thiab Cov Cuam Tshuam Xov: Ua LED Zaub thiab Npuag Hluav Taws Xob uas Rolls Up: 7 Cov Kauj Ruam (nrog Duab)
Cov Cuab Yeej Siv Hluav Taws Xob thiab Cov Cuam Tshuam: Ua kom pom LED thiab Cov Khoom Siv Hluav Taws Xob uas Rolls Up: Ua rau koj tus kheej cov ntaub ua hluav taws xob, xov, kua nplaum, thiab kab xev, thiab siv lawv los ua lub zog ntsuas hluav taws xob, tiv thaiv, hloov pauv, LED cov lus qhia thiab siv hluav taws xob. thiab cov xov hluav taws xob koj tuaj yeem ua cov lus qhia LED thiab cov kab hluav taws xob ntawm ib qho ntaub uas hloov pauv tau