O'Reilly logo

Environmental Monitoring with Arduino by Patrick Di Justo, Emily Gertz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Make the Gadget

Parts

  1. Arduino
  2. Breadboard
  3. Mini Sound Sensor microphone (Emartee part number 42021)
  4. 5–10 LEDs, one or more colors, or LED bar display
  5. 220-ohm resistor
  6. 10–15 jumper wires in varied colors

Breadboard the Circuit

You can see what the final build looks like in the breadboard view of this circuit in Figure 2-2.

The completed noise monitor circuit.

Figure 2-2. The completed noise monitor circuit.

Here’s how to build that circuit:

Step 1 Plug the microphone into the breadboard (see Figure 2-3).

Step 2 Connect a wire between the GND pin of the microphone and the GND pin of Arduino.

Step 3 Connect the power pin of the microphone to the power pin of Arduino.

Step 4 Connect the DATA pin of the microphone to the Analog 0 pin of Arduino.

Step 5 Connect the Digital 2 pin of Arduino to a point on the breadboard.

The noise sensor plugged to the breadboard, with jumper wires leading from its GND, power, and DATA pins.

Figure 2-3. The noise sensor plugged to the breadboard, with jumper wires leading from its GND, power, and DATA pins.

Step 6 Connect the LONG or ANODE lead of an LED (or the ANODE lead of an LED bar) to a pin in the same breadboard row as the jumper from D2. Have the LED straddle the breadboard trench, and plug the SHORT lead or CATHODE (or the CATHODE lead of an LED bar) to a pin in the corresponding row on the other side of the breadboard.

Step 7 Plug a 220-ohm resistor into the breadboard, connecting the cathode row ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required