escape room project (Adafruit_NeoPixel to NeoPixelBus) #728
Replies: 7 comments 3 replies
-
ACtually, in this version, the leds start blinking when the proper combination is entered.
|
Beta Was this translation helpful? Give feedback.
-
First thing, how to convert the strip definition from Adafruit to NeoPixelBus.
Will change to this...
|
Beta Was this translation helpful? Give feedback.
-
Next, general method names are the same, but NeoPixelBus methods will start with a capital letter. The last thing is that the method
will become...
I think that covers it. |
Beta Was this translation helpful? Give feedback.
-
NeoPixelBus should never effect WiFi, it's the other way around, using WiFi "could" effect NeoPixelBus. |
Beta Was this translation helpful? Give feedback.
-
@rheinecatsin Did you confirm that the Mac Address was updated to the one that your receiver has? This line needs to be changed to one that your receiver board has.
Note, while not critical, it usually not a good idea to share mac addresses publicly. ;-) The examples have a few things your sketch does not. They have the following between the
|
Beta Was this translation helpful? Give feedback.
-
Something else to consider, how are you powering your NeoPixels? Do not use the ESP32 boards 5v to power your pixels, use an external power connection, 8 pixels x 5 strips = 2000mA; so you will need a 2A power supply just for the NeoPixels. Most Arduinos react weird in sagging power, and the ESP32 will draw peaks of near 800ma when using WiFi radio itself. |
Beta Was this translation helpful? Give feedback.
-
So i bough a new board (a bit different but still an ESP32 with 40 pins). PLugged in only voltage from USB port and data was sending succesfully. I suppose it really was the antenna... or the board itself. In everycases, it is now WOKRING!!!! Now i just hope my machines are going to survive the 2hours road trip awaiting them!! Thank you very very very much Makuna for your support in this. I would've been devastated not to be able to do this game after spending soooooooooo many hours building it all up. Well... until something else crashes again! :))) |
Beta Was this translation helpful? Give feedback.
-
Hi!
So a few months ago someone asked me to do an escape room inside a 4story tall wizard tower. And I said yes.
Let put a locked chest on top and people will have to solve puzzles to remove magical protection on it before they can open it.
I didn't know how to code. I had never soldered. I had never used resin.
Not a single thing I did didnt hit the fan or took at least 3x the time it should've had.
Learning the hard way...
And now I have 3 different games that can open a lock chest.
But... one of them doesn't work. Well, it does. it's just that it can't send the data proving it does.
Of course, you know I'm talking about the one that uses neopixels.
Because Wifi and Neopixels don't mix well.
Until I found this librairy... 1 week before my deadline.
But I am so exhausted...
All I want is to move my code from the Neopixel standard librairy (not even using fastLed) to neopixelbus.
My code is very ugly cause I'm a nurse, not a coder.
But it's simple. 5 neopixels strips with 6-8 LEDs, incased in a resin crystal. Each are of different color and attached to a potentiometer and all is cast inside a wooden box.
Once you adjust lights and find the proper combinaison, all lights turn to white, a marker is flagged and data is sent via ESPNOW to receiver to remove one layer of magical protection from the chest.
Or so I thought.
CAuse, ofc, it's not working.
Espnow gives datafailure debug message all the time.
But... there is a new hope!
NeoPixelBus!!!
Can anyone PLEASE help me migrate my code from the standard librairy to NPB? It should be real easy.... i'm just really exhausted.
And probably tell me if i need to adjust the wiring (pots from GPIO 32,33,34,35,39 and Neopixels GPIO 5, 16,17,18,19)
I'm using and ESP32-DevKitC-32UE v4.
Thank you !
Beta Was this translation helpful? Give feedback.
All reactions