Analog Sound Sensor (000x0000 Article Number) (TS2133) : Product Details
Analog Sound Sensor (000x0000 Article Number) (TS2133) : Product Details
Analog Sound Sensor (000x0000 Article Number) (TS2133) : Product Details
Product Details
This is the TelePort sound sensor, aiming at the detection of the sound
intensity. Based on the LM386 amplifier, it can amplify the detected
sound. Then the Arduino will sense it and turn sound signals into the
the analog signals, that is, the voltage value by feedback can
demonstrate the sound intensity. In addition, the blue potentiometer
is used to adjust the sound intensity.
Compatible with RJ11 6P6C OKdo TelePort Control boards and expansion shields.
Used for detecting the ambient loudness in an environment.
Make interactive circuits such as a voice-operated switch.
The sound sensitivity can be adjusted by the potentiometer.
Technical Specifications
Applications
Sound-activated robots
Sound-activated switches
Sound alert alarm
This module is compatible with the TS2180-Raspberry Pi shield, the TS2179-Micro:bit shield and the
TS2178-TelePort main board.
Arduino Application
Test Code
void setup()
{
Serial.begin(9600);// open serial port, set the baud rate to 9600 bps
}
void loop()
{
int val;
val=analogRead(A0); //connect mic sensor to Analog 0
Serial.println(val,DEC);
delay(100);
}
Test Result
Wire up, upload test code and power it up. Change the sound intensity in the environment, then check the
displayed results on the monitor, as shown below;
If you want to know more details about Arduino and the TelePort control board, you can refer to TS2178.
Micro:bit Application
It is compatible with the Micro:bit board and the TS2179 Micro:bit expansion board.
Test Code
Test Result
Wire up, upload the test code and power it up. Change the sound intensity in the environment, then check
the displayed values on the Micro:bit board,
If you want to know more details about the Micro:bit board and Micro:bit shield, you can refer to TS2179.
Raspberry Pi Application
This module is compatible with the Raspberry Pi board and the TS2180 Raspberry Pi shield.
Follow the below instructions to enable the I2C function of Raspberry Pi:(press ←,↑,↓,→ then“Enter”)
Check the address of the I2C module (PCF8591) connected to the Raspberry Pi, input the command
i2cdetect -y 1, and then press Enter.
From below picture, the I2C address of PCF8591 is 0x48 .
(1) Save the test code in the pi folder of Raspberry Pi system. Then place the Analog_Sound.zip file we
provide in the pi folder, right-click and click Extract Here. As shown below:
(2) Compile and run test code:
Input the following code and press“Enter”
cd /home/pi/Analog_Sound
gcc Analog_Sound.c -o Analog_Sound -lwiringPi
sudo ./Analog_Sound
int main(void){
wiringPiSetup();
pcf8591Setup(BASE,Address);
int value;
while(1)
{
value=analogRead(A2);
printf("Sound:%d\n",value);
delay(100);
}
}
If you want to know how to utilize Raspberry Pi and the Raspberry Pi shield, you can refer to TS2180.