i found a resource in github .it says do it like that.Okay , i will try this version
SoftwareSerial dfpSerial(10, 11);
it didn't work.dfplayer's light turns on and turns off repeatedly.And when it turns on ,speaker makes clicking sound
You may have problems using SoftwareSerial and Servo in the same sketch. Both libraries make heavy use of interrupts, and will likely interfere with each other.
what do you suggest to solve this
First thing I would do is get the dfplayer working with SoftwareSerial, by writing a small sketch that only has that part of your code in it. Once you know that is correct, then you can worry about any possible conflicts with the rest of the code.
SoftwareSerial dfpSerial(10, 11);
it didn't work.dfplayer's light turns on and turns off repeatedly.And when it turns on ,speaker makes clicking sound
Do you have the resistor in the DFplayer RX line?
You can read as many references as you like, but if a manufacturer has, for instance, swapped the processor pins used for A0 and A1 then no amount of references is going to help
no i don't
I suggest you spend some time reading DFplayer wiki page and learn how to properly use it.
But A0 and A1 and A3 will still be in the same places on the edge of the board ,clone or OEM.
Tom....
i tried with 1k registor but it didn't work again
Well maybe you damaged it when you tried to use it without the resistor. Now you will have to test the dfplayer and see if it is still good.
Just run the example code from the wiki.
i tested it ,it didn't work.I saw some videos on youtube did it without any registor and it worked
For how long?
it didn't work
Either you have it connected wrong or there are no valid files on the SD card or the dfplayer is no good.