Magnetic bass detection? (sh.itjust.works)
submitted 5 months ago* (last edited 5 months ago) by to c/electronics@discuss.tchncs.de
 

I want to count and log the BPM of a rather large bass speaker (250-400W RMS range i assume).

BUT there is a mostly wooden/stone wall (~40cm) between me and the speaker + a 50cm air gap.

I managed to detect the speaker with a normal microphone, but that gets confused once there are other noises like talking or foot steps in the room.

So my idea was to build a large coil around some graphite rod to build a sensor for electromagnetism. Then connect that to a audio amp and feed the result into a audio card microphone input.

Would that maybe work? Any guesses how far the magnetic field of a bass speaker is detectable? How much wire should i use for the coil?

Edit:

So i found this video https://www.youtube.com/watch?v=83edokt3K5c of someone using a giant coil to pick up a very small speaker from a few feet away, so i assume its 100% possible, and the speaker i am trying to pick up has like 200-300x the power of what he is picking up in the video.

all 16 comments

sorted by: hot top controversial new old
[–] 4 points 5 months ago* (1 child)

If you just want the count and not the strength or waveform, I wonder if the magnetic field from the voice coil of the speaker would be strong enough to trigger a reed switch at that distance. A common reed switch has a top switching speed between 100Hz to 500Hz, which is within the 20Hz to 250Hz of human hearing bass.

  • source
  • hideshow 1 child comment
  • [–] 4 points 5 months ago (4 children)
  • [–] [S] 5 points 5 months ago (3 children)

    Yeah very very much so, for years, they only shut up when i bang the sealing, they love loud EDM at 3am in the morning and i kinda wana automate the sealing banging part now.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 5 months ago (2 children)

    Warum brauchst du den bpm part? Reicht das nicht ein accelerometer an einem esp um das zu erfassen? Oder Mikro oder vergleichbares

    Das klopfen dann über was separates mit Motor und Relais

  • source
  • parent
  • hideshow 2 child comments
  • [–] [S] 2 points 5 months ago (1 child)

    Mit dem BPM part will ich sicherstellen das es sich wirklich um musik handelt, und dachte daran das klopfen jedesmal im selbem BPM wie die musik zu machen aber mit phasenversatz, quasi wie ein echo

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 5 months ago

    Haha gute Idee. Aber auch das geht mit einem accelerometer ohne den grossen Aufwand. Dann Signal Filtern und du hast was du brauchst. Hort sich komplex an aber gibt's garantiert schon Bibliotheken für einschlägige maker boards.

  • source
  • parent
  • [–] 3 points 5 months ago (3 children)

    Maybe just stick with audio recording, but use a more directional microphone? (And use foam to isolate it from any vibrations in the walls/floor.)

  • source
  • hideshow 3 child comments
  • [–] [S] 2 points 5 months ago (2 children)

    Directional gets kinda tricky in the low frequency range :/

  • source
  • parent
  • hideshow 2 child comments
  • [–] 5 points 5 months ago (1 child)

    Interferometry, maybe?

    Two microphones, side by side. Signals that come from directly in front (or directly behind, unfortunately) will hit both microphones simultaneously. But sounds coming from the side or any other angle will hit each microphone at slightly different times. If you then have a hardware or software solution to filter out any sound waves that don't match, you've got a highly directional microphone that should work well in any frequency range. (Can also use this setup with 3 microphones if it needs to be 3D and filter out noise from above and below as well.)

    There are commercially available setups that do this, but in theory it shouldn't be too hard to build your own, either. I mean, in theory, you could just feed the outputs of both mics through an and-gate transistor into a single output, and that very simple hardware would do the filtering for you -- you'll only get the outputs from when both mics pic up the same sound at the same time.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 5 months ago (2 children)

    Could be doable with just a hall sensor chip, you have one in your phone, just check it out quickly. Large coil will probably catch slow vibrations too. Also try just filtering audio signal, like get only sustained bass sound, footsteps and voice have short lived low frequency components compared to most music except for percussion I suppose.

  • source
  • hideshow 2 child comments
  • [–] [S] 1 point 5 months ago (1 child)

    I tryed with the magnetometer in my phone before and sadly it didnt pick up anything, i think the polling rate may be to low too. But ima search around for some more sensitive hall effect sensors

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 5 months ago

    Ok, I've done experiment myself; it was a dumb idea. Sure I can see the bass beat on smarthone hall sensor as sharp periodic spikes... from few cm away of the coil.

    Thing is, any measurable signal outside of coupled system is essentially power loss, which industrial made speakers are, obviously, optimized against. The field loops back into the magnetic drive through the shortest achievable path. Then, it's not your typical radiative EM system, it's low frequency near field transmission - field drops exponentially as you move away from the coil.

    Most probably, you'd need to measure long periodic signal, do lots of oversampling, etc. to gen anything. Or build a high fidelity resonator to steal the field from the speaker - essentially, same thing, except the resonator will probably start singing, too.

    So I'd give up on magnetic approach; why go for counteroptimized signal when you have optimized acoustic field? Just analyze it - look for sustained harmonic vibrations, fat envelopes so different from human voice barking and foorsteps; EDM are full of those nice sounds.

  • source
  • parent
  • [–] 1 point 5 months ago (1 child)

    @einfach_orangensaft
    How about a magnetic telephone pickup coil?

    Not recommending this one in particular - just an example that wasn't from amazon.

    https://www.elliottelectronicsupply.com/telephone-pickup-coil-suction-cup.html

    TBH I'm not sure if there's enough magnetic leakage from the voice coil in a speaker for this to work.

  • source
  • hideshow 1 child comment