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
Design for a Cause - Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Design for a Cause - Design Challenge
  • More
  • Cancel
Design for a Cause - Design Challenge
Blog Blowing-Whistle as Controller(BWaC) ----- How to catch the sound from whistle #3
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: fyaocn
  • Date Created: 14 Aug 2018 6:19 AM Date Created
  • Views 1071 views
  • Likes 5 likes
  • Comments 1 comment
  • blowing-whistle as controller(bwac)
Related
Recommended

Blowing-Whistle as Controller(BWaC) ----- How to catch the sound from whistle #3

fyaocn
fyaocn
14 Aug 2018

1. Selection of Whistle

The most important part of the project is the whistle. Unlike BLE, WIFI or other remote control parts, the whistle do no need any power to keep it alive. You may think they are different, but to users, it is the same. Therefore, using passive sound wave-generator like whistle is one of the key features in this project.

It would be reasonable to propose super-sonic  sound wave as controller to avoid disturbance. While, the performance of hardware limit the acceptable resolution  in Cortex-M0 core MCU, even M4-core MCU can do much better. And audible sound can give appropriate feedback to person who control the whistle.

In this project, the mass productive cheap plastic whistle is used.

image

In fact, better choice is to build one whistle by yourself. This would be easy and unable to be duplicated with unique sound-track performance.

 

2. Analysis of the sound wave

Then, Record the sound and analysis the wave in frequency spectrum as follows,

image

Repeat the sound wave catch.

image

It is easily to be found out that above two diagram is for same whistle in peak 2735Hz despite of different volume, -50dB via -57dB.

And the spectrum is similar. Be noted, it is not the same, since there is always difference in angle of blow, air pressure or temperature. It is obviously, the section marked in red circle is similar but not same. This give another feature in my design, there is no way Getting-Same-Blow even from same whistle. The meaning is Every recorded sound is fake.

To sum up, the whistle-blow-as-controller is always battery-free and impossible to fake. Only problem is how to balance the complexity of encryption  and optimization of performance.

 

3. Introduction to ISD1820

As to the sound front end, ISD1820 module is used. It features analogue signal amplify, sound record and replay. The ISD1820 can drive speaker or earphone directly. Saving me from blowing each time when debugging.

image

4. Catch the sound in by MKR1000 board,

The analogue sound wave can transformed into digital signal by ADC function of MKR1000 board in simple arduino code.

  for (int  readIndex= 0; readIndex < numReadings; readIndex++){
    delay(CYCLETIME); // delay fpr cycle
    readings[readIndex] = analogRead(inputPin); 
    }

The analogue readings can be stored in one-dimension array in preset sample frequency  by

delay(CYCLETIME);

 

Now, it is ready to move to next steps for sound encode.

  • Sign in to reply
  • genebren
    genebren over 7 years ago

    Nice update on your design challenge project.  It should be handy to playback your whistle as opposed to blowing on it all the time.

     

    Keep up the good work.

    Gene

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
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