Wireless Communication between 2 Arduino

Hello,

My daughters are attending their first comicon and are working on creating cosplay from their favorite show. I am looking into adding some interactivity for their costumes but i want to make sure I make the right decisions.

The TL:DR: I need several buttons to play different audio clips for each costume and I need to have a button on one of their costume's control a sound + make LED strip lights to flash on the other.

I've created a few projects using a nano + an YX5200 DFPlayer Mini MP3 Player, so I know how to get sound working and I know how to get the buttons working.

The main thing I haven't done before is setting up wireless communication between 2 boards. There appear to be just a mountain of options and I am really getting cross-eyed trying to figure out the best one for this use.

I have a couple ESP-wsroom-32 boards that i have not used before and a handful of nanos. My preference would be to stick to the nano since I have experience there, but I can do an ESP32 if it makes more sense.

Requirements:

  • Low enough power to run the audio and wireless for 8 hours (intermittently used) on 4 aa / 1 9v batteries (I can put the batteries on the outside of the staff so it isn't taking up room inside)
  • Small enough to fit into a 3" by 6" space
  • Can communicate wirelessly ~8 ft away from each other at a place where there is sure to be a lot of wireless interference from other devices

Costume 1: A box made up to look like a TV that will sit on daughter 1's head
Costume 2: An old timey microphone on a tall staff made of 1/2" PVC

Costume 2 will have space constraints, the other has a good amount of space. I worry a bit about bluetooth since, at least on regular devices, the connections can get funky if they get separated and need fussing with to get the connection reestablished. I definitely want to avoid fighting with it in the middle of the comicon.

Bonus Question:
Ideally I would like the buttons for costume 1 to be on the staff. I would like something that doesn't stick out super far, i have a few in mind but would welcome suggestions. I am concerned about how to attach the buttons since it seems most buttons require a nut on the back which will be very tricky to do inside the pipe. I can cut the pipe if i need to, but blech.

I appreciate any suggestions.

if you look at the Dfrobot-Dfplayer-Mini manual Fig 2.1 shows the pinout and Table 2.2 describes the pins

you can connect the Nano to the DFPlayer using serial and control it using the DFPlayer library

to control the LED strip try Adafruit_NeoPixel library

what buttons are you planning to use?

If you mean "classic Nano" how you make them communicate between two costumes? Wired?
Did I miss something?

I went back and edited the post, I am looking to communicate wirelessly, which is the main thing I am looking for help with, choosing a wireless communication method.

That sounds like an interesting project that could be a lot of fun! However, please keep in mind that we are not a free design or code-writing service, but we’re more than happy to help with your design or code, but we need you to make an initial attempt. Stating what you want as you did is a great start. Please as you design your hardware and write your code, post it along with an explanation of what’s not working properly.

  1. Show Your Work First: Before asking for assistance, make an attempt to design or write the code yourself. Share your work along with details about what isn’t working.
  2. Provide Clear Documentation: Since we can’t see your project, share an annotated schematic (best) or a clear drawing of your setup. Pictures are welcome, but avoid using Fritzing diagrams as they are wiring diagrams, not schematics, and are not ideal for troubleshooting.
  3. Include Technical Details: If there is specific hardware involved, include links to technical information. There are often many versions of similar components, so precise details are essential.
  4. Reference Resources: For additional help, check out useful links and tutorials: Useful Links on Arduino Forum.

Thanks, I've used the dfplayer and the libary before. The bigger issue I am trying to solve (I updated my post to make it more clear) is the wireless communication between the two Arduinos.

As far as buttons go, i am actually having a hard time finding a button I like. I am looking for something that can connect directly to an arduino pin but is a little discrete. I am still looking, though.

Please treat the communications as a completely different project until you can get reliable communications working in the environment you have described. Only then can you fit reliable code and electronics back into the original project.

I don't have anything to show because I am looking for advice on what kind of communication hardware would work best for what I detailed. I don't know where to start so I was hoping for some guidance like, "hey, bluetooth would be perfect for this" or "beware of the NRF24L01+, it sounds good but the connection is tenuous."

HC12's are simple to use as they have a serial interface to the Arduino.

in that case I would drop the classic nanos and move to a microcontroller with onboard WiFi such as a ESP32 or ESP8266 and use [ESP-NOW] for communication(Getting Started with ESP-NOW (ESP32 with Arduino IDE) | Random Nerd Tutorials)

e.g. ESP32 on switch press plays MP3 file using DFPlayer and displays pattern on LEDstrip
image

fits in enclosure H6"*W3"*H2"
image

Perfect! ESP-NOW is exactly the kind of communication I had in mind. I was really stuck in indecision hell, but this gets me going again.

PS: I showed my daughters this post and they were amazed.

Thank you very much.