Published © MIT

Noise Level Notification Alert

When noise in room exceeds certain amount notification will appear on your phone.

BeginnerShowcase (no instructions)2,749
Noise Level Notification Alert

Things used in this project

Story

Read more

Schematics

Circuit

Code

Code

C/C++
#define CUSTOM_SETTINGS
#define INCLUDE_MIC_SHIELD
#define INCLUDE_NOTIFICATION_SHIELD

/* Include 1Sheeld library. */
#include <OneSheeld.h>
static boolean isSent = false;
void setup() 
{
  /* Start communication. */
  OneSheeld.begin();
}

void loop ()
{
  /* Always check the noise level. */
  if(Mic.getValue() > 80)
  {
    if(!isSent){
      Notification.notifyPhone("Noise level excceded the limit.");
      isSent = true;
    }
  }
  else 
  {
    isSent = false;
  }
}

Credits

1Sheeld

Comments