Cov txheej txheem:
- Kauj Ruam 1: Sib Sau Cov Khoom
- Kauj ruam 2: Teeb
- Kauj ruam 3: Sib dhos
- Kauj ruam 4: Code
- Kauj ruam 5: Yees duab
Video: RGB LED Adaptive Camouflage (chameleon) Siv Ebot / Arduino: 5 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Qhov no yog qhov haujlwm zoo tiag tiag thiab yooj yim. Nws siv lub ntsuas xim kom paub xim ntawm keeb kwm yav dhau thiab qhia nws ntawm RGB LED sawb.
Kuv siv Ebot Microcontroller tab sis koj kuj tseem tuaj yeem siv lwm yam microcontroller xws li arduino uno.
Kauj Ruam 1: Sib Sau Cov Khoom
Cov khoom siv hluav taws xob:-
1 x Ebot Microcontroller (koj tseem tuaj yeem siv arduino lossis lwm yam microcontroller)
1 x Xim sensor
1 x RGB LED Sawb
6 x Jumper xov hlau
Rau kev sim koj tuaj yeem tau txais qee cov ntawv sib txawv xim.
Kauj ruam 2: Teeb
Kev teeb tsa yog yooj yim heev
1. coj lub RGB LED thiab txuas peb lub xov hlau txuas rau ntawm GND, Ua, thiab +5v thiab txuas lawv rau GND tus pin, tso tawm 0 tus pin, thiab 5v tus pin feem ntawm lub microcontroller.
2. Tom ntej no nrog cov xim xim txuas lub
GND GND tus pin ntawm lub microcontroller
voltage pin voltage pin ntawm lub microcontroller
s A0 tus pin ntawm lub microcontroller
Kauj ruam 3: Sib dhos
Tom qab koj ua tiav nrog teeb tsa xa cov xim xim mus rau kab txaij tig mus.
Kauj ruam 4: Code
{// Initialisations ebot_setup ();
// Tus Qauv Pin
strip0.begin ();
strip0.show ();
pinMode (0, NTAWV); // RGB coj
pinMode (A0, INPUT); // Xim Sensor
}
void lub voj ()
{yog (xim (A0)> = 182 && xim (A0) <= 279) {colorWipe (& strip0, 0, 45, 97, 25);
} lwm yog (xim (A0)> = 79 && xim (A0) <= 149) {colorWipe (& strip0, 0, 105, 14, 25);
} lwm yog (xim (A0)> = 21 && xim (A0) <= 43) {colorWipe (& strip0, 255, 221, 0, 25);
} lwm yog (xim (A0)> = 340 && xim (A0) <= 352) {colorWipe (& strip0, 191, 3, 0, 25);
} lwm {colorWipe (& strip0, 0, 0, 0, 25); }
}
koj tuaj yeem ntxiv ntau thiab ntau ntxiv yog cov lus hais kom ua rau lub ntsej muag paub ntau xim.
Kauj ruam 5: Yees duab
Thaum kawg raws li qhia hauv video koj tuaj yeem ntxiv cov ntawv xim sib txawv los ntsuas seb nws ua haujlwm li cas.
Pom zoo:
Txawb Xov Tooj Siv Yooj Yim Siv STM32F407 Cov Khoom Siv Tshawb Pom thiab GSM A6 Module: 14 Cov Kauj Ruam (nrog Duab)
Kev Siv Xov Tooj Ntawm Lub Xov Tooj Siv STM32F407 Cov Khoom Siv Tshawb Pom thiab GSM A6 Module: Koj puas tau xav tsim qhov kev ua kom txias txias? Yog tias yog, ua li cas txog kev tsim ib qho ntawm cov neeg nyiam tshaj plaws thiab txhua tus nyiam cov khoom siv xws li Lub Xov Tooj Txawb !!!. Hauv Cov Lus Qhia no, Kuv yuav qhia koj yuav tsim lub xov tooj txawb yooj yim siv STM li cas
Electronic Chameleon: 6 Kauj Ruam (nrog Duab)
Electronic Chameleon: Puas tau xav tsis thoob tias chameleon hloov nws cov xim li cas los ntawm kev hloov pauv ib puag ncig xim? Muaj qee yam hu ua Melanocyte Stimulating Hormone lossis MSH. Yog tias koj xav khawb ntxiv rau hauv no thov ua raws qhov Txuas no. Cov dab neeg sib nrug, Kuv xav
Rov Qab Siv Cov Duab Duab Nrog Virtual Asistent: 7 Cov Kauj Ruam (nrog Duab)
Rov Qab Siv Cov Duab Duab Nrog Virtual Asistent: Nyob zoo txhua tus! Cov lus qhia no tau yug los ntawm lub laptop faib ua ib nrab, yuav los ntawm ib tus phooj ywg. Thawj qhov kev sim ntawm txoj haujlwm no yog kuv Lego Digital Photo Frame, txawm li cas los xij, yog ib tus neeg mob siab rau Siri thiab Google Tam sim no, Kuv txiav txim siab coj nws mus rau qhov tshiab
Lub Suab Siv Cov Khoom Siv Media Siv Alexa: 9 Kauj Ruam (nrog Duab)
Lub Suab Siv Cov Khoom Siv Media Siv Alexa: Chav tsim los ntawm no ua rau koj cov cuab yeej siv xws li TV, tshuab raj, CD thiab DVD players tswj nrog lub suab txib siv Alexa thiab Arduino. Qhov zoo ntawm chav tsev no yog tias koj yuav tsum tsuas yog muab lub suab lus txib. Chav tsev no tuaj yeem ua haujlwm nrog txhua yam khoom siv tha
Tes Thib Peb ++: Kev Siv Tes Siv Ntau Rau Cov Khoom Siv Hluav Taws Xob thiab Lwm Yam Ua Haujlwm Zoo: 14 Kauj Ruam (nrog Duab)
Tes Thib Peb ++: Kev Siv Tes Siv Ntau Rau Cov Khoom Siv Hluav Taws Xob thiab Lwm Yam Ua Haujlwm Tsis Zoo: Yav dhau los Kuv tau siv tes thib peb/pab txhais tes muaj nyob ntawm cov khw muag khoom hluav taws xob thiab tau poob siab nrog lawv qhov siv tau. Kuv tsis tuaj yeem tau txais cov yeeb yaj kiab raws qhov kuv xav tau lossis nws siv sijhawm ntau dua qhov nws yuav tsum tau teeb tsa