gpstar81 / GPStar-proton-pack

GPStar Proton Pack and Neutrona Wand
https://www.gpstartechnologies.com
GNU General Public License v3.0
38 stars 9 forks source link

Afterlife and frozen empire outer cyclotron lights inop. #403

Closed seattlebuster closed 1 month ago

seattlebuster commented 1 month ago

What actions were attempted?

Flashed to latest firmware on pack and wand. Updated sounds. Now outer cyclotron lights only work on 1984 and 1989. Afterlife and FE won’t work. I checked my eprom that I have the correct stock led option for number of leds. Super weird.

What actually happened?

Cyclotron lights only work on 84 and 89 modes.

What was expected?

Normal operation of lights from the movie .

Firmware Version

Latest as of today.

Mode in Use

Mode Original (Prop)

Notable Hardware

Stock, plus inner cyclotron ring.

Homework Completed

seattlebuster commented 1 month ago

Also updated esp32 firmware. All configs via WiFi show afterlife settings and proper led counts. Odd

seattlebuster commented 1 month ago

I am also on the original setup using a mega board and wav trigger. Wand is using gpstar board and wav trigger. All cyclotron lights worked on previous firmware. Works in 84/89 mode, just not afterlife or FE.

nomakewan commented 1 month ago

When you say "previous firmware" which specifically are you referring to? Additionally, are you seeing this behavior when turning on the pack from the ion arm switch, from the wand, or both?

seattlebuster commented 1 month ago

I believe 5.3. I don't remember. But I think it was from August .

nomakewan commented 1 month ago

Very strange; I am unable to replicate your report. Additionally without knowing what the previous firmware was, it's hard to say what actually changed. A firmware several months old was before a lot of changes were implemented, such as the change to default to the Frutto upgrades if you don't have a GPStar Lite kit and your EEPROM is on all defaults, and the change in how the ramp up/down outer cyclotron ring simulation works.

Since you say you updated the ESP32 and have it installed, I suggest you make sure that all the LED settings are correct for your setup, and that you then change another setting such as disabling the ring simulation and then save settings and commit to EEPROM. Once done, power cycle the pack. Does it work again?

EDIT: I just did repeated tests on my bench. I wiped the EEPROM completely to simulate what would happen when updating to 5.4.2 from 5.3.0, then fired up. The web interface correctly reported that it was now defaulting to the 36-LED outer cyclotron and the 15-LED powercell. After changing it to 12-LED for the outer cyclotron, it correctly updated the LED count, update delays, and color representation commands and both with and without ring simulation, the 3-LED pattern played.

EDIT 2: Wait. You said you're on an actual Arduino Mega? Which pinout are you using? Is there a chance you're using the old-old-old pinout that had the cyclotron lid detection on Pin D51?

What does the status page on the web UI say about your proton pack? Does it say "Cyclotron Exposure Warning"?

seattlebuster commented 1 month ago

I'll need to check when I get home. No idea on the pinout, I might have switched it over a long time ago. The lid lights worked on the last firmware. So odd that it works in 84/89 mode.

I'll keep checking, I should switch my main board out to the gpstar. I was one of the early folks to do the hardwire method a couple of years ago. Lots of soldering ahead to swap to the new board.

I'll upload screenshots of my packs UI on the esp32 when I get home.

nomakewan commented 1 month ago

The reason I ask about the pinout is that there is a bug if I simulate removing the cyclotron lid. But in fact the bug is that the 84/89 outer cyclotron lights up at all. It shouldn't, but it does due to an oversight in how the 84/89 outer cyclotron code works (it doesn't check for the lid status when turning on/off LEDs, only for fading them). In fact, if I disable "Center LED Fade Effect" in the Proton Pack settings, I can replicate your bug report perfectly (84/89 works fine, AL/FE fails to light up).

This, coupled with the fact that there was indeed a change in how the pin for the cyclotron lid detection works between the original DIY Mega build from 2022 and now, makes me think that perhaps that is the culprit. But we will find out shortly. :)

If that is indeed the problem though, not a worry. I can compile you a version that works with the old pinout.

seattlebuster commented 1 month ago

I'd rather switch the pinout so that it works with future firmwares. I'll check for sure. I don't necessarily want to replace the board since I cut all of the connectors to make it work on the mega shield. That would be a ton of soldering

seattlebuster commented 1 month ago

I have a wire connected to d51. So where should I place it now?

nomakewan commented 1 month ago

I have a wire connected to d51. So where should I place it now?

You should connect it to D43.

seattlebuster commented 1 month ago

That was it! Forgive me lol. I did not get the memo of the change.

I really need to move over to the gpstar board.

nomakewan commented 1 month ago

Glad it was something simple! And it inspired me to look into the cyclotron code some more and patch up some stuff related to the lid detection, so all good!