Giter Club home page Giter Club logo

Comments (9)

rhansenne avatar rhansenne commented on August 19, 2024

Don't know about the freezing, but the incorrect looping of menu sounds is most likely due to the use of a clone DFPlayer chip. I had the same issue with the MH2024K-24SS and had to make some minor code changes to correct this.
I created the following pull request, which should fix the issue when uncommenting "DFPLAYER_CLONE" in Config_HW.
Give it a try to see if it works for you: #113

from fx-saberos.

DootSlayer99 avatar DootSlayer99 commented on August 19, 2024

It works, now it doesnt loop! Thanks a lot! I am still trying to figure out why it resets for no reason. Can it be because of fake df player?

from fx-saberos.

rhansenne avatar rhansenne commented on August 19, 2024

I can't reproduce the reset behavior. This sounds like a possible loose connection somewhere. Did you manage to track down the cause? The latest version of the code (in master) contains some further compatibility improvements for clone DFPlayer modules (such as a configurable DFPLAYER_OPERATING_DELAY in Config_HW), which may help.

from fx-saberos.

Protonerd avatar Protonerd commented on August 19, 2024

Strangely for me it resets every few secounds and will never enter the main loop. The last message I get is about the DFPlayer being initialized and then the watchdog triggers. If watchdog is not enabled, the board just freezes. I used one of my known-working sabers for this trial, which worked for years, up to the point yesterday when I uploaded the new code. Funnily even though it's my board design and a code mostly written by me, for the first time I have no idea what I could still try.

from fx-saberos.

rhansenne avatar rhansenne commented on August 19, 2024

@Protonerd does that saber still work correctly with the older v1.4 version of the code? If so, we can debug which of the recent changes may be causing the issues.

from fx-saberos.

DootSlayer99 avatar DootSlayer99 commented on August 19, 2024

Well after some testing i actually found out why it resets! The code works for me but the reason why it resets for me is because of the custom font i created on my own. I forgot to use the soundfont converter and when i used it the resetting issue was gone. Although the fake df player still reset after a couple seconds even if i use the sample soundfonts given in the master zip. Original work well though. @Protonerd perhaps there is an issue with the soundfonts you used?

from fx-saberos.

Protonerd avatar Protonerd commented on August 19, 2024

Unlikely, as I use the ones in the zip and I never had issues with them.
What do you mean it still resets every few secounds? This is what I have too, which is weird. It is in my case the watchdog barking, but it's set to 8 secs. So it should not reset at least for that amount of time, but it does. Which tells me it might be a problem with the AVR arduino package I use (the code from @rhansenne looks good for me). I need to purge my Arduino IDE installation on all machines and give it a fresh try. In the mean time let me know which IDE version and which AVR package you guys are using.

from fx-saberos.

rhansenne avatar rhansenne commented on August 19, 2024

I'm currently using Arduino IDE v2.2.2 with AVR package version 1.8.6.

from fx-saberos.

Protonerd avatar Protonerd commented on August 19, 2024

I was able to recover my saber with the last release before the recent ones. I think the problem was the AVR package, the newer ones do not have an option for the bootloader my DIYino boards are loaded with. So I went back to AVR 1.6.17 where I still found the board type Arduino/Genuino UNO, which hides the optiboot BL, which has slightly more memory left for code. With that one I was able to reload the code and now the saber works fine. Now I'm going to be more cautious and try the new features with a bare Nano board.
I'm not sure why but earlier I did not have to take care about certain libraries staying in the cache and causing compile troubles but now most of the time I need to purge the cache every time I make changes to libraries. Crazy...

from fx-saberos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.