MP3 player proximity switch

#1

Already I have a project - an artist from Ovada has just this minute described to me the following project:

She has 7 MP3 players that are going to play separate tracks on 7 separate speakers, so they are all wired up independently.

She would like to have them them each triggered by 7 proximity sensors, so that anyone visiting would hear a cacophony evolve, maybe I guess from 3-5 feet away.

Question 1: are there any cheap proximity sensor triggered MP3 players available?

If not I guess the best set up would be to have each of MP3 player running on loops and the speakers running through a switch controlled by a proximity sensor. I explained that this would be better than starting up the MP3 player if the starting point of the track wasn’t important.

Question 2: what components are required and in what configuration to make an adjustable proximity switch to power a speaker?

Anyone who has been in a gallery would appreciate having an audio based artwork which switches off when people aren’t around!

0 Likes

#2

Hugh, Ive alerted the EOF folk to your request and hope you won’t have to wait too long for some kind of answer. Also hope you’ll be visiting us in our new home soon. The premises are ready and we hope to be moving stuff in over the next few weeks.

0 Likes

#3

Hugh, any cheap mp3 player can be modified with use of a PIR sensor to do as intended:


basically you wire the sonsor into the play pause button and it will truigger play on motion.

The easiest option would be an arduino with an audio shield and the PIR sensor.

0 Likes

#4

Hugh,
if the distances are fixed, and a bit of calibration is possible, this would be possible without even a micro, just using comparators and transistors to switch the play/pause buttons.

As Jared says, you could use PIR sensors. It would also be fairly simple to use active (e.g. beam-break) IR diodes for shortish distances (again via a micro or comparators) or if that didn’t work, really fancy ultrasonic based ones (e.g. https://thepihut.com/products/ultrasonic-distance-sensor-hcsr04?variant=1054704288&gclid=CjwKCAjww6XXBRByEiwAM-ZUILIkwq5HxAoQeSUkZlQtv7gGNt29ZDT2iBHz8yNS0KMXeCmVc0LFHxoCaygQAvD_BwE#fo_c=1889&fo_k=1afe9555b5710939ca7f6ea9ff18185c&fo_s=gplauk) . These could also be done via a micro or again with some discrete logic, which would be a little more complicated in that case.

0 Likes

#5

I have a bag of ultrasonic sensors that might work for this. Should be good for 2 meters I think? I’ll have to check the specs.

0 Likes

#6

The go to solution for a lot of people right now is Sonoff which are typically 5 to 10 quid and highly programmable https://github.com/arendst/Sonoff-Tasmota/wiki/Sonoff-Basic
go look on YouTube and you will find mountain of people hacking sonoff’s esp8266 to any and every thing
for example
a how to https://www.jackenhack.com/sonoff-switch-i2c/
tips: https://www.superhouse.tv/21-six-sonoff-secrets/

0 Likes