5c8c015b8b4a5928570b4cfb6d3d3829a895c7bc
Board-dat/NWI/NWI1118-dat/NWI1118-DAT.md
... | ... | @@ -23,6 +23,9 @@ |
23 | 23 | - IO16 = status LED |
24 | 24 | - IO4, IO5 = I2C Pull up |
25 | 25 | |
26 | +## installation |
|
27 | + |
|
28 | +- https://t.me/electrodragon3/319 |
|
26 | 29 | |
27 | 30 | |
28 | 31 | ## ref |
Chip-cn-dat/Espressif-dat/ESP32-dat/ESP32-dev-board-dat/ESP32-lyrat-dat/2025-01-10-18-42-14.png
... | ... | Binary files /dev/null and b/Chip-cn-dat/Espressif-dat/ESP32-dat/ESP32-dev-board-dat/ESP32-lyrat-dat/2025-01-10-18-42-14.png differ |
Chip-cn-dat/Espressif-dat/ESP32-dat/ESP32-dev-board-dat/ESP32-lyrat-dat/ESP32-lyrat-dat.md
... | ... | @@ -0,0 +1,26 @@ |
1 | + |
|
2 | +# ESP32-lyrat-dat |
|
3 | + |
|
4 | +## Board version |
|
5 | + |
|
6 | +- ESP32-LyraT V4.3 |
|
7 | +- ESP32-LyraT-Mini V1.2 |
|
8 | + |
|
9 | + |
|
10 | + |
|
11 | +## ESP32-LyraT-Mini V1.2 Electrical Block Diagram |
|
12 | + |
|
13 | +![](2025-01-10-18-42-14.png) |
|
14 | + |
|
15 | + |
|
16 | + |
|
17 | +## peripherals |
|
18 | + |
|
19 | +- [[ADC-dat]] - [[ES7243-dat]] |
|
20 | + |
|
21 | +- [[DAC-dat]] - [[ES8311-dat]] |
|
22 | + |
|
23 | + |
|
24 | +## ref |
|
25 | + |
|
26 | +- [[esp32_audio_design_guidelines__en.pdf]] |
|
... | ... | \ No newline at end of file |
Chip-cn-dat/Espressif-dat/ESP32-dat/ESP32-dev-board-dat/ESP32-lyrat-dat/esp32_audio_design_guidelines__en.pdf
... | ... | Binary files /dev/null and b/Chip-cn-dat/Espressif-dat/ESP32-dat/ESP32-dev-board-dat/ESP32-lyrat-dat/esp32_audio_design_guidelines__en.pdf differ |
MOD-dat/ESPC2-12-DEV/12-22-15-19-12-2022.png
... | ... | Binary files a/MOD-dat/ESPC2-12-DEV/12-22-15-19-12-2022.png and /dev/null differ |
MOD-dat/ESPC2-12-DEV/23-55-14-19-12-2022.png
... | ... | Binary files a/MOD-dat/ESPC2-12-DEV/23-55-14-19-12-2022.png and /dev/null differ |
MOD-dat/ESPC2-12-DEV/46-55-14-19-12-2022.png
... | ... | Binary files a/MOD-dat/ESPC2-12-DEV/46-55-14-19-12-2022.png and /dev/null differ |
MOD-dat/ESPC2-12-DEV/52-55-14-19-12-2022.png
... | ... | Binary files a/MOD-dat/ESPC2-12-DEV/52-55-14-19-12-2022.png and /dev/null differ |
MOD-dat/ESPC2-12-DEV/ESPC2-12-DEV-log.md
... | ... | @@ -1,49 +0,0 @@ |
1 | - |
|
2 | - |
|
3 | - ESP-ROM:esp8684-api2-20220127 |
|
4 | - Build:Jan 27 2022 |
|
5 | - rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT) |
|
6 | - SPIWP:0xee |
|
7 | - mode:DIO, clock div:2 |
|
8 | - load:0x3fcd5c80,len:0x1314 |
|
9 | - load:0x403acb70,len:0x8f8 |
|
10 | - load:0x403aeb70,len:0x254c |
|
11 | - SHA-256 comparison failed: |
|
12 | - Calculated: 74043b7cac1b10700c8bf8d3adfa93a4c4b12c826f3e53490ba390453ed0868c |
|
13 | - Expected: c52a001d3d61f27cb6cc206d2db00539deb79253bf1e44f1f9fa178b6fe913c6 |
|
14 | - Attempting to boot anyway... |
|
15 | - entry 0x403acb70 |
|
16 | - [0;32mI (60) boot: ESP-IDF v5.0-beta1-641-gc321739074-dirt 2nd stage bootloader[0m |
|
17 | - [0;32mI (60) boot: compile time 10:51:17[0m |
|
18 | - [0;32mI (61) boot: chip revision: V100[0m |
|
19 | - [0;32mI (67) boot.esp32c2: MMU Page Size : 32K[0m |
|
20 | - [0;32mI (74) boot.esp32c2: SPI Speed : 30MHz[0m |
|
21 | - [0;32mI (81) boot.esp32c2: SPI Mode : DIO[0m |
|
22 | - [0;32mI (89) boot.esp32c2: SPI Flash Size : 2MB[0m |
|
23 | - [0;32mI (96) boot: Enabling RNG early entropy source...[0m |
|
24 | - [0;32mI (104) boot: Partition Table:[0m |
|
25 | - [0;32mI (110) boot: ## Label Usage Type ST Offset Length[0m |
|
26 | - [0;32mI (121) boot: 0 nvs WiFi data 01 02 00009000 00004000[0m |
|
27 | - |
|
28 | - [0;32mI (133) boot: 1 otadata OTA data 01 00 0000d000 00002000[0m |
|
29 | - [0;32mI (145) boot: 2 phy_init RF data 01 01 0000f000 00001000[0m |
|
30 | - [0;32mI (156) boot: 3 ota_0 OTA app 00 10 00010000 000e0000[0m |
|
31 | - [0;32mI (168) boot: 4 ota_1 OTA app 00 11 000f0000 000e0000[0m |
|
32 | - [0;32mI (179) boot: End of partition table[0m |
|
33 | - [0;32mI (186) esp_image: segment 0: paddr=00010020 vaddr=3c090020 size=14180h ( 82304) map[0m |
|
34 | - [0;32mI (228) esp_image: segment 1: paddr=000241a8 vaddr=3fcac540 size=02618h ( 9752) load[0m |
|
35 | - [0;32mI (231) esp_image: segment 2: paddr=000267c8 vaddr=40380000 size=01850h ( 6224) load[0m |
|
36 | - [0;32mI (239) esp_image: segment 3: paddr=00028020 vaddr=42000020 size=8af74h (569204) map[0m |
|
37 | - [0;32mI (447) esp_image: segment 4: paddr=000b2f9c vaddr=40381850 size=0acech ( 44268) load[0m |
|
38 | - [0;32mI (468) boot: Loaded app from partition at offset 0x10000[0m |
|
39 | - [0;32mI (468) boot: Disabling RNG early entropy source...[0m |
|
40 | - iKECIN Technology Co.Ltd.(Oct 22 2022 15:41:31) |
|
41 | - |
|
42 | - ready |
|
43 | - |
|
44 | - sn : |
|
45 | - |
|
46 | - device Fireware : W1.KD5P7010.v1_0 |
|
47 | - |
|
48 | - |
|
49 | - |
MOD-dat/ESPC2-12-DEV/ESPC2-12-DEV.md
... | ... | @@ -1,37 +0,0 @@ |
1 | - |
|
2 | -# ESPC2-12-DEV |
|
3 | - |
|
4 | -![](23-55-14-19-12-2022.png) |
|
5 | - |
|
6 | -![](46-55-14-19-12-2022.png) |
|
7 | - |
|
8 | -![](52-55-14-19-12-2022.png) |
|
9 | - |
|
10 | - |
|
11 | -## flash |
|
12 | -![](12-22-15-19-12-2022.png) |
|
13 | - |
|
14 | - |
|
15 | -### AT指令集 |
|
16 | -- • AT:测试 AT 启动 |
|
17 | -- • AT+RST:重启模块 |
|
18 | -- • AT+GMR:查看版本信息 |
|
19 | -- • AT+CMD:查询当前固件支持的所有命令及命令类型 |
|
20 | -- • AT+GSLP:进入 Deep-sleep 模式 |
|
21 | -- • ATE:开启或关闭 AT 回显功能 |
|
22 | -- • AT+RESTORE:恢复出厂设置 |
|
23 | -- • AT+UART_CUR:设置 UART 当前临时配置,不保存到 flash |
|
24 | -- • AT+UART_DEF:设置 UART 默认配置, 保存到 flash |
|
25 | -- • AT+SLEEP:设置 sleep 模式 |
|
26 | -- • AT+SYSRAM:查询当前剩余堆空间和最小堆空间 |
|
27 | -- • AT+SYSMSG:查询/设置系统提示信息 |
|
28 | -- • AT+SYSFLASH:查询或读写 flash 用户分区 |
|
29 | -- • AT+FS:文件系统操作 |
|
30 | -- • AT+FSMOUNT:挂载/卸载文件系统 |
|
31 | -- • AT+RFPOWER:查询/设置 RF TX Power |
|
32 | -- • AT+SYSROLLBACK:回滚到以前的固件 |
|
33 | -- • AT+SYSTIMESTAMP:查询/设置本地时间戳 |
|
34 | -- • AT+SYSLOG:启用或禁用 AT 错误代码提示 |
|
35 | -- • AT+SLEEPWKCFG:设置 Light-sleep 唤醒源和唤醒 GPIO |
|
36 | -- • AT+SYSSTORE:设置参数存储模式 |
|
37 | -- • AT+SYSREG:读写寄存器 |
MOD-dat/XT-BL602-DAT/35-22-15-15-12-2022.png
... | ... | Binary files a/MOD-dat/XT-BL602-DAT/35-22-15-15-12-2022.png and /dev/null differ |
MOD-dat/XT-BL602-DAT/XT-BL602-DAT.md
... | ... | @@ -1,5 +0,0 @@ |
1 | - |
|
2 | - |
|
3 | -# XT-BL602-DAT |
|
4 | - |
|
5 | -![](35-22-15-15-12-2022.png) |
|
... | ... | \ No newline at end of file |
MOD-dat/mod-dat.md
... | ... | @@ -1,4 +0,0 @@ |
1 | - |
|
2 | -# mod-dat.md |
|
3 | - |
|
4 | -- [[ESPC2-12-DEV]] - [[XT-BL602-DAT]] |
|
... | ... | \ No newline at end of file |
Tech-dat/Interface-dat/I2S-dat/I2S-dat.md
... | ... | @@ -11,6 +11,8 @@ One of the key features of I2S interfaces is their ability to support full-duple |
11 | 11 | |
12 | 12 | This makes I2S a popular choice for high-speed data transfer applications. |
13 | 13 | |
14 | +- [[I2S-microphone-dat]] |
|
15 | + |
|
14 | 16 | ## Pin |
15 | 17 | |
16 | 18 | | Name | default ESP32 | also Name | func | RPI GPIO | RPI pin | |
Tech-dat/Interface-dat/I2S-dat/I2S-microphone-dat/I2S-microphone-dat.md
... | ... | @@ -0,0 +1,74 @@ |
1 | + |
|
2 | +# I2S-microphone-dat |
|
3 | + |
|
4 | +## go advance |
|
5 | + |
|
6 | +- simultaneous data = microphones with **TDM (Time-Division Multiplexing)** |
|
7 | + |
|
8 | + |
|
9 | + |
|
10 | + |
|
11 | +## demo code for interleaved data |
|
12 | + |
|
13 | + #include <driver/i2s.h> |
|
14 | + |
|
15 | + // I2S configuration |
|
16 | + #define I2S_NUM I2S_NUM_0 // I2S port number |
|
17 | + #define SAMPLE_RATE 16000 // Sampling rate in Hz |
|
18 | + #define I2S_BCK_PIN 26 // Bit clock pin (SCK) |
|
19 | + #define I2S_WS_PIN 25 // Word select pin (WS/LRCLK) |
|
20 | + #define I2S_DATA_PIN 22 // Serial data pin (SD) |
|
21 | + |
|
22 | + #define BUFFER_SIZE 1024 // Buffer size for audio data |
|
23 | + |
|
24 | + void setup() { |
|
25 | + Serial.begin(115200); |
|
26 | + |
|
27 | + // Configure I2S |
|
28 | + i2s_config_t i2s_config = { |
|
29 | + .mode = (i2s_mode_t)(I2S_MODE_MASTER | I2S_MODE_RX), // Master receive mode |
|
30 | + .sample_rate = SAMPLE_RATE, |
|
31 | + .bits_per_sample = I2S_BITS_PER_SAMPLE_32BIT, // 32-bit data |
|
32 | + .channel_format = I2S_CHANNEL_FMT_RIGHT_LEFT, // Stereo format |
|
33 | + .communication_format = I2S_COMM_FORMAT_I2S, |
|
34 | + .intr_alloc_flags = ESP_INTR_FLAG_LEVEL1, // Interrupt level 1 |
|
35 | + .dma_buf_count = 4, // Number of DMA buffers |
|
36 | + .dma_buf_len = BUFFER_SIZE // DMA buffer size |
|
37 | + }; |
|
38 | + |
|
39 | + // Configure I2S pins |
|
40 | + i2s_pin_config_t pin_config = { |
|
41 | + .bck_io_num = I2S_BCK_PIN, |
|
42 | + .ws_io_num = I2S_WS_PIN, |
|
43 | + .data_out_num = I2S_PIN_NO_CHANGE, |
|
44 | + .data_in_num = I2S_DATA_PIN |
|
45 | + }; |
|
46 | + |
|
47 | + // Install and start I2S |
|
48 | + i2s_driver_install(I2S_NUM, &i2s_config, 0, NULL); |
|
49 | + i2s_set_pin(I2S_NUM, &pin_config); |
|
50 | + i2s_zero_dma_buffer(I2S_NUM); |
|
51 | + |
|
52 | + Serial.println("I2S initialized!"); |
|
53 | + } |
|
54 | + |
|
55 | + void loop() { |
|
56 | + int32_t i2s_buffer[BUFFER_SIZE]; // Buffer for interleaved audio data |
|
57 | + size_t bytes_read; |
|
58 | + |
|
59 | + // Read data from I2S |
|
60 | + i2s_read(I2S_NUM, i2s_buffer, sizeof(i2s_buffer), &bytes_read, portMAX_DELAY); |
|
61 | + |
|
62 | + // Process interleaved data |
|
63 | + size_t samples_read = bytes_read / sizeof(int32_t); |
|
64 | + for (size_t i = 0; i < samples_read; i += 2) { |
|
65 | + int32_t left_channel = i2s_buffer[i]; // Left channel (Microphone 1) |
|
66 | + int32_t right_channel = i2s_buffer[i+1]; // Right channel (Microphone 2) |
|
67 | + |
|
68 | + // Print the audio data for debugging |
|
69 | + Serial.print("Left: "); |
|
70 | + Serial.print(left_channel); |
|
71 | + Serial.print(" | Right: "); |
|
72 | + Serial.println(right_channel); |
|
73 | + } |
|
74 | + } |
Tech-dat/tech-dat.md
... | ... | @@ -3,6 +3,7 @@ |
3 | 3 | |
4 | 4 | - [[BOM-dat]] - [[chip-dat]] - [[chip-cn-dat]] - [[app-dat]] |
5 | 5 | |
6 | +- [[interface-dat]] |
|
6 | 7 | |
7 | 8 | ## Circuits |
8 | 9 |
board-3rd-dat/MOD-dat/ESPC2-12-DEV/12-22-15-19-12-2022.png
... | ... | Binary files /dev/null and b/board-3rd-dat/MOD-dat/ESPC2-12-DEV/12-22-15-19-12-2022.png differ |
board-3rd-dat/MOD-dat/ESPC2-12-DEV/23-55-14-19-12-2022.png
... | ... | Binary files /dev/null and b/board-3rd-dat/MOD-dat/ESPC2-12-DEV/23-55-14-19-12-2022.png differ |
board-3rd-dat/MOD-dat/ESPC2-12-DEV/46-55-14-19-12-2022.png
... | ... | Binary files /dev/null and b/board-3rd-dat/MOD-dat/ESPC2-12-DEV/46-55-14-19-12-2022.png differ |
board-3rd-dat/MOD-dat/ESPC2-12-DEV/52-55-14-19-12-2022.png
... | ... | Binary files /dev/null and b/board-3rd-dat/MOD-dat/ESPC2-12-DEV/52-55-14-19-12-2022.png differ |
board-3rd-dat/MOD-dat/ESPC2-12-DEV/ESPC2-12-DEV-log.md
... | ... | @@ -0,0 +1,49 @@ |
1 | + |
|
2 | + |
|
3 | + ESP-ROM:esp8684-api2-20220127 |
|
4 | + Build:Jan 27 2022 |
|
5 | + rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT) |
|
6 | + SPIWP:0xee |
|
7 | + mode:DIO, clock div:2 |
|
8 | + load:0x3fcd5c80,len:0x1314 |
|
9 | + load:0x403acb70,len:0x8f8 |
|
10 | + load:0x403aeb70,len:0x254c |
|
11 | + SHA-256 comparison failed: |
|
12 | + Calculated: 74043b7cac1b10700c8bf8d3adfa93a4c4b12c826f3e53490ba390453ed0868c |
|
13 | + Expected: c52a001d3d61f27cb6cc206d2db00539deb79253bf1e44f1f9fa178b6fe913c6 |
|
14 | + Attempting to boot anyway... |
|
15 | + entry 0x403acb70 |
|
16 | + [0;32mI (60) boot: ESP-IDF v5.0-beta1-641-gc321739074-dirt 2nd stage bootloader[0m |
|
17 | + [0;32mI (60) boot: compile time 10:51:17[0m |
|
18 | + [0;32mI (61) boot: chip revision: V100[0m |
|
19 | + [0;32mI (67) boot.esp32c2: MMU Page Size : 32K[0m |
|
20 | + [0;32mI (74) boot.esp32c2: SPI Speed : 30MHz[0m |
|
21 | + [0;32mI (81) boot.esp32c2: SPI Mode : DIO[0m |
|
22 | + [0;32mI (89) boot.esp32c2: SPI Flash Size : 2MB[0m |
|
23 | + [0;32mI (96) boot: Enabling RNG early entropy source...[0m |
|
24 | + [0;32mI (104) boot: Partition Table:[0m |
|
25 | + [0;32mI (110) boot: ## Label Usage Type ST Offset Length[0m |
|
26 | + [0;32mI (121) boot: 0 nvs WiFi data 01 02 00009000 00004000[0m |
|
27 | + |
|
28 | + [0;32mI (133) boot: 1 otadata OTA data 01 00 0000d000 00002000[0m |
|
29 | + [0;32mI (145) boot: 2 phy_init RF data 01 01 0000f000 00001000[0m |
|
30 | + [0;32mI (156) boot: 3 ota_0 OTA app 00 10 00010000 000e0000[0m |
|
31 | + [0;32mI (168) boot: 4 ota_1 OTA app 00 11 000f0000 000e0000[0m |
|
32 | + [0;32mI (179) boot: End of partition table[0m |
|
33 | + [0;32mI (186) esp_image: segment 0: paddr=00010020 vaddr=3c090020 size=14180h ( 82304) map[0m |
|
34 | + [0;32mI (228) esp_image: segment 1: paddr=000241a8 vaddr=3fcac540 size=02618h ( 9752) load[0m |
|
35 | + [0;32mI (231) esp_image: segment 2: paddr=000267c8 vaddr=40380000 size=01850h ( 6224) load[0m |
|
36 | + [0;32mI (239) esp_image: segment 3: paddr=00028020 vaddr=42000020 size=8af74h (569204) map[0m |
|
37 | + [0;32mI (447) esp_image: segment 4: paddr=000b2f9c vaddr=40381850 size=0acech ( 44268) load[0m |
|
38 | + [0;32mI (468) boot: Loaded app from partition at offset 0x10000[0m |
|
39 | + [0;32mI (468) boot: Disabling RNG early entropy source...[0m |
|
40 | + iKECIN Technology Co.Ltd.(Oct 22 2022 15:41:31) |
|
41 | + |
|
42 | + ready |
|
43 | + |
|
44 | + sn : |
|
45 | + |
|
46 | + device Fireware : W1.KD5P7010.v1_0 |
|
47 | + |
|
48 | + |
|
49 | + |
board-3rd-dat/MOD-dat/ESPC2-12-DEV/ESPC2-12-DEV.md
... | ... | @@ -0,0 +1,37 @@ |
1 | + |
|
2 | +# ESPC2-12-DEV |
|
3 | + |
|
4 | +![](23-55-14-19-12-2022.png) |
|
5 | + |
|
6 | +![](46-55-14-19-12-2022.png) |
|
7 | + |
|
8 | +![](52-55-14-19-12-2022.png) |
|
9 | + |
|
10 | + |
|
11 | +## flash |
|
12 | +![](12-22-15-19-12-2022.png) |
|
13 | + |
|
14 | + |
|
15 | +### AT指令集 |
|
16 | +- • AT:测试 AT 启动 |
|
17 | +- • AT+RST:重启模块 |
|
18 | +- • AT+GMR:查看版本信息 |
|
19 | +- • AT+CMD:查询当前固件支持的所有命令及命令类型 |
|
20 | +- • AT+GSLP:进入 Deep-sleep 模式 |
|
21 | +- • ATE:开启或关闭 AT 回显功能 |
|
22 | +- • AT+RESTORE:恢复出厂设置 |
|
23 | +- • AT+UART_CUR:设置 UART 当前临时配置,不保存到 flash |
|
24 | +- • AT+UART_DEF:设置 UART 默认配置, 保存到 flash |
|
25 | +- • AT+SLEEP:设置 sleep 模式 |
|
26 | +- • AT+SYSRAM:查询当前剩余堆空间和最小堆空间 |
|
27 | +- • AT+SYSMSG:查询/设置系统提示信息 |
|
28 | +- • AT+SYSFLASH:查询或读写 flash 用户分区 |
|
29 | +- • AT+FS:文件系统操作 |
|
30 | +- • AT+FSMOUNT:挂载/卸载文件系统 |
|
31 | +- • AT+RFPOWER:查询/设置 RF TX Power |
|
32 | +- • AT+SYSROLLBACK:回滚到以前的固件 |
|
33 | +- • AT+SYSTIMESTAMP:查询/设置本地时间戳 |
|
34 | +- • AT+SYSLOG:启用或禁用 AT 错误代码提示 |
|
35 | +- • AT+SLEEPWKCFG:设置 Light-sleep 唤醒源和唤醒 GPIO |
|
36 | +- • AT+SYSSTORE:设置参数存储模式 |
|
37 | +- • AT+SYSREG:读写寄存器 |
board-3rd-dat/MOD-dat/XT-BL602-DAT/35-22-15-15-12-2022.png
... | ... | Binary files /dev/null and b/board-3rd-dat/MOD-dat/XT-BL602-DAT/35-22-15-15-12-2022.png differ |
board-3rd-dat/MOD-dat/XT-BL602-DAT/XT-BL602-DAT.md
... | ... | @@ -0,0 +1,5 @@ |
1 | + |
|
2 | + |
|
3 | +# XT-BL602-DAT |
|
4 | + |
|
5 | +![](35-22-15-15-12-2022.png) |
|
... | ... | \ No newline at end of file |
board-3rd-dat/MOD-dat/mod-dat.md
... | ... | @@ -0,0 +1,4 @@ |
1 | + |
|
2 | +# mod-dat.md |
|
3 | + |
|
4 | +- [[ESPC2-12-DEV]] - [[XT-BL602-DAT]] |
|
... | ... | \ No newline at end of file |
board-3rd-dat/board-3rd-dat.md
... | ... | @@ -0,0 +1,4 @@ |
1 | + |
|
2 | +# board-3rd-dat.md |
|
3 | + |
|
4 | +- [[ESP32-lyrat-dat]] |
|
... | ... | \ No newline at end of file |