Difference between revisions of "Mic (use with mDesigner)"
From Microduino Wiki
(Created page with "The Mic sensor (also know as Microphone or Sound sensor) is a sensor which is able to sound levels (how loud). It is not capable of recording sounds. Support for this sensor i...") |
(→Compatible Pins) |
||
Line 100: | Line 100: | ||
<br style="clear: left;" /> | <br style="clear: left;" /> | ||
</div> | </div> | ||
+ | =Blocks= | ||
+ | ==Analog Read Pin== | ||
+ | This block reads the value of the pin. A value between 0 and 1023 will be returned. In Arduino, this is known as an analog read (analogRead). | ||
+ | {| class="wikitable" | ||
+ | |+Mic Sensor State Table | ||
+ | |- | ||
+ | ! Noise Level | ||
+ | ! Value Produced | ||
+ | |- | ||
+ | |Absolute Silence | ||
+ | |0 | ||
+ | |- | ||
+ | |Ambient Background Noise | ||
+ | |<40 | ||
+ | |- | ||
+ | |Snapping Fingers / Talking | ||
+ | |75~200 | ||
+ | |- | ||
+ | |Amps that are "Up to eleven" | ||
+ | |1023 | ||
+ | |} | ||
+ | ::[[File:MDesigner_Analog_Read.png]] | ||
+ | :*'''Pin Number''' - the pin number to read from. |
Latest revision as of 21:11, 7 June 2018
The Mic sensor (also know as Microphone or Sound sensor) is a sensor which is able to sound levels (how loud). It is not capable of recording sounds. Support for this sensor is found in mDesigner.
Compatible Pins
The following pins on the Hub or mCenter+'s Hub support this module:
Pin Name | Compatibility | Notes |
---|---|---|
Pin 0 | No | |
Pin 1 | No | |
Pin 2 | No | |
Pin 3 | No | |
Pin 4 | No | |
Pin 5 | No | |
Pin 6 | No | |
Pin 7 | No | |
Pin 8 | No | |
Pin 9 | No | |
Pin 10 | No | |
Pin 11 | No | |
Pin 12 | No | |
Pin 13 | No | |
Pin A0 | Yes | |
Pin A1 | Yes | |
Pin A2 | Yes | |
Pin A3 | Yes | |
Pin A6 | Yes | |
Pin A7 | Yes | |
Pin I2C | No |
Blocks
Analog Read Pin
This block reads the value of the pin. A value between 0 and 1023 will be returned. In Arduino, this is known as an analog read (analogRead).
Noise Level | Value Produced |
---|---|
Absolute Silence | 0 |
Ambient Background Noise | <40 |
Snapping Fingers / Talking | 75~200 |
Amps that are "Up to eleven" | 1023 |