playing sounds when connecting two arduino

Hello all,

I'm new here, and need advices on my project :slight_smile:

I want to build autonomous "box" that are able to play a sound when it's moved (I've checked on the forum and it seems easy with a MP3 module and tilt detector).

The second part is to interconnect the "boxes" and play a sound which would be a mix of the sound played by the box1 and the box2.

For instance:

BOX 1 (sound SIX) - BOX 2 (sound TWO)

When you connect box 1 with box 2 ==> sound SIXTY-TWO

I've been looking for a voice synthesis module but it seems it does not exists in french ...

So I will try to do it with a MP3 module and listing all the different sound possible.

How will it be possible to detect what "sound" is "stored" on the remote box ?
Would it be possible to chain more than 2 boxes ?

I've a lot of questions and I don't really know where to start!

Thanks,
Brice

brcgnt:
I'm new here

Welcome. :slight_smile:

brcgnt:
The second part is to interconnect the "boxes" and play a sound which would be a mix of the sound played by the box1 and the box2.

How do you intend to 'interconnect'? With a cable, wireless, Bluetooth, ESP :smiling_imp:

And, having 'interconnected' you want box one to say something, and then box2 to say its thing? So box 1 will trigger box 2?

Thanks for your answer!

I was thinking starting by cable connection.
Maybe nfc would be easier?

For the sound, if box1 sound is A and box2 sound is B, I'd like the sound when they connect to be C.
And if I connect A to K, it gives me X ...

Not sure if it's clear but the idea is to have the possibility to create different combination.

For example, you take the first box "I'm box A", you take the second box "I'm box B" and when you plug A and B "we are boxes A and B"

I would like that box2 triggers box1

Thanks for your feedback :slight_smile:

which one of the 'boxes' should play the 'mixed/merged' audio file?

If box A has an ID of "A".. and by default plays audio file "A"..

If box A has an ID of "B".. (that plays audio file "B: by default)..

when boxes A & B are 'connected'... which box should play the audio file "AB"?

box A? box B? both?

oops.. sorry I just read.. it would be box "A" to play the 'merged' file.

RDIF might get pricey!.. not only that.. I'm not sure if they would work out very well?

since you'd need a reader/writer & RFID card for each box...

(maybe with the read/writer close to one side of the box.. where all 'connections' must be made.. and the RFID card on the other side (so it doesnt 'trigger' itself.. so to speak))

  • each box will need a way to define/declare itself to the other box.. once connected.

If you are going to do a 'wired' connection for now..

maybe set/define each Arduino (Pro-Mini?) with an "ID"..
and use SoftSerial (or hardware) to send its 'ID' to the other box once connection is made?..

the receiving end of the serial data can then parse the ID and play whatever file is associated with that ID combo.

Thanks for the help!

I was also wondering if it would be possible to connect A--> B but also B --> A (and read a different sound) , but also the possibility to plug A --> B --> C together (but maybe too complicated , too much combinations (sounds) to declare...)

I've seen there is a possibility to do a "master - slave" , is there possible to have a "master - slave1 - slave2" ?

Regarding the sound/music player, according to you what is the best option?

  • mp3 module with sd card ?
  • sd module and ampli module ?
  • vocal synthesis module ? (I did not find it one in French but it would be easier as I would not have to declare all the combinations availables)

Thanks for your advices!
Brice

How would you differentiate Box A connecting to Box B and vice versa? One is usually the instigator the other the listener. Unless you plugged in cables into a different socket which is by far the easiest method of doing this.

Playing sounds using an MP3 shield/module is the most straightforward method of playing sounds. However, before you rush out and buy one you could just try all this out (proof-of-concept) with a simple piezo buzzer for each box and it plays a different tone for each (eg Box A=low, Box B= high, together=mid-tone).

I'd love to know what this project is all about, French language notwithstanding!

For instance:

BOX 1 (sound SIX) - BOX 2 (sound TWO)

When you connect box 1 with box 2 ==> sound SIXTY-TWO

You sure that is right?
I make it only 12 sounds when you combine one of 6 sounds with one of two.

I was also wondering if it would be possible to connect A--> B but also B --> A

What is the physical difference between this two conditions? My guess is that there is none.

Grumpy_Mike:
You sure that is right?
I make it only 12 sounds when you combine one of 6 sounds with one of two.
What is the physical difference between this two conditions? My guess is that there is none.

Maybe I was not clear ... sorry.

If we take what I've said in the next message it's maybe more clear:

For example, you take the first box "I'm box A", you take the second box "I'm box B" and when you plug A and B "we are boxes A and B"

Ralph_S_Bacon:
Playing sounds using an MP3 shield/module is the most straightforward method of playing sounds. However, before you rush out and buy one you could just try all this out (proof-of-concept) with a simple piezo buzzer for each box and it plays a different tone for each (eg Box A=low, Box B= high, together=mid-tone).

Thanks! I did not think about this possiblity, I will begin this way!

Ralph_S_Bacon:
I'd love to know what this project is all about, French language notwithstanding!

I don't want to say too much :wink: but the main idea is to help kids learn to read. (my wife is a speech therapist)

I will order my arduinos and starter pack this week to begin with.

What board do you think would be the best option ?

Thanks,
Brice

What board do you think would be the best option ?

Go the simple route first, ie an Arduino UNO (or a clone).

If it transpires that as part of your design you realise that a Due or Mega or Micro or Nano would be more appropriate then get that when you need it, but they are more fiddly (physically) to work with (or really need a breakout board just to give you easy access to the pins). And you still have a UNO for further development!

As this is a hush-hush project that's all the advice I can give at this juncture. BTW this post will self-destruct in 10 minutes after being read... time starts NOW!