User Tools

Site Tools


doc:appunti:hardware:raspberrypi_abbaiometro

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:hardware:raspberrypi_abbaiometro [2015/12/10 15:29] niccolodoc:appunti:hardware:raspberrypi_abbaiometro [2015/12/10 15:34] (current) niccolo
Line 3: Line 3:
 ===== The Sound Sensor ===== ===== The Sound Sensor =====
  
-{{.:raspberrypi:sound_sensor.jpg?300|LM393 based sound sensor}}+{{.:raspberrypi:sound_sensor.jpg?direct&300|LM393 based sound sensor}}
  
-I used a sound sensor based on the **LM393** comparator IC. It is advertised as an Arduino sound sensor, sold for about 3-5 €.+I used a sound sensor based on the **LM393** comparator IC. It is advertised as an Arduino KY-038 Microphone Sound Sensor, sold for about 2-5 €.
  
 ==== Usage ==== ==== Usage ====
  
-Connect the **+** and **G** pins to **5 VCC** and **ground** respectively: the L1 LED should turn on. It seems that the sensor works also at **3.3 VCC**, beware thet changing the voltage requires a new threshold regulation.+Connect the **+** and **G** pins to **5 VCC** and **ground** respectively: the L1 LED should turn ON. It seems that the sensor works also at **3.3 VCC**, beware thet changing the voltage requires a new threshold regulation.
  
-The **L2 LED** will turn ON when the sound level is above the threshold, which is regulated with the **trimmer potentiometer**. The POT is a multi turn (may be 10?) potentiometer: turn the mini screw **clockwise** to be **more sensible** (to lower the threshold) until the L2 stays ON at normal room noise, then turn the screw counter-clockwise until the LED goes off. Clapping your hands you should see the L2 LED blink.+The **L2 LED** will turn ON when the sound level is above the threshold, which is regulated with the **trimmer potentiometer**. The POT is a multi turn (may be 10?) potentiometer: turn the mini screw **clockwise** to be **more sensible** (to lower the threshold) until the L2 stays ON at normal room noise, then turn the screw counter-clockwise until the LED goes OFF. Clapping your hands you should see the L2 LED blink.
  
 When the sound is above the threshold, a digital **high signal** is sent across the **DO** (digital output) pin. When the sound is above the threshold, a digital **high signal** is sent across the **DO** (digital output) pin.
doc/appunti/hardware/raspberrypi_abbaiometro.1449757790.txt.gz · Last modified: 2015/12/10 15:29 by niccolo