Arduino coding
Budget: £10 – £20 GBP
I want to make a joke bin that plays a different sound effect (wav. file) upon opening the lid. The sound effects are monster growls and eating sounds, like there is a trash beast eating the rubbish.
I have chosen 23 different sound effects (wav. files). Each sound is around 5 seconds max. I want the 23 sound effects to play on rotation. For example, 1st lid opening - sound one only plays. 2nd lid opening - sound two only plays, 3rd lid opening - sound three only plays, etc. I don't want all 23 sounds to play at once - only 1 sound effect per lid opening.
I have the following components:
Magnetic reed switch to position on the bin lid.
Micro SD card shield module
CQRobot speaker - 3 Watt 8 Ohm
I need assistance with the coding and how to wire it.
I have chosen 23 different sound effects (wav. files). Each sound is around 5 seconds max. I want the 23 sound effects to play on rotation. For example, 1st lid opening - sound one only plays. 2nd lid opening - sound two only plays, 3rd lid opening - sound three only plays, etc. I don't want all 23 sounds to play at once - only 1 sound effect per lid opening.
I have the following components:
Magnetic reed switch to position on the bin lid.
Micro SD card shield module
CQRobot speaker - 3 Watt 8 Ohm
I need assistance with the coding and how to wire it.