I am working on a little amplifier that changes volume through a stepper motor when a sound is being made near the microphone.
I got two codes now:
- one allowing the arduino to play music through the adafruit waveshield.
- the other making the stepper motor move after a sound has been detected by the mic.
These two codes seperately work fine but when I try to implement one in the other the whole mic and stepper motor code doesn't seem to do anything.
The arduino will stil play music but the stepper motor won't move anymore.
Any ideas on how to combine the two?
volume_control.ino (528 Bytes)
musica_2_0.ino (2.54 KB)