AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Spi arduino controller8/31/2023 ![]() ![]() In this case, we'll use it to toggle a digital output pin on the ATMega328p microcontroller in a highly precise manner, so that the digital signal created allows us to turn on and off a 1-by-60 array of WS2812 RGB LEDs. This technique allows us to mimic different functions of specialized hardware using software. Nevertheless, given the nature of their communication protocol (described below) this is a perfect setting for implementing a custom solution using a programming technique known as bitbanging. It should be noted that there have been successful attempts to use the SPI protocol for controlling these LEDs. Such is the case for controlling the ubiquitous RGB LEDs from WorldSemi: the WS281X series. However, there comes a time in every embedded hardware programmer's life where it is convenient or necessary to roll-up her sleeves, and crank-out her own protocol. Overview When we want a microcontroller to send/receive data to/from devices using some form of digital logic, we often do so by way of standard protocols such as SPI, I2C/TWI, UART, etc. With the hope that others find the explanation useful, we put together this Instructable with a detailed answer. ![]() Recently, we were asked by a few people how the low-level code really worked. The libraries work great, and we should try them all out. ![]() Disclaimer: over the past year, a few different libraries have been written for controlling these ubiquitous RGB LEDs by fellow makers from Adafruit, PJRC, and the FastSPI project. ![]()
0 Comments
Read More
Leave a Reply. |