I wanted to make the speaker play some music in the bathroom whenever the light turned on. My set up is:
9V battery >Power bit> Light sensor>Mp3 player>Speaker
There has been some weird buzzing coming from the speaker even if the lights are off. This generally happens after the lights have been off for some time (around 1-2 hours).
There is also a background buzzing from the speaker even when the mp3 track is playing.
I have tried cleaning the contacts and nothing has changed.
Anyone know what the problem might be?
I recorded the strange buzzing here.
You can hear the buzzing at the beginning when the lights are off.
Thanks in advance for your help!