PiStorms  4.015
PiStorms Library Reference by mindsensors.com
 All Classes Namespaces Files Functions Variables
GroveDevices.Grove_Loudness_Sensor Class Reference

This class supports the Grove Loudness Sensor v0.9b. More...

Inheritance diagram for GroveDevices.Grove_Loudness_Sensor:
PiStorms_GRX.GrovePort

Public Member Functions

def __init__
 
def detectSound
 
- Public Member Functions inherited from PiStorms_GRX.GrovePort
def __init__
 

Additional Inherited Members

- Public Attributes inherited from PiStorms_GRX.GrovePort
 comm
 
 readValue
 
 writeValue
 

Detailed Description

This class supports the Grove Loudness Sensor v0.9b.

This sensor detects the sound of its environment. It has a potentiometer to adjust its output. It filters the sound signal to increased accuracy.

Documentation: http://wiki.seeed.cc/Grove-Sound_Sensor/

1 import GroveDevices
2 # initialize a loudness sensor connected to Bank A analog 1
4 if (s.detectSound() < 500):
5  print("Hey, stop blowing on the mic!")

Member Function Documentation

def GroveDevices.Grove_Loudness_Sensor.detectSound (   self)
Returns
A number corresponding with the sound of the environment.

The documentation for this class was generated from the following file: