Orodha ya maudhui:

RGB LED Adaptive Camouflage (kinyonga) Kutumia Ebot / Arduino: Hatua 5 (na Picha)
RGB LED Adaptive Camouflage (kinyonga) Kutumia Ebot / Arduino: Hatua 5 (na Picha)

Video: RGB LED Adaptive Camouflage (kinyonga) Kutumia Ebot / Arduino: Hatua 5 (na Picha)

Video: RGB LED Adaptive Camouflage (kinyonga) Kutumia Ebot / Arduino: Hatua 5 (na Picha)
Video: Health2Home - Mushroom Ultrasonic USB Air Humidifier / Diffuser- FIRST USE 2024, Novemba
Anonim
RGB LED Adaptive Camouflage (chameleon) Kutumia Ebot / Arduino
RGB LED Adaptive Camouflage (chameleon) Kutumia Ebot / Arduino
RGB LED Adaptive Camouflage (kinyonga) Kutumia Ebot / Arduino
RGB LED Adaptive Camouflage (kinyonga) Kutumia Ebot / Arduino
RGB LED Adaptive Camouflage (kinyonga) Kutumia Ebot / Arduino
RGB LED Adaptive Camouflage (kinyonga) Kutumia Ebot / Arduino
RGB LED Adaptive Camouflage (chameleon) Kutumia Ebot / Arduino
RGB LED Adaptive Camouflage (chameleon) Kutumia Ebot / Arduino

Huu ni mradi mzuri na rahisi. Inatumia sensa ya rangi kuhisi rangi ya asili na kuionyesha kwenye ukanda wa RGB LED.

Nilitumia Mdhibiti Mdogo wa Ebot lakini unaweza kutumia mdhibiti mwingine yeyote kama vile arduino uno.

Hatua ya 1: Kusanya Vifaa

Kusanya Vifaa
Kusanya Vifaa

Vipengele vya elektroniki: -

1 x Ebot Microcontroller (unaweza pia kutumia arduino au mdhibiti mwingine yeyote)

1 x Sura ya rangi

1 x RGB Ukanda wa LED

6 x Jumper waya

Kwa kupima unaweza kupata karatasi tofauti za rangi.

Hatua ya 2: Sanidi

Sanidi
Sanidi

Usanidi ni rahisi sana

1. chukua RGB LED na solder waya tatu za kuruka kwenye GND, Do, na + 5v na uziunganishe kwenye pini ya GND, pato 0 pini, na pini 5v mtawaliwa kwenye microcontroller.

2. Ifuatayo na sensor ya rangi unganisha faili ya

Pini ya GND GND kwenye microcontroller

pini ya voltage ya pini ya voltage kwenye microcontroller

pini A0 kwenye mdhibiti mdogo

Hatua ya 3: Mkutano

Mkutano
Mkutano
Mkutano
Mkutano

Baada ya kumaliza na usanidi ambatisha sensa ya rangi kwenye ukanda unaotazama chini.

Hatua ya 4: Kanuni

Kanuni
Kanuni

{// Utangulizi ebot_setup ();

// Njia za siri

strip0. anza ();

strip0. onyesha ();

pinMode (0, OUTPUT); // RGB ya LED

pinMode (A0, INPUT); // Sura ya Rangi

}

kitanzi batili ()

{ikiwa (rangi (A0)> = 182 && rangi (A0) <= 279) {colorWipe (& strip0, 0, 45, 97, 25);

} vingine ikiwa (rangi (A0)> = 79 && rangi (A0) <= 149) {colorWipe (& strip0, 0, 105, 14, 25);

} vingine ikiwa (rangi (A0)> = 21 && rangi (A0) <= 43) {colorWipe (& strip0, 255, 221, 0, 25);

} vingine ikiwa (rangi (A0)> = 340 && rangi (A0) <= 352) {colorWipe (& strip0, 191, 3, 0, 25);

} mwingine {colorWipe (& strip0, 0, 0, 0, 25); }

}

unaweza kuongeza zaidi na zaidi ikiwa taarifa za kufanya sensorer ione rangi zaidi.

Hatua ya 5: Video

Image
Image

Mwishowe kama inavyoonyeshwa kwenye video unaweza kuongeza karatasi tofauti za rangi ili kujaribu jinsi inavyofanya kazi.

Ilipendekeza: