Loudness Class
- ID: loudness
- Name: Loudness Sensor
- Other Names: Grove loudness hyld9767
- Category: sound
- Manufacturer: dfrobot seeed
- Link: http://www.dfrobot.com/index.php?route=product/product&product_id=83
- Connection: analog
This sensor family returns an analog voltage proportional to the loudness of the ambient environment. It's output does not correspond to a particular sound level in decibels. The higher the output voltage, the louder the ambient noise level.
This device uses an electret microphone for sound input.
This driver was developed using the DFRobot Loudness Sensor V2 and the Grove Loudness sensor.
Methods
Loudness
-
pin
-
aref
Loudness constructor
Parameters:
-
pin
NumberAnalog pin to use
-
aref
NumberAnalog reference voltage; default is 5.0 V
Returns:
loudness
()
Number
Returns the voltage detected on the analog pin
Returns:
The detected voltage