Hi! I'm relatively new to the electrical field so please excuse my lack of understanding of certain things. Anyway, I've been trying to get an ATTINY84 to work with a DFPlayer Mini, however, I haven't been successful at this since the software serial communication doesn't seem to work correctly. I've researched about this problem and have found many resources, but many of the sources conflict with each other or are outdated, and thus I've been left confused about how to fix this issue.
Here is my code:
#include "SoftwareSerial.h"
#include "DFRobotDFPlayerMini.h"
const int tx = 6;
const int rx = 7;
SoftwareSerial mySoftSerial(rx, tx);
DFRobotDFPlayerMini myDFPlayer;
void setup() {
pinMode(rx, INPUT);
pinMode(tx, OUTPUT);
mySoftSerial.begin(9600);
myDFPlayer.begin(mySoftSerial);
myDFPlayer.volume(9);
}
void loop() {
myDFPlayer.play(1); // Just play the first audio in the file every 15 seconds
delay(15 * 1000);
}
Also, an off-topic question, but what is the maximum voltage that can go through the usable pins for an ATTINY84 when used as input?
Thanks in advance! : )