Skip to content

mfkiwl/12Bit-Neo-Ring_STM32CubeIDE

 
 

Repository files navigation

12Bit Neo-Ring

12Bit Neo-Ring is a programmable sound reactive board with 12 full-color Neopixel leds, specially designed to be used as a wearable device or a gadget for other audio systems.

Here you can find the board schematic and sample code installed by default on the board. You can see the results in this video.

I sell on Tindie

IDE Environment

The project is created from STM32CubeIDE software.

For a different IDE, you can open the .ioc file with STM32CubeMX, change the Toolchain / IDE selection from the Project Manager tab and generate the new project structure. In this scenario is better to copy the .ioc file to a new folder before generating the project.

You can also use this repo for a VSCode version.

How sample works

Here is a good explanation of how WS281x works. If you have no experience with this leds, I strongly recommend you to read the blog before trying to modify the source code.

This sample code uses three different peripherals from the micro: ADC, TIMER and DMA. The sound is sampled by the analog-to-digital converter (ADC) with a resolution of 12bits in continuous mode. DMA is used in circular mode to save values from ADC to the memory, so no CPU computation is used for this task. Led communication is done with a Timer configured to work at 800KHz. Again, DMA is used to send data to the timer channel as a PWM signal, so the CPU is unloaded as much as possible during all the process.

Button functionality

Effect selection

Push button to switch between available effects:

Sound pressure Gauge

Half ring centered and mirrored

Half ring mirrored with rotation

Change brightness

By default brightness is configured with maximum value. To change this value press and hold button for 3 seconds. Now you can press again to set the desired value.

Wait for another three seconds without pressing the button to exit the setup with the new value applied.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 99.7%
  • Assembly 0.3%