









If the 1:10 SPL is integrated into an electronic module, the pin configuration may look like this:
| Pin Name | Description |
|---|---|
| VCC | Power supply input (3.3V to 5V) |
| GND | Ground connection |
| OUT | Analog output signal (proportional to SPL) |
| NC | Not connected (if applicable) |
Using the 1:10 SPL in a Circuit:
Important Considerations:
Arduino UNO Example Code: Below is an example of how to read the SPL value using an Arduino UNO:
// Define the analog pin connected to the SPL module
const int SPLPin = A0;
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
pinMode(SPLPin, INPUT); // Set the SPL pin as input
}
void loop() {
int analogValue = analogRead(SPLPin); // Read the analog value from the SPL module
float voltage = analogValue * (5.0 / 1023.0); // Convert the analog value to voltage
float SPL_dB = 20 * log10(voltage / 0.00002);
// Calculate SPL in decibels (dB) using the reference level of 20 µPa
Serial.print("SPL (dB): ");
Serial.println(SPL_dB); // Print the SPL value to the serial monitor
delay(500); // Wait for 500 milliseconds before the next reading
}
Note: The formula used in the code assumes a direct relationship between the voltage and sound pressure level. Adjust the formula based on the specific characteristics of your SPL module.
Issue: The SPL readings are inconsistent or fluctuate significantly.
Issue: The SPL module outputs no signal.
Issue: The SPL readings are too low or too high.
FAQ: Can the 1:10 SPL module measure ultrasonic frequencies?
FAQ: How do I calibrate the SPL module?
By following this documentation, users can effectively integrate and utilize the 1:10 SPL component in their audio measurement and analysis projects.