Hello Again!
Got the correct battery from digikey, everything seems nominal as far as sound, trigger responds.
I just realised that I guess I put the magnet for the Hall effect sensor the wrong way. going to try and heat and remove the glue and flip it around! other then that everything looks and responds beautifully! (Such an amazing project youve created!)
I think my real question is: The color scheme of the LED's seems completely off in comparison to what yours show in your videos. It flashes a cotton candyish yellow, pink and blue, a white that whips around back and forth (looks cool) but no solid blue across all 3 barrel strips like in the main picture
Is it something that can be fixed from trying to wipe the board or am I wrong in my assertion?
As always any information would be greatly appreciated
Thanks!


I figured it out Andrew!
I was overcomplicating it apparantly. All i had to do was change the following declarations, and then add an extra int like you said
This is the special line of code that makes it all work
from :
barrel = neopixel.NeoPixel(bar_pin, bar_pixels, brightness=1.0, auto_write=False)
to:
barrel = neopixel.NeoPixel(bar_pin, bar_pixels, brightness=1.0, pixel_order=neopixel.RGBW, auto_write=False)
It now lights up perfectly without a hitch! Thank you for your patience and helping me out!!!!!!!! :)
Cancel that, I found out how to make RED, Yellow, and Green! atleast on the Dial
RED = (255, 0, 0, 0)
YELLOW = (255, 0, 255, 10)
GREEN = (0, 0, 255, 0)
Now my only question left is: is there any other functions that would need to be changed (such as the math functions) to make the barrel match up with how the dial looks now?)
So I seem to keep getting mixed information about setting up 4 diode Neopixels and I feel kind of stuck (and I know this isnt in the original design so forgive me!)
https://docs.micropython.org/en/latest/esp8266/tutorial/neopixel.html
In the link it is saying to declare neopixels that have more then 3 lights/diodes like the example below.
However, the forums of adafruit are saying to you have to import it at the top of the code with a specific declaration to RGBW either at
import neopixel.RGBW
or as a variable
ORDER = neopixel.RGBW or neopixel.GRBW
I think im getting alittle closer but trying to implement an additional int into some of the code (and if it needs to be added also where there are math functions being called) has been super tricky.
For tonight, im stumped!
import machine, neopixel>>> np = neopixel.NeoPixel(board.Pin(4), 8, bpp=4)
Hello again!
So it seems when declaring a 4th value uptop in the code once I put it on the board and turn the dial all the way to the right, I get no lights from what ive tested so far. I can move the 255 value to different positions of the 3 and I can get red and green from it.
With the code as it is now(the way you wrote it) Ive got yellow and pink and baby blue in the barrel at idle with the dial from left to right being light pink/red, blue, and nothing for the right one (Could be a faulty LED on my behalf).
Ill keep trying to feel my way around the correct colors. Itd be way easier if there was a RGBW Color code calculator lol!
That makes perfect sense!
C# is my native programing language but the python syntax looks extremely similar so I understand whats happening atleast!
in your one declaration of code (def white_wave) you have a locally declared int for white. Would I also need to change that? or can I just change all integers that are calling colors to have 4 different values and declare another at the top for white?
For example
RED = (255, 0, 0, 0)
YELLOW = (255, 255, 0, 0)
GREEN = (0, 255, 0, 0)
WHITE = (255, 255, 255, 255)
Worst case scenario it will be some trial and error, as I couldnt research much regarding how to talk to RGBW LED's (Whoops on my part!)
Thanks!
Because this strip have an additional LED Color, would that change anything regarding what is required for programming them? when I get home from work im going to try adjusting the RGB Int's to see what happens but if not:
Because this strip have an additional LED Color, would that change anything regarding what is required for programming them? when I get home from work im going to try adjusting the RGB Int's to see what happends but if not:
Are you referring to the jumper from the video that jumps from A2 on the amplifer to the ground? Because that one is installed unless you are referring to a different location?
Thanks!
That's strange. It's hard for me to tell what's going on. You should be seeing 5 distinct modes, each with a different color. It sounds like the "white_wave" mode is working. Assuming you bought genuine Adafruit RGB NeoPixel LEDs, that's a good sign. That means all 3 color diodes are working (R+G+B=White). If you're not seeing 5 modes, you might have a bad pot. This is also assuming that plugging in the battery with the wrong polarity didn't mess something up! Try adding a jumper wire from A2 to GND and you should get a light blue with no animation.