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.

  • partial_accumen@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    11 days ago

    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.

    • cmnybo@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      5
      ·
      11 days ago

      Reed switches aren’t that sensitive. The magnet usually has to be within a centimeter or so from the switch to operate it.

    • einfach_orangensaft@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      5
      ·
      11 days ago

      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.

      • prenatal_confusion@feddit.org
        link
        fedilink
        English
        arrow-up
        2
        ·
        11 days ago

        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

        • einfach_orangensaft@sh.itjust.worksOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          11 days ago

          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

          • prenatal_confusion@feddit.org
            link
            fedilink
            English
            arrow-up
            2
            ·
            11 days 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.

  • OwOarchist@pawb.social
    link
    fedilink
    English
    arrow-up
    3
    ·
    11 days ago

    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.)

      • OwOarchist@pawb.social
        link
        fedilink
        English
        arrow-up
        4
        ·
        11 days ago

        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.

  • Alexander@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    2
    ·
    11 days ago

    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.

    • einfach_orangensaft@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 days ago

      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

      • Alexander@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        1
        ·
        11 days 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.