c7b599f67ffb383f6ef4d951750b9400d83d2909
Board-dat/STH/STH1023-dat/2025-07-24-13-08-09.png
| ... | ... | Binary files /dev/null and b/Board-dat/STH/STH1023-dat/2025-07-24-13-08-09.png differ |
Board-dat/STH/STH1023-dat/2025-07-24-13-08-21.png
| ... | ... | Binary files /dev/null and b/Board-dat/STH/STH1023-dat/2025-07-24-13-08-21.png differ |
Board-dat/STH/STH1023-dat/2025-07-24-13-14-49.png
| ... | ... | Binary files /dev/null and b/Board-dat/STH/STH1023-dat/2025-07-24-13-14-49.png differ |
Board-dat/STH/STH1023-dat/GY_UVI.zip
| ... | ... | Binary files /dev/null and b/Board-dat/STH/STH1023-dat/GY_UVI.zip differ |
Board-dat/STH/STH1023-dat/STH1023-dat.md
| ... | ... | @@ -0,0 +1,161 @@ |
| 1 | + |
|
| 2 | +# STH1023-dat |
|
| 3 | + |
|
| 4 | +- [[VEML6070-dat]] - [[sensor-UV-light-dat]] |
|
| 5 | + |
|
| 6 | + |
|
| 7 | +This tutorial will help you quickly understand and use the STH1023 UV/light sensor module. It covers register settings, serial communication, and example commands in clear English. |
|
| 8 | + |
|
| 9 | +--- |
|
| 10 | + |
|
| 11 | +## 1. Register Map |
|
| 12 | + |
|
| 13 | +| Address | Name | Description | Default | |
|
| 14 | +|---------|----------------|--------------------------------------------------------------------------------------------|---------| |
|
| 15 | +| 0x00 | Device ID | 1~254; 0=broadcast; default 0xA4 (must be even, matches 8-bit I2C address) | 0xA4 | |
|
| 16 | +| 0x01 | Baud Rate | 0~8: 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400; default 9600 | 9600 | |
|
| 17 | +| 0x02 | Update Rate | 0:1Hz; 1:5Hz; 2:10Hz; default 10Hz | 10Hz | |
|
| 18 | +| 0x03 | Output Mode | 0: Continuous (default); 1: Query | 0 | |
|
| 19 | +| 0x04 | Output Format | 0: Hex (default); 1: Character | 0 | |
|
| 20 | +| 0x05 | Save Settings | 0x55: Save config; 0xAA: Factory reset | | |
|
| 21 | +| 0x06 | Analog Range | 0: 0~49999lux; 1: 50000~99999lux; 2: 100000~159999lux; 3: 0~159999lux (default) | 3 | |
|
| 22 | +| 0x07 | ALS_Wfac | 0~256: 0~2.56; brightness glass factor (value × 100) | | |
|
| 23 | +| 0x08 | UVI_Wfac | 0~256: 0~2.56; UV glass factor (value × 100) | | |
|
| 24 | +| 0x09 | UVI_H_data | UVI = (UVI_H_data << 8 | UVI_L_data) / 100 | | |
|
| 25 | +| 0x0A | UVI_L_data | See above | | |
|
| 26 | +| 0x0B | ALS_H_data | Lux = (ALS_H_data << 16 | ALS_M_data << 8 | ALS_L_data) / 100 | | |
|
| 27 | +| 0x0C | ALS_M_data | See above | | |
|
| 28 | +| 0x0D | ALS_L_data | See above | | |
|
| 29 | +| 0x0E | Firmware Info | 0~255 | | |
|
| 30 | + |
|
| 31 | +--- |
|
| 32 | + |
|
| 33 | +## 2. Serial Communication |
|
| 34 | + |
|
| 35 | +### Frame Structure |
|
| 36 | + |
|
| 37 | +| Address | Function | Data | Checksum | |
|
| 38 | +|---------|----------|------|----------| |
|
| 39 | +| 1 byte | 1 byte | N | Low 8 bits of sum | |
|
| 40 | + |
|
| 41 | +### Supported Functions |
|
| 42 | + |
|
| 43 | +| Function | Code | |
|
| 44 | +|------------------|-------| |
|
| 45 | +| Write Register | 0x06 | |
|
| 46 | +| Read Register | 0x03 | |
|
| 47 | + |
|
| 48 | +### Response Time |
|
| 49 | + |
|
| 50 | +| Baud Rate | Response | |
|
| 51 | +|-----------|----------| |
|
| 52 | +| 9600 | ~10ms | |
|
| 53 | +| 115200 | ~1ms | |
|
| 54 | + |
|
| 55 | +--- |
|
| 56 | + |
|
| 57 | +## 3. Example Commands |
|
| 58 | + |
|
| 59 | +### Set Baud Rate to 115200 |
|
| 60 | + |
|
| 61 | +Send: |
|
| 62 | +``` |
|
| 63 | +A4 06 01 06 B1 |
|
| 64 | +``` |
|
| 65 | +| A4 | 06 | 01 | 06 | B1 | |
|
| 66 | +|----|----|----|----|----| |
|
| 67 | +| Addr | Write | Reg | Data | Checksum | |
|
| 68 | + |
|
| 69 | +Response: |
|
| 70 | +``` |
|
| 71 | +A4 06 01 06 B1 |
|
| 72 | +``` |
|
| 73 | + |
|
| 74 | +### Set Update Rate to 10Hz |
|
| 75 | + |
|
| 76 | +Send: |
|
| 77 | +``` |
|
| 78 | +A4 06 02 02 AE |
|
| 79 | +``` |
|
| 80 | +| A4 | 06 | 02 | 02 | AE | |
|
| 81 | +|----|----|----|----|----| |
|
| 82 | +| Addr | Write | Reg | Data | Checksum | |
|
| 83 | + |
|
| 84 | +Response: |
|
| 85 | +``` |
|
| 86 | +A4 06 02 02 AE |
|
| 87 | +``` |
|
| 88 | + |
|
| 89 | +### Read Registers |
|
| 90 | + |
|
| 91 | +Send: |
|
| 92 | +``` |
|
| 93 | +A4 03 09 05 B5 |
|
| 94 | +``` |
|
| 95 | +| A4 | 03 | 09 | 05 | B5 | |
|
| 96 | +|----|----|----|----|----| |
|
| 97 | +| Addr | Read | Start Reg | Count | Checksum | |
|
| 98 | + |
|
| 99 | +Response Example: |
|
| 100 | +``` |
|
| 101 | +A4 03 09 05 0001008B08 49 |
|
| 102 | +``` |
|
| 103 | +| A4 | 03 | 09 | 05 | [Values] | 49 | |
|
| 104 | +|----|----|----|----|----------|----| |
|
| 105 | +| Addr | Read | Start Reg | Count | Data | Checksum | |
|
| 106 | + |
|
| 107 | +--- |
|
| 108 | + |
|
| 109 | +## 4. Output Modes |
|
| 110 | + |
|
| 111 | +### Continuous Output |
|
| 112 | +1. Set output mode register (0x03) to 0. |
|
| 113 | +2. Send read data frame (set start register and count). |
|
| 114 | + |
|
| 115 | +### Query Output |
|
| 116 | +1. Set output mode register (0x03) to 1. |
|
| 117 | +2. Send read data frame each time you want data. |
|
| 118 | + |
|
| 119 | +*Note: Output format is set by the read data frame. Mode is set by register 0x03.* |
|
| 120 | + |
|
| 121 | +--- |
|
| 122 | + |
|
| 123 | +## 5. PC Software Usage |
|
| 124 | + |
|
| 125 | + |
|
| 126 | + |
|
| 127 | + |
|
| 128 | +- Use [GY_UVI.zip] for Windows. |
|
| 129 | +- Select the COM port connected to the module, baud rate, and ID (default 0xA4, or 0x00 if unknown). |
|
| 130 | +- **Config reg:** This section corresponds to configurable registers. After changing any register, press Enter or click elsewhere to write the config to the module. |
|
| 131 | +- **Read reg:** This section is for reading module registers. Set the start register and number of registers to read, then click "read" to send the command. |
|
| 132 | + |
|
| 133 | +### Continuous Mode |
|
| 134 | +1. Set start register and number of registers to read. |
|
| 135 | +2. Set update rate. |
|
| 136 | +3. Set mode to continuous. |
|
| 137 | + |
|
| 138 | +### Query Mode |
|
| 139 | +1. Set start register and number of registers to read. |
|
| 140 | +2. Set update rate. |
|
| 141 | +3. Set mode to query. |
|
| 142 | +4. For each query, repeat step 1 (send read register frame). |
|
| 143 | + |
|
| 144 | +--- |
|
| 145 | + |
|
| 146 | +## 6. Arduino Example |
|
| 147 | + |
|
| 148 | +- See [arduino_usart.ino] for sample code. |
|
| 149 | + |
|
| 150 | +--- |
|
| 151 | + |
|
| 152 | +## Related |
|
| 153 | + |
|
| 154 | +- [VEML6070-dat] |
|
| 155 | +- [sensor-UV-light-dat] |
|
| 156 | +d:每次查询,进行一次a步骤,即每次发送读寄存器指令帧; |
|
| 157 | + |
|
| 158 | + |
|
| 159 | +## arduino |
|
| 160 | + |
|
| 161 | +- [[arduino_usart.ino]] |
|
| ... | ... | \ No newline at end of file |
Board-dat/STH/STH1023-dat/arduino_usart.ino
| ... | ... | @@ -0,0 +1,108 @@ |
| 1 | +///////////////////// |
|
| 2 | +/* |
|
| 3 | +GY_UVI----MINI |
|
| 4 | +VCC----VCC |
|
| 5 | +GND----GND |
|
| 6 | +1:GY_UVI_TX---10 |
|
| 7 | +2:GY_UVI_RX---11 |
|
| 8 | +start_reg=0X09; |
|
| 9 | +reg_numer=0x05; |
|
| 10 | +*/ |
|
| 11 | +////////////////// |
|
| 12 | +#include <SoftwareSerial.h> |
|
| 13 | +typedef struct |
|
| 14 | +{ |
|
| 15 | + float lux; |
|
| 16 | + float uvi; |
|
| 17 | +} UVI; |
|
| 18 | +SoftwareSerial mySerial(10, 11); // RX, TX |
|
| 19 | +byte add=0xa4; |
|
| 20 | +byte len=0,start_reg=0; |
|
| 21 | +unsigned char Re_buf[30],counter=0; |
|
| 22 | +unsigned char sign=0; |
|
| 23 | +UVI gy_uvi; |
|
| 24 | +void setup() { |
|
| 25 | + Serial.begin(115200); |
|
| 26 | + mySerial.begin(9600); |
|
| 27 | + mySerial.listen(); |
|
| 28 | +} |
|
| 29 | + |
|
| 30 | +void loop() { |
|
| 31 | + unsigned char i=0,sum=0; |
|
| 32 | + while (mySerial.available()) { |
|
| 33 | + Re_buf[counter]=(unsigned char)mySerial.read(); |
|
| 34 | + switch(counter) |
|
| 35 | + { |
|
| 36 | + case 0: |
|
| 37 | + if(Re_buf[0]!=add) |
|
| 38 | + return; |
|
| 39 | + break; |
|
| 40 | + case 1: |
|
| 41 | + |
|
| 42 | + if(Re_buf[1]!=0x03) |
|
| 43 | + { |
|
| 44 | + counter=0; |
|
| 45 | + return; |
|
| 46 | + } |
|
| 47 | + break; |
|
| 48 | + case 2: |
|
| 49 | + if(Re_buf[2]<16) |
|
| 50 | + start_reg=Re_buf[2]; |
|
| 51 | + else |
|
| 52 | + { |
|
| 53 | + counter=0; |
|
| 54 | + return; |
|
| 55 | + } |
|
| 56 | + break; |
|
| 57 | + case 3: |
|
| 58 | + if((start_reg+Re_buf[3])<16) |
|
| 59 | + len=Re_buf[3]; |
|
| 60 | + else |
|
| 61 | + { |
|
| 62 | + counter=0; |
|
| 63 | + return; |
|
| 64 | + } |
|
| 65 | + |
|
| 66 | + break; |
|
| 67 | + default: |
|
| 68 | + if(len+5==counter) |
|
| 69 | + { |
|
| 70 | + sign=1; |
|
| 71 | + } |
|
| 72 | + break; |
|
| 73 | + } |
|
| 74 | + |
|
| 75 | + if(sign) |
|
| 76 | + { |
|
| 77 | + sign=0; |
|
| 78 | + for(i=0;i<counter-1;i++) |
|
| 79 | + sum+=Re_buf[i]; |
|
| 80 | + counter=0; |
|
| 81 | + if(sum==Re_buf[i] ) //检查帧头,帧尾 |
|
| 82 | + { |
|
| 83 | + if(start_reg==0x09) |
|
| 84 | + { |
|
| 85 | + gy_uvi.uvi=((uint16_t)Re_buf[4]<<8|Re_buf[5]); |
|
| 86 | + uint32_t lux_temp =(((uint32_t)Re_buf[6]<<16)+((uint32_t)Re_buf[7]<<8)+Re_buf[8]); |
|
| 87 | + gy_uvi.lux=(float)lux_temp/100; |
|
| 88 | + } |
|
| 89 | + |
|
| 90 | + Serial.print("UVI_LUX:"); |
|
| 91 | + Serial.print((float)gy_uvi.uvi/100); |
|
| 92 | + Serial.print(","); |
|
| 93 | + Serial.println(gy_uvi.lux); |
|
| 94 | + } |
|
| 95 | +// else |
|
| 96 | +// { |
|
| 97 | +// Serial.print(" sum "); |
|
| 98 | +// Serial.println(sum); |
|
| 99 | +// } |
|
| 100 | + } |
|
| 101 | + else |
|
| 102 | + counter++; |
|
| 103 | +// Serial.print("cont:"); |
|
| 104 | +// Serial.println(counter); |
|
| 105 | + } |
|
| 106 | + |
|
| 107 | +} |
|
| 108 | + |
Board-dat/STH/STH1024-dat/STH1024-dat.md
| ... | ... | @@ -6,6 +6,9 @@ |
| 6 | 6 | |
| 7 | 7 | [product url - ML8511 UV Ultraviolet Light Sensor Breakout Board](https://www.electrodragon.com/product/ml8511-uv-sensor-breakout-board-analog/) |
| 8 | 8 | |
| 9 | + |
|
| 10 | +- [[ML8511-dat]] - [[VEML6070-dat]] |
|
| 11 | + |
|
| 9 | 12 | ## Specs |
| 10 | 13 | |
| 11 | 14 | |
| ... | ... | @@ -18,6 +21,9 @@ |
| 18 | 21 | - Light Intensity Range: (0-150,000 lux) |
| 19 | 22 | - Ultraviolet Range: (0-15) UVB measurement |
| 20 | 23 | |
| 24 | +serial output chip GDE230F8 |
|
| 25 | + |
|
| 26 | + |
|
| 21 | 27 | ## ref |
| 22 | 28 | |
| 23 | 29 | - [[sensor-UV-light-dat]] - [[sensor-dat]] |
Chip-dat/Analog-device-dat/Analog-device-dat.md
| ... | ... | @@ -26,6 +26,8 @@ The first notch of this digital filter can be programmed via the on-chip control |
| 26 | 26 | |
| 27 | 27 | - [[MAX232-dat]] == MAX232CPE+ |
| 28 | 28 | |
| 29 | +- [[max9813-dat]] - [[MAX9812-dat]] |
|
| 30 | + |
|
| 29 | 31 | |
| 30 | 32 | |
| 31 | 33 |
Chip-dat/Analog-device-dat/MAX9812-dat/2025-04-01-14-00-42.png
| ... | ... | Binary files /dev/null and b/Chip-dat/Analog-device-dat/MAX9812-dat/2025-04-01-14-00-42.png differ |
Chip-dat/Analog-device-dat/MAX9812-dat/2025-04-01-14-04-00.png
| ... | ... | Binary files /dev/null and b/Chip-dat/Analog-device-dat/MAX9812-dat/2025-04-01-14-04-00.png differ |
Chip-dat/Analog-device-dat/MAX9812-dat/2025-04-01-14-22-04.png
| ... | ... | Binary files /dev/null and b/Chip-dat/Analog-device-dat/MAX9812-dat/2025-04-01-14-22-04.png differ |
Chip-dat/Analog-device-dat/MAX9812-dat/2025-04-01-14-22-33.png
| ... | ... | Binary files /dev/null and b/Chip-dat/Analog-device-dat/MAX9812-dat/2025-04-01-14-22-33.png differ |
Chip-dat/Analog-device-dat/MAX9812-dat/MAX9812-MAX9813L.pdf
| ... | ... | Binary files /dev/null and b/Chip-dat/Analog-device-dat/MAX9812-dat/MAX9812-MAX9813L.pdf differ |
Chip-dat/Analog-device-dat/MAX9812-dat/MAX9812-dat.md
| ... | ... | @@ -0,0 +1,91 @@ |
| 1 | + |
|
| 2 | +# MAX9812-dat |
|
| 3 | + |
|
| 4 | + |
|
| 5 | + |
|
| 6 | +Tiny, Low-Cost, Single/Dual-Input, Fixed-Gain Microphone Amplifiers with Integrated Bias |
|
| 7 | + |
|
| 8 | +datasheet - [Maxim Integrated](https://datasheets.maximintegrated.com/en/ds/MAX9812.pdf) |
|
| 9 | + |
|
| 10 | +- [[MAX9812-MAX9813L.pdf]] |
|
| 11 | + |
|
| 12 | + |
|
| 13 | +## Available in Two Versions |
|
| 14 | + |
|
| 15 | + |
|
| 16 | +- MAX9812L/MAX9813L—2.7V to 3.6V |
|
| 17 | +- MAX9812H/MAX9813H—4.5V to 5.5V |
|
| 18 | + |
|
| 19 | +The MAX9812 is a single amplifier in a 6-pin SC70 package (2mm x 2.1mm) and the MAX9813 is a dual- input amplifier available in an 8-pin SOT23 (3mm x 3mm) package. |
|
| 20 | + |
|
| 21 | +**The MAX9813 has two inputs allowing two microphones to be multiplexed to a single output.** |
|
| 22 | + |
|
| 23 | +The MAX9812/MAX9813 are offered in two grades. The MAX9812L/MAX9813L are optimized for 3.3V supply operation (2.7V to 3.6V). |
|
| 24 | + |
|
| 25 | +The MAX9812H/MAX9813H are PC2001 compliant and are optimized for 5V operation (4.5V to 5.5V). Both devices are specified over the -40°C to +85°C extended operating temperature range. |
|
| 26 | + |
|
| 27 | + |
|
| 28 | + |
|
| 29 | + |
|
| 30 | + |
|
| 31 | + |
|
| 32 | +## Typical Operating Circuits |
|
| 33 | + |
|
| 34 | +MAX9812 |
|
| 35 | + |
|
| 36 | + |
|
| 37 | + |
|
| 38 | +MAX9813 |
|
| 39 | + |
|
| 40 | + |
|
| 41 | + |
|
| 42 | + |
|
| 43 | +## arduino connection |
|
| 44 | + |
|
| 45 | + |
|
| 46 | + |
|
| 47 | +## demo code |
|
| 48 | + |
|
| 49 | +simply run with analog read |
|
| 50 | + |
|
| 51 | + const int sensorPIN = A0; |
|
| 52 | + const int sampleWindow = 50; // Window width in mS (50 mS = 20Hz) |
|
| 53 | + |
|
| 54 | + void setup() |
|
| 55 | + { |
|
| 56 | + Serial.begin(9600); |
|
| 57 | + } |
|
| 58 | + |
|
| 59 | + void loop() |
|
| 60 | + { |
|
| 61 | + unsigned long startMillis= millis(); |
|
| 62 | + |
|
| 63 | + unsigned int signalMax = 0; |
|
| 64 | + unsigned int signalMin = 1024; |
|
| 65 | + |
|
| 66 | + // Collect during window |
|
| 67 | + unsigned int sample; |
|
| 68 | + while (millis() - startMillis < sampleWindow) |
|
| 69 | + { |
|
| 70 | + sample = analogRead(sensorPIN); |
|
| 71 | + if (sample < 1024) |
|
| 72 | + { |
|
| 73 | + if (sample > signalMax) |
|
| 74 | + { |
|
| 75 | + signalMax = sample; // Update maximum |
|
| 76 | + } |
|
| 77 | + else if (sample < signalMin) |
|
| 78 | + { |
|
| 79 | + signalMin = sample; // Update minimum |
|
| 80 | + } |
|
| 81 | + } |
|
| 82 | + } |
|
| 83 | + unsigned int peakToPeak = signalMax - signalMin; // Sound amplitude |
|
| 84 | + double volts = (peakToPeak * 5.0) / 1024; // Convert to voltage |
|
| 85 | + Serial.println(volts); |
|
| 86 | + } |
|
| 87 | + |
|
| 88 | + |
|
| 89 | +## ref |
|
| 90 | + |
|
| 91 | +- [[I2S-microphone-dat]] |
|
| ... | ... | \ No newline at end of file |
Chip-dat/InvenSense-dat/INMP441-dat/INMP441-dat.md
| ... | ... | @@ -1,7 +1,7 @@ |
| 1 | 1 | |
| 2 | 2 | # INMP441-dat |
| 3 | 3 | |
| 4 | -https://invensense.tdk.com/wp-content/uploads/2015/02/INMP441.pdf |
|
| 4 | +datasheet == https://invensense.tdk.com/wp-content/uploads/2015/02/INMP441.pdf |
|
| 5 | 5 | |
| 6 | 6 | |
| 7 | 7 | ## Pins |
| ... | ... | @@ -13,11 +13,32 @@ https://invensense.tdk.com/wp-content/uploads/2015/02/INMP441.pdf |
| 13 | 13 | - SD |
| 14 | 14 | - SCK |
| 15 | 15 | |
| 16 | +- SCK: I²S serial data clock |
|
| 17 | +- WS: I²S serial word select |
|
| 18 | +- L/R: Left/Right channel select |
|
| 19 | + - When set to LOW, the microphone outputs signal on the left channel of the I²S frame. |
|
| 20 | + - When set to HIGH, the microphone outputs signal on the right channel. |
|
| 21 | +- SD: I²S serial data output |
|
| 22 | +- VCC: Power input, 1.8V to 3.3V |
|
| 23 | +- GND: Ground |
|
| 24 | + |
|
| 16 | 25 | |
| 17 | 26 | ## wiring to ESP32 |
| 18 | 27 | |
| 19 | 28 |  |
| 20 | 29 | |
| 30 | + |
|
| 31 | +INMP441 to ESP32 |
|
| 32 | + |
|
| 33 | +- SCK >> GPIO14 |
|
| 34 | +- SD >> GPIO32 |
|
| 35 | +- WS >> GPIO15 |
|
| 36 | +- L/R >> GND |
|
| 37 | +- GND >> GND |
|
| 38 | +- VDD >> VDD3.3 |
|
| 39 | + |
|
| 40 | + |
|
| 41 | + |
|
| 21 | 42 | ## code |
| 22 | 43 | |
| 23 | 44 | - [[INMP441-code.ino]] - [[INMP441-code2.ino]] |
Chip-dat/Maxim-dat/MAX9812-dat/2025-04-01-14-00-42.png
| ... | ... | Binary files a/Chip-dat/Maxim-dat/MAX9812-dat/2025-04-01-14-00-42.png and /dev/null differ |
Chip-dat/Maxim-dat/MAX9812-dat/2025-04-01-14-04-00.png
| ... | ... | Binary files a/Chip-dat/Maxim-dat/MAX9812-dat/2025-04-01-14-04-00.png and /dev/null differ |
Chip-dat/Maxim-dat/MAX9812-dat/2025-04-01-14-22-04.png
| ... | ... | Binary files a/Chip-dat/Maxim-dat/MAX9812-dat/2025-04-01-14-22-04.png and /dev/null differ |
Chip-dat/Maxim-dat/MAX9812-dat/2025-04-01-14-22-33.png
| ... | ... | Binary files a/Chip-dat/Maxim-dat/MAX9812-dat/2025-04-01-14-22-33.png and /dev/null differ |
Chip-dat/Maxim-dat/MAX9812-dat/MAX9812-MAX9813L.pdf
| ... | ... | Binary files a/Chip-dat/Maxim-dat/MAX9812-dat/MAX9812-MAX9813L.pdf and /dev/null differ |
Chip-dat/Maxim-dat/MAX9812-dat/MAX9812-dat.md
| ... | ... | @@ -1,79 +0,0 @@ |
| 1 | - |
|
| 2 | -# MAX9812-dat |
|
| 3 | - |
|
| 4 | -Tiny, Low-Cost, Single/Dual-Input, Fixed-Gain |
|
| 5 | - |
|
| 6 | -Microphone Amplifiers with Integrated Bias |
|
| 7 | - |
|
| 8 | -datasheet - [Maxim Integrated](https://datasheets.maximintegrated.com/en/ds/MAX9812.pdf) |
|
| 9 | - |
|
| 10 | -- [[MAX9812-MAX9813L.pdf]] |
|
| 11 | - |
|
| 12 | - |
|
| 13 | -## Available in Two Versions |
|
| 14 | -- MAX9812L/MAX9813L—2.7V to 3.6V |
|
| 15 | -- MAX9812H/MAX9813H—4.5V to 5.5V |
|
| 16 | - |
|
| 17 | -The MAX9812 is a single amplifier in a 6-pin SC70 package (2mm x 2.1mm) and the MAX9813 is a dual- input amplifier available in an 8-pin SOT23 (3mm x 3mm) package. The MAX9813 has two inputs allowing two microphones to be multiplexed to a single output. |
|
| 18 | - |
|
| 19 | -The MAX9812/MAX9813 are offered in two grades. The MAX9812L/MAX9813L are optimized for 3.3V supply operation (2.7V to 3.6V). |
|
| 20 | - |
|
| 21 | -The MAX9812H/MAX9813H are PC2001 compliant and are optimized for 5V operation (4.5V to 5.5V). Both devices are specified over the -40°C to +85°C extended operating temperature range. |
|
| 22 | - |
|
| 23 | - |
|
| 24 | - |
|
| 25 | -## Typical Operating Circuits |
|
| 26 | - |
|
| 27 | -MAX9812 |
|
| 28 | - |
|
| 29 | - |
|
| 30 | - |
|
| 31 | -MAX9813 |
|
| 32 | - |
|
| 33 | - |
|
| 34 | - |
|
| 35 | - |
|
| 36 | -## arduino connection |
|
| 37 | - |
|
| 38 | - |
|
| 39 | - |
|
| 40 | -## demo code |
|
| 41 | - |
|
| 42 | -simply run with analog read |
|
| 43 | - |
|
| 44 | - const int sensorPIN = A0; |
|
| 45 | - const int sampleWindow = 50; // Window width in mS (50 mS = 20Hz) |
|
| 46 | - |
|
| 47 | - void setup() |
|
| 48 | - { |
|
| 49 | - Serial.begin(9600); |
|
| 50 | - } |
|
| 51 | - |
|
| 52 | - void loop() |
|
| 53 | - { |
|
| 54 | - unsigned long startMillis= millis(); |
|
| 55 | - |
|
| 56 | - unsigned int signalMax = 0; |
|
| 57 | - unsigned int signalMin = 1024; |
|
| 58 | - |
|
| 59 | - // Collect during window |
|
| 60 | - unsigned int sample; |
|
| 61 | - while (millis() - startMillis < sampleWindow) |
|
| 62 | - { |
|
| 63 | - sample = analogRead(sensorPIN); |
|
| 64 | - if (sample < 1024) |
|
| 65 | - { |
|
| 66 | - if (sample > signalMax) |
|
| 67 | - { |
|
| 68 | - signalMax = sample; // Update maximum |
|
| 69 | - } |
|
| 70 | - else if (sample < signalMin) |
|
| 71 | - { |
|
| 72 | - signalMin = sample; // Update minimum |
|
| 73 | - } |
|
| 74 | - } |
|
| 75 | - } |
|
| 76 | - unsigned int peakToPeak = signalMax - signalMin; // Sound amplitude |
|
| 77 | - double volts = (peakToPeak * 5.0) / 1024; // Convert to voltage |
|
| 78 | - Serial.println(volts); |
|
| 79 | - } |
|
| ... | ... | \ No newline at end of file |
Chip-dat/vishay-dat/VEML6070-dat/VEML6070-dat.md
| ... | ... | @@ -3,4 +3,7 @@ |
| 3 | 3 | |
| 4 | 4 | chip datasheet == [[Veml6070.pdf]] |
| 5 | 5 | |
| 6 | -- [demo code](https://github.com/adafruit/Adafruit_VEML6070) |
|
| ... | ... | \ No newline at end of file |
| 0 | +- [demo code](https://github.com/adafruit/Adafruit_VEML6070) |
|
| 1 | + |
|
| 2 | +UV A Light Sensor with I2C Interface |
|
| 3 | + |
Tech-dat/Interface-dat/I2S-dat/I2S-microphone-dat/I2S-microphone-dat.md
| ... | ... | @@ -116,4 +116,6 @@ LGA8 |
| 116 | 116 | |
| 117 | 117 | ## ref |
| 118 | 118 | |
| 119 | +- [[sensor-microphone-dat]] |
|
| 120 | + |
|
| 119 | 121 | - [[I2S-dat]] - [[I2S-microphone]] - [[I2S]] |
| ... | ... | \ No newline at end of file |
Tech-dat/Sensor-dat/sensor-light-dat/sensor-UV-light-dat/sensor-UV-light-dat.md
| ... | ... | @@ -11,7 +11,7 @@ |
| 11 | 11 | |
| 12 | 12 | ## UV light sensor |
| 13 | 13 | |
| 14 | -- [[STH1024-dat]] |
|
| 14 | +- [[STH1024-dat]] - [[STH1023-dat]] |
|
| 15 | 15 | |
| 16 | 16 | |
| 17 | 17 |
Tech-dat/Sensor-dat/sensor-microphone-dat/Analog-microphone-dat/Analog-microphone-dat.md
| ... | ... | @@ -0,0 +1,6 @@ |
| 1 | + |
|
| 2 | +# Analog-microphone-dat |
|
| 3 | + |
|
| 4 | +- [[MAX9812-dat]] |
|
| 5 | + |
|
| 6 | +- [[Electret-Condenser-Microphone-dat]] |
|
| ... | ... | \ No newline at end of file |
Tech-dat/Sensor-dat/sensor-microphone-dat/sensor-microphone-dat.md
| ... | ... | @@ -5,15 +5,15 @@ |
| 5 | 5 | |
| 6 | 6 | - [[Analog-microphone-dat]] - [[Electret-Condenser-Microphone-dat]] |
| 7 | 7 | |
| 8 | -| Feature | Electret Condenser Microphone (ECM) | MAX9812 | ICS-41434 | |
|
| 9 | -|---------------------------------|---------------------------------------------|------------------------------------------|------------------------------------------| |
|
| 10 | -| **Type** | Analog, capacitive (with FET) | Analog (with AGC) | Digital (MEMS, I2S) | |
|
| 11 | -| **Powering** | Requires bias voltage (1.5V to 10V) | Requires 2.7V to 3.6V (integrated power) | Requires 1.8V to 3.6V (integrated power) | |
|
| 12 | -| **Signal Output** | Analog | Analog output (with AGC) | Digital output (I2S) | |
|
| 13 | -| **Amplification** | Needs external amplifier or preamp | Built-in amplification with AGC | Built-in digital conversion (I2S) | |
|
| 14 | -| **Size** | Larger, with external components | Small, integrated AGC | Very compact, MEMS-based | |
|
| 15 | -| **Technology** | Traditional electret condenser | Integrated analog microphone with AGC | MEMS technology (digital) | |
|
| 16 | -| **Use Case** | General-purpose audio recording, comm systems | Voice recording, audio applications | Portable devices, IoT, consumer electronics | |
|
| 8 | +| Feature | Electret Condenser Microphone (ECM) | MAX9812 | ICS-41434 | |
|
| 9 | +| ----------------- | --------------------------------------------- | ---------------------------------------- | ------------------------------------------- | |
|
| 10 | +| **Type** | Analog, capacitive (with FET) | Analog (with AGC) | Digital (MEMS, I2S) | |
|
| 11 | +| **Powering** | Requires bias voltage (1.5V to 10V) | Requires 2.7V to 3.6V (integrated power) | Requires 1.8V to 3.6V (integrated power) | |
|
| 12 | +| **Signal Output** | Analog | Analog output (with AGC) | Digital output (I2S) | |
|
| 13 | +| **Amplification** | Needs external amplifier or preamp | Built-in amplification with AGC | Built-in digital conversion (I2S) | |
|
| 14 | +| **Size** | Larger, with external components | Small, integrated AGC | Very compact, MEMS-based | |
|
| 15 | +| **Technology** | Traditional electret condenser | Integrated analog microphone with AGC | MEMS technology (digital) | |
|
| 16 | +| **Use Case** | General-purpose audio recording, comm systems | Voice recording, audio applications | Portable devices, IoT, consumer electronics | |
|
| 17 | 17 | |
| 18 | 18 | - **Powering**: ECMs need a bias voltage to function, whereas the MAX9812 and ICS-41434 use internal power supplies (usually lower voltage). |
| 19 | 19 | - **Signal Output**: ECMs give an analog output that often requires additional processing, while the MAX9812 provides analog output with built-in gain control, and the ICS-41434 outputs a digital signal (I2S) directly. |