Breadboard for "Sensor - Microphone"
Fritzing diagram: microphone.fzz
Run this example from the command line with:
node eg/microphone.js
var five = require("johnny-five");
var board = new five.Board();
board.on("ready", function() {
var mic = new five.Sensor("A0");
var led = new five.Led(11);
mic.on("data", function() {
led.brightness(this.value >> 2);
});
});