Features:
PCB-Onboard-Installation; Wide range 30~130db, wide frequency measurement 20~12.5kHz.
With this module, customers no longer have to worry about complex audio signal processing and can focus on expertise and quickly create value for customers. climb
Mainly used for various noises such as environmental noise, traffic noise, workplace noise, building construction noise and social noise.
Polarized back-electrode condenser microphone with wide dynamic range and stable performance.
There are slow and fast measurement modes to meet different needs.
Specifications:
Type: RS485
supply: 4.5 - 5.5V
Package includes:
1x Decibel Detection Module
Connection diagram
1, Sound probe, containing electret microphone, plastic sheath, dustproof cotton
2, Mode selection terminal, the jumper cap is shorted for fast mode, and the noise update time is 500ms; if not shorted, it is for slow mode, and the noise update time is 1.5S
3. Running indicator, flashing once every 1s
4. Pin description
10-28V: 10-28V power input
+5V: 5V power input
TXD/A: serial data transmission (output voltage 0~3.3V) / 485-A line
RXD/B: serial port data reception (input voltage 0~3.3V tolerates 5V input) / 485-B line
AO: analog signal output 0~3V
GND: negative power supply
Device communication
Basic communication parameters
The UART interface or 485 interface uses ModBus-RTU protocol for communication. The default communication communication parameters are:
Baud rate: 9600 Data bits: 8 bits Parity mode: No parity Stop bit length: 1 bit The device ModBus communication address is 1.
Data frame format definition
Adopt Modbus-RTU communication protocol, the format is as follows:
Initial structure ≥4 bytes of time
Address code= 1 byte
Function code= 1 byte
Data area= N bytes
Error check = 16-bit CRC code
End structure≥4 bytes of time
Address code: default 01.
Function code: The instruction function of the command sent by the host. This module only uses function code 0x03 (read register data).
Data area: The data area is the specific communication data. Note that the 16-bit data high byte is in front!
CRC code: Two-byte check code
Host inquiry frame structure:
Address Code: 1 Byte; Function Code: 1 Byte; Register Start Address: 2 Byte; Register length: 2 Byte; Check Code Low: 1 Byte; Check Code High: 1 Byte
Module response frame structure:
Address Code: 1 Byte Function Code: 1 Byte Numbers of Valid: 1 Byte First Data Area: 2 Byte; Second Data Area: 2 Byte; N Data Area: 2 Byte; Check code: 2 Byte
Register Address
Register address: 0000 H; PLC or Configuration address: 40001 ; Content: Instantaneous noise value Upload data is 10 times true; Operation: Read only
Communication protocol examples and explanations
Example: Read module noise value
Inquiry frame:
Address Code: 0x01; Function Code: 0x03; Starting Address: 0x00 0x00; Data Length: 0x00 0x01; Check Code Low: 0x84; Check Code High: 0x0A
Response frame: (for example, the current noise is 71.3dB)
Address Code: 0x01; Function Code: 0x03 ; Numbers of Retur-ed Valid Bytes: 0x02 ; Current Noise Value: 0x02 0xC9 ; Check Code Low: 0x79 ; Check Code High: 0x72
Interface Description
Before you wiring and use, please read this article in detail, Improper use may result in irreversible damage to the product.
|
Line Color
|
Description
|
Power
|
Brown
|
Power supply Positive ( 10-30VDC )
|
Black
|
Power supply Negative
|
Communication
|
Yellow
|
485-A
|
Green or Blue
|
485-B
|
Communication protocol
Parameter
|
Description
|
Code
|
8-bit binary
|
Data bit
|
8 bit
|
Parity bit
|
None
|
Stop bit
|
1 bit
|
Error check
|
CRC
|
Baud rate
|
2400bit/s, 4800bit/s, 9600 bit/s default is 9600 bit/s
|
Register Address
Register Address
|
Plc Configuration Address
|
Content
|
Operation
|
0000H
|
40001
|
Instantaneous noise value
|
Read-Only
|
Communication example
Read Device Address 0x01's Instantaneous noise value
Inquiry Frame
Address Code
|
Function Code
|
Start Address
|
Data Length
|
CRC
|
0x01
|
0x03
|
0x00 0x00
|
0x00 0x01
|
0x84 0x0A
|
Answer Frames
Address Code
|
Function Code
|
effective byte
|
Instantaneous noise value
|
CRC
|
0x01
|
0x03
|
0x02
|
0x02 0x8C
|
0x38 0x89
|
How to calculate Instantaneous noise value
28C H (hexadecimal) = 652 => noise = 65.2 dB