BaynealbinJavier Torres
Published

MEGR-3171 IOT Sound Detector

Utilizing the Particle Argon, Group 027 has created a device that will put your hearing health first, preventing overexposure to loud noise.

IntermediateWork in progress5 hours17
MEGR-3171 IOT Sound Detector

Things used in this project

Hardware components

Argon
Particle Argon
×2
Solderless Breadboard Half Size
Solderless Breadboard Half Size
×2
Jumper wires (generic)
Jumper wires (generic)
×1
USB-A to Micro-USB Cable
USB-A to Micro-USB Cable
×2
Elegoo Big Sound Sensor (KY-038)
×2
Slide Switch
Slide Switch
×2

Software apps and online services

Particle Build Web IDE
Particle Build Web IDE
Google Sheets
Google Sheets
CoolTerm
Serial Port Terminal application

Hand tools and fabrication machines

Digilent Screwdriver
Digilent Screwdriver

Story

Read more

Schematics

Circuit Diagram

Flow Chart

Code

Bayne's Argon BigSound

C/C++
int sensorPin = A0; 
int sensorValue = 0; 

          

void setup() 
{
     Serial.begin(9600);
     
    // Subscribe to the integration response event
  Particle.subscribe("hook-response/sounds", myHandler, MY_DEVICES);
}

void myHandler(const char *event, const char *data) {
  // Handle the integration response
}

      

void loop() 
{
    sensorValue = analogRead(sensorPin);
    Serial.println(String(sensorValue) );//print analog value onto serial monitor
    delay(250);
    
  // Get some data
  String data = String(sensorValue);
  // Trigger the integration
  Particle.publish("sounds", data, PRIVATE);
    // Wait 5 seconds
    delay(5000);
}
WiFiSignal sig = WiFi.RSSI();
float quality = sig.getQualityValue();

Javi's Argon BigSound2

C/C++
int sensorPin = A0; 
int sensorValue = 0; 

void setup() 
{
    Serial.begin(9600);
    
    // Subscribing to integration response event
    Particle.subscribe("hook-response/SOUND", myHandler, MY_DEVICES);
}

void myHandler(const char *event, const char *data) {
  // Handling integration response
}

void loop()
{
    sensorValue = analogRead(sensorPin);
    Serial.println(String(sensorValue) );//print analog value onto serial monitor
    delay(250);
    
    // Recieve Data
    String data = String(sensorValue);
    // Trigger integration
    Particle.publish("SOUND", data, PRIVATE);
    // Wait 5 seconds
    delay(5000);
}
WiFiSignal sig = WiFi.RSSI();
float quality = sig.getQualityValue();

Credits

Baynealbin

Baynealbin

1 project • 0 followers
Javier Torres

Javier Torres

0 projects • 0 followers

Comments

Add projectSign up / Login