FabianRig / ArduinoMoonBoardLED

LED system compatible with MoonBoard based on Arduino Nano 33 BLE
GNU General Public License v3.0
66 stars 14 forks source link

wrong starting- and finishing holds light up, but problem holds work fine #15

Closed MartinWein closed 9 months ago

MartinWein commented 9 months ago

Hi Fabian, first of all: Thank you very much for publising your project and the perfect documentation of it!!! I did everything exactly as you explained and I really had a lot of fun building and programming. I have one strange mistake which reason I cannot find a all. All problem LEDs light up perfectly. But the starting- + end holds are lighted wrong. To be more exact, the number of the LED that is lighting up is one too low. The finishing hold that is lighted is always one coloum to far to the left (e.g. finishing hold is B18 but A18 lights up). When I placed the LEDs I used the Moonboar App hold positioning function. I found out that to light A1 the second LED of the string went on, so I skipped the first LED of the string and now the function to show the individual holds works also fine. Do you have an idea how I can solve this problem? Thank you so much for your great work again!!! Greetings from bavaria Martin

FabianRig commented 9 months ago

Hi Martin,

Thanks. I'm really happy that the project got so much traction.

From what I understand, either the LEDs are installed incorrectly or the mapping is off. You could try to adjust the LED mapping. Have a look at config.h (https://github.com/FabianRig/ArduinoMoonBoardLED/blob/main/src/config.h), line 23. Just remove "0, " at the beginning and add ", 199" at the end.

Best regards,

Fabian

MartinWein commented 9 months ago

Hi Fabian, thank you very much for your support!! My programming skills are unfortunately pretty basic. So I cannot really understand your arrays in config.h, even with your comments. But actually I share your opinion that it must have to do something with my LEDs .I tried different methods for quite some time today. Your suggested method did not help, but edditing line217 into: strip.SetPixelColor((lednumber+1), green); and line 237 into: strip.SetPixelColor((lednumber+1), red); brought the success. What still is misterious to me is that now my starting holds light blue, problem holds red, and finishing holds green. But that doesn't really matter at all and I had a really good bouldering session today and learned a lot about programming. Many thanks again!

Best regards

Martin