Ws2812 Neopixel Led Strip With Esp 8266 And Nodemcu

Опубликовано: 19 Октябрь 2015
на канале: Orionrobots
66,891
420

In this video, I connect a WS2812 Neopixel RGB LED Strip to the NodeMCU (esp8266) dev board and get it light up and make light patterns using the NodeMCU Lua programming environment. Code is shown onscreen.

Links for more information on the stuff in the video
My code: https://github.com/orionrobots/esp826...
Esplorer UI: http://esp8266.ru/esplorer/
Lolin/Esp8266 Dev Board - Search for NodeMCU board
WS2812/neopixel LED Light strip - https://amzn.to/3fxAPBs
WS2812 datasheet: https://www.adafruit.com/datasheets/W...
Buying the NodeMCU - https://amzn.to/3fw1uOJ
NodeMCU API ref https://nodemcu.readthedocs.io/en/rel...

You will also need:
a multimeter: https://amzn.to/2VaYE8R
a power supply 6v or 4.5v and 1.2 amps: https://amzn.to/3l34DXJ

Note for users of loops in Lua​ - if you do not reset/feed the watchdog timer, expect your 8266 to reset! https://github.com/nodemcu/nodemcu-fi...

If you love what I build, please support me by buying my book "Learn robotics Programming", all about making a robot with the Raspberry Pi and Python, including connecting RGB strips to it at https://www.packtpub.com/hardware-and....

Shout out to Adam - who lent me a strip to play with.. ahem... get working for him...

Chapters:
00:00 Introduction - what I'm going to demonstrate.
00:40 Introducing the NodeMCU esp8266 Dev Board (Lolin) and it's IO pins.
01:11 Introducing the WS2812 Neopixel RGB LED Strip
01:34 Theory on connecting power to the ESp8266 NodeMCU development board - measuring with the multimeter.
01:53 Making the connections from the WS2812 RGB LED Strip to the Esp8266 NodeMCU dev board
02:16 Checking connections with the multimeter - skipping this step may lead to problems later.
02:40 Checking the NodeMCU API documents at https://nodemcu.readthedocs.io/en/rel... then writing the code to turn a Single ws2812 RGB LED on.
03:03 Troubleshooting - why did nothing happen when I sent this code?
03:22 Troubleshooting - Checking for a voltage drop - is there enough power in the circuit for this light?
04:09 Troubleshooting - Measuring the voltages again with the esp8266 board on its own.
04:24 Plan B - do I need to power the ws2812 led strip separately? Note the common ground!
04:40 Plan B - choosing a DC supply with 6v and 1.2 amps. (4.5v works too)
05:05 Trying again - setting an RGB LED to Red. - success!
05:15 Programming a sequence of 3 colors for the RGB led strip in Lua on the esp8266 NodemCU
05:39 Getting it to do something fancy - purple (ish) - RGB(255, 0, 255)
05:54 Turning an RGB LED off - string.char(0, 0, 0)
06:11 Demonstrating animated lights chasing on the Ws2812 RGB LED Strip - why does this reboot now? (Hint - it's the watchdog timer)
06:42 Getting a closer look at the Lolin NodeMCU ESP8266 module
07:07 Getting a closer look at the Ws2812 neopixel RGB LED Strip
07:18 Close up of the wire connections between the WS2812 LED Strip and the ESP8266 Nodemcu Lolin board - Ground, data pin.
08:10 Close up of the five cables coming out of the WS2812 LED Strip - the 2 thicker wires for the higher current power supply needed for the LED"s.
08:41 Why you must make sure the ground is connected through when using an external power supply for driving the WS2812 addressable RGB LED strip from the ESP8266 NodeMCU.
08:55 Once programmed - I drive the connected LEDs and ESP8266 from a single power supply.
09:18 Why is the NodeMCU stopping after 1 second? troubleshooting the watchdog timer.
09:42 Introducing the idea of ESP8266 NodeMCU alarms/timers instead of a Lua while loop - let NodeMCU call you.
10:08 Demonstration of the animated LEDs - Larson Scanner style.
10:38 How to stop alarms and timers in NodeMCU Lua on the esp 8266
10:48 How much illumination do you get from a strip of 29 ws2812 addressable RGB LED's? introducing the Lua String repeat function.
11:15 Demonstration of string rep in Lua code for bright white ws2812 LEDs.
11:51 Reducing the intensity of white colour in WS2812 RGB LED's using Lua on the NodeMCU.
12:22 Outtro - hope you've enjoyed this WS2812 RGB LED Video plus a sneaky idea about using the LED strip data-out pin to drive another device.

Rest of the Orionrobots esp8266 series:    • esp8266 WiFi Microcontroller and NodeMCU  
Previous Video:    • esp8266 and Led made into recording l...   - Esp8266 and LED made into recording Light.
Next Video:    • NodeMCU Esp8266 with Neopixel 8x8 Panel   - NodeMCU Esp8266 with Neopixel 8x8 Panel

Help to translate this video! http://www.youtube.com/timedtext_cs_p...

This is purely for fun and exploration. This is not a paid placement for any products.


Смотрите видео Ws2812 Neopixel Led Strip With Esp 8266 And Nodemcu онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Orionrobots 19 Октябрь 2015, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 66,891 раз и оно понравилось 420 людям.