How to Use a Microphone with Arduino (Lesson #12)

Sdílet
Vložit
  • čas přidán 9. 09. 2024

Komentáře • 52

  • @thomaswade3072
    @thomaswade3072 Před rokem +5

    to avoid the angle bracket restriction you can put in a placeholder alternative ascii, then have users do a find & replace!

  • @keter5367
    @keter5367 Před rokem +3

    FINALLY YOU ARE BACK I LOVE YOUR VIDEOS THX alot for your content keep it up man

  • @milk6-
    @milk6- Před 6 měsíci +5

    you didnt upload the code? What a pain..

  • @Brandon-qp7gq
    @Brandon-qp7gq Před 11 měsíci

    This is a great demo, thank you! you could consider doing an analog write to the LEDs so their brightness isn't binary, but rather can have brightness values between completely on and completely off, for a more granular view of the audio information

    • @Science.Buddies
      @Science.Buddies  Před 11 měsíci

      Yes, we have a separate tutorial earlier in this playlist on LED dimming with analogWrite. You can mix and match pretty much any combination of inputs and outputs (e.g. you could also use the microphone to control a motor).

  • @BMonsterLaboratory
    @BMonsterLaboratory Před rokem +1

    Thanks for the great video!

  • @Uilyam719
    @Uilyam719 Před rokem +3

    What oscilloscope are you using in this video I can see that it is the Hantek 2d42 oscilloscope but is it the 3 in 1 or just the normal one? Also good job you made this in a very comprehensive way! also is that an Arduino uno?

    • @Science.Buddies
      @Science.Buddies  Před rokem +1

      It's a Hantek 2D42 with oscilloscope, multimeter, and function generator capabilities: hantek.com/products/detail/13174, and yes that's an Arduino UNO R3.

    • @Uilyam719
      @Uilyam719 Před rokem

      @@Science.Buddies Thank you very much. Have an amazing day!

  • @aydinsbuildingsupply3146
    @aydinsbuildingsupply3146 Před 10 měsíci +1

    Im am building the sound following robot and the code is confusing im using the sample code but i dont know what to put for the put your own algorithm here and there is no instructions on how to do it

    • @Science.Buddies
      @Science.Buddies  Před 10 měsíci

      Hi - this is a more advanced project and while we provide code to get you started, writing an algorithm for your robot to navigate based on sound is up to you. You may find the playlist for our self-driving car project helpful, particularly the last video about designing an algorithm: czcams.com/play/PLlBVuTSjOrckzVWHWOYAkyKoQZhmoqH1S.html&si=gNi5u2sG76Af2eIU. That project uses different sensors (not microphones) but the same concepts apply. If you find the code confusing, we recommend going back and starting with the basics in our Arduino tutorial playlist instead of jumping right to using a microphone: czcams.com/play/PLlBVuTSjOrclb0iCMSRpS_H1lSrlSVeEm.html&si=agNaKx8BUkgo1aSZ

  • @ben-zz2rm
    @ben-zz2rm Před 4 měsíci

    It seems fairly straight forward except I cannot get mine to work. I have what I think is a mic "Module min sound sensor" is this the same thing as a mic? Looking at the serial readout, there is no fluctuation in the reading, about 337 which is the baseline. Cannot get any fluctuation in the leds. Why does the analog pin A1 not get a mention as an INPUT ?
    Thank you., Ben

    • @Science.Buddies
      @Science.Buddies  Před 3 měsíci

      Hi - you may have more luck getting an answer for a question like this in the official Arduino forums where you can post your code and pictures of your circuit, we are unable to do much troubleshooting in CZcams comments.

  • @diba2963
    @diba2963 Před rokem +1

    Hi Sir, thanks for the video, quick question:
    If I want to filter the frequencies of the sensor from a recording, can I use a software to do so ? I am thinking on that as a budget option to avoid the osciloscope, would that be possible and precise ?

    • @Science.Buddies
      @Science.Buddies  Před rokem

      Hi - if you Google things like "Arduino digital filter" or "Arduino low pass filter" it looks like there are some options out there, but we have not tested any of them. Another option would be to design a hardware filter using resistors and capacitors.

  • @ShauryaGarg123
    @ShauryaGarg123 Před 7 měsíci +1

    I have arduino nano can you tell me how to connect it and i want that when a specific word is said the motor stats

    • @Science.Buddies
      @Science.Buddies  Před 7 měsíci

      Hi - all our tutorials are for the UNO so you will need to look up a separate tutorial on using the nano, however we have this project about making a voice controlled lamp which you could also apply to a motor: czcams.com/video/C0IAQzxgQa8/video.htmlsi=3P0MoP-Cd2oWCWbn

    • @ShauryaGarg123
      @ShauryaGarg123 Před 7 měsíci +1

      Thanks for the reply but i have already watched the video but the problem is i don't have a voice recognition module and thats too expensive here so i am finding an alternative and i got to connect a mic directly to arduino tell me if you can help

    • @ShauryaGarg123
      @ShauryaGarg123 Před 7 měsíci +1

      So i can use arduino Uno also but tell me how can i connect a motor and use this in my project

    • @Science.Buddies
      @Science.Buddies  Před 7 měsíci

      Hi - we can't provide individual help with projects like this, you may be able to get help on the official Arduino forums or other forums like Stackexchange or Reddit. You can also ask an AI program like ChatGPT but the results may vary (they do not always give working code but they may give you an idea of how to get started).

  • @hieuvu388
    @hieuvu388 Před 8 měsíci

    Hi there, thanks for the video. Do you have other videos where you do the sampling or determining the frequency content of the sound?

    • @Science.Buddies
      @Science.Buddies  Před 8 měsíci +1

      Unfortunately we don't have our own video on this, but you should be able to find other tutorials covering that online.

  • @nothiiinggss2819
    @nothiiinggss2819 Před 7 měsíci

    We need to test the microphone before we begin to the sound tracking robot in oscilloscope like your example? Or we can proceed to creating the sound following robot?

    • @nothiiinggss2819
      @nothiiinggss2819 Před 7 měsíci

      Without testing it?

    • @Science.Buddies
      @Science.Buddies  Před 7 měsíci

      The oscilloscope in this video is just a demonstration about how the microphone works, you do not need an oscilloscope to do the project.

  • @starelectronic2581
    @starelectronic2581 Před rokem +1

    Greetings, can the MAX4466 microphone amplifier module be connected to the phone? [To record sound] (because the microphone path is far, you should use the MAX4466 module) [Of course, with a separate 5V power supply] Thank you 🙏

    • @Science.Buddies
      @Science.Buddies  Před rokem

      Hi - you would need to check this microphone's documentation to see if you can connect it to a phone, but if you just need to record sound with a phone (and not use an Arduino) it would probably be easier just to buy a microphone/headset with a headphone plug.

    • @starelectronic2581
      @starelectronic2581 Před rokem

      Thank you 🙏 What kind of microphone amplification (preamplifier) ​​should I use?? (the path is 15 meters and only with a condenser microphone it has hissing and jamming sound) Thank you very much 🙏

    • @starelectronic2581
      @starelectronic2581 Před rokem

      Thanks 🙏, what kind of microphone amplifier should I use? (The route is 2 meters high and with only capacitive microphone (secret microphone) with a scratch and noise)🙏

    • @Science.Buddies
      @Science.Buddies  Před rokem +1

      Hi - we're unable to provide direct support for electronics projects like this, but there are forums online like Reddit or Stackexchange where you may be able to find help.

    • @starelectronic2581
      @starelectronic2581 Před rokem

      Thank you very much for your guidance🙏🌹😊👍

  • @spectatorsturner
    @spectatorsturner Před 8 měsíci

    I need your help to teach me how to connect a sound module to a dc motor by having at play music and run the motor at the same time.

    • @Science.Buddies
      @Science.Buddies  Před 8 měsíci

      Hi - we can't provide help for individual projects, but we'd recommend starting with our Arduino tutorial playlist at the beginning to get more familiar with different topics: czcams.com/play/PLlBVuTSjOrclb0iCMSRpS_H1lSrlSVeEm.html&si=Y7NdShl__lHQ7EaJ

  • @diba2963
    @diba2963 Před 11 měsíci +1

    Hey Mr, just got your same Hantek osciloscope but it is either detecting lot of noise and not detecting my sounds or if channel is in 1.0V there’s no signal detected, I’ve tried a sensor which I had to solder and an already soldered sensor, same result.
    Any idea on what could be happening?
    Thanks.

    • @Science.Buddies
      @Science.Buddies  Před 11 měsíci

      Hi - setting up an oscilloscope properly can be tricky if you don't have experience using one, so there's a chance your hardware is actually fine but the oscilloscope settings are wrong. I would recommend using analogRead with the Arduino to see if you're getting any voltage out of the microphone, in which case the oscilloscope is probably not set up properly. If you don't get a reading from the Arduino either, then something might be wrong with the microphone or how it is wired.

    • @diba2963
      @diba2963 Před 11 měsíci

      @@Science.Buddies Hi!
      It is definitely tricky tricky, I am connecting the arduino board with the sensor connected and I’m getting lectures, so my next question is that in case I can’t configure the osciloscope can I use the data plotter and sampling the sound to substitute the osciloscope ?

    • @Science.Buddies
      @Science.Buddies  Před 11 měsíci

      The Arduino serial plotter is not as full-featured as an oscilloscope (it is hard to adjust the scaling) but yes it can function as a basic oscilloscope.

  • @abode579
    @abode579 Před 8 měsíci

    How can I use a speaker instead of lamps to hear the sound through the microphone?

    • @Science.Buddies
      @Science.Buddies  Před 8 měsíci

      Hi - we don't have our own speaker tutorial yet, but if you look at our Arduino playlist (linked in the description) we have a tutorial about buzzers that you can use to play basic sounds: czcams.com/video/gj-H_agfd6U/video.htmlsi=dHOFnc9yvSO4kRMP

  • @liadkojokarokoren3312
    @liadkojokarokoren3312 Před 10 měsíci

    Can you explain what is the 1023 in the code? and where did you get it from?

    • @Science.Buddies
      @Science.Buddies  Před 10 měsíci +1

      The Arduino's analog to digital converter (ADC) is 10-bit, meaning it can have 2^10 different possible values. 2^10 is 1024, but it starts counting at 0, so the maximum value is 1023. Since the ADC accepts analog voltages between 0-5V, a physical value of 5 volts will correspond to an ADC value of 1023.

  • @andoykisheakate1674
    @andoykisheakate1674 Před rokem

    what does delta mean?

  • @rodo19724
    @rodo19724 Před 4 měsíci

    Hi ! I am trying to send data thru one arduino to another, but using two handys, Baofeng BF999-s, it can transmit up to 10 km. so, I need to convert data from arduino to handy mic and in the other site receive data from handy speaker and through arduino turn it into data again, like Rattlegram, but I need to control for example a relay, with Rattlegram I can`t do that, can you help me ?

    • @Science.Buddies
      @Science.Buddies  Před 4 měsíci

      Hi - you will probably have more luck asking this question on the official Arduino forums.

    • @rodo19724
      @rodo19724 Před 4 měsíci

      @@Science.Buddies NAAAAAAAAA.........

  • @kazerovixen1
    @kazerovixen1 Před 9 měsíci

    where to find the diagram and code please?

    • @Science.Buddies
      @Science.Buddies  Před 9 měsíci

      Hi - we don't have the code and diagram available separately for all our tutorial videos, you just have to pause the video to see the diagram or copy over the code.

  • @ARandomHumanBein
    @ARandomHumanBein Před rokem

    how are you avoiding white noise

  • @sadnicolas4386
    @sadnicolas4386 Před 3 měsíci +1

    very cool video thanks bro
    im laying i dont like that shit at all

  • @armaganoner6678
    @armaganoner6678 Před 4 měsíci

    Hello,
    I want to create an audio recorder circuit with Arduino Uno. I will use Max4466. However, I'm getting the following error. I've done a lot of research but haven't found any solution. Do you have any advice on this?
    C:\Users\Armagan\Documents\Arduino\test-ayse\test-ayse.ino: In function 'void loop()':
    C:\Users\Armagan\Documents\Arduino\test-ayse\test-ayse.ino:62:9: error: 'class TMRpcm' has no member named 'startRecording'
    audio.startRecording(file_name, sample_rate, mic_pin);
    ^~~~~~~~~~~~~~
    C:\Users\Armagan\Documents\Arduino\test-ayse\test-ayse.ino:69:9: error: 'class TMRpcm' has no member named 'stopRecording'
    audio.stopRecording(file_name);
    ^~~~~~~~~~~~~
    Multiple libraries were found for "SD.h"
    Used: C:\Users\Armagan\Documents\Arduino\libraries\SD
    Not used: C:\Users\Armagan\AppData\Local\Arduino15\libraries\SD
    exit status 1
    Compilation error: 'class TMRpcm' has no member named 'startRecording'

    • @Science.Buddies
      @Science.Buddies  Před 4 měsíci

      Hi - you may have more luck asking this question on the official Arduino forums.