I'm nearing the end of a music box project using the DFR Mini Player module. I removed the USB connection, which has been supplying both UNO and DFR module, and instead powered them with a regulated 5V supply. But the program does not run as soon as power is applied. I need to press the reset button.
In contrast, if I upload a simple sketch such as Blink, that runs at once on power-up.
I read that a 10K resistor was recommended from the Reset pin to 5V, but that made no difference. A brief low to the reset with a wire tapped briefly to 0V worked. But is there a widely used, reliable code-based solution please?
No! For there to be a code solution the processor needs to come out of reset and become operational running the appropriate code. There are a lot of reset ICs for microprocessors, they are inexpensive and easy to work with.
Can you please post the code that is having the problems?
Can you please post a schematic of your project?
Turns out that it was powered up, just doing no music playing. I can trigger that with button operations (although I'd prefer immediate playing). But I don't undersatnd this distinction between the behaviour directly after an upload versus applying power?
BTW, do you really think showing the 750 line working program and a complex schematic would help anyone to answer my deliberately narrow question?
But if you're just curious, here's a photo, as that's merely a few seconds work.
Thanks, yes on reflection I realised it was a rather dumb question! Sort of "Can I lift myself up by my own bootlaces?"
Turns out that it was powered up, just doing no music playing. I can trigger that with button operations (although I'd prefer immediate playing). But I don't understand this distinction between the behaviour directly after an upload versus applying power?
You HAVE a bug in your code. This is NOT a hardware issue...
In my opinion the only bad or dumb question is one that does not get asked. We all started at some point where we could not even spell reset much less know what it is. Many times we cannot see the forest because all the trees are in the way!
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.