Тёмный

Get Started Using WS2812B LED's With an Arduino and FastLED 

Tony Tascioglu
Подписаться 4 тыс.
Просмотров 4,5 тыс.
50% 1

In this video, I explain how pixel addressable RGB LED's such as the WS2812Bs work, and how you can control them from an Arduino using the FastLED library. I show how to install the FastLED library as well as get started using it with some demos. I go over the advantages as well as limitations of addressable RGB LED's and how we interact with them (data vs clock+data, etc).
This video is the first in my 2 part series on using WS2812B LEDs with an Arduino.
Next video will be on writing your own programs and patterns using the FastLED library to control the LEDs, rather then just demos to get up and running.
Watch part 2 here:
• How To Program WS2812 ...
peertube.tonytascioglu.com/vi...
Components used:
- Generic WS2812B 30 LED/m strip
- Generic Arduino Uno with Atmel 328p
- FastLED library
I won't add any links for purchasing, this video is not sponsored and all components were supplied by myself, but make sure you choose a reputable source for parts!
Links:
Arduino: www.arduino.cc
FastLED: fastled.io
Supported LEDs: github.com/FastLED/FastLED/wi...
Code/issues: github.com/FastLED/FastLED
Timestamps:
00:00 - Intro
00:21 - Note on 2 part series
01:05 - [Overview] Why use addressable LEDs?
02:25 - [Overview] Types of addressable LEDs
03:44 - [Overview] Controlling LEDs: FastLED Library
04:16 - [Overview] Steps/Parts
04:49 - [Overview] Applications
05:24 - [Overview] Limitations
07:12 - [Overview] Power usage
08:58 - [Overview] Extra precautions
09:30 - [Hardware] Parts needed
10:23 - [Hardware] Other LED strip options
11:10 - [Hardware] Data direction close up
11:50 - [Hardware] Arduino board options
13:17 - [Hardware] Other misc parts
14:14 - [Hardware] Pinout of LED strip/wires
18:15 - [Hardware] Wiring/hooking it up
19:48 - [Software] Introduction
20:05 - [Software] FastLED library installation
20:48 - [Software] Testing our LEDs
21:34 - [Software] Code examples
24:05 - [Software] Running DemoReel
25:24 - [Software] FirstLight example
26:25 - [Software] ColorPalette example
28:50 - Concluding remarks
29:37 - Credits and links
Music:
Approaching Nirvana:
approachingnirvana.com
open.spotify.com/artist/3sS2Q...
/ approachingnirvana
Song: Worth a Thousand Pictures (Lapse in Time)
If there are any mistakes or bad practices I mentioned in the video, please leave a comment and I'll try to pin a compilation of updates.
Production rants/remarks:
- Sorry for the buzzing microphone through part of the video. I tried using a shotgun microphone for the first time rather then my jankier previous setups, and the combination of zipties to mount the microphone the tripod, and noisy circuitry in the dummy battery I used made it come out buzzy.
- Filmed on a Sony SLT-A33 (and Samsung MiniDV camera). Takstar microphone for A footage, and Fifine condenser microphone for all software shots using OBS.
- A33 does not have a clean HDMI output, so we're stuck with the aperture and shutter speed with the HDMI capture card... (It also doesn't read the sensor at full-res unless filming, but then it overheats)
Watch this video on Peertube:
peertube.tonytascioglu.com/vi...
Thanks for Watching!
Produced by Tony Tascioglu
tonytascioglu.com

Наука

Опубликовано:

 

4 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@TonyTascioglu
@TonyTascioglu 3 года назад
For mobile users: In this video, I explain how pixel addressable RGB LED's such as the WS2812Bs work, and how you can control them from an Arduino using the FastLED library. I show how to install the FastLED library as well as get started using it with some demos. I go over the advantages as well as limitations of addressable RGB LED's and how we interact with them (data vs clock+data, etc). This video is the first in my 2 part series on using WS2812B LEDs with an Arduino. Next video will be on writing your own programs and patterns using the FastLED library to control the LEDs, rather then just demos to get up and running. Components used: - Generic WS2812B 30 LED/m strip - Generic Arduino Uno with Atmel 328p - FastLED library I won't add any links for purchasing, this video is not sponsored and all components were supplied by myself, but make sure you choose a reputable source for parts! Links: Arduino: www.arduino.cc FastLED: fastled.io Supported LEDs: github.com/FastLED/FastLED/wiki/Overview Code/issues: github.com/FastLED/FastLED Timestamps: 00:00 - Intro 00:21 - Note on 2 part series 01:05 - [Overview] Why use addressable LEDs? 02:25 - [Overview] Types of addressable LEDs 03:44 - [Overview] Controlling LEDs: FastLED Library 04:16 - [Overview] Steps/Parts 04:49 - [Overview] Applications 05:24 - [Overview] Limitations 07:12 - [Overview] Power usage 08:58 - [Overview] Extra precautions 09:30 - [Hardware] Parts needed 10:23 - [Hardware] Other LED strip options 11:10 - [Hardware] Data direction close up 11:50 - [Hardware] Arduino board options 13:17 - [Hardware] Other misc parts 14:14 - [Hardware] Pinout of LED strip/wires 18:15 - [Hardware] Wiring/hooking it up 19:48 - [Software] Introduction 20:05 - [Software] FastLED library installation 20:48 - [Software] Testing our LEDs 21:34 - [Software] Code examples 24:05 - [Software] Running DemoReel 25:24 - [Software] FirstLight example 26:25 - [Software] ColorPalette example 28:50 - Concluding remarks 29:37 - Credits and links Music: Approaching Nirvana: approachingnirvana.com open.spotify.com/artist/3sS2Q1UZuUXL7TZSbQumDI ru-vid.com Song: Worth a Thousand Pictures (Lapse in Time) If there are any mistakes or bad practices I mentioned in the video, please leave a comment and I'll try to pin a compilation of updates. Production rants/remarks: - Sorry for the buzzing microphone through part of the video. I tried using a shotgun microphone for the first time rather then my jankier previous setups, and the combination of zipties to mount the microphone the tripod, and noisy circuitry in the dummy battery I used made it come out buzzy. - Filmed on a Sony SLT-A33 (and Samsung MiniDV camera). Takstar microphone for A footage, and Fifine condenser microphone for all software shots using OBS. - A33 does not have a clean HDMI output, so we're stuck with the aperture and shutter speed with the HDMI capture card... (It also doesn't read the sensor at full-res unless filming, but then it overheats) Watch this video on Peertube: peertube.tonytascioglu.com/videos/watch/24b7e27c-33c0-464e-82a7-8f8bf68d9890 Thanks for Watching! Produced by Tony Tascioglu tonytascioglu.com
@tomalchowdhury3980
@tomalchowdhury3980 3 года назад
So nice tony... It was very helpful. Many many thanks and good wishes for u.
@jeremyuzan1169
@jeremyuzan1169 2 года назад
Very complete explanation hahaha ! Sometimes a little long but very precise and interesting at the same time
@alish2001
@alish2001 3 года назад
OMG POG
@jeremyuzan1169
@jeremyuzan1169 2 года назад
Niiiiiice !!!
@noithugian494
@noithugian494 3 года назад
Do you have to make about DMA transmission by SPI and USART controller LED RGB?
@TonyTascioglu
@TonyTascioglu 3 года назад
I have looked into DMA on the Arduino I in the past, it's not in my list of future videos I have planned though. I've found that it isn't very well documented, and I also haven't had a use for it yet. I don't see how it would apply to RGB LED controllers at first glance though. I haven't encountered LED controllers that used SPI - and even used SPI, I don't think it would need direct memory access, since they don't need high performance, it transfers relatively low amounts of data. Could you clarify what you are referring to?
@respectthedripkaren4515
@respectthedripkaren4515 3 года назад
I also use the WS2812B and I even connected them like you did, but my Arduino shuts off, if I plug it into the pc, when I connect the 5V and the GND. Do you know how I can fix this?
@TonyTascioglu
@TonyTascioglu 3 года назад
The Arduino shutting off is rather concerning. The first 2 things that come to mind is that is could be either a short-circuit somewhere in the LED strip, or the voltage is dropping below ~4V and the Arduino shuts off since it can't run at that voltage. My first question would be how many LED's are you trying to run? Most USB ports can only provide 500 mA, of which the Arduino can only pass through a fraction of. If you're running like a 5m strip, then it's probably the 2nd and the voltage is probably dropping. That can also be bad for the USB port. If you're running a short strip, then you can check for shorts using a multimeter. Either use the diode mode if your multimeter has one or the resistance mode to check the resistance/path between the 5v and ground pin on the LED strip. Since those LED strips are all wired in parallel, 1 LED being a dud and having a short means the whole strip doesn't work. I've had to desolder a faulty LED from a strip that was essentially causing a short to get the LEDs to light up.
@jackieyi769
@jackieyi769 3 года назад
:O
@TonyTascioglu
@TonyTascioglu 3 года назад
:O
@knnurl
@knnurl 2 года назад
hll
Далее
КТО ЭТО БЫЛ?
25:31
Просмотров 1 млн
FastLED Basics Episode 1 - Getting started
17:59
Просмотров 270 тыс.
HOW TO USE WS2812B NEOPIXELS WITH FASTLED ON ARDUINO
24:32
FastLED Basics Episode 2 - Color: RGB and HSV
16:37
Просмотров 98 тыс.
Beginner's Guide to Using LED Strips with Arduino
8:59
Arduino To ESP32: How to Get Started!
9:26
Просмотров 237 тыс.
Custom Keyboard From Scratch Part 2
17:13
Просмотров 28 тыс.
Power LED Lights + Injection. Complete Walkthrough
16:16
Best mobile of all time💥🗿 [Troll Face]
0:24
Просмотров 2,3 млн
ПОКУПКА ТЕЛЕФОНА С АВИТО?🤭
1:00