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

Поділитися
Вставка
  • Опубліковано 16 гру 2024

КОМЕНТАРІ • 58

  • @Wheretherivermeets
    @Wheretherivermeets Рік тому +5

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

  • @keter5367
    @keter5367 Рік тому +3

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

  • @milk6-
    @milk6- 9 місяців тому +9

    you didnt upload the code? What a pain..

  • @Brandon-qp7gq
    @Brandon-qp7gq Рік тому

    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  Рік тому

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

  • @diba2963
    @diba2963 Рік тому +2

    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  Рік тому

      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 Рік тому

      @@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  Рік тому

      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.

  • @Uilyam719
    @Uilyam719 Рік тому +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  Рік тому +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 Рік тому

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

  • @hieuvu388
    @hieuvu388 11 місяців тому

    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  11 місяців тому +1

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

  • @diba2963
    @diba2963 Рік тому +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  Рік тому

      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.

  • @aydinsbuildingsupply3146
    @aydinsbuildingsupply3146 Рік тому +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  Рік тому

      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: ua-cam.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: ua-cam.com/play/PLlBVuTSjOrclb0iCMSRpS_H1lSrlSVeEm.html&si=agNaKx8BUkgo1aSZ

  • @ShauryaGarg123
    @ShauryaGarg123 10 місяців тому +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  10 місяців тому

      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: ua-cam.com/video/C0IAQzxgQa8/v-deo.htmlsi=3P0MoP-Cd2oWCWbn

    • @ShauryaGarg123
      @ShauryaGarg123 10 місяців тому +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 10 місяців тому +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  10 місяців тому

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

  • @nothiiinggss2819
    @nothiiinggss2819 10 місяців тому

    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 10 місяців тому

      Without testing it?

    • @Science.Buddies
      @Science.Buddies  10 місяців тому

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

  • @BMonsterLaboratory
    @BMonsterLaboratory Рік тому +1

    Thanks for the great video!

  • @starelectronic2581
    @starelectronic2581 Рік тому +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  Рік тому

      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 Рік тому

      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 Рік тому

      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  Рік тому +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 Рік тому

      Thank you very much for your guidance🙏🌹😊👍

  • @ben-zz2rm
    @ben-zz2rm 7 місяців тому

    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  7 місяців тому

      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 UA-cam comments.

  • @liadkojokarokoren3312
    @liadkojokarokoren3312 Рік тому

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

    • @Science.Buddies
      @Science.Buddies  Рік тому +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.

  • @spectatorsturner
    @spectatorsturner 11 місяців тому

    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  11 місяців тому

      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: ua-cam.com/play/PLlBVuTSjOrclb0iCMSRpS_H1lSrlSVeEm.html&si=Y7NdShl__lHQ7EaJ

  • @rodo19724
    @rodo19724 7 місяців тому

    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  7 місяців тому

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

    • @rodo19724
      @rodo19724 7 місяців тому

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

    • @shakalpb1164
      @shakalpb1164 15 днів тому

      have you found a solution?

    • @rodo19724
      @rodo19724 15 днів тому

      @@Science.Buddies Probably, no, couldn`t find an answer there.........

  • @abode579
    @abode579 11 місяців тому

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

    • @Science.Buddies
      @Science.Buddies  11 місяців тому

      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: ua-cam.com/video/gj-H_agfd6U/v-deo.htmlsi=dHOFnc9yvSO4kRMP

  • @FBreezy
    @FBreezy 2 місяці тому

    What resistors were used?

  • @funwithmuel2767
    @funwithmuel2767 12 днів тому

    my microphone said dc offset: 1.25v.... code?

  • @TNPCell
    @TNPCell 22 дні тому

    whats the name of module

  • @kazerovixen1
    @kazerovixen1 Рік тому

    where to find the diagram and code please?

    • @Science.Buddies
      @Science.Buddies  Рік тому

      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.

  • @andoykisheakate1674
    @andoykisheakate1674 Рік тому

    what does delta mean?

  • @vicenteg7229
    @vicenteg7229 19 днів тому

    thanks bro

  • @ARandomHumanBein
    @ARandomHumanBein Рік тому

    how are you avoiding white noise

    • @Science.Buddies
      @Science.Buddies  Рік тому

      With this simple setup we aren't doing any filtering.

  • @sadnicolas4386
    @sadnicolas4386 6 місяців тому +1

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

  • @armaganoner6678
    @armaganoner6678 7 місяців тому

    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  7 місяців тому

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