Driving WS2812B LEDs using I2S on the Nordic nRF52832

image description

In this article, I use the I2S peripheral of the Nordic nRF52832 to generate the waveforms required to drive the popular WS2812B RGB LEDs.

http://electronut.in/nrf52-i2s-ws2812/

Parents
  • Thanks Mahesh, even after three years I can also port it to the latest SDK with minor changes.

    For those of you who might need some hints from this page later, the nrf_drv_i2s_start API has changed a little bit and the following modification will make it work again:

    nrf_drv_i2s_buffers_t const initial_buffers = {
    .p_tx_buffer = &m_buffer_tx[0],
    };
    err_code = nrf_drv_i2s_start(&initial_buffers, I2S_BUFFER_SIZE, 0);
    APP_ERROR_CHECK(err_code);

Comment
  • Thanks Mahesh, even after three years I can also port it to the latest SDK with minor changes.

    For those of you who might need some hints from this page later, the nrf_drv_i2s_start API has changed a little bit and the following modification will make it work again:

    nrf_drv_i2s_buffers_t const initial_buffers = {
    .p_tx_buffer = &m_buffer_tx[0],
    };
    err_code = nrf_drv_i2s_start(&initial_buffers, I2S_BUFFER_SIZE, 0);
    APP_ERROR_CHECK(err_code);

Children
No Data