-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Noise is inserted into audio during communication (It's playing?) #20
Comments
|
When the "Time Out!" error appears, the song is stopped before it ends, and another is started, Log result using the busy pin:
Result without using busy pin:
|
|
I'd recommend adding a small 10uf capacitor on your vcc/grn lines going to the mini player to help pool up some dedicated mA for it. Strange noises can happen when your microcontroller(s) draw mA away from the mini player without one. |
|
Hi, thanks for the suggestion, but I already had a 10uF capacitor before and after the AMS1117-3.3 regulator. I think the problem was the lack of a 5V voltage drop from Arduino's TX to the DFPlayer's RX, it was using only a 1k series resistor. After placing a 2k resistor between the RX of the DFPlayer and the GND the noise seems to have disappeared. |
|
I managed to make the code more stable, I noticed that the myDFPlayer.readState() routine shows the value 512 for the stopped state. I no longer need to use the busy pin. I updated the code, in case someone wants to try to run this. This should generate a log on the serial (USB) port that looks like this:
|
I would like to monitor the status every 1 second to see if it is playing.
I have a folder with files of small duration and others with long files, but some folders can not be played, so I can not use the continuous play commands, or play randomly, for the whole card.
I modified the example file, to randomly play some folders, but it works fine only if I use the busy pin.
I noticed that a noise appears in the audio, when the serial port is used, so I had to monitor the busy signal pin.
I've added series resistors for RX and TX, and the noise has decreased a lot, but sometimes the program reports errors such as "Time Out!", "Stack Wrong!",
How to monitor by software without causing a noise similar to the step of a wall clock in the audio?
The text was updated successfully, but these errors were encountered: