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

  Рет қаралды 59,286

Science Buddies

Science Buddies

Күн бұрын

Пікірлер: 59
@Wheretherivermeets
@Wheretherivermeets Жыл бұрын
to avoid the angle bracket restriction you can put in a placeholder alternative ascii, then have users do a find & replace!
@milk6-
@milk6- 9 ай бұрын
you didnt upload the code? What a pain..
@keter5367
@keter5367 Жыл бұрын
FINALLY YOU ARE BACK I LOVE YOUR VIDEOS THX alot for your content keep it up man
@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).
@Uilyam719
@Uilyam719 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
Unfortunately we don't have our own video on this, but you should be able to find other tutorials covering that online.
@diba2963
@diba2963 Жыл бұрын
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.
@nothiiinggss2819
@nothiiinggss2819 11 ай бұрын
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 11 ай бұрын
Without testing it?
@Science.Buddies
@Science.Buddies 11 ай бұрын
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 Жыл бұрын
Thanks for the great video!
@FBreezy
@FBreezy 3 ай бұрын
What resistors were used?
@ShauryaGarg123
@ShauryaGarg123 11 ай бұрын
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 11 ай бұрын
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: kzbin.info/www/bejne/eWGscoSwrcyEl5osi=3P0MoP-Cd2oWCWbn
@ShauryaGarg123
@ShauryaGarg123 11 ай бұрын
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 11 ай бұрын
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 11 ай бұрын
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).
@diba2963
@diba2963 Жыл бұрын
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.
@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 KZbin comments.
@aydinsbuildingsupply3146
@aydinsbuildingsupply3146 Жыл бұрын
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: kzbin.info/aero/PLlBVuTSjOrckzVWHWOYAkyKoQZhmoqH1S&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: kzbin.info/aero/PLlBVuTSjOrclb0iCMSRpS_H1lSrlSVeEm&si=agNaKx8BUkgo1aSZ
@starelectronic2581
@starelectronic2581 Жыл бұрын
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 Жыл бұрын
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🙏🌹😊👍
@TNPCell
@TNPCell Ай бұрын
whats the name of module
@liadkojokarokoren3312
@liadkojokarokoren3312 Жыл бұрын
Can you explain what is the 1023 in the code? and where did you get it from?
@Science.Buddies
@Science.Buddies Жыл бұрын
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: kzbin.info/aero/PLlBVuTSjOrclb0iCMSRpS_H1lSrlSVeEm&si=Y7NdShl__lHQ7EaJ
@funwithmuel2767
@funwithmuel2767 24 күн бұрын
my microphone said dc offset: 1.25v.... code?
@andoykisheakate1674
@andoykisheakate1674 Жыл бұрын
what does delta mean?
@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: kzbin.info/www/bejne/nZuQeZKXnMuXbLcsi=dHOFnc9yvSO4kRMP
@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.
@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 27 күн бұрын
have you found a solution?
@rodo19724
@rodo19724 27 күн бұрын
@@Science.Buddies Probably, no, couldn`t find an answer there.........
@rodo19724
@rodo19724 3 күн бұрын
@@shakalpb1164 No, nothing useful for me, I quitted trying, thanks for your help anyway
@ARandomHumanBein
@ARandomHumanBein Жыл бұрын
how are you avoiding white noise
@Science.Buddies
@Science.Buddies Жыл бұрын
With this simple setup we aren't doing any filtering.
@vicenteg7229
@vicenteg7229 Ай бұрын
thanks bro
@sadnicolas4386
@sadnicolas4386 6 ай бұрын
very cool video thanks bro im laying i dont like that shit at all
@armaganoner6678
@armaganoner6678 8 ай бұрын
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 8 ай бұрын
Hi - you may have more luck asking this question on the official Arduino forums.
How to Use a Joystick with Arduino (Lesson #13)
11:42
Science Buddies
Рет қаралды 74 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
#419 ESP32 Audio Tutorial with lots of examples
13:48
Andreas Spiess
Рет қаралды 267 М.
Make your own Spy Bug (Arduino Voice Recorder)
7:18
GreatScott!
Рет қаралды 435 М.
PicoPD Pro and VSCode
14:58
CentyLab
Рет қаралды 252
How to Use a Hall Effect Sensor with Arduino (Lesson #31)
19:48
Science Buddies
Рет қаралды 29 М.
ESP32 Audio Input Using I2S and Internal ADC
10:43
atomic14
Рет қаралды 135 М.
SOUND SENSOR DATA ON ARDUINO SERIAL PLOTTER - Arduino tutorial #30
7:45
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН