My Smart Wifi Sound Level and Noise Detector

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 มิ.ย. 2021
  • A DIY device that I use around the house to monitor the sound and noise levels. Paired with Home Assistant, I trigger alerts on the TV asking to lower the volume when it gets too loud. Built using an ESP8266 board and a microphone.
    GET THE COMPONENTS
    =====================
    ╚═ Wemos d1 mini (4M version)
    ■ from MrDIY store - store.mrdiy.ca/p/wemos-d1-mini
    ■ from Amazon/AliExpress - store.mrdiy.ca/p/wemos-d1-min...
    ╚═ Microphone
    ■ from Amazon/AliExpress - store.mrdiy.ca/p/max4466-elec...
    CODE
    ==================================
    Bin file - store.mrdiy.ca/p/audio-levels...
    ( a new BIN fixing the MQTT username & password not working issue - gitlab.com/MrDIYca/code-sampl... )
    The source code for the BIN file is available for download to my TH-cam channel members as part of your membership benefits! Access it here: • Post
    Credits (videos): Dumb and Dumber (1994) & Pressmaster from Pexels
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 61

  • @arun.sekher
    @arun.sekher 27 วันที่ผ่านมา +1

    Voice-over Erratum: You mentioned the human hearing frequency range as 2 Hz to 20 KHz, but the onscreen description displays the accurate values.

  • @aitor6906
    @aitor6906 ปีที่แล้ว

    Great project. Did you manage to get the IR led working?

  • @mikepi
    @mikepi 2 ปีที่แล้ว +1

    Hello MrDIY, thank you very much for this project.
    I am experiencing network disconnections frequently. Is there a way to increase connection attempts or implement a security reset without having the code?
    Thank you
    PD: I have another mcu in the same place and it is always connected

  • @valebaronetto1688
    @valebaronetto1688 ปีที่แล้ว +2

    This in an amazing idea! Could you share the actual code? Thank you very much!

  • @nama2418
    @nama2418 ปีที่แล้ว

    Is it possible to make sound/noise specific sensors/detectors?

  • @JustinLondagin
    @JustinLondagin ปีที่แล้ว

    How sensitive is the microphone? The KY-037/038 boards do not work for normal sound monitoring. Will this pick up the sound of a shower running in the bathroom?

  • @deejayfree
    @deejayfree ปีที่แล้ว

    Hi mr diy. is there a solution to add your project as a sensor in home assistant? I tried via the config.yaml, it didn't work. I can read the topic via the mqtt utility of homeassistant

  • @feedefranke97
    @feedefranke97 ปีที่แล้ว

    Great project but i cant open the .bin, any advice?

  • @JavierGarcia-td8ut
    @JavierGarcia-td8ut 11 หลายเดือนก่อน

    I am trying to do something similar, but only I need the meassured decibels on home assitant. But when I connect the Max4466 to ADC GPIO34 I get inconsitant values... So can you share this part of the code? How to transform the raw data from MAX4466 to dB?

  • @MadsALarsen
    @MadsALarsen ปีที่แล้ว

    Hey, i cant get it to connect to mqtt, im sure its the right credetials so i don´t know why 😞if i check with mqtt explore nothing is comming out ??

  • @clintAdventures
    @clintAdventures 3 ปีที่แล้ว +2

    love it. how do you get the notifications on the tv? what intergration and/or hassio yaml code?

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว +1

      I am using an app called 'Notifications'. It is available for Android TV and FireTV (www.home-assistant.io/integrations/nfandroidtv ) and here is my YAML:
      service: notify.toshiba_tv
      data:
      message: Please lower the volume
      title: Alert
      data:
      color: red
      duration: 5
      position: bottom-right

    • @clintAdventures
      @clintAdventures 3 ปีที่แล้ว +1

      @@MrDIYca thank you.

  • @ataasgari
    @ataasgari 4 หลายเดือนก่อน

    Is the source code available? I want to add some features (reboot, change update rate and sensitivity to the config page) and few other sensors to it.

  • @ayo52
    @ayo52 ปีที่แล้ว +1

    Can we measure decibels??

  • @gnospanker
    @gnospanker 2 ปีที่แล้ว

    Great project! I have it up and running, static IP assigned, MQTT confitured, but how do I add it to Home Assistant? Is there an integration I need to add?

    • @MrDIYca
      @MrDIYca  2 ปีที่แล้ว

      Thanks. No special integration just a plain MQTT sensor to get the noise levels.

    • @gnospanker
      @gnospanker 2 ปีที่แล้ว

      @@MrDIYca Ok great! I'm using the default 1883 port for MQTT in Home Assistant. Would I input 192.168.1.x:1883 for the server or does this assume port 1883? I can't seem to get it to work either way.

    • @MrDIYca
      @MrDIYca  2 ปีที่แล้ว

      1883 is assumed. The IP is enough: 192.168.1.x

  • @liv-in-sky
    @liv-in-sky 2 ปีที่แล้ว

    thanx for sharing this - Is it possible to add a port number for the mqtt server ? I have to use port 1506

    • @MrDIYca
      @MrDIYca  2 ปีที่แล้ว

      Unfortunately not

  • @jacksonmin2058
    @jacksonmin2058 3 ปีที่แล้ว

    What pins did you use? What connections? I was actually just looking for something like this!

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว +1

      The analog pin, Power-Power and Gnd-Gnd.

    • @jacksonmin2058
      @jacksonmin2058 ปีที่แล้ว

      @@MrDIYca another basic question, but how do I actually use the bin file? I was expecting an esphome config file and I'm not quite sure how this interfaces?

    • @jakel4788
      @jakel4788 ปีที่แล้ว

      @@jacksonmin2058 you would need to flash the custom bin onto your esp device with a flashing tool. Some examples that have worked for me are tasmotizer (with the custom bin) and the Texas Instruments flashing tool. If you are comfortable with the command line then you can use esptool, which is excellent!

    • @reketekui
      @reketekui ปีที่แล้ว

      @@MrDIYca Hi i connected power from mic to wemos - > vcc to 3v -> gnd to gnd -> out to A0, i powered the wemos with usb, but i dont have sound readings... thanks

  • @cinematropic
    @cinematropic 4 หลายเดือนก่อน

    hello,
    Thank you for creating this very useful project.
    I am using direct line input without stopping through the microphone, that is, connected to direct line audio. I need to adjust the calibration values and I would need, if you were willing, to share the source code to recompile a version according to my needs.
    Thank you so much

    • @MrDIYca
      @MrDIYca  4 หลายเดือนก่อน

      Yes, the source code link is included in the description, but it's currently accessible only to all my TH-cam members. I plan to make it available to everyone in the future.

    • @cinematropic
      @cinematropic 4 หลายเดือนก่อน

      @@MrDIYca I follow him on his channel and the link is still broken

  • @CS7-_-
    @CS7-_- 2 ปีที่แล้ว

    @MrDiY
    Thanks for the project.
    How could we convert levels into db values? I know it should be possible with an extra sensor but without knowing the basis of how you calculated %levels it would be an impossible job for me :(

    • @MrDIYca
      @MrDIYca  2 ปีที่แล้ว +1

      I know it possible but it will need more calculations and calibrations. Levels are simply the plain old analog readings from the mic - sent as is.

    • @CS7-_-
      @CS7-_- 2 ปีที่แล้ว +1

      @@MrDIYca OK then I need to find another solution. Thanks anyway. Decibel is what I need 😁

  • @martin-nn5qt
    @martin-nn5qt ปีที่แล้ว

    hi all setup but mqtt will not work if i set a username and password is there any way to rectify this . thanks
    martin

  • @Veluska
    @Veluska 10 หลายเดือนก่อน

    i had problems with many water pump located outdoor, which is sometimes not running because the bearing was broken, before the bearing jamm, it will produce noise very loud, and someday it will be jamm the pum
    question is : can you make sensor for listening the noise, (low powered /solar panel -because in outdoor) and if the noise is too loud, it will sending data and warning us to repair the bearing

    • @MrDIYca
      @MrDIYca  10 หลายเดือนก่อน

      you might want to look into vibration sensors

    • @Veluska
      @Veluska 10 หลายเดือนก่อน

      @@MrDIYca the vibration sensor does not have analog, i don't know another vibration sensor that support hard n soft vibration

    • @Veluska
      @Veluska 10 หลายเดือนก่อน

      the condition, if bearing pump is almost broken because it get water or loose, it will sound very noisy.
      if i heard that noisy,i usually change it before it stuck.
      the problem is, it's located in many area,so it is good if we can monitore using sensor

  • @yerocfreq
    @yerocfreq 3 ปีที่แล้ว

    This is great! The bin file link is broken tho.

    • @MrDIYca
      @MrDIYca  3 ปีที่แล้ว

      try now

    • @yerocfreq
      @yerocfreq 3 ปีที่แล้ว

      @@MrDIYca it’s working now, thanks!

  • @user-fe5xn9yp4g
    @user-fe5xn9yp4g ปีที่แล้ว

    Is it because the MQTT of homeassistant is updated? Why can't the firmware send mqtt data?

    • @MrDIYca
      @MrDIYca  ปีที่แล้ว

      Sorry, I don't understand the question. The firmware does send MQTT data on audio level changes.

  • @cinematropic
    @cinematropic 4 หลายเดือนก่อน

    The link of your code is broken. I am suscribed of your channel

  • @tazginpax
    @tazginpax 2 ปีที่แล้ว +1

    That is an awsome idea. I was thinking about somthing similar to get notification when smoke detectors beep and i am not home. would you mind sharing the actual code, so i may compile myself? TIA

    • @MrDIYca
      @MrDIYca  2 ปีที่แล้ว

      Yes, I usually make the source code available immediately to my members/patrons but I eventually publicly release it.

    • @ahb
      @ahb 8 หลายเดือนก่อน

      @@MrDIYca I don't see the code available to subscribers. Where can we find it?

    • @MrDIYca
      @MrDIYca  8 หลายเดือนก่อน

      @@ahb Hi Alex, sorry that was not uploaded - I just added it here - th-cam.com/users/postUgkxhDSC00g-zfNG1MQulb7M5mT3ZX8BZvny ( and thank you for supporting the channel!!)

  • @whirlpoolvalley
    @whirlpoolvalley 2 ปีที่แล้ว

    All I want to do with these is just to send data to HA and show live dB ratings, is it possible?

    • @MrDIYca
      @MrDIYca  2 ปีที่แล้ว

      I don't see why you can't. Definitely doable.

  • @B0tch0
    @B0tch0 8 หลายเดือนก่อน

    Cool idea, although this microphone is absolutely garbage. Id be curious to see the evolution of the project

  • @himsfact7038
    @himsfact7038 ปีที่แล้ว

    Where buy this product

    • @MrDIYca
      @MrDIYca  ปีที่แล้ว +1

      No, they are DIY devices :)

  • @claudeliber7644
    @claudeliber7644 ปีที่แล้ว

    Hi ! Really great stuff you offer us. And it's allow me to discover ESP8266 and open me plenty ideas for my HA.
    I still got some trouble.. I got error on MQTT :
    2023-01-27 15:26:26: New connection from 192.168.30.136:63210 on port 1883.
    error: received null username or password for unpwd check
    2023-01-27 15:26:26: Client disconnected, not authorised.
    and yes there is a username and password in the setup console, same standard HA user that I use for Zigbee2MQTT.
    Any clue to gives me to help me find what I am doing wrong ?
    Thx

    • @claudeliber7644
      @claudeliber7644 ปีที่แล้ว

      Too bad, was really great but no way to get MQTT working. Moving to direct home assistant with analog input. Need to work a bit more on filter to get average value but will do the trick I think.

    • @MrDIYca
      @MrDIYca  ปีที่แล้ว

      You found a bug. It turns out I do collect and save the MQTT username and password but never pass them when doing auth. I will try to post a new bin files with the fix in the future. You can still use it with MQTT servers that don't require auth tho.

    • @MrDIYca
      @MrDIYca  ปีที่แล้ว +1

      did a quick fix but haven't tested it - here it is if you want to give it a try gitlab.com/MrDIYca/code-samples/-/blob/master/mrdiy_audio_levels_meter_mqtt_fix_untested.bin

    • @claudeliber7644
      @claudeliber7644 ปีที่แล้ว +1

      ​@@MrDIYca Thanks a lot ! This is really great. Tested and working. I got it directly in MQTT explorer. It do not create automticallly the sensor in Home Assistant, I have to check why but no time right now. But I would like to do you a first feedback as you took time to look into my problem and fix it.

    • @claudeliber7644
      @claudeliber7644 ปีที่แล้ว +1

      Just added manually the sensor
      mqtt:
      sensor:
      - name: "audio_bureau"
      state_topic: "audio/bureau"
      unit_of_measurement: "%"
      unique_id: "audio_bureau"
      And added a Jauge card. Perfect
      And now can do all automation I want !
      Thanks again for this great code and for sharing and supporting