In the previous blog (blog2), i have interfaced PIR sensor to pico. In this blog we going to add NeoPixel RGB LED RIng to the project.
NeoPixel Ring
The NeoPixel LED RIng brought from the Adafruit and this Getting Start guide really helps to add-up the LED ring into the same micro python project.
This 3 lines of code, just enables the setup for NeoPixel
The neopixel library has to be copied into the board to work
And i have changed the bgm again for this demo , Also the new speaker is used from GM, It will help for me to
wrap all the things together inside the switchboard in future. The LED ring works as expected.
Animation With NeoPixel RIng
The NeoPixel ring worked but i want to play some animation while playing the music. I made some logic
to roll the Pixel with random color values.The color values are loaded from adafruit lib.
Animation works but still i was missing something.
The Animation does not sync with the music played. To make it sync i have used loaded mp3's rms value ,
it varies with the music played. And finally the NeoPixel is animated with bgm.
Still i was thinking to introduce some more strong effect on animation. Hope i will fine tune it.
BTW the final outcome of this blog video is here
In the next blog (blog4) the breadboard will be eliminated.