pyupm_loudness module

class pyupm_loudness.Loudness(pin, aref=5.0)[source]

Bases: object

API for the Loudness Sensor.

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.

C++ includes: loudness.hpp

loudness()[source]

float loudness()

Returns the voltage detected on the analog pin

The detected voltage