Mundarija:

Bluetooth bilan LED qurilmasi: boshqa o'lchovli maydonga kirish: 6 qadam
Bluetooth bilan LED qurilmasi: boshqa o'lchovli maydonga kirish: 6 qadam

Video: Bluetooth bilan LED qurilmasi: boshqa o'lchovli maydonga kirish: 6 qadam

Video: Bluetooth bilan LED qurilmasi: boshqa o'lchovli maydonga kirish: 6 qadam
Video: Telefonning 15 ta siz bilmagan maxfiy kodlari/Телефоннинг сиз билмаган 15 та махфий кодлари 2024, Iyun
Anonim
Bluetooth bilan LED qurilmasi: boshqa o'lchovli maydonga kirish
Bluetooth bilan LED qurilmasi: boshqa o'lchovli maydonga kirish

Bu "Sacred Object" nomli haykaltaroshlik loyiham uchun LED yorug'lik moslamasi san'at asari. Men ushbu qurilmadan yangi dunyoga kirish uchun foydalanmoqdaman. Men LED chiroqni yoqsam, biz beton quti ichida cheksiz tunnelni ko'ramiz. LED chizig'i telefonimdagi bluetooth orqali boshqariladi. Men Amazonda barcha materiallarni sotib oldim.

Materiallar:

- Arduino Uno

-LED chizig'i

-9V batareya

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

-330 Ohm qarshilik

- iPhone

-Beton

-Akril

-Deraza oynasi (bir tomonlama oynali)

-Ikki tomonlama yon oynali plyonka

1 -qadam: O'chirish dizayni

O'chirish dizayni
O'chirish dizayni
O'chirish dizayni
O'chirish dizayni

Men aylananing ishlashini shunday qilyapman. Men, shuningdek, miya to'lqinlarining harakatini simulyatsiya qilish uchun ketma -ketlikni yaratdim.

Birinchi rasm - bu LED tasmasi.

Ikkinchi rasm - bu Bluetooth davri. IPhone -dagi ilova BluetoothLED.

2 -qadam: Arduino kodi

#qo'shing

#define LED_PIN 7 #NUM_LEDS 60 CRGB led [NUM_LEDS] ni belgilang;

void setup () {pinMode (LED_PIN, OUTPUT); Serial.begin (9600); FastLED.addLeds (LEDlar, NUM_LEDS); }

void setBlue (int val) {for (int i = 0; i <NUM_LEDS; i ++) {leds = CRGB (0, 0, val); } FastLED.show (); } void loop () {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

kechikish (100); } boshqa {uchun (int i = 255; i> 0; i--) {setBlue (i); kechikish (10); } uchun (int i = 0; i <255; i ++) {setBlue (i); kechikish (10); }}}

3 -qadam: konteyner tayyorlash

Konteyner tayyorlash
Konteyner tayyorlash
Konteyner tayyorlash
Konteyner tayyorlash
Konteyner tayyorlash
Konteyner tayyorlash

Quti betondan qilingan. Men beton bilan quyish uchun bo'sh quti yasash uchun ko'pikli taxtalardan foydalanaman. Kamida 24 soat quriting.

4 -qadam: lazerni kesish

Lazerli kesish
Lazerli kesish
Lazerli kesish
Lazerli kesish
Lazerli kesish
Lazerli kesish

Shaklni chizish beton qutiga mos keladi va uni lazerli kesish bilan kesing.

Men buni qutidagi turli joylarni qatlamlash uchun ishlataman: aks ettirish maydoni va elektron maydoni. Men akril kvadratlarga bir tomonlama oynali oynani va ikki tomonlama oynali plyonkani qo'yaman.

5 -qadam: LED chizig'i

LED tasmasi
LED tasmasi
LED tasmasi
LED tasmasi
LED tasmasi
LED tasmasi

(Qutining pastidan ko'rish)

Men bir tomonlama oynali plyonkani birinchi o'ringa qo'yaman, ko'zgu tomoni qutining ichiga qaraydi. Va LED tasmasi uchun yarim shaffof naycha yaratish uchun ramkaga oq rang seping va qutining o'rtasiga qo'ying.

6 -qadam: O'chirish

O'chirish
O'chirish

Ikkita yon oynali akrilni LEDning yuqori qismiga qo'ying va elektronni ulang.

Tavsiya: