In my current project I'm using an Arduino BLE Sense 33 together with the picovoice porcupine wakeword engine, which is working great. However I want to be able to play prerecorded audio files (minimum 2) after a wakeword got recognized by the arduino.
I've got a DFPlayer mini here which would work perfectly for this I guess. The only problem I have is that the Serial ports RX and TX are already in use by an ESP8266 (ESP01 in specific) to get the Arduino WiFi capabilities.
Question: Can it still be done to control the DFPlayer with serial in parallel to the ESP Wifi breakout?
If not I figured that the DFPlayer can also be played by grounding specific pins for a short time.
If I ground the Pin ADKEY_1 manually by a jumper cable the first file 0001.mp3 plays, if I ground the ADKEY_2 pin, the second plays. But if I try to replicated this by the Arduino by
Software Serial is already in use for the ESP AT commands. Or do I understand something wrong here? This is what the library WifiESPAT uses: SoftwareSerial Serial1(6, 7); // RX, TX
Taken from the Arduino docs, there is no real SoftwareSerial on the BLE 33 Sense:
The USB connector of the board is directly connected to the native USB of the NINA B306 module. This routing enables you to use the Arduino Nano 33 BLE Sense as a client USB peripheral (acting as a mouse or a keyboard connected to the computer) or as a USB host device so that devices like a mouse, keyboard, or an Android phone can be connected to the Arduino Nano 33 BLE. This port can also be used as a virtual serial port using the Serial object in the Arduino programming language. The RX0 and TX1 pins are a second serial port available as Serial1.
I think I can't use other pins as serial ports, right? I'm already using Serial1 for the ESP
I see nothing in the text you quoted that says you can't use software serial. And, anyway, didn't you say in your last post that you are using software serial (on pins 6,7) already for the esp?
I think you have already proved that you can, by using software serial on pins 6, 7!