element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Pi-Fest
  • Challenges & Projects
  • Design Challenges
  • Pi-Fest
  • More
  • Cancel
Pi-Fest
Blog Playing with Raspberry Pi Pico #3
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Leaderboard
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: emaker
  • Date Created: 6 Aug 2022 6:14 PM Date Created
  • Views 1538 views
  • Likes 3 likes
  • Comments 1 comment
  • Pi-Fest Design Challenge
  • raspberry pi pico
  • micropython
  • pi-fest
  • ky-037
Related
Recommended

Playing with Raspberry Pi Pico #3

emaker
emaker
6 Aug 2022

Playing with Raspberry Pi Pico #3

Hi, today we will talk about the project I want to carry out and, in particular, about the acoustic sensor that I will use.
What I want to create is a system that, using two microphones, allows me to recognize the direction of origin of a sound.

Such a system could have multiple applications, for example, it could be a valuable aid for hearing impaired users.
For example, a person who has hearing problems in one ear, and who is with a group of other people, for example in a class at school or during a meeting between colleagues, will be able to hear the words of his interlocutors but will not be able to distinguish easily the direction of origin of the voice. Our goal is to create a simple system that "indicates" the direction from which the sound is coming.

The sensor KY-037

For this project I will be using an analog microphone. I will use a very cheap and not high quality sensor but that should be sufficient in this job. In fact, we are not very interested in high fidelity, or in the dynamic behavior of the microphone but only in the measurement of the intensity of the sound wave.

image

image


The sensor board has 4 pins, in addition to the two reserved for power supply, there is a digital output, which is by default at 0V and switches to Vcc when the intensity of the sound exceeds a certain threshold that can be adjusted with a small trimmer and which can be used as a threshold detector, the fourth pin instead is an analog output and provides an electrical voltage that represents the acoustic signal detected.
What I want to do is have the Raspberry Pi Pico read this voltage and display its values.
I will apply the analog output of the sensor to the ADC0 of my Raspberry Pi Pico and try to evaluate the detected sound intensity.

The KY-037 sensor schematic diagram is shown below.

image

We can immediately notice that the analog output is not amplified so we cannot expect electrical signals with a wide range of variation. This sensor is, in fact, mostly used as an audio threshold detector, to recognize the exceeding of a certain sound level. If we use the signal from the analog output of this sensor board with our Raspberry Pi Pico, only a small portion of the ADC possible values will actually be used.
It would therefore be better to change the sensor or make a simple op-amp for the microphone that can drive the ADC better.

Unfortunately, time is running out and I will have to do what I can with these sensors

Bye

  • Sign in to reply
Parents
  • cstanton
    cstanton over 3 years ago

    Hey,

    It looks like a couple of your images there failed to embed.

    Would you be able to re-insert them please?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • cstanton
    cstanton over 3 years ago

    Hey,

    It looks like a couple of your images there failed to embed.

    Would you be able to re-insert them please?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube