📜 ⬆️ ⬇️

Wearable Christmas garland. Controlled by Bluetooth LE



And for me, the best way to spend long, dark winter evenings is to develop algorithms for holiday illumination.

I present the open project of a New Year's garland on the basis of a LED tape with WS2812B LEDs. The garland is powered by 4 AA batteries. With the current settings, the project supports 122 LEDs on the ribbon, but it can easily be expanded to 1000 LEDs and more. Flexible reconfigurable light effects generation algorithm. The project contains a program for managing the garland from phones or tablets, compiled without modifications for iOS, Android and Windows.

The tape in my project is controlled by a K66BLEZ module with Kinetis microcontrollers.
An introduction to the K66BLEZ1 module was started in the articles:
')
- Universal controller module for the Internet of things. Breathing life
- Universal controller module for the Internet of things. FatFs Testing
- Universal controller module for the Internet of things. Basics of programming
- Module layout
- Project repository

The high-performance way to work with LED tape on the WS2812B has been described here . In this project I use the same principle. Like the STM32, the Kinetis K66 family of microcontrollers includes timers with DMA access (direct memory access bypassing the processor). This time, I use interrupts after the end of each DMA cycle to update the LED states according to the effect generator algorithm.

We join the module via the mockup:



The development board contains practically nothing but two connectors. One connector is for connecting batteries, the other is for connecting tapes.

Below is the layout scheme (clickable):



Supply voltage


An interesting feature of the tape is its ability to operate at a much lower voltage than what is written in the specification. The garland keeps working at decrease in voltage on batteries up to 2.9 V !

With fresh batteries, the garland receives a voltage of 5 V, but at the same time the control signal is fed directly from the microcontroller and has an amplitude of 3 V and there are no failures in the control of the LEDs.

This is how the work of the garland on the table in debug mode looks like:



Project sources are here - Indemsys / K66BLEZ_WS2812B_LED_strip_control .

The project consists of 3 software parts:


The project is developing. And I hope for the next New Year the garland will be controlled by voice and from the clouds.

Source: https://habr.com/ru/post/373027/


All Articles