Hello, looking for initial guidance to start thinking in the correct direction. I was curious on how one might approach the following parameter? I am not looking for specific code just some thoughts to refine my research.
I have six sounds each located on it's individual pin of a sound module. The sounds can each be played from it's own switch. I would like to have 1 switch - and when depressed - will randomly select on of the 6 sounds available?
The project is basically a 'talking' Magic 8 ball.
Initially, I am thinking to have the Arduino to provide a random "HIGH" on a selected pin when a button is depressed. If possible, that "HIGH" would go to the base of a transistor - acting as a gateway - then allow sound to be played from the sound module.
Not sure yet...waiting on a few parts still. As an example, if I have a LED on pins 3, 5 and 6... would (random) allow if the button is depressed (digitalread) that a random code could be generated to set one of those pins to "HIGH"?