Mündəricat:

Bluetooth ilə LED Cihaz: Başqa Bir Ölçü Məkanına Giriş: 6 Addım
Bluetooth ilə LED Cihaz: Başqa Bir Ölçü Məkanına Giriş: 6 Addım

Video: Bluetooth ilə LED Cihaz: Başqa Bir Ölçü Məkanına Giriş: 6 Addım

Video: Bluetooth ilə LED Cihaz: Başqa Bir Ölçü Məkanına Giriş: 6 Addım
Video: Leap Motion SDK 2024, Iyun
Anonim
Bluetooth ilə LED Cihaz: Başqa Bir Ölçü Məkanına Giriş
Bluetooth ilə LED Cihaz: Başqa Bir Ölçü Məkanına Giriş

Bu Müqəddəs Obyekt adlı heykəltəraşlıq layihəm üçün bir LED işıq cihazı sənət əsəridir. Yeni bir dünyaya giriş təqdim etmək üçün bu cihazı istifadə edirəm. LED işığını yandırdığımda, beton qutunun içərisində sonsuz bir tunel görürük. LED şeridi telefonumdakı bluetooth vasitəsilə idarə olunur. Amazonda bütün materialları aldım.

Materiallar:

- Arduino Uno

-LED şeridi

-9v batareya

-DSD Tech SH-HC-08 Bluetooth 4.0 BLE qul modulu

-330 Ohm müqavimət

- iPhone

-Beton

-Akril

-Pəncərə filmi (bir tərəfli güzgü)

-ikiqat yan güzgü filmi

Addım 1: Dövrə Dizaynı

Dövrə Dizaynı
Dövrə Dizaynı
Dövrə Dizaynı
Dövrə Dizaynı

Dövrəni belə işlədirəm. Beyin dalğalarının hərəkətini simulyasiya etmək üçün bir ardıcıllıq da yaratdım.

İlk görüntü LED şerit dövrəsidir.

İkinci şəkil Bluetooth dövrəsidir. İPhone -da tətbiq BluetoothLED -dir.

Addım 2: Arduino Kodu

#daxil edin

#define LED_PIN 7 #NUM_LEDS 60 CRGB led [NUM_LEDS] təyin edin;

boş quraşdırma () {pinMode (LED_PIN, ÇIXIŞ); Serial.begin (9600); FastLED.addLeds (ledlər, NUM_LEDS); }

void setBlue (int val) {for (int i = 0; i <NUM_LEDS; i ++) {leds = CRGB (0, 0, val); } FastLED.show (); } boşluq döngəsi () {

if (Serial.available ()) {val = Serial.read (); } if (val == 'H') {leds [0] = CRGB (0, 0, 0); FastLED.show (); led [1] = CRGB (0, 0, 0); FastLED.show (); led [2] = CRGB (0, 0, 0); FastLED.show (); led [3] = CRGB (0, 0, 0); FastLED.show (); led [4] = CRGB (0, 0, 0); FastLED.show ();

led [5] = CRGB (0, 0, 0); FastLED.show ();

led [6] = CRGB (0, 0, 0); FastLED.show ();

led [7] = CRGB (0, 0, 0); FastLED.show ();

led [8] = CRGB (0, 0, 0); FastLED.show ();

led [9] = CRGB (0, 0, 0); FastLED.show ();

led [10] = CRGB (0, 0, 0); FastLED.show ();

led [11] = CRGB (0, 0, 0); FastLED.show ();

led [12] = CRGB (0, 0, 0); FastLED.show ();

led [13] = CRGB (0, 0, 0); FastLED.show ();

led [14] = CRGB (0, 0, 0); FastLED.show ();

led [15] = CRGB (0, 0, 0); FastLED.show ();

led [16] = CRGB (0, 0, 0); FastLED.show ();

led [17] = CRGB (0, 0, 0); FastLED.show ();

led [18] = CRGB (0, 0, 0); FastLED.show ();

led [19] = CRGB (0, 0, 0); FastLED.show ();

led [20] = CRGB (0, 0, 0); FastLED.show ();

led [21] = CRGB (0, 0, 0); FastLED.show ();

led [22] = CRGB (0, 0, 0); FastLED.show ();

led [23] = CRGB (0, 0, 0); FastLED.show (); led [24] = CRGB (0, 0, 0); FastLED.show ();

led [25] = CRGB (0, 0, 0); FastLED.show ();

led [26] = CRGB (0, 0, 0); FastLED.show ();

led [27] = CRGB (0, 0, 0); FastLED.show ();

led [28] = CRGB (0, 0, 0); FastLED.show ();

led [29] = CRGB (0, 0, 0); FastLED.show ();

led [30] = CRGB (0, 0, 0); FastLED.show (); led [31] = CRGB (0, 0, 0); FastLED.show ();

led [32] = CRGB (0, 0, 0); FastLED.show ();

led [33] = CRGB (0, 0, 0); FastLED.show (); led [34] = CRGB (0, 0, 0); FastLED.show ();

led [35] = CRGB (0, 0, 0); FastLED.show ();

led [36] = CRGB (0, 0, 0); FastLED.show ();

led [37] = CRGB (0, 0, 0); FastLED.show ();

led [38] = CRGB (0, 0, 0); FastLED.show ();

led [39] = CRGB (0, 0, 0); FastLED.show ();

led [40] = CRGB (0, 0, 0); FastLED.show ();

led [41] = CRGB (0, 0, 0); FastLED.show ();

led [42] = CRGB (0, 0, 0); FastLED.show ();

led [43] = CRGB (0, 0, 0); FastLED.show (); led [44] = CRGB (0, 0, 0); FastLED.show ();

led [45] = CRGB (0, 0, 0); FastLED.show ();

led [46] = CRGB (0, 0, 0); FastLED.show ();

led [47] = CRGB (0, 0, 0); FastLED.show ();

led [48] = CRGB (0, 0, 0); FastLED.show ();

led [49] = CRGB (0, 0, 0); FastLED.show ();

led [50] = CRGB (0, 0, 0); FastLED.show ();

led [51] = CRGB (0, 0, 0); FastLED.show ();

led [52] = CRGB (0, 0, 0); FastLED.show ();

led [53] = CRGB (0, 0, 0); FastLED.show (); led [54] = CRGB (0, 0, 0); FastLED.show ();

led [55] = CRGB (0, 0, 0); FastLED.show ();

led [56] = CRGB (0, 0, 0); FastLED.show ();

led [57] = CRGB (0, 0, 0); FastLED.show ();

led [58] = CRGB (0, 0, 0); FastLED.show ();

led [59] = CRGB (0, 0, 0); FastLED.show ();

gecikmə (100); } başqa {üçün (int i = 255; i> 0; i--) {setBlue (i); gecikmə (10); } üçün (int i = 0; i <255; i ++) {setBlue (i); gecikmə (10); }}}

Addım 3: Konteyner hazırlayın

Konteyner hazırlamaq
Konteyner hazırlamaq
Konteyner hazırlamaq
Konteyner hazırlamaq
Konteyner hazırlamaq
Konteyner hazırlamaq

Qutu betondan hazırlanmışdır. Beton tökmək üçün boş bir qutu etmək üçün köpük lövhələrdən istifadə edirəm. Ən az 24 saat qurudun.

Addım 4: Lazerlə kəsmə

Lazer kəsmə
Lazer kəsmə
Lazer kəsmə
Lazer kəsmə
Lazer kəsmə
Lazer kəsmə

Şəkil çəkmək beton qutuya uyğun gəlir və Lazer kəsmə ilə kəsilir.

Bunu qutunun içərisində fərqli bir boşluq yaratmaq üçün istifadə edirəm: əks sahə və dövrə boşluğu. Akril kvadratların hər birinə bir tərəfli güzgü pəncərə filmi və ikiqat yan güzgü filmi qoydum.

Addım 5: LED şeridi

LED şeridi
LED şeridi
LED şeridi
LED şeridi
LED şeridi
LED şeridi

(Qutunun altından baxın)

Tək tərəfli güzgü filmini əvvəlcə qoyuram, aynanın tərəfi qutunun içərisinə baxır. Və LED şeridi üçün yarı şəffaf bir boru yaratmaq üçün çərçivəyə ağ rəng səpin və qutunun ortasına qoyun.

Addım 6: Dövrə

Dövrə
Dövrə

İkiqat yan güzgü akrili LED -in üstünə qoyun və dövrəni bağlayın.

Tövsiyə: