รายละเอียดสินค้าจากร้านค้า
Overview
The WS2812B is an integrated control LED light source combining a control circuit and RGB chip into a single 5050 SMD package. Each LED is individually addressable, enabling millions of colour combinations with just a single data wire. Ideal for decorative lighting, wearables, and creative DIY projects.
Introduction
แถบ LED Strip 5V 1m 60ดวง WS2812B กันน้ำ IP65 -- แถบ LED WS2812B 5050 SMD 5V กันน้ำ IP65 ความยาว 1 เมตร จำนวน 60 ดวง ควบคุมสีแต่ละดวงได้อิสระผ่านสายสัญญาณเพียง 1 เส้น รองรับไลบรารี FastLED และ NeoPixel บน Arduino, ESP32, ESP8266 เหมาะสำหรับใช้งานกลางแจ้งด้วยมาตรฐาน IP65 ต่อพ่วงหลายแถบได้โดยใช้สัญญาณ DIN-DOUT
Features
- WS2812B 5050 SMD Addressable RGB LED -- ควบคุมแต่ละดวงได้อิสระ
- จำนวน 60 ดวง / ความยาว 1 เมตร
- แรงดันไฟเลี้ยง 5V DC
- ใช้สายสัญญาณเพียง 1 เส้น (DIN) รองรับ daisy-chain
- กันน้ำ IP65
- รองรับ FastLED, Adafruit NeoPixel library
- รองรับ Arduino Uno/Nano/Mega, ESP32, ESP8266, Raspberry Pi
Specification
- IC Type: WS2812B
- LED Type: 5050 SMD RGB
- Supply Voltage: 5V DC
- LED Count: 60
- Length: 1 เมตร
- IP Rating: IP65
- Signal Pins: VCC, GND, DIN (-DOUT for chaining)
- Protocol: Single-wire NZR
Caution ⚠
จ่ายไฟ 5V เท่านั้น -- เกินจะเสียหายถาวร
ไฟ LED ใช้กระแสสูง -- ต่อไฟตรงจาก power supply สำหรับแถบยาว ไม่ควรต่อผ่าน pin Arduino โดยตรง
ใส่ตัวต้านทาน 300-500Ω บน data line เพื่อป้องกัน ringing
ใส่ capacitor 100-1000F บน VCC/GND เพื่อป้องกัน voltage spike
กันน้ำ IP65
ตัวอย่างการใช้งาน (Demo)
ตัวอย่างโค้ด Arduino / ESP32 (FastLED)
//#define FASTLED_ESP8266_RAW_PIN_ORDER //กำหนดบรรทัดนี้หากใช้ ESP8266 หรือ NodeMCU (สำหรับ Arduino ให้เอาบรรทัดนี้ออก) #include FastLED.h #define NUM_LEDS 60 //จำนวนเม็ด LED บนแถบ LED #define DATA_PIN 7 // สำหรับ Arduino ใช้ขา digital ปกติ สำหรับ ESP8266 ให้ใช้เลขขา GPIO (ไม่ใช่ขา digital) CRGB leds[NUM_LEDS]; void setup() { Serial.begin(115200); Serial.println("resetting"); LEDS.addLedsWS2812B,DATA_PIN,RGB(leds,NUM_LEDS); LEDS.setBrightness(30); //ปรับความสว่าง 0-255 } void fadeall() { for(int i = 0; i NUM_LEDS; i++) { leds[i].nscale8(250); } } void loop() { static uint8_t hue = 0; Serial.print("x"); // สร้างสีให้วิ่งไปทางนึง for(int i = 0; i NUM_LEDS; i++) { leds[i] = CHSV(hue++, 255, 255); FastLED.show(); fadeall(); delay(10); } Serial.print("x"); // และวิ่งกลับมาอีกทางนึง for(int i = (NUM_LEDS)-1; i = 0; i--) { leds[i] = CHSV(hue++, 255, 255); FastLED.show(); fadeall(); delay(10); } } Datasheet
WS2812B Datasheet (PDF)
Manual
ดูตัวอย่างโค้ดในส่วนด้านบน หรือใช้ไลบรารี FastLED / Adafruit NeoPixel